13 setWindowTitle(
"Advanced Settings" );
14 setAttribute( Qt::WA_DeleteOnClose );
17 QLabel* banner =
us_banner( tr(
"Debug Text List" ) );
19 QBoxLayout* topbox =
new QVBoxLayout(
this );
20 topbox->addWidget( banner );
21 topbox->setSpacing( 2 );
32 QLabel* info =
us_banner( tr(
"Advanced Counters" ) );
33 topbox->addWidget( info );
36 QGridLayout* details =
new QGridLayout();
39 QLabel* lb_debug =
us_label(
"Debug Level:" );
40 details->addWidget( lb_debug, row, 0, 1, 3 );
48 details->addWidget(
sb_debug, row++, 3, 1, 1 );
51 QLabel* lb_advanced =
us_label(
"Advanced Level:" );
52 details->addWidget( lb_advanced, row, 0, 1, 3 );
63 QLabel* lb_threads =
us_label(
"Number of Threads:" );
64 details->addWidget( lb_threads, row, 0, 1, 3 );
72 details->addWidget(
sb_threads, row++, 3, 1, 1 );
74 topbox->addLayout( details );
79 QGridLayout* buttons =
new QGridLayout();
82 connect(
pb_reset, SIGNAL( clicked() ),
this, SLOT(
reset() ) );
83 buttons->addWidget(
pb_reset, row++, 0, 1, 3 );
86 connect(
pb_save, SIGNAL( clicked() ),
this, SLOT(
save() ) );
87 buttons->addWidget(
pb_save, row, 0, 1, 1 );
90 connect(
pb_help, SIGNAL( clicked() ),
this, SLOT(
help() ) );
91 buttons->addWidget(
pb_help, row, 1, 1, 1 );
94 connect(
pb_close, SIGNAL( clicked() ),
this, SLOT( close() ) );
95 buttons->addWidget(
pb_close, row++, 2, 1, 1 );
97 topbox->addLayout( buttons );
110 QString dbg_str =
"";
112 if ( dbg_text.size() > 0 )
115 for (
int ii = 0; ii < dbg_text.size() - 1; ii++ )
116 dbg_str += dbg_text.at( ii ) +
"\n";
118 dbg_str += dbg_text.last();
131 QStringList dbg_text =
te_dbgtext->toPlainText().split(
"\n" );
133 for (
int ii = 0; ii < dbg_text.size(); ii++ )
135 dbg_text.replace( ii, dbg_text.at( ii ).simplified() );
144 QMessageBox::information(
this,
145 tr(
"Settings Saved" ),
146 tr(
"The settings have been saved." ) );
152 showhelp->
show_help(
"advanced_config.html" );