Bitcoin Core  0.18.99
P2P Digital Currency
Namespaces | Functions | Variables
guiutil.cpp File Reference
#include <qt/guiutil.h>
#include <qt/bitcoinaddressvalidator.h>
#include <qt/bitcoinunits.h>
#include <qt/qvalidatedlineedit.h>
#include <qt/walletmodel.h>
#include <base58.h>
#include <chainparams.h>
#include <interfaces/node.h>
#include <key_io.h>
#include <policy/policy.h>
#include <primitives/transaction.h>
#include <protocol.h>
#include <script/script.h>
#include <script/standard.h>
#include <util/system.h>
#include <QAbstractItemView>
#include <QApplication>
#include <QClipboard>
#include <QDateTime>
#include <QDesktopServices>
#include <QDoubleValidator>
#include <QFileDialog>
#include <QFont>
#include <QFontDatabase>
#include <QFontMetrics>
#include <QKeyEvent>
#include <QLineEdit>
#include <QMouseEvent>
#include <QProgressDialog>
#include <QSettings>
#include <QTextDocument>
#include <QThread>
#include <QUrlQuery>
Include dependency graph for guiutil.cpp:

Go to the source code of this file.


 Utility functions used by the Bitcoin Qt UI.


QString GUIUtil::dateTimeStr (const QDateTime &date)
QString GUIUtil::dateTimeStr (qint64 nTime)
QFont GUIUtil::fixedPitchFont ()
static std::string GUIUtil::DummyAddress (const CChainParams &params)
void GUIUtil::setupAddressWidget (QValidatedLineEdit *widget, QWidget *parent)
bool GUIUtil::parseBitcoinURI (const QUrl &uri, SendCoinsRecipient *out)
bool GUIUtil::parseBitcoinURI (QString uri, SendCoinsRecipient *out)
QString GUIUtil::formatBitcoinURI (const SendCoinsRecipient &info)
bool GUIUtil::isDust (interfaces::Node &node, const QString &address, const CAmount &amount)
QString GUIUtil::HtmlEscape (const QString &str, bool fMultiLine)
QString GUIUtil::HtmlEscape (const std::string &str, bool fMultiLine)
void GUIUtil::copyEntryData (QAbstractItemView *view, int column, int role=Qt::EditRole)
 Copy a field of the currently selected entry of a view to the clipboard. More...
QList< QModelIndex > GUIUtil::getEntryData (QAbstractItemView *view, int column)
 Return a field of the currently selected entry as a QString. More...
QString GUIUtil::getDefaultDataDirectory ()
 Determine default data directory for operating system. More...
QString GUIUtil::getSaveFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
 Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when no suffix is provided by the user. More...
QString GUIUtil::getOpenFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
 Get open filename, convenience wrapper for QFileDialog::getOpenFileName. More...
Qt::ConnectionType GUIUtil::blockingGUIThreadConnection ()
 Get connection type to call object slot in GUI thread with invokeMethod. More...
bool GUIUtil::checkPoint (const QPoint &p, const QWidget *w)
bool GUIUtil::isObscured (QWidget *w)
void GUIUtil::bringToFront (QWidget *w)
void GUIUtil::openDebugLogfile ()
bool GUIUtil::openBitcoinConf ()
bool GUIUtil::GetStartOnSystemStartup ()
bool GUIUtil::SetStartOnSystemStartup (bool fAutoStart)
void GUIUtil::setClipboard (const QString &str)
fs::path GUIUtil::qstringToBoostPath (const QString &path)
QString GUIUtil::boostPathToQString (const fs::path &path)
QString GUIUtil::formatDurationStr (int secs)
QString GUIUtil::formatServicesStr (quint64 mask)
QString GUIUtil::formatPingTime (double dPingTime)
QString GUIUtil::formatTimeOffset (int64_t nTimeOffset)
QString GUIUtil::formatNiceTimeOffset (qint64 secs)
QString GUIUtil::formatBytes (uint64_t bytes)
qreal GUIUtil::calculateIdealFontSize (int width, const QString &text, QFont font, qreal minPointSize, qreal font_size)
void GUIUtil::PolishProgressDialog (QProgressDialog *dialog)
int GUIUtil::TextWidth (const QFontMetrics &fm, const QString &text)
 Returns the distance in pixels appropriate for drawing a subsequent character after text. More...


static const uint8_t GUIUtil::dummydata [] = {0xeb,0x15,0x23,0x1d,0xfc,0xeb,0x60,0x92,0x58,0x86,0xb6,0x7d,0x06,0x52,0x99,0x92,0x59,0x15,0xae,0xb1,0x72,0xc0,0x66,0x47}