6 #ifndef RAVEN_QT_RAVENGUI_H 7 #define RAVEN_QT_RAVENGUI_H 9 #if defined(HAVE_CONFIG_H) 16 #include <QMainWindow> 20 #include <QSystemTrayIcon> 38 class QProgressDialog;
39 class QNetworkAccessManager;
40 class QNetworkRequest;
68 bool addWallet(
const QString& name,
WalletModel *walletModel);
69 bool setCurrentWallet(
const QString& name);
70 void removeAllWallets();
71 #endif // ENABLE_WALLET 186 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
195 void message(
const QString &title,
const QString &
message,
unsigned int style,
bool *ret =
nullptr);
204 void setEncryptionStatus(
int status);
210 void setHDStatus(
int hdEnabled);
215 void incomingTransaction(
const QString& date,
int unit,
const CAmount& amount,
const QString& type,
const QString& address,
const QString& label,
const QString& assetName);
219 #endif // ENABLE_WALLET 224 void gotoOverviewPage();
226 void gotoHistoryPage();
228 void gotoReceiveCoinsPage();
230 void gotoSendCoinsPage(QString addr =
"");
233 void gotoSignMessageTab(QString addr =
"");
235 void gotoVerifyMessageTab(QString addr =
"");
242 void gotoAssetsPage();
243 void gotoCreateAssetsPage();
244 void gotoManageAssetsPage();
247 #endif // ENABLE_WALLET 296 void mousePressEvent(QMouseEvent *event);
303 void onDisplayUnitsClicked(
const QPoint& point);
309 void updateDisplayUnit(
int newUnits);
311 void onMenuSelection(QAction* action);
314 #endif // RAVEN_QT_RAVENGUI_H void showDebugWindowActivateConsole()
Show debug window and set focus to the console.
void changeEvent(QEvent *e)
void dragEnterEvent(QDragEnterEvent *event)
void unsubscribeFromCoreSignals()
Disconnect core signals from GUI client.
QNetworkAccessManager * networkManager
QAction * usedReceivingAddressesAction
QAction * showHelpMessageAction
QAction * manageAssetAction
void requestedRestart(QStringList args)
Restart handling.
QAction * openRPCConsoleAction
void toggleNetworkActive()
Toggle networking.
void setClientModel(ClientModel *clientModel)
Set the client model.
void setTrayIconVisible(bool)
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
void showWalletRepair()
Show debug window and set focus to the wallet repair tab.
WalletFrame * walletFrame
QAction * changePassphraseAction
QProgressDialog * progressDialog
void subscribeToCoreSignals()
Connect core signals to GUI client.
void toggleHidden()
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
void handleRestart(QStringList args)
Get restart command-line parameters and request restart.
QLabel * labelWalletHDStatusIcon
void message(const QString &title, const QString &message, unsigned int style, bool *ret=nullptr)
Notify the user of an event from the core network or transaction handling code.
Modal overlay to display information about the chain-sync state.
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
void optionsClicked()
Show configuration dialog.
ModalOverlay * modalOverlay
void receivedURI(const QString &uri)
Signal raised when a URI was entered or dragged to the GUI.
void loadFonts()
Load the custome open sans fonts into the font database.
void setNumConnections(int count)
Set number of connections shown in the UI.
void detectShutdown()
called by a timer to check if fRequestShutdown has been set
void closeEvent(QCloseEvent *event)
int64_t CAmount
Amount in corbies (Can be negative)
QAction * receiveCoinsAction
QAction * createAssetAction
void createMenuBar()
Create the menu bar and sub-menus.
void createTrayIconMenu()
Create system tray menu (or setup the dock menu)
void showHelpMessageClicked()
Show help message dialog.
static const QString DEFAULT_WALLET
Display name for default wallet name.
OptionsModel * optionsModel
Notificator * notificator
QNetworkRequest * request
static const std::string DEFAULT_UIPLATFORM
QAction * sendCoinsAction
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
void updateHeadersSyncProgressLabel()
Cross-platform desktop notification client.
bool eventFilter(QObject *object, QEvent *event)
QAction * sendCoinsMenuAction
UnitDisplayStatusBarControl * unitDisplayControl
QAction * verifyMessageAction
QAction * receiveCoinsMenuAction
void updateNetworkState()
Update UI with latest network info from model.
QAction * encryptWalletAction
Model for Raven network client.
void showEvent(QShowEvent *event)
void createActions()
Create the main UI actions.
QAction * usedSendingAddressesAction
RavenGUI(const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=0)
QAction * transferAssetAction
RVN START.
void showDebugWindow()
Show debug window.
QLabel * progressBarLabel
QSystemTrayIcon * trayIcon
RVN END.
Interface from Qt to configuration data structure for Raven client.
Interface to Raven wallet from Qt view code.
void showNormalIfMinimized(bool fToggleHidden=false)
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHid...
QLabel * labelWalletEncryptionIcon
QAction * messagingAction
QLabel * labelCurrentMarket
int prevBlocks
Keep track of previous number of blocks, to detect progress.
void createToolBars()
Create the toolbars.
QAction * signMessageAction
void aboutClicked()
Show about dialog.
"Help message" dialog box
QLabel * connectionsControl
void setWalletActionsEnabled(bool enabled)
Enable or disable all wallet-related actions.
QAction * backupWalletAction
void createTrayIcon(const NetworkStyle *networkStyle)
Create system tray icon and notification.
void dropEvent(QDropEvent *event)
void trayIconActivated(QSystemTrayIcon::ActivationReason reason)
Handle tray icon clicked.
const PlatformStyle * platformStyle
QProgressBar * progressBar
HelpMessageDialog * helpMessageDialog
QAction * toggleHideAction
A container for embedding all wallet-related controls into RavenGUI.
QAction * openWalletRepairAction
QLabel * labelCurrentPrice
ClientModel * clientModel