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 <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> | ||||
| class QValidatedLineEdit; | class QValidatedLineEdit; | ||||
| class SendCoinsRecipient; | class SendCoinsRecipient; | ||||
| class CChainParams; | class CChainParams; | ||||
| class Config; | class Config; | ||||
| namespace interfaces { | |||||
| class Node; | |||||
| } | |||||
| QT_BEGIN_NAMESPACE | QT_BEGIN_NAMESPACE | ||||
| class QAbstractItemView; | class QAbstractItemView; | ||||
| class QDateTime; | class QDateTime; | ||||
| class QFont; | class QFont; | ||||
| class QLineEdit; | class QLineEdit; | ||||
| class QUrl; | class QUrl; | ||||
| class QWidget; | class QWidget; | ||||
| QT_END_NAMESPACE | QT_END_NAMESPACE | ||||
| Show All 26 Lines | |||||
| // parsing | // parsing | ||||
| bool parseBitcoinURI(const QString &scheme, const QUrl &uri, | bool parseBitcoinURI(const QString &scheme, const QUrl &uri, | ||||
| SendCoinsRecipient *out); | SendCoinsRecipient *out); | ||||
| bool parseBitcoinURI(const QString &scheme, QString uri, | bool parseBitcoinURI(const QString &scheme, QString uri, | ||||
| SendCoinsRecipient *out); | SendCoinsRecipient *out); | ||||
| QString formatBitcoinURI(const Config &config, const SendCoinsRecipient &info); | QString formatBitcoinURI(const Config &config, const SendCoinsRecipient &info); | ||||
| // Returns true if given address+amount meets "dust" definition | // Returns true if given address+amount meets "dust" definition | ||||
| bool isDust(const QString &address, const Amount amount, | bool isDust(interfaces::Node &node, const QString &address, const Amount amount, | ||||
| const CChainParams &chainParams); | const CChainParams &chainParams); | ||||
| // HTML escaping for rich text controls | // HTML escaping for rich text controls | ||||
| QString HtmlEscape(const QString &str, bool fMultiLine = false); | QString HtmlEscape(const QString &str, bool fMultiLine = false); | ||||
| QString HtmlEscape(const std::string &str, bool fMultiLine = false); | QString HtmlEscape(const std::string &str, bool fMultiLine = false); | ||||
| /** Copy a field of the currently selected entry of a view to the clipboard. | /** Copy a field of the currently selected entry of a view to the clipboard. | ||||
| Does nothing if nothing | Does nothing if nothing | ||||
| ▲ Show 20 Lines • Show All 202 Lines • Show Last 20 Lines | |||||