PIVX Core  5.6.99
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
guiutil.h File Reference
#include "amount.h"
#include "askpassphrasedialog.h"
#include "fs.h"
#include <QEvent>
#include <QHeaderView>
#include <QMessageBox>
#include <QObject>
#include <QProgressBar>
#include <QString>
#include <QTableView>
#include <QTableWidget>
Include dependency graph for guiutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GUIException
 
class  GUIUtil::ToolTipToRichTextFilter
 Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text representation if needed. More...
 

Namespaces

 GUIUtil
 Utility functions used by the PIVX Qt UI.
 

Typedefs

typedef QProgressBar GUIUtil::ProgressBar
 

Functions

QString GUIUtil::dateTimeStr (const QDateTime &date)
 
QString GUIUtil::dateTimeStrWithSeconds (const QDateTime &date)
 
QString GUIUtil::dateTimeStr (qint64 nTime)
 
QFont GUIUtil::bitcoinAddressFont ()
 
CAmount GUIUtil::parseValue (const QString &amount, int displayUnit)
 Returns 0 if the value is invalid. More...
 
QString GUIUtil::formatBalance (CAmount amount, int nDisplayUnit, bool isZpiv)
 
QString GUIUtil::formatBalanceWithoutHtml (CAmount amount, int nDisplayUnit, bool isZpiv)
 
void GUIUtil::setupAddressWidget (QValidatedLineEdit *widget, QWidget *parent)
 
void GUIUtil::setupAmountWidget (QLineEdit *widget, QWidget *parent)
 
void GUIUtil::updateWidgetTextAndCursorPosition (QLineEdit *widget, const QString &str)
 
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...
 
void GUIUtil::setClipboard (const QString &str)
 
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...
 
void GUIUtil::bringToFront (QWidget *w)
 
bool GUIUtil::isObscured (QWidget *w)
 
bool GUIUtil::openDebugLogfile ()
 
bool GUIUtil::openConfigfile ()
 
bool GUIUtil::openMNConfigfile ()
 
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::restoreWindowGeometry (const QString &strSetting, const QSize &defaultSizeIn, QWidget *parent)
 Restore window size and position. More...
 
QString GUIUtil::loadStyleSheet ()
 Load global CSS theme. More...
 
bool GUIUtil::isExternal (QString theme)
 Check whether a theme is not built-in. More...
 
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)
 
template<typename SeparatorType >
QStringList GUIUtil::SplitSkipEmptyParts (const QString &string, const SeparatorType &separator)
 Splits the string into substrings wherever separator occurs, and returns the list of those strings. More...