12 /** Local Bitcoin RPC console. */
13 class RPCConsole: public QWidget
18 explicit RPCConsole(QWidget *parent = 0);
21 void setClientModel(ClientModel *model);
32 virtual bool eventFilter(QObject* obj, QEvent *event);
33 void keyPressEvent(QKeyEvent *);
36 void on_lineEdit_returnPressed();
37 void on_tabWidget_currentChanged(int index);
38 /** open the debug.log from the current datadir */
39 void on_openDebugLogfileButton_clicked();
40 /** open the novacoin.conf from the current datadir */
41 void on_openConfigurationfileButton_clicked();
42 /** change the time range of the network traffic graph */
43 void on_sldGraphRange_valueChanged(int value);
44 /** update traffic statistics */
45 void updateTrafficStats(quint64 totalBytesIn, quint64 totalBytesOut);
46 void resizeEvent(QResizeEvent *event);
47 void showEvent(QShowEvent *event);
48 void hideEvent(QHideEvent *event);
49 /** display messagebox with program parameters (same as bitcoin-qt --help) */
50 void on_showCLOptionsButton_clicked();
54 void message(int category, const QString &message, bool html = false);
55 /** Set number of connections shown in the UI */
56 void setNumConnections(int count);
57 /** Set number of blocks shown in the UI */
58 void setNumBlocks(int count, int countOfPeers);
59 /** Go forward or back in history */
60 void browseHistory(int offset);
61 /** Scroll console view to end */
64 // For RPC command executor
66 void cmdRequest(const QString &command);
69 static QString FormatBytes(quint64 bytes);
70 void setTrafficGraphRange(int mins);
71 /** show detailed information on ui about selected node */
75 ADDRESS_COLUMN_WIDTH = 200,
76 SUBVERSION_COLUMN_WIDTH = 100,
77 PING_COLUMN_WIDTH = 80
81 ClientModel *clientModel;
84 QCompleter *autoCompleter;
89 #endif // RPCCONSOLE_H