13 class SendCoinsRecipient;
18 // Create human-readable string from date
19 static QString dateTimeStr(qint64 nTime);
20 static QString dateTimeStr(const QDateTime &datetime);
22 // Render bitcoin addresses in monospace font
23 static QFont bitcoinAddressFont();
25 // Set up widgets for address and amounts
26 static void setupAddressWidget(QLineEdit *widget, QWidget *parent);
27 static void setupAmountWidget(QLineEdit *widget, QWidget *parent);
29 // Parse "bitcoin:" URL into recipient object, return true on succesful parsing
30 // See Bitcoin URL definition discussion here: https://bitcointalk.org/index.php?topic=33490.0
31 static bool parseBitcoinURL(const QUrl *url, SendCoinsRecipient *out);
32 static bool parseBitcoinURL(QString url, SendCoinsRecipient *out);
34 /** Get save file name, mimics QFileDialog::getSaveFileName, except that it appends a default suffix
35 when no suffix is provided by the user.
37 @param[in] parent Parent window (or 0)
38 @param[in] caption Window caption (or empty, for default)
39 @param[in] dir Starting directory (or empty, to default to documents directory)
40 @param[in] filter Filter specification such as "Comma Separated Files (*.csv)"
41 @param[out] selectedSuffixOut Pointer to return the suffix (file type) that was selected (or 0).
42 Can be useful when choosing the save file format based on suffix.
44 static QString getSaveFileName(QWidget *parent=0, const QString &caption=QString(),
45 const QString &dir=QString(), const QString &filter=QString(),
46 QString *selectedSuffixOut=0);