108 ui->SigProcessSelect->setChecked( OnOff );
109 ui->QtSelect->setChecked( OnOff );
110 ui->GeneralSelect->setChecked( OnOff );
111 ui->ThreadSelect->setChecked( OnOff );
112 ui->ConfigSelect->setChecked( OnOff );
113 ui->TimingSelect->setChecked( OnOff );
114 ui->SecuritySelect->setChecked( OnOff );
115 ui->GraphicsSelect->setChecked( OnOff );
116 ui->MemorySelect->setChecked( OnOff );
117 ui->MathsSelect->setChecked( OnOff );
118 ui->FileOpsSelect ->setChecked( OnOff );
119 ui->NetworkCommsSelect->setChecked( OnOff );
120 ui->OperatorSelect->setChecked( OnOff );
121 ui->DatabaseSelect->setChecked( OnOff );
122 ui->ExceptionsSelect->setChecked( OnOff );
123 ui->SensorsSelect->setChecked( OnOff );
168 QSettings settings(
"brigadoon/netprojectmanager" );
171 ui->MaxLogLines->setValue( settings.value(
"Log_Setup/Allowed_lines", 500 ).toInt() );
172 ui->MaxLogLines->setMinimum( settings.value(
"Log_Setup/Minimum_lines", 20 ).toInt() );
173 ui->MaxLogLines->setMaximum( settings.value(
"Log_Setup/Maximum_lines", 20000 ).toInt() );
176 QObject::connect(
ui->ModeSelectAll, SIGNAL( pressed(
void ) ),
this, SLOT(
LogModeAll(
void ) ) );
177 QObject::connect(
ui->ModeClearAll, SIGNAL( pressed(
void ) ),
this, SLOT(
LogModeNone(
void ) ) );
178 QObject::connect(
ui->SeveritySelectAll, SIGNAL( pressed(
void ) ),
this, SLOT(
LogSeverityAll(
void ) ) );
179 QObject::connect(
ui->SeverityClearAll, SIGNAL( pressed(
void ) ),
this, SLOT(
LogSeverityNone(
void ) ) );
180 QObject::connect(
ui->SaveLog, SIGNAL( pressed(
void ) ),
this, SLOT(
SaveLog(
void ) ) );
181 QObject::connect(
ui->ClearLog, SIGNAL( pressed(
void ) ),
this, SLOT(
ClearLog(
void ) ) );
182 QObject::connect(
ui->EmergencySelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
183 QObject::connect(
ui->AlertSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
184 QObject::connect(
ui->CriticalSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
185 QObject::connect(
ui->ErrorSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
186 QObject::connect(
ui->WarningSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
187 QObject::connect(
ui->NoticeSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
188 QObject::connect(
ui->InfoSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
189 QObject::connect(
ui->DebugSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadSeverityMask(
bool ) ) );
190 QObject::connect(
ui->SigProcessSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
191 QObject::connect(
ui->QtSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
192 QObject::connect(
ui->GeneralSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
193 QObject::connect(
ui->ThreadSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
194 QObject::connect(
ui->ConfigSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
195 QObject::connect(
ui->TimingSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
196 QObject::connect(
ui->SecuritySelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
197 QObject::connect(
ui->GraphicsSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
198 QObject::connect(
ui->MemorySelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
199 QObject::connect(
ui->MathsSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
200 QObject::connect(
ui->FileOpsSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
201 QObject::connect(
ui->NetworkCommsSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
202 QObject::connect(
ui->OperatorSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
203 QObject::connect(
ui->DatabaseSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
204 QObject::connect(
ui->ExceptionsSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
205 QObject::connect(
ui->SensorsSelect, SIGNAL( clicked(
bool ) ),
this, SLOT(
ReadModeMask(
bool ) ) );
206 QObject::connect(
this, SIGNAL(
CountChanged(
int ) ),
ui->LogLineCounter, SLOT( display(
int ) ) );
207 QObject::connect(
ui->LogView, SIGNAL( itemClicked( QListWidgetItem * ) ),
this, SLOT(
LogSelectItem( QListWidgetItem * ) ) );
208 QObject::connect(
ui->AllUnhideLog, SIGNAL( pressed(
void) ),
this, SLOT(
LogItemsUnhide(
void ) ) );
209 QObject::connect(
ui->MaxLogLines, SIGNAL( valueChanged(
int) ),
this, SLOT(
UpdateMaxLogLines(
int ) ) );
211 ui->EmergencySelect->setChecked( settings.value(
"Log_Severity/Emergency",
true ).toBool() );
212 ui->AlertSelect->setChecked( settings.value(
"Log_Severity/Alert",
true ).toBool() );
213 ui->CriticalSelect->setChecked( settings.value(
"Log_Severity/Critical",
true ).toBool() );
214 ui->ErrorSelect->setChecked( settings.value(
"Log_Severity/Error",
true ).toBool() );
215 ui->WarningSelect->setChecked( settings.value(
"Log_Severity/Warning",
true ).toBool() );
216 ui->NoticeSelect->setChecked( settings.value(
"Log_Severity/Notice",
true ).toBool() );
217 ui->InfoSelect->setChecked( settings.value(
"Log_Severity/Info",
true ).toBool() );
218 ui->DebugSelect->setChecked( settings.value(
"Log_Severity/Debug",
true ).toBool() );
222 ui->SigProcessSelect->setChecked( settings.value(
"Log_Mode/SigProc",
true ).toBool() );
223 ui->QtSelect->setChecked( settings.value(
"Log_Mode/Qt",
true ).toBool() );
224 ui->GeneralSelect->setChecked( settings.value(
"Log_Mode/General",
true ).toBool() );
225 ui->ThreadSelect->setChecked( settings.value(
"Log_Mode/Thread",
true ).toBool() );
226 ui->ConfigSelect->setChecked( settings.value(
"Log_Mode/Configuration",
true ).toBool() );
227 ui->TimingSelect->setChecked( settings.value(
"Log_Mode/Timing",
true ).toBool() );
228 ui->SecuritySelect->setChecked( settings.value(
"Log_Mode/Security",
true ).toBool() );
229 ui->GraphicsSelect->setChecked( settings.value(
"Log_Mode/Graphics",
true ).toBool() );
230 ui->MemorySelect->setChecked( settings.value(
"Log_Mode/Memory",
true ).toBool() );
231 ui->MathsSelect->setChecked( settings.value(
"Log_Mode/Maths",
true ).toBool() );
232 ui->FileOpsSelect->setChecked( settings.value(
"Log_Mode/File",
true ).toBool() );
233 ui->NetworkCommsSelect->setChecked( settings.value(
"Log_Mode/Network",
true ).toBool() );
234 ui->OperatorSelect->setChecked( settings.value(
"Log_Mode/Operator",
true ).toBool() );
235 ui->DatabaseSelect->setChecked( settings.value(
"Log_Mode/Database",
true ).toBool() );
236 ui->ExceptionsSelect->setChecked( settings.value(
"Log_Mode/Exception",
true ).toBool() );
237 ui->SensorsSelect->setChecked( settings.value(
"Log_Mode/Sensors",
true ).toBool() );
324 if (
ui->SigProcessSelect->isChecked() )
332 if (
ui->QtSelect->isChecked() )
341 if (
ui->GeneralSelect->isChecked() )
350 if (
ui->ThreadSelect->isChecked() )
359 if (
ui->ConfigSelect->isChecked() )
368 if (
ui->TimingSelect->isChecked() )
377 if (
ui->SecuritySelect->isChecked() )
386 if (
ui->GraphicsSelect->isChecked() )
395 if (
ui->MemorySelect->isChecked() )
404 if (
ui->MathsSelect->isChecked() )
413 if (
ui->FileOpsSelect->isChecked() )
422 if (
ui->NetworkCommsSelect->isChecked() )
431 if (
ui->OperatorSelect->isChecked() )
440 if (
ui->DatabaseSelect->isChecked() )
449 if (
ui->ExceptionsSelect->isChecked() )
458 if (
ui->SensorsSelect->isChecked() )
517 QSettings settings(
"brigadoon/netprojectmanager");
520 settings.setValue(
"Log_Severity/Emergency",
ui->EmergencySelect->isChecked() );
521 settings.setValue(
"Log_Severity/Alert",
ui->AlertSelect->isChecked() );
522 settings.setValue(
"Log_Severity/Critical",
ui->CriticalSelect->isChecked() );
523 settings.setValue(
"Log_Severity/Error",
ui->ErrorSelect->isChecked() );
524 settings.setValue(
"Log_Severity/Warning",
ui->WarningSelect->isChecked() );
525 settings.setValue(
"Log_Severity/Notice",
ui->NoticeSelect->isChecked() );
526 settings.setValue(
"Log_Severity/Info",
ui->InfoSelect->isChecked() );
527 settings.setValue(
"Log_Severity/Debug",
ui->DebugSelect->isChecked() );
531 settings.setValue(
"Log_Mode/SigProc",
ui->SigProcessSelect->isChecked() );
532 settings.setValue(
"Log_Mode/Qt",
ui->QtSelect->isChecked() );
533 settings.setValue(
"Log_Mode/General",
ui->GeneralSelect->isChecked() );
534 settings.setValue(
"Log_Mode/Thread",
ui->ThreadSelect->isChecked() );
535 settings.setValue(
"Log_Mode/Configuration",
ui->ConfigSelect->isChecked() );
536 settings.setValue(
"Log_Mode/Timing",
ui->TimingSelect->isChecked() );
537 settings.setValue(
"Log_Mode/Security",
ui->SecuritySelect->isChecked() );
538 settings.setValue(
"Log_Mode/Graphics",
ui->GraphicsSelect->isChecked() );
539 settings.setValue(
"Log_Mode/Memory",
ui->MemorySelect->isChecked() );
540 settings.setValue(
"Log_Mode/Maths",
ui->MathsSelect->isChecked() );
541 settings.setValue(
"Log_Mode/File",
ui->FileOpsSelect->isChecked() );
542 settings.setValue(
"Log_Mode/Network",
ui->NetworkCommsSelect->isChecked() );
543 settings.setValue(
"Log_Mode/Operator",
ui->OperatorSelect->isChecked() );
544 settings.setValue(
"Log_Mode/Database",
ui->DatabaseSelect->isChecked() );
545 settings.setValue(
"Log_Mode/Exception",
ui->ExceptionsSelect->isChecked() );
546 settings.setValue(
"Log_Mode/Sensors",
ui->SensorsSelect->isChecked() );
549 settings.setValue(
"Log_Setup/Allowed_lines",
ui->MaxLogLines->value() );
550 settings.setValue(
"Log_Setup/Minimum_lines",
ui->MaxLogLines->minimum() );
551 settings.setValue(
"Log_Setup/Maximum_lines",
ui->MaxLogLines->maximum() );