10 #include <QHeaderView>
11 #include <QMessageBox>
13 #include <QProgressBar>
17 #include <boost/filesystem.hpp>
23 class QAbstractItemView;
52 bool isDust(
const QString& address, qint64 amount);
55 QString
HtmlEscape(
const QString& str,
bool fMultiLine=
false);
56 QString
HtmlEscape(
const std::string& str,
bool fMultiLine=
false);
64 void copyEntryData(QAbstractItemView *view,
int column,
int role=Qt::EditRole);
78 QString
getSaveFileName(QWidget *parent,
const QString &caption,
const QString &dir,
79 const QString &filter,
80 QString *selectedSuffixOut);
91 QString
getOpenFileName(QWidget *parent,
const QString &caption,
const QString &dir,
92 const QString &filter,
93 QString *selectedSuffixOut);
198 bool event(QEvent *e) {
199 return (e->type() != QEvent::StyleAnimationUpdate) ? QProgressBar::event(e) :
false;
void stretchColumnWidth(int column)
Utility functions used by the Anoncoin 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.
void setupAmountWidget(QLineEdit *widget, QWidget *parent)
void setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode)
TableViewLastColumnResizingFixer(QTableView *table, int lastColMinimumWidth, int allColsMinimumWidth)
Initializes all internal variables and prepares the the resize modes of the last 2 columns of the tab...
void on_geometriesChanged()
int secondToLastColumnIndex
QString dateTimeStr(const QDateTime &date)
bool parseAnoncoinURI(const QUrl &uri, SendCoinsRecipient *out)
Qt::ConnectionType blockingGUIThreadConnection()
Get connection type to call object slot in GUI thread with invokeMethod.
bool GetStartOnSystemStartup()
ToolTipToRichTextFilter(int size_threshold, QObject *parent=0)
QString HtmlEscape(const QString &str, bool fMultiLine)
boost::filesystem::path qstringToBoostPath(const QString &path)
void connectViewHeadersSignals()
Line edit that can be marked as "invalid" to show input validation feedback.
int getAvailableWidthForColumn(int column)
void saveWindowGeometry(const QString &strSetting, QWidget *parent)
Save window size and position.
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void SubstituteFonts()
Qt event filter that intercepts ToolTipChange events, and replaces the tooltip with a rich text repre...
bool isObscured(QWidget *w)
bool eventFilter(QObject *obj, QEvent *evt)
QString formatDurationStr(int secs)
void setClipboard(const QString &str)
int lastColumnMinimumWidth
bool isDust(const QString &address, qint64 amount)
Makes a QTableView last column feel as if it was being resized from its left border.
QFont anoncoinAddressFont()
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
Restore window size and position.
QString formatPingTime(double dPingTime)
void on_sectionResized(int logicalIndex, int oldSize, int newSize)
void disconnectViewHeadersSignals()
int allColumnsMinimumWidth
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)
QString boostPathToQString(const boost::filesystem::path &path)
QString formatAnoncoinURI(const SendCoinsRecipient &info)
void copyEntryData(QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard.
void resizeColumn(int nColumnIndex, int width)