14 #include <boost/filesystem.hpp>
20 class QAbstractItemView;
49 bool isDust(
const QString& address, qint64 amount);
52 QString
HtmlEscape(
const QString& str,
bool fMultiLine=
false);
53 QString
HtmlEscape(
const std::string& str,
bool fMultiLine=
false);
61 void copyEntryData(QAbstractItemView *view,
int column,
int role=Qt::EditRole);
76 const QString &filter,
77 QString *selectedSuffixOut);
89 const QString &filter,
90 QString *selectedSuffixOut);
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.
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)
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)
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
QString formatBitcoinURI(const SendCoinsRecipient &info)
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)
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.
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
Restore window size and position.
void on_sectionResized(int logicalIndex, int oldSize, int newSize)
void disconnectViewHeadersSignals()
int allColumnsMinimumWidth
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)
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)
QFont bitcoinAddressFont()