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 void clicked(
const QPoint& point);
244 void clicked(
const QPoint& point);
249 #if defined(Q_OS_MAC) && QT_VERSION >= 0x050000 255 bool event(QEvent *e) {
256 return (e->type() != QEvent::StyleAnimationUpdate) ? QProgressBar::event(e) :
false;
265 #endif // BITCOIN_QT_GUIUTIL_H
void SubstituteFonts(const QString &language)
void mouseReleaseEvent(QMouseEvent *event)
void on_sectionResized(int logicalIndex, int oldSize, int newSize)
void mouseReleaseEvent(QMouseEvent *event)
bool isObscured(QWidget *w)
QString boostPathToQString(const boost::filesystem::path &path)
void saveWindowGeometry(const QString &strSetting, QWidget *parent)
static int64_t nTimeOffset
bool eventFilter(QObject *obj, QEvent *evt)
void setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode)
Qt::ConnectionType blockingGUIThreadConnection()
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
void copyEntryData(QAbstractItemView *view, int column, int role)
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void setClipboard(const QString &str)
void setupAmountWidget(QLineEdit *widget, QWidget *parent)
void resizeColumn(int nColumnIndex, int width)
void adjustTableColumnsWidth()
ToolTipToRichTextFilter(int size_threshold, QObject *parent=0)
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
ClickableProgressBar ProgressBar
QString formatTimeOffset(int64_t nTimeOffset)
void disconnectViewHeadersSignals()
QString HtmlEscape(const QString &str, bool fMultiLine)
bool isDust(const QString &address, const CAmount &amount)
int lastColumnMinimumWidth
QString formatBitcoinURI(const SendCoinsRecipient &info)
void stretchColumnWidth(int column)
QString formatNiceTimeOffset(qint64 secs)
bool GetStartOnSystemStartup()
bool SetStartOnSystemStartup(bool fAutoStart)
void clicked(const QPoint &point)
void clicked(const QPoint &point)
void connectViewHeadersSignals()
int getAvailableWidthForColumn(int column)
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
void on_geometriesChanged()
QList< QModelIndex > getEntryData(QAbstractItemView *view, int column)
QString formatServicesStr(quint64 mask)
int secondToLastColumnIndex
QString formatPingTime(double dPingTime)
QString formatDurationStr(int secs)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
boost::filesystem::path qstringToBoostPath(const QString &path)
TableViewLastColumnResizingFixer(QTableView *table, int lastColMinimumWidth, int allColsMinimumWidth, QObject *parent)
int allColumnsMinimumWidth
QString dateTimeStr(const QDateTime &date)