![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
#include "guiutil.h"#include "bitcoinaddressvalidator.h"#include "bitcoinunits.h"#include "qvalidatedlineedit.h"#include "walletmodel.h"#include "init.h"#include "main.h"#include "primitives/transaction.h"#include "protocol.h"#include "script/script.h"#include "script/standard.h"#include "util.h"#include <QAbstractItemView>#include <QAbstractButton>#include <QApplication>#include <QCalendarWidget>#include <QClipboard>#include <QComboBox>#include <QDateTime>#include <QDesktopServices>#include <QDesktopWidget>#include <QDoubleValidator>#include <QFileDialog>#include <QFont>#include <QFontDatabase>#include <QLineEdit>#include <QObject>#include <QSettings>#include <QSizePolicy>#include <QTextDocument>#include <QThread>#include <QTextStream>#include <QUrlQuery>#include <QMouseEvent>Go to the source code of this file.
Namespaces | |
| GUIUtil | |
| Utility functions used by the PRCY Qt UI. | |
Macros | |
| #define | URI_SCHEME "prcycoin" |
Functions | |
| void | ForceActivation () |
| Force application activation on macOS. More... | |
| QString | GUIUtil::dateTimeStr (const QDateTime &date) |
| QString | GUIUtil::dateTimeStr (qint64 nTime) |
| QFont | GUIUtil::bitcoinAddressFont () |
| void | GUIUtil::setupAddressWidget (QValidatedLineEdit *widget, QWidget *parent) |
| void | GUIUtil::setupAmountWidget (QLineEdit *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 (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... | |
| QVariant | GUIUtil::getEntryData (QAbstractItemView *view, int column, int role) |
| Return a field of the currently selected entry as a QString. 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) |
| bool | GUIUtil::openFile (fs::path path, bool isTextFile) |
| bool | GUIUtil::openDebugLogfile () |
| bool | GUIUtil::openConfigfile () |
| bool | GUIUtil::openMNConfigfile () |
| bool | GUIUtil::showDataDir () |
| void | GUIUtil::showQtDir () |
| bool | GUIUtil::showBackups () |
| bool | GUIUtil::GetStartOnSystemStartup () |
| bool | GUIUtil::SetStartOnSystemStartup (bool fAutoStart) |
| void | GUIUtil::saveWindowGeometry (const QString &strSetting, QWidget *parent) |
| Save window size and position. More... | |
| void | GUIUtil::HideDisabledWidgets (QVector< QWidget * > widgets) |
| void | GUIUtil::restoreWindowGeometry (const QString &strSetting, const QSize &defaultSizeIn, QWidget *parent) |
| Restore window size and position. More... | |
| QString | GUIUtil::loadStyleSheet () |
| Load global CSS theme. More... | |
| void | GUIUtil::refreshStyleSheet () |
| Refresh App theme. More... | |
| void | GUIUtil::setWindowless (QWidget *widget) |
| Hideframes for pop up widgets. More... | |
| void | GUIUtil::disableTooltips (QWidget *widget) |
| Disable tooltips. More... | |
| void | GUIUtil::prompt (QString message) |
| void | GUIUtil::colorCalendarWidgetWeekends (QCalendarWidget *widget, QColor color) |
| Change the color of weekends on calendar widget *Defaults to Red. More... | |
| 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::formatBytes (uint64_t bytes) |
| #define URI_SCHEME "prcycoin" |
Definition at line 59 of file guiutil.cpp.
| void ForceActivation | ( | ) |
Force application activation on macOS.
With Qt 5.5.1 this is required when an action in the Dock menu is triggered. TODO: Define a Qt version where it's no-longer necessary.
Definition at line 50 of file macdockiconhandler.mm.
1.8.17