8 #ifndef UI_RPCCONSOLE_H
9 #define UI_RPCCONSOLE_H
11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QDialog>
16 #include <QtGui/QFrame>
17 #include <QtGui/QGridLayout>
18 #include <QtGui/QGroupBox>
19 #include <QtGui/QHBoxLayout>
20 #include <QtGui/QHeaderView>
21 #include <QtGui/QLabel>
22 #include <QtGui/QLineEdit>
23 #include <QtGui/QPushButton>
24 #include <QtGui/QSlider>
25 #include <QtGui/QSpacerItem>
26 #include <QtGui/QTabWidget>
27 #include <QtGui/QTextEdit>
28 #include <QtGui/QVBoxLayout>
29 #include <QtGui/QWidget>
96 if (RPCConsole->objectName().isEmpty())
97 RPCConsole->setObjectName(QString::fromUtf8(
"RPCConsole"));
98 RPCConsole->resize(740, 450);
99 verticalLayout_2 =
new QVBoxLayout(RPCConsole);
100 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
101 tabWidget =
new QTabWidget(RPCConsole);
102 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
104 tab_info->setObjectName(QString::fromUtf8(
"tab_info"));
105 gridLayout =
new QGridLayout(tab_info);
106 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
107 gridLayout->setHorizontalSpacing(12);
108 label_9 =
new QLabel(tab_info);
109 label_9->setObjectName(QString::fromUtf8(
"label_9"));
113 label_9->setFont(font);
115 gridLayout->addWidget(label_9, 0, 0, 1, 1);
117 label_5 =
new QLabel(tab_info);
118 label_5->setObjectName(QString::fromUtf8(
"label_5"));
120 gridLayout->addWidget(label_5, 1, 0, 1, 1);
122 clientName =
new QLabel(tab_info);
123 clientName->setObjectName(QString::fromUtf8(
"clientName"));
124 clientName->setCursor(QCursor(Qt::IBeamCursor));
125 clientName->setTextFormat(Qt::PlainText);
126 clientName->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
128 gridLayout->addWidget(clientName, 1, 1, 1, 1);
130 label_6 =
new QLabel(tab_info);
131 label_6->setObjectName(QString::fromUtf8(
"label_6"));
133 gridLayout->addWidget(label_6, 2, 0, 1, 1);
135 clientVersion =
new QLabel(tab_info);
136 clientVersion->setObjectName(QString::fromUtf8(
"clientVersion"));
137 clientVersion->setCursor(QCursor(Qt::IBeamCursor));
138 clientVersion->setTextFormat(Qt::PlainText);
139 clientVersion->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
141 gridLayout->addWidget(clientVersion, 2, 1, 1, 1);
143 label_14 =
new QLabel(tab_info);
144 label_14->setObjectName(QString::fromUtf8(
"label_14"));
145 label_14->setIndent(10);
147 gridLayout->addWidget(label_14, 3, 0, 1, 1);
149 openSSLVersion =
new QLabel(tab_info);
150 openSSLVersion->setObjectName(QString::fromUtf8(
"openSSLVersion"));
151 openSSLVersion->setCursor(QCursor(Qt::IBeamCursor));
152 openSSLVersion->setTextFormat(Qt::PlainText);
153 openSSLVersion->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
155 gridLayout->addWidget(openSSLVersion, 3, 1, 1, 1);
157 label_12 =
new QLabel(tab_info);
158 label_12->setObjectName(QString::fromUtf8(
"label_12"));
160 gridLayout->addWidget(label_12, 4, 0, 1, 1);
162 buildDate =
new QLabel(tab_info);
163 buildDate->setObjectName(QString::fromUtf8(
"buildDate"));
164 buildDate->setCursor(QCursor(Qt::IBeamCursor));
165 buildDate->setTextFormat(Qt::PlainText);
166 buildDate->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
168 gridLayout->addWidget(buildDate, 4, 1, 1, 1);
170 label_13 =
new QLabel(tab_info);
171 label_13->setObjectName(QString::fromUtf8(
"label_13"));
173 gridLayout->addWidget(label_13, 5, 0, 1, 1);
175 startupTime =
new QLabel(tab_info);
176 startupTime->setObjectName(QString::fromUtf8(
"startupTime"));
177 startupTime->setCursor(QCursor(Qt::IBeamCursor));
178 startupTime->setTextFormat(Qt::PlainText);
179 startupTime->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
181 gridLayout->addWidget(startupTime, 5, 1, 1, 1);
183 label_11 =
new QLabel(tab_info);
184 label_11->setObjectName(QString::fromUtf8(
"label_11"));
185 label_11->setFont(font);
187 gridLayout->addWidget(label_11, 6, 0, 1, 1);
189 label_8 =
new QLabel(tab_info);
190 label_8->setObjectName(QString::fromUtf8(
"label_8"));
192 gridLayout->addWidget(label_8, 7, 0, 1, 1);
194 networkName =
new QLabel(tab_info);
195 networkName->setObjectName(QString::fromUtf8(
"networkName"));
196 networkName->setCursor(QCursor(Qt::IBeamCursor));
197 networkName->setTextFormat(Qt::PlainText);
198 networkName->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
200 gridLayout->addWidget(networkName, 7, 1, 1, 1);
202 label_7 =
new QLabel(tab_info);
203 label_7->setObjectName(QString::fromUtf8(
"label_7"));
205 gridLayout->addWidget(label_7, 8, 0, 1, 1);
207 numberOfConnections =
new QLabel(tab_info);
208 numberOfConnections->setObjectName(QString::fromUtf8(
"numberOfConnections"));
209 numberOfConnections->setCursor(QCursor(Qt::IBeamCursor));
210 numberOfConnections->setTextFormat(Qt::PlainText);
211 numberOfConnections->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
213 gridLayout->addWidget(numberOfConnections, 8, 1, 1, 1);
215 label_10 =
new QLabel(tab_info);
216 label_10->setObjectName(QString::fromUtf8(
"label_10"));
217 label_10->setFont(font);
219 gridLayout->addWidget(label_10, 9, 0, 1, 1);
221 label_3 =
new QLabel(tab_info);
222 label_3->setObjectName(QString::fromUtf8(
"label_3"));
224 gridLayout->addWidget(label_3, 10, 0, 1, 1);
226 numberOfBlocks =
new QLabel(tab_info);
227 numberOfBlocks->setObjectName(QString::fromUtf8(
"numberOfBlocks"));
228 numberOfBlocks->setCursor(QCursor(Qt::IBeamCursor));
229 numberOfBlocks->setTextFormat(Qt::PlainText);
230 numberOfBlocks->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
232 gridLayout->addWidget(numberOfBlocks, 10, 1, 1, 1);
234 label_2 =
new QLabel(tab_info);
235 label_2->setObjectName(QString::fromUtf8(
"label_2"));
237 gridLayout->addWidget(label_2, 11, 0, 1, 1);
239 lastBlockTime =
new QLabel(tab_info);
240 lastBlockTime->setObjectName(QString::fromUtf8(
"lastBlockTime"));
241 lastBlockTime->setCursor(QCursor(Qt::IBeamCursor));
242 lastBlockTime->setTextFormat(Qt::PlainText);
243 lastBlockTime->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
245 gridLayout->addWidget(lastBlockTime, 11, 1, 1, 1);
247 verticalSpacer_2 =
new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
249 gridLayout->addItem(verticalSpacer_2, 12, 0, 1, 1);
251 labelDebugLogfile =
new QLabel(tab_info);
252 labelDebugLogfile->setObjectName(QString::fromUtf8(
"labelDebugLogfile"));
253 labelDebugLogfile->setFont(font);
255 gridLayout->addWidget(labelDebugLogfile, 13, 0, 1, 1);
257 openDebugLogfileButton =
new QPushButton(tab_info);
258 openDebugLogfileButton->setObjectName(QString::fromUtf8(
"openDebugLogfileButton"));
259 openDebugLogfileButton->setAutoDefault(
false);
261 gridLayout->addWidget(openDebugLogfileButton, 14, 0, 1, 1);
263 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
265 gridLayout->addItem(verticalSpacer, 15, 0, 1, 1);
267 gridLayout->setColumnStretch(1, 1);
268 tabWidget->addTab(tab_info, QString());
270 tab_console->setObjectName(QString::fromUtf8(
"tab_console"));
271 verticalLayout_3 =
new QVBoxLayout(tab_console);
272 verticalLayout_3->setSpacing(3);
273 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
274 messagesWidget =
new QTextEdit(tab_console);
275 messagesWidget->setObjectName(QString::fromUtf8(
"messagesWidget"));
276 messagesWidget->setMinimumSize(QSize(0, 100));
277 messagesWidget->setReadOnly(
true);
278 messagesWidget->setProperty(
"tabKeyNavigation", QVariant(
false));
279 messagesWidget->setProperty(
"columnCount", QVariant(2));
281 verticalLayout_3->addWidget(messagesWidget);
283 horizontalLayout =
new QHBoxLayout();
284 horizontalLayout->setSpacing(3);
285 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
286 label =
new QLabel(tab_console);
287 label->setObjectName(QString::fromUtf8(
"label"));
288 label->setText(QString::fromUtf8(
">"));
290 horizontalLayout->addWidget(label);
293 lineEdit->setObjectName(QString::fromUtf8(
"lineEdit"));
295 horizontalLayout->addWidget(lineEdit);
297 clearButton =
new QPushButton(tab_console);
298 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
299 clearButton->setMaximumSize(QSize(24, 24));
301 icon.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
302 clearButton->setIcon(icon);
303 clearButton->setShortcut(QString::fromUtf8(
"Ctrl+L"));
304 clearButton->setAutoDefault(
false);
306 horizontalLayout->addWidget(clearButton);
309 verticalLayout_3->addLayout(horizontalLayout);
311 tabWidget->addTab(tab_console, QString());
313 tab->setObjectName(QString::fromUtf8(
"tab"));
314 horizontalLayout_3 =
new QHBoxLayout(tab);
315 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
316 verticalLayout_4 =
new QVBoxLayout();
317 verticalLayout_4->setObjectName(QString::fromUtf8(
"verticalLayout_4"));
319 trafficGraph->setObjectName(QString::fromUtf8(
"trafficGraph"));
320 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
321 sizePolicy.setHorizontalStretch(0);
322 sizePolicy.setVerticalStretch(0);
323 sizePolicy.setHeightForWidth(trafficGraph->sizePolicy().hasHeightForWidth());
324 trafficGraph->setSizePolicy(sizePolicy);
326 verticalLayout_4->addWidget(trafficGraph);
328 horizontalLayout_2 =
new QHBoxLayout();
329 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
330 sldGraphRange =
new QSlider(tab);
331 sldGraphRange->setObjectName(QString::fromUtf8(
"sldGraphRange"));
332 sldGraphRange->setMinimum(1);
333 sldGraphRange->setMaximum(288);
334 sldGraphRange->setPageStep(12);
335 sldGraphRange->setValue(6);
336 sldGraphRange->setOrientation(Qt::Horizontal);
338 horizontalLayout_2->addWidget(sldGraphRange);
340 lblGraphRange =
new QLabel(tab);
341 lblGraphRange->setObjectName(QString::fromUtf8(
"lblGraphRange"));
342 lblGraphRange->setMinimumSize(QSize(100, 0));
343 lblGraphRange->setAlignment(Qt::AlignCenter);
345 horizontalLayout_2->addWidget(lblGraphRange);
347 btnClearTrafficGraph =
new QPushButton(tab);
348 btnClearTrafficGraph->setObjectName(QString::fromUtf8(
"btnClearTrafficGraph"));
350 horizontalLayout_2->addWidget(btnClearTrafficGraph);
353 verticalLayout_4->addLayout(horizontalLayout_2);
356 horizontalLayout_3->addLayout(verticalLayout_4);
358 verticalLayout =
new QVBoxLayout();
359 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
360 groupBox =
new QGroupBox(tab);
361 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
362 verticalLayout_5 =
new QVBoxLayout(groupBox);
363 verticalLayout_5->setObjectName(QString::fromUtf8(
"verticalLayout_5"));
364 horizontalLayout_4 =
new QHBoxLayout();
365 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
366 line =
new QFrame(groupBox);
367 line->setObjectName(QString::fromUtf8(
"line"));
368 QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
369 sizePolicy1.setHorizontalStretch(0);
370 sizePolicy1.setVerticalStretch(0);
371 sizePolicy1.setHeightForWidth(line->sizePolicy().hasHeightForWidth());
372 line->setSizePolicy(sizePolicy1);
373 line->setMinimumSize(QSize(10, 0));
375 QBrush brush(QColor(0, 255, 0, 255));
376 brush.setStyle(Qt::SolidPattern);
377 palette.setBrush(QPalette::Active, QPalette::Light, brush);
378 palette.setBrush(QPalette::Inactive, QPalette::Light, brush);
379 palette.setBrush(QPalette::Disabled, QPalette::Light, brush);
380 line->setPalette(palette);
381 line->setFrameShape(QFrame::HLine);
382 line->setFrameShadow(QFrame::Sunken);
384 horizontalLayout_4->addWidget(line);
386 label_16 =
new QLabel(groupBox);
387 label_16->setObjectName(QString::fromUtf8(
"label_16"));
389 horizontalLayout_4->addWidget(label_16);
391 lblBytesIn =
new QLabel(groupBox);
392 lblBytesIn->setObjectName(QString::fromUtf8(
"lblBytesIn"));
393 lblBytesIn->setMinimumSize(QSize(50, 0));
394 lblBytesIn->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
396 horizontalLayout_4->addWidget(lblBytesIn);
399 verticalLayout_5->addLayout(horizontalLayout_4);
401 horizontalLayout_5 =
new QHBoxLayout();
402 horizontalLayout_5->setObjectName(QString::fromUtf8(
"horizontalLayout_5"));
403 line_2 =
new QFrame(groupBox);
404 line_2->setObjectName(QString::fromUtf8(
"line_2"));
405 sizePolicy1.setHeightForWidth(line_2->sizePolicy().hasHeightForWidth());
406 line_2->setSizePolicy(sizePolicy1);
407 line_2->setMinimumSize(QSize(10, 0));
409 QBrush brush1(QColor(255, 0, 0, 255));
410 brush1.setStyle(Qt::SolidPattern);
411 palette1.setBrush(QPalette::Active, QPalette::Light, brush1);
412 palette1.setBrush(QPalette::Inactive, QPalette::Light, brush1);
413 palette1.setBrush(QPalette::Disabled, QPalette::Light, brush1);
414 line_2->setPalette(palette1);
415 line_2->setFrameShape(QFrame::HLine);
416 line_2->setFrameShadow(QFrame::Sunken);
418 horizontalLayout_5->addWidget(line_2);
420 label_17 =
new QLabel(groupBox);
421 label_17->setObjectName(QString::fromUtf8(
"label_17"));
423 horizontalLayout_5->addWidget(label_17);
425 lblBytesOut =
new QLabel(groupBox);
426 lblBytesOut->setObjectName(QString::fromUtf8(
"lblBytesOut"));
427 lblBytesOut->setMinimumSize(QSize(50, 0));
428 lblBytesOut->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
430 horizontalLayout_5->addWidget(lblBytesOut);
433 verticalLayout_5->addLayout(horizontalLayout_5);
435 verticalSpacer_4 =
new QSpacerItem(20, 407, QSizePolicy::Minimum, QSizePolicy::Expanding);
437 verticalLayout_5->addItem(verticalSpacer_4);
440 verticalLayout->addWidget(groupBox);
443 horizontalLayout_3->addLayout(verticalLayout);
445 tabWidget->addTab(tab, QString());
447 verticalLayout_2->addWidget(tabWidget);
452 tabWidget->setCurrentIndex(0);
455 QMetaObject::connectSlotsByName(RPCConsole);
460 RPCConsole->setWindowTitle(QApplication::translate(
"RPCConsole",
"Debug window", 0, QApplication::UnicodeUTF8));
461 label_9->setText(QApplication::translate(
"RPCConsole",
"General", 0, QApplication::UnicodeUTF8));
462 label_5->setText(QApplication::translate(
"RPCConsole",
"Client name", 0, QApplication::UnicodeUTF8));
463 clientName->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
464 label_6->setText(QApplication::translate(
"RPCConsole",
"Client version", 0, QApplication::UnicodeUTF8));
465 clientVersion->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
466 label_14->setText(QApplication::translate(
"RPCConsole",
"Using OpenSSL version", 0, QApplication::UnicodeUTF8));
467 openSSLVersion->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
468 label_12->setText(QApplication::translate(
"RPCConsole",
"Build date", 0, QApplication::UnicodeUTF8));
469 buildDate->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
470 label_13->setText(QApplication::translate(
"RPCConsole",
"Startup time", 0, QApplication::UnicodeUTF8));
471 startupTime->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
472 label_11->setText(QApplication::translate(
"RPCConsole",
"Network", 0, QApplication::UnicodeUTF8));
473 label_8->setText(QApplication::translate(
"RPCConsole",
"Name", 0, QApplication::UnicodeUTF8));
474 networkName->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
475 label_7->setText(QApplication::translate(
"RPCConsole",
"Number of connections", 0, QApplication::UnicodeUTF8));
476 numberOfConnections->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
477 label_10->setText(QApplication::translate(
"RPCConsole",
"Block chain", 0, QApplication::UnicodeUTF8));
478 label_3->setText(QApplication::translate(
"RPCConsole",
"Current number of blocks", 0, QApplication::UnicodeUTF8));
479 numberOfBlocks->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
480 label_2->setText(QApplication::translate(
"RPCConsole",
"Last block time", 0, QApplication::UnicodeUTF8));
481 lastBlockTime->setText(QApplication::translate(
"RPCConsole",
"N/A", 0, QApplication::UnicodeUTF8));
482 labelDebugLogfile->setText(QApplication::translate(
"RPCConsole",
"Debug log file", 0, QApplication::UnicodeUTF8));
483 #ifndef QT_NO_TOOLTIP
484 openDebugLogfileButton->setToolTip(QApplication::translate(
"RPCConsole",
"Open the Bitcoin debug log file from the current data directory. This can take a few seconds for large log files.", 0, QApplication::UnicodeUTF8));
485 #endif // QT_NO_TOOLTIP
486 openDebugLogfileButton->setText(QApplication::translate(
"RPCConsole",
"&Open", 0, QApplication::UnicodeUTF8));
487 tabWidget->setTabText(tabWidget->indexOf(tab_info), QApplication::translate(
"RPCConsole",
"&Information", 0, QApplication::UnicodeUTF8));
488 #ifndef QT_NO_TOOLTIP
489 clearButton->setToolTip(QApplication::translate(
"RPCConsole",
"Clear console", 0, QApplication::UnicodeUTF8));
490 #endif // QT_NO_TOOLTIP
491 clearButton->setText(QString());
492 tabWidget->setTabText(tabWidget->indexOf(tab_console), QApplication::translate(
"RPCConsole",
"&Console", 0, QApplication::UnicodeUTF8));
493 btnClearTrafficGraph->setText(QApplication::translate(
"RPCConsole",
"&Clear", 0, QApplication::UnicodeUTF8));
494 groupBox->setTitle(QApplication::translate(
"RPCConsole",
"Totals", 0, QApplication::UnicodeUTF8));
495 label_16->setText(QApplication::translate(
"RPCConsole",
"In:", 0, QApplication::UnicodeUTF8));
496 label_17->setText(QApplication::translate(
"RPCConsole",
"Out:", 0, QApplication::UnicodeUTF8));
497 tabWidget->setTabText(tabWidget->indexOf(tab), QApplication::translate(
"RPCConsole",
"&Network Traffic", 0, QApplication::UnicodeUTF8));
508 #endif // UI_RPCCONSOLE_H
Local Bitcoin RPC console.
QHBoxLayout * horizontalLayout_5
QPushButton * openDebugLogfileButton
QVBoxLayout * verticalLayout_5
QVBoxLayout * verticalLayout_4
QLabel * numberOfConnections
QHBoxLayout * horizontalLayout_3
QTextEdit * messagesWidget
void setupUi(QDialog *RPCConsole)
void retranslateUi(QDialog *RPCConsole)
QHBoxLayout * horizontalLayout_4
QPushButton * btnClearTrafficGraph
QHBoxLayout * horizontalLayout
QPushButton * clearButton
QVBoxLayout * verticalLayout_3
QLabel * labelDebugLogfile
TrafficGraphWidget * trafficGraph
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_4
QSpacerItem * verticalSpacer_2
QSpacerItem * verticalSpacer
QVBoxLayout * verticalLayout_2
QHBoxLayout * horizontalLayout_2