 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_QT_GUIUTIL_H
6 #define BITCOIN_QT_GUIUTIL_H
11 #include <QCalendarWidget>
13 #include <QHeaderView>
14 #include <QMessageBox>
16 #include <QProgressBar>
19 #include <QTableWidget>
26 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);
78 QVariant
getEntryData(QAbstractItemView *view,
int column,
int role);
92 QString
getSaveFileName(QWidget* parent,
const QString& caption,
const QString& dir,
const QString& filter, QString* selectedSuffixOut);
103 QString
getOpenFileName(QWidget* parent,
const QString& caption,
const QString& dir,
const QString& filter, QString* selectedSuffixOut);
148 if (event->type() == QEvent::ToolTip)
151 return object->eventFilter(
object, event);
216 virtual bool operator<(QTableWidgetItem
const& item)
const;
246 void prompt(QString message);
272 #endif // BITCOIN_QT_GUIUTIL_H
void on_geometriesChanged()
void setWindowless(QWidget *widget)
Hideframes for pop up widgets.
void connectViewHeadersSignals()
QFont bitcoinAddressFont()
QString boostPathToQString(const fs::path &path)
void colorCalendarWidgetWeekends(QCalendarWidget *widget, QColor color)
Change the color of weekends on calendar widget *Defaults to Red.
bool SetStartOnSystemStartup(bool fAutoStart)
void resizeColumn(int nColumnIndex, int width)
void disableTooltips(QWidget *widget)
Disable tooltips.
Makes a QTableView last column feel as if it was being resized from its left border.
bool eventFilter(QObject *obj, QEvent *evt)
Utility functions used by the PRCY Qt UI.
bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
void stretchColumnWidth(int column)
QString formatBitcoinURI(const SendCoinsRecipient &info)
void bringToFront(QWidget *w)
fs::path qstringToBoostPath(const QString &path)
bool isObscured(QWidget *w)
void setClipboard(const QString &str)
QVariant getEntryData(QAbstractItemView *view, int column, int role)
Return a field of the currently selected entry as a QString.
QString formatTimeOffset(int64_t nTimeOffset)
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
int secondToLastColumnIndex
int getAvailableWidthForColumn(int column)
void HideDisabledWidgets(QVector< QWidget * > widgets)
void saveWindowGeometry(const QString &strSetting, QWidget *parent)
Save window size and position.
int64_t CAmount
Amount in PRCY (Can be negative)
Line edit that can be marked as "invalid" to show input validation feedback.
void adjustTableColumnsWidth()
void copyEntryData(QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard.
void disconnectViewHeadersSignals()
QString formatBytes(uint64_t bytes)
void setupAmountWidget(QLineEdit *widget, QWidget *parent)
QString formatServicesStr(quint64 mask)
void prompt(QString message)
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 GetStartOnSystemStartup()
QString HtmlEscape(const QString &str, bool fMultiLine)
int lastColumnMinimumWidth
void on_sectionResized(int logicalIndex, int oldSize, int newSize)
Qt::ConnectionType blockingGUIThreadConnection()
Get connection type to call object slot in GUI thread with invokeMethod.
QString formatPingTime(double dPingTime)
bool isExternal(QString theme)
Check whether a theme is not build-in.
ToolTipToRichTextFilter(int size_threshold, QObject *parent=0)
QString formatDurationStr(int secs)
QString dateTimeStr(const QDateTime &date)
QString loadStyleSheet()
Load global CSS theme.
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...
bool isDust(const QString &address, const CAmount &amount)
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
void refreshStyleSheet()
Refresh App theme.
void setViewHeaderResizeMode(int logicalIndex, QHeaderView::ResizeMode resizeMode)
void restoreWindowGeometry(const QString &strSetting, const QSize &defaultSize, QWidget *parent)
Restore window size and position.
int allColumnsMinimumWidth