Raven Core  3.0.0
P2P Digital Currency
Namespaces | Functions
guiutil.cpp File Reference
#include "guiutil.h"
#include "ravenaddressvalidator.h"
#include "ravenunits.h"
#include "qvalidatedlineedit.h"
#include "walletmodel.h"
#include "fs.h"
#include "primitives/transaction.h"
#include "init.h"
#include "policy/policy.h"
#include "protocol.h"
#include "script/script.h"
#include "script/standard.h"
#include "util.h"
#include <boost/scoped_array.hpp>
#include <QAbstractItemView>
#include <QApplication>
#include <QClipboard>
#include <QDateTime>
#include <QDesktopServices>
#include <QDesktopWidget>
#include <QDoubleValidator>
#include <QFileDialog>
#include <QFont>
#include <QLineEdit>
#include <QSettings>
#include <QTextDocument>
#include <QThread>
#include <QMouseEvent>
#include <QPainter>
#include <QUrl>
#include <QGraphicsDropShadowEffect>
#include "guiconstants.h"
#include "platformstyle.h"
Include dependency graph for guiutil.cpp:

Go to the source code of this file.

Namespaces

 GUIUtil
 Utility functions used by the Raven Qt UI.
 

Functions

QFont GUIUtil::getSubLabelFont ()
 
QFont GUIUtil::getSubLabelFontBolded ()
 
QFont GUIUtil::getTopLabelFontBolded ()
 
QFont GUIUtil::getTopLabelFont (int weight, int pxsize)
 
QFont GUIUtil::getTopLabelFont ()
 
QGraphicsDropShadowEffect * GUIUtil::getShadowEffect ()
 
QString GUIUtil::dateTimeStr (const QDateTime &date)
 
QString GUIUtil::dateTimeStr (qint64 nTime)
 
QFont GUIUtil::fixedPitchFont ()
 
void GUIUtil::setupAddressWidget (QValidatedLineEdit *widget, QWidget *parent)
 
void GUIUtil::setupAmountWidget (QLineEdit *widget, QWidget *parent)
 
bool GUIUtil::parseRavenURI (const QUrl &uri, SendCoinsRecipient *out)
 
bool GUIUtil::parseRavenURI (QString uri, SendCoinsRecipient *out)
 
QString GUIUtil::formatRavenURI (const SendCoinsRecipient &info)
 
bool GUIUtil::isDust (const QString &address, const CAmount &amount)
 
QString GUIUtil::HtmlEscape (const QString &str, bool fMultiLine)
 
QString GUIUtil::HtmlEscape (const std::string &str, bool fMultiLine)
 
void GUIUtil::copyEntryData (QAbstractItemView *view, int column, int role=Qt::EditRole)
 Copy a field of the currently selected entry of a view to the clipboard. More...
 
QList< QModelIndex > GUIUtil::getEntryData (QAbstractItemView *view, int column)
 Return a field of the currently selected entry as a QString. More...
 
QString GUIUtil::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 no suffix is provided by the user. More...
 
QString GUIUtil::getOpenFileName (QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
 Get open filename, convenience wrapper for QFileDialog::getOpenFileName. More...
 
Qt::ConnectionType GUIUtil::blockingGUIThreadConnection ()
 Get connection type to call object slot in GUI thread with invokeMethod. More...
 
bool GUIUtil::checkPoint (const QPoint &p, const QWidget *w)
 
bool GUIUtil::isObscured (QWidget *w)
 
void GUIUtil::openDebugLogfile ()
 
bool GUIUtil::openRavenConf ()
 
void GUIUtil::SubstituteFonts (const QString &language)
 
bool GUIUtil::GetStartOnSystemStartup ()
 
bool GUIUtil::SetStartOnSystemStartup (bool fAutoStart)
 
void GUIUtil::setClipboard (const QString &str)
 
fs::path GUIUtil::qstringToBoostPath (const QString &path)
 
QString GUIUtil::boostPathToQString (const fs::path &path)
 
QString GUIUtil::formatDurationStr (int secs)
 
QString GUIUtil::formatServicesStr (quint64 mask)
 
QString GUIUtil::formatPingTime (double dPingTime)
 
QString GUIUtil::formatTimeOffset (int64_t nTimeOffset)
 
QString GUIUtil::formatNiceTimeOffset (qint64 secs)
 
QString GUIUtil::formatBytes (uint64_t bytes)
 
void GUIUtil::concatenate (QPainter *painter, QString &catString, int static_width, int left_side, int right_size)