5 #ifndef BITCOIN_QT_GUIUTIL_H     6 #define BITCOIN_QT_GUIUTIL_H    12 #include <QHeaderView>    13 #include <QItemDelegate>    14 #include <QMessageBox>    16 #include <QProgressBar>    30 class QAbstractItemView;
    61     QString 
HtmlEscape(
const QString& str, 
bool fMultiLine=
false);
    62     QString 
HtmlEscape(
const std::string& str, 
bool fMultiLine=
false);
    70     void copyEntryData(QAbstractItemView *view, 
int column, 
int role=Qt::EditRole);
    77     QList<QModelIndex> 
getEntryData(QAbstractItemView *view, 
int column);
    91     QString 
getSaveFileName(QWidget *parent, 
const QString &caption, 
const QString &dir,
    93         QString *selectedSuffixOut);
   104     QString 
getOpenFileName(QWidget *parent, 
const QString &caption, 
const QString &dir,
   106         QString *selectedSuffixOut);
   206     qreal 
calculateIdealFontSize(
int width, 
const QString& text, QFont font, qreal minPointSize = 4, qreal startPointSize = 14);
   216         void clicked(
const QPoint& point);
   229         void clicked(
const QPoint& point);
   250 #endif // BITCOIN_QT_GUIUTIL_H void stretchColumnWidth(int column)
 
Utility functions used by the Bitcoin Qt UI. 
 
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get open filename, convenience wrapper for QFileDialog::getOpenFileName. 
 
QList< QModelIndex > getEntryData(QAbstractItemView *view, int column)
Return a field of the currently selected entry as a QString. 
 
void setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode)
 
void on_geometriesChanged()
 
bool isDust(interfaces::Node &node, const QString &address, const CAmount &amount)
 
int secondToLastColumnIndex
 
QString dateTimeStr(const QDateTime &date)
 
Qt::ConnectionType blockingGUIThreadConnection()
Get connection type to call object slot in GUI thread with invokeMethod. 
 
QString formatBytes(uint64_t bytes)
 
QString formatTimeOffset(int64_t nTimeOffset)
 
bool GetStartOnSystemStartup()
 
ToolTipToRichTextFilter(int size_threshold, QObject *parent=0)
 
QString HtmlEscape(const QString &str, bool fMultiLine)
 
Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text repre...
 
void connectViewHeadersSignals()
 
Line edit that can be marked as "invalid" to show input validation feedback. 
 
int getAvailableWidthForColumn(int column)
 
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
 
QString formatBitcoinURI(const SendCoinsRecipient &info)
 
TableViewLastColumnResizingFixer(QTableView *table, int lastColMinimumWidth, int allColsMinimumWidth, QObject *parent)
Initializes all internal variables and prepares the the resize modes of the last 2 columns of the tab...
 
int64_t CAmount
Amount in satoshis (Can be negative) 
 
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
 
bool isObscured(QWidget *w)
 
bool eventFilter(QObject *obj, QEvent *evt)
 
qreal calculateIdealFontSize(int width, const QString &text, QFont font, qreal minPointSize, qreal font_size)
 
QString formatDurationStr(int secs)
 
void setClipboard(const QString &str)
 
int lastColumnMinimumWidth
 
Makes a QTableView last column feel as if it was being resized from its left border. 
 
void clicked(const QPoint &point)
Emitted when the label is clicked. 
 
bool eventFilter(QObject *object, QEvent *event)
 
ClickableProgressBar ProgressBar
 
QString formatPingTime(double dPingTime)
 
void on_sectionResized(int logicalIndex, int oldSize, int newSize)
 
void mouseReleaseEvent(QMouseEvent *event)
 
void disconnectViewHeadersSignals()
 
int allColumnsMinimumWidth
 
void mouseReleaseEvent(QMouseEvent *event)
 
fs::path qstringToBoostPath(const QString &path)
 
QString formatServicesStr(quint64 mask)
 
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 ...
 
void adjustTableColumnsWidth()
 
bool SetStartOnSystemStartup(bool fAutoStart)
 
void clicked(const QPoint &point)
Emitted when the progressbar is clicked. 
 
QString formatNiceTimeOffset(qint64 secs)
 
void copyEntryData(QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard. 
 
QString boostPathToQString(const fs::path &path)
 
Top-level interface for a bitcoin node (bsha3d process). 
 
void resizeColumn(int nColumnIndex, int width)
 
ItemDelegate(QObject *parent)