5 #ifndef BITCOIN_QT_GUIUTIL_H
6 #define BITCOIN_QT_GUIUTIL_H
11 #include <QHeaderView>
12 #include <QMessageBox>
14 #include <QProgressBar>
19 #include <boost/filesystem.hpp>
25 class QAbstractItemView;
57 QString
HtmlEscape(
const QString& str,
bool fMultiLine=
false);
58 QString
HtmlEscape(
const std::string& str,
bool fMultiLine=
false);
66 void copyEntryData(QAbstractItemView *view,
int column,
int role=Qt::EditRole);
73 QList<QModelIndex>
getEntryData(QAbstractItemView *view,
int column);
87 QString
getSaveFileName(QWidget *parent,
const QString &caption,
const QString &dir,
88 const QString &filter,
89 QString *selectedSuffixOut);
100 QString
getOpenFileName(QWidget *parent,
const QString &caption,
const QString &dir,
101 const QString &filter,
102 QString *selectedSuffixOut);
231 #if defined(Q_OS_MAC) && QT_VERSION >= 0x050000
237 bool event(QEvent *e) {
238 return (e->type() != QEvent::StyleAnimationUpdate) ? QProgressBar::event(e) : false;
int64_t CAmount
Amount in satoshis (Can be negative)
void mouseReleaseEvent(QMouseEvent *event)
void clicked(const QPoint &point)
Emitted when the label is clicked.
void mouseReleaseEvent(QMouseEvent *event)
void clicked(const QPoint &point)
Emitted when the progressbar is clicked.
Makes a QTableView last column feel as if it was being resized from its left border.
void setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode)
int allColumnsMinimumWidth
void resizeColumn(int nColumnIndex, int width)
void on_sectionResized(int logicalIndex, int oldSize, int newSize)
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...
int secondToLastColumnIndex
void stretchColumnWidth(int column)
void on_geometriesChanged()
void connectViewHeadersSignals()
void adjustTableColumnsWidth()
int getAvailableWidthForColumn(int column)
void disconnectViewHeadersSignals()
int lastColumnMinimumWidth
Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text repre...
bool eventFilter(QObject *obj, QEvent *evt)
ToolTipToRichTextFilter(int size_threshold, QObject *parent=0)
Line edit that can be marked as "invalid" to show input validation feedback.
Utility functions used by the Bitcoin Qt UI.
bool isObscured(QWidget *w)
void setupAmountWidget(QLineEdit *widget, QWidget *parent)
Qt::ConnectionType blockingGUIThreadConnection()
Get connection type to call object slot in GUI thread with invokeMethod.
boost::filesystem::path qstringToBoostPath(const QString &path)
QString HtmlEscape(const QString &str, bool fMultiLine)
QString formatPingTime(double dPingTime)
void saveWindowGeometry(const QString &strSetting, QWidget *parent)
Save window size and position.
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.
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 ...
bool SetStartOnSystemStartup(bool fAutoStart)
QString boostPathToQString(const boost::filesystem::path &path)
ClickableProgressBar ProgressBar
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
Restore window size and position.
void SubstituteFonts(const QString &language)
QString dateTimeStr(const QDateTime &date)
QString formatDurationStr(int secs)
QString formatBitcoinURI(const SendCoinsRecipient &info)
QString formatTimeOffset(int64_t nTimeOffset)
QString formatServicesStr(quint64 mask)
QString formatNiceTimeOffset(qint64 secs)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
bool GetStartOnSystemStartup()
void copyEntryData(QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard.
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void setClipboard(const QString &str)
bool isDust(const QString &address, const CAmount &amount)