Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_GUIUTIL_H | #ifndef BITCOIN_QT_GUIUTIL_H | ||||
#define BITCOIN_QT_GUIUTIL_H | #define BITCOIN_QT_GUIUTIL_H | ||||
#include "amount.h" | #include "amount.h" | ||||
#include "fs.h" | |||||
#include <QEvent> | #include <QEvent> | ||||
#include <QHeaderView> | #include <QHeaderView> | ||||
#include <QLabel> | #include <QLabel> | ||||
#include <QMessageBox> | #include <QMessageBox> | ||||
#include <QObject> | #include <QObject> | ||||
#include <QProgressBar> | #include <QProgressBar> | ||||
#include <QString> | #include <QString> | ||||
#include <QTableView> | #include <QTableView> | ||||
#include <boost/filesystem.hpp> | |||||
class QValidatedLineEdit; | class QValidatedLineEdit; | ||||
class SendCoinsRecipient; | class SendCoinsRecipient; | ||||
class CChainParams; | class CChainParams; | ||||
class Config; | class Config; | ||||
QT_BEGIN_NAMESPACE | QT_BEGIN_NAMESPACE | ||||
class QAbstractItemView; | class QAbstractItemView; | ||||
class QDateTime; | class QDateTime; | ||||
▲ Show 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | |||||
/** Save window size and position */ | /** Save window size and position */ | ||||
void saveWindowGeometry(const QString &strSetting, QWidget *parent); | void saveWindowGeometry(const QString &strSetting, QWidget *parent); | ||||
/** Restore window size and position */ | /** Restore window size and position */ | ||||
void restoreWindowGeometry(const QString &strSetting, | void restoreWindowGeometry(const QString &strSetting, | ||||
const QSize &defaultSizeIn, QWidget *parent); | const QSize &defaultSizeIn, QWidget *parent); | ||||
/* Convert QString to OS specific boost path through UTF-8 */ | /* Convert QString to OS specific boost path through UTF-8 */ | ||||
boost::filesystem::path qstringToBoostPath(const QString &path); | fs::path qstringToBoostPath(const QString &path); | ||||
/* Convert OS specific boost path to QString through UTF-8 */ | /* Convert OS specific boost path to QString through UTF-8 */ | ||||
QString boostPathToQString(const boost::filesystem::path &path); | QString boostPathToQString(const fs::path &path); | ||||
/* Convert seconds into a QString with days, hours, mins, secs */ | /* Convert seconds into a QString with days, hours, mins, secs */ | ||||
QString formatDurationStr(int secs); | QString formatDurationStr(int secs); | ||||
/* Format CNodeStats.nServices bitmask into a user-readable string */ | /* Format CNodeStats.nServices bitmask into a user-readable string */ | ||||
QString formatServicesStr(quint64 mask); | QString formatServicesStr(quint64 mask); | ||||
/* Format a CNodeCombinedStats.dPingTime into a user-readable string or display | /* Format a CNodeCombinedStats.dPingTime into a user-readable string or display | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |