5 #ifndef FABCOIN_QT_FABCOINGUI_H 6 #define FABCOIN_QT_FABCOINGUI_H 8 #if defined(HAVE_CONFIG_H) 15 #include <QMainWindow> 19 #include <QSystemTrayIcon> 41 class QProgressDialog;
73 bool setCurrentWallet(
const QString&
name);
74 void removeAllWallets();
75 #endif // ENABLE_WALLET 193 void setNumBlocks(
int count,
const QDateTime& blockDate,
double nVerificationProgress,
bool headers);
202 void message(
const QString &title,
const QString &
message,
unsigned int style,
bool *ret =
nullptr);
209 void setEncryptionStatus(
int status);
215 void setHDStatus(
int hdEnabled);
220 void incomingTransaction(
const QString& date,
int unit,
const CAmount& amount,
const QString&
type,
const QString&
address,
const QString& label);
223 void incomingTokenTransaction(
const QString& date,
const QString& amount,
const QString&
type,
const QString&
address,
const QString& label,
const QString& title);
224 #endif // ENABLE_WALLET 231 void gotoOverviewPage();
233 void gotoHistoryPage();
235 void gotoReceiveCoinsPage();
237 void gotoSendCoinsPage(QString addr =
"");
239 void gotoCreateContractPage();
241 void gotoSendToContractPage();
243 void gotoCallContractPage();
245 void gotoSendTokenPage();
247 void gotoReceiveTokenPage();
249 void gotoAddTokenPage();
252 void gotoSignMessageTab(QString addr =
"");
254 void gotoVerifyMessageTab(QString addr =
"");
258 #endif // ENABLE_WALLET 313 void mousePressEvent(QMouseEvent *event);
320 void onDisplayUnitsClicked(
const QPoint& point);
322 void createContextMenu();
326 void updateDisplayUnit(
int newUnits);
328 void onMenuSelection(QAction* action);
331 #endif // FABCOIN_QT_FABCOINGUI_H
void unsubscribeFromCoreSignals()
Disconnect core signals from GUI client.
void toggleNetworkActive()
Toggle networking.
void createTitleBars()
Create title bar.
Local Fabcoin RPC console.
void showProgress(const QString &title, int nProgress)
Show progress dialog e.g.
void dropEvent(QDropEvent *event)
void trayIconActivated(QSystemTrayIcon::ActivationReason reason)
Handle tray icon clicked.
QAction * sendToContractAction
bool eventFilter(QObject *object, QEvent *event)
UnitDisplayStatusBarControl * unitDisplayControl
void updateNetworkState()
Update UI with latest network info from model.
void closeEvent(QCloseEvent *event)
QAction * lockWalletAction
void setClientModel(ClientModel *clientModel)
Set the client model.
static const std::string DEFAULT_UIPLATFORM
void createTrayIcon(const NetworkStyle *networkStyle)
Create system tray icon and notification.
ClientModel * clientModel
FabcoinVersionChecker * fabcoinVersionChecker
QAction * createContractAction
void createToolBars()
Create the toolbars.
ModalOverlay * modalOverlay
int prevBlocks
Keep track of previous number of blocks, to detect progress.
QAction * changePassphraseAction
void setNumConnections(int count)
Set number of connections shown in the UI.
void toggleHidden()
Simply calls showNormalIfMinimized(true) for use in SLOT() macro.
ModalOverlay * modalBackupOverlay
QAction * encryptWalletAction
void changeEvent(QEvent *e)
void aboutClicked()
Show about dialog.
void showHelpMessageClicked()
Show help message dialog.
QAction * smartContractAction
void updateHeadersSyncProgressLabel()
NavigationBar * appNavigationBar
void showDebugWindowActivateConsole()
Show debug window and set focus to the console.
Modal overlay to display information about the chain-sync state.
QAction * receiveCoinsMenuAction
FabcoinGUI(const PlatformStyle *platformStyle, const NetworkStyle *networkStyle, QWidget *parent=0)
void showDebugWindow()
Show debug window.
void addDockWindows(Qt::DockWidgetArea area, QWidget *widget)
Add docking windows to the main windows.
void receivedURI(const QString &uri)
Signal raised when a URI was entered or dragged to the GUI.
QAction * sendTokenAction
void setWalletActionsEnabled(bool enabled)
Enable or disable all wallet-related actions.
int64_t CAmount
Amount in lius (Can be negative)
QLabel * labelWalletEncryptionIcon
QT_END_NAMESPACE typedef CWallet * CWalletRef
Notificator * notificator
QAction * toggleHideAction
OptionsModel * optionsModel
uint64_t nWeight
Current weight of the wallet.
The TitleBar class Title bar widget.
void createTrayIconMenu()
Create system tray menu (or setup the dock menu)
QAction * receiveTokenAction
QAction * showHelpMessageAction
void optionsClicked()
Show configuration dialog.
void subscribeToCoreSignals()
Connect core signals to GUI client.
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.
void setNetworkActive(bool networkActive)
Set network state shown in the UI.
void updateStakingIcon()
Update staking icon.
Cross-platform desktop notification client.
static const QString DEFAULT_WALLET
Display name for default wallet name.
QAction * unlockWalletAction
void createMenuBar()
Create the menu bar and sub-menus.
QProgressBar * progressBar
QAction * openRPCConsoleAction
QSystemTrayIcon * trayIcon
The NavigationBar class Custom control for navigation bar.
QAction * verifyMessageAction
Model for Fabcoin network client.
QAction * sendCoinsAction
QLabel * connectionsControl
QAction * usedReceivingAddressesAction
QLabel * progressBarLabel
const PlatformStyle * platformStyle
void createActions()
Create the main UI actions.
void updateWeight(CWalletRef pwalletMain)
Update the current weight of the wallet.
QAction * signMessageAction
void setTabBarInfo(QObject *into)
PlatformStyle::TableColorType type
Interface from Qt to configuration data structure for Fabcoin client.
void setTrayIconVisible(bool)
When hideTrayIcon setting is changed in OptionsModel hide or show the icon accordingly.
Interface to Fabcoin wallet from Qt view code.
WalletFrame * walletFrame
QAction * receiveCoinsAction
QLabel * labelWalletHDStatusIcon
QLabel * labelStakingIcon
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
"Help message" dialog box
QAction * callContractAction
QAction * sendCoinsMenuAction
HelpMessageDialog * helpMessageDialog
QProgressDialog * progressDialog
struct evm_uint160be address(struct evm_env *env)
void showEvent(QShowEvent *event)
QAction * restoreWalletAction
void setNumBlocks(int count, const QDateTime &blockDate, double nVerificationProgress, bool headers)
Set number of blocks and last block date shown in the UI.
void showNormalIfMinimized(bool fToggleHidden=false)
Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHid...
QAction * usedSendingAddressesAction
A container for embedding all wallet-related controls into FabcoinGUI.
void detectShutdown()
called by a timer to check if fRequestShutdown has been set
void dragEnterEvent(QDragEnterEvent *event)
QAction * backupWalletAction
void showModalBackupOverlay()