Implement filter row instead of tabs, allows for more expressive filters
[novacoin.git] / src / qt / guiutil.h
1 #ifndef GUIUTIL_H
2 #define GUIUTIL_H
3
4 #include <QString>
5
6 QT_BEGIN_NAMESPACE
7 class QFont;
8 class QLineEdit;
9 class QWidget;
10 QT_END_NAMESPACE
11
12 class GUIUtil
13 {
14 public:
15     static QString DateTimeStr(qint64 nTime);
16
17     // Render bitcoin addresses in monospace font
18     static QFont bitcoinAddressFont();
19
20     static void setupAddressWidget(QLineEdit *widget, QWidget *parent);
21
22     static void setupAmountWidget(QLineEdit *widget, QWidget *parent);
23
24     // Convenience wrapper around ParseMoney that takes QString
25     static bool parseMoney(const QString &amount, qint64 *val_out);
26
27     // Convenience wrapper around FormatMoney that returns QString
28     static QString formatMoney(qint64 amount, bool plussign=false);
29 };
30
31 #endif // GUIUTIL_H