![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
Utility functions used by the Fabcoin Qt UI. More...
Classes | |
| class | ClickableLabel |
| class | ClickableProgressBar |
| class | TableViewLastColumnResizingFixer |
| Makes a QTableView last column feel as if it was being resized from its left border. More... | |
| class | ToolTipToRichTextFilter |
| Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text representation if needed. More... | |
Typedefs | |
| typedef ClickableProgressBar | ProgressBar |
Functions | |
| QString | dateTimeStr (const QDateTime &date) |
| QString | dateTimeStr (qint64 nTime) |
| QFont | fixedPitchFont () |
| void | setupAddressWidget (QValidatedLineEdit *widget, QWidget *parent) |
| void | setupAmountWidget (QLineEdit *widget, QWidget *parent) |
| bool | parseFabcoinURI (const QUrl &uri, SendCoinsRecipient *out) |
| bool | parseFabcoinURI (QString uri, SendCoinsRecipient *out) |
| QString | formatFabcoinURI (const SendCoinsRecipient &info) |
| bool | isDust (const QString &address, const CAmount &amount) |
| QString | HtmlEscape (const QString &str, bool fMultiLine) |
| QString | HtmlEscape (const std::string &str, bool fMultiLine) |
| void | copyEntryData (QAbstractItemView *view, int column, int role=Qt::EditRole) |
| Copy a field of the currently selected entry of a view to the clipboard. More... | |
| void | copyEntryDataFromList (QAbstractItemView *view, int role=Qt::EditRole) |
| Copy a field of the currently selected entry of a view to the clipboard. More... | |
| QList< QModelIndex > | getEntryData (QAbstractItemView *view, int column) |
| Return a field of the currently selected entry as a QString. More... | |
| QString | 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 | 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 | blockingGUIThreadConnection () |
| Get connection type to call object slot in GUI thread with invokeMethod. More... | |
| bool | checkPoint (const QPoint &p, const QWidget *w) |
| bool | isObscured (QWidget *w) |
| void | openDebugLogfile () |
| bool | openFabcoinConf () |
| void | SubstituteFonts (const QString &language) |
| bool | GetStartOnSystemStartup () |
| bool | SetStartOnSystemStartup (bool fAutoStart) |
| void | setClipboard (const QString &str) |
| fs::path | qstringToBoostPath (const QString &path) |
| QString | boostPathToQString (const fs::path &path) |
| QString | formatDurationStr (int secs) |
| QString | formatServicesStr (quint64 mask) |
| QString | formatPingTime (double dPingTime) |
| QString | formatTimeOffset (int64_t nTimeOffset) |
| QString | formatNiceTimeOffset (qint64 secs) |
| void | formatToolButtons (QToolButton *btn1, QToolButton *btn2, QToolButton *btn3) |
Utility functions used by the Fabcoin Qt UI.
| Qt::ConnectionType GUIUtil::blockingGUIThreadConnection | ( | ) |
Get connection type to call object slot in GUI thread with invokeMethod.
The call will be blocking.
Definition at line 394 of file guiutil.cpp.
| QString GUIUtil::boostPathToQString | ( | const fs::path & | path | ) |
| bool GUIUtil::checkPoint | ( | const QPoint & | p, |
| const QWidget * | w | ||
| ) |
| 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.
Does nothing if nothing is selected.
| [in] | column | Data column to extract from the model |
| [in] | role | Data role to extract from the model |
Definition at line 277 of file guiutil.cpp.
| void GUIUtil::copyEntryDataFromList | ( | QAbstractItemView * | view, |
| int | role = Qt::EditRole |
||
| ) |
Copy a field of the currently selected entry of a view to the clipboard.
Does nothing if nothing is selected.
| [in] | role | Data role to extract from the model |
Definition at line 290 of file guiutil.cpp.
| QString GUIUtil::dateTimeStr | ( | const QDateTime & | date | ) |
| QString GUIUtil::dateTimeStr | ( | qint64 | nTime | ) |
| QFont GUIUtil::fixedPitchFont | ( | ) |
Definition at line 90 of file guiutil.cpp.
| QString GUIUtil::formatDurationStr | ( | int | secs | ) |
| QString GUIUtil::formatFabcoinURI | ( | const SendCoinsRecipient & | info | ) |
Definition at line 222 of file guiutil.cpp.
| QString GUIUtil::formatNiceTimeOffset | ( | qint64 | secs | ) |
| QString GUIUtil::formatPingTime | ( | double | dPingTime | ) |
| QString GUIUtil::formatServicesStr | ( | quint64 | mask | ) |
| QString GUIUtil::formatTimeOffset | ( | int64_t | nTimeOffset | ) |
| void GUIUtil::formatToolButtons | ( | QToolButton * | btn1, |
| QToolButton * | btn2, | ||
| QToolButton * | btn3 | ||
| ) |
| QList< QModelIndex > GUIUtil::getEntryData | ( | QAbstractItemView * | view, |
| int | column | ||
| ) |
Return a field of the currently selected entry as a QString.
Does nothing if nothing is selected.
| [in] | column | Data column to extract from the model |
Definition at line 302 of file guiutil.cpp.
| QString GUIUtil::getOpenFileName | ( | QWidget * | parent, |
| const QString & | caption, | ||
| const QString & | dir, | ||
| const QString & | filter, | ||
| QString * | selectedSuffixOut | ||
| ) |
Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
| [in] | parent | Parent window (or 0) |
| [in] | caption | Window caption (or empty, for default) |
| [in] | dir | Starting directory (or empty, to default to documents directory) |
| [in] | filter | Filter specification such as "Comma Separated Files (*.csv)" |
| [out] | selectedSuffixOut | Pointer to return the suffix (file type) that was selected (or 0). Can be useful when choosing the save file format based on suffix. |
Definition at line 359 of file guiutil.cpp.
| 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.
| [in] | parent | Parent window (or 0) |
| [in] | caption | Window caption (or empty, for default) |
| [in] | dir | Starting directory (or empty, to default to documents directory) |
| [in] | filter | Filter specification such as "Comma Separated Files (*.csv)" |
| [out] | selectedSuffixOut | Pointer to return the suffix (file type) that was selected (or 0). Can be useful when choosing the save file format based on suffix. |
Definition at line 309 of file guiutil.cpp.
| bool GUIUtil::GetStartOnSystemStartup | ( | ) |
| QString GUIUtil::HtmlEscape | ( | const QString & | str, |
| bool | fMultiLine | ||
| ) |
Definition at line 258 of file guiutil.cpp.
| QString GUIUtil::HtmlEscape | ( | const std::string & | str, |
| bool | fMultiLine | ||
| ) |
| bool GUIUtil::isDust | ( | const QString & | address, |
| const CAmount & | amount | ||
| ) |
Definition at line 250 of file guiutil.cpp.
| bool GUIUtil::isObscured | ( | QWidget * | w | ) |
Definition at line 413 of file guiutil.cpp.
| void GUIUtil::openDebugLogfile | ( | ) |
Definition at line 422 of file guiutil.cpp.
| bool GUIUtil::openFabcoinConf | ( | ) |
Definition at line 431 of file guiutil.cpp.
| bool GUIUtil::parseFabcoinURI | ( | const QUrl & | uri, |
| SendCoinsRecipient * | out | ||
| ) |
Definition at line 146 of file guiutil.cpp.
| bool GUIUtil::parseFabcoinURI | ( | QString | uri, |
| SendCoinsRecipient * | out | ||
| ) |
| fs::path GUIUtil::qstringToBoostPath | ( | const QString & | path | ) |
| void GUIUtil::setClipboard | ( | const QString & | str | ) |
| bool GUIUtil::SetStartOnSystemStartup | ( | bool | fAutoStart | ) |
| void GUIUtil::setupAddressWidget | ( | QValidatedLineEdit * | widget, |
| QWidget * | parent | ||
| ) |
Definition at line 122 of file guiutil.cpp.
| void GUIUtil::setupAmountWidget | ( | QLineEdit * | widget, |
| QWidget * | parent | ||
| ) |
Definition at line 137 of file guiutil.cpp.
| void GUIUtil::SubstituteFonts | ( | const QString & | language | ) |
1.8.11