X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fqt-console%2Fmainwin.cpp;h=92cc016051a4b85519d778d42d199a6372caa195;hb=1fc951fbf84de26886bdc64b332e86a4586924a5;hp=ec64b6042bf2cb632e570a0a99947441342bad81;hpb=0dcb9d6ef267a77a4647fecde514bc39ac043788;p=bacula%2Fbacula diff --git a/bacula/src/qt-console/mainwin.cpp b/bacula/src/qt-console/mainwin.cpp index ec64b6042b..92cc016051 100644 --- a/bacula/src/qt-console/mainwin.cpp +++ b/bacula/src/qt-console/mainwin.cpp @@ -7,8 +7,8 @@ many others, a complete list can be found in the file AUTHORS. This program is Free Software; you can redistribute it and/or modify it under the terms of version two of the GNU General Public - License as published by the Free Software Foundation plus additions - that are listed in the file LICENSE. + License as published by the Free Software Foundation and included + in the file LICENSE. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -46,12 +46,27 @@ #include "medialist/medialist.h" #include "joblist/joblist.h" #include "clients/clients.h" +#include "restore/restoretree.h" +#include "help/help.h" +#include "jobs/jobs.h" +#include "jobgraphs/jobplot.h" -MainWin::MainWin(QWidget *parent) : QMainWindow(parent) +/* + * Daemon message callback + */ +void message_callback(int /* type */, char *msg) { + QMessageBox::warning(mainWin, "Bat", msg, QMessageBox::Ok); +} +MainWin::MainWin(QWidget *parent) : QMainWindow(parent) +{ + m_isClosing = false; + m_dtformat = "yyyy-MM-dd HH:mm:ss"; mainWin = this; setupUi(this); /* Setup UI defined by main.ui (designer) */ + register_message_callback(message_callback); + readPreferences(); treeWidget->clear(); treeWidget->setColumnCount(1); treeWidget->setHeaderLabel("Select Page"); @@ -67,16 +82,16 @@ MainWin::MainWin(QWidget *parent) : QMainWindow(parent) readSettings(); - foreach(Console *console, m_consoleHash){ - console->connect(); + foreach(Console *console, m_consoleHash) { + console->connect_dir(); } m_currentConsole = (Console*)getFromHash(m_firstItem); m_currentConsole->setCurrent(); - /* FIXME - * I'd like to turn this into a debug item - * DIRRES* dirres = m_currentConsole->getDirRes(); - * printf("Setting initial window to %s\n", dirres->name()); - */ + if (m_miscDebug) { + QString directoryResourceName; + m_currentConsole->getDirResName(directoryResourceName); + Pmsg1(000, "Setting initial window to %s\n", directoryResourceName.toUtf8().data()); + } } void MainWin::createPages() @@ -94,17 +109,20 @@ void MainWin::createPages() m_currentConsole->readSettings(); /* The top tree item representing the director */ - topItem = createTopPage(dir->name()); + topItem = new QTreeWidgetItem(treeWidget); + topItem->setText(0, dir->name()); topItem->setIcon(0, QIcon(":images/server.png")); - /* Set background to grey for ease of identification of inactive dirfector */ + /* Set background to grey for ease of identification of inactive Director */ QBrush greyBrush(Qt::lightGray); topItem->setBackground(0, greyBrush); m_currentConsole->setDirectorTreeItem(topItem); m_consoleHash.insert(topItem, m_currentConsole); /* Create Tree Widget Item */ - item = createPage("Console", topItem); + item = new QTreeWidgetItem(topItem); + item->setText(0, "Console"); if (!m_firstItem){ m_firstItem = item; } + item->setIcon(0,QIcon(QString::fromUtf8(":images/utilities-terminal.png"))); /* insert the cosole and tree widget item into the hashes */ hashInsert(item, m_currentConsole); @@ -116,15 +134,21 @@ void MainWin::createPages() item->setForeground(0, redBrush); m_currentConsole->dockPage(); - /* create instances of the rest of the classes that will by default exist - * under each director */ -// createPagebRestore(); - createPageMediaList(); - QString emptymedia(""), emptyclient(""); - createPageJobList(emptymedia, emptyclient, NULL); - createPageClients(); - createPageStorage(); - createPageFileSet(); + /* + * Create instances in alphabetic order of the rest + * of the classes that will by default exist under each Director. + */ +// new bRestore(); + new Clients(); + new FileSet(); + new Jobs(); + createPageJobList("", "", "", "", NULL); + JobPlotPass pass; + pass.use = false; + new JobPlot(NULL, pass); + new MediaList(); + new Storage(); + new restoreTree(); treeWidget->expandItem(topItem); stackedWidget->setCurrentWidget(m_currentConsole); @@ -132,38 +156,19 @@ void MainWin::createPages() UnlockRes(); } -/* - * create an instance of the the brestore class on the stack - */ -void MainWin::createPagebRestore() -{ - bRestore* brestore = new bRestore(); - brestore->dockPage(); -} - -/* - * create an instance of the the medialist class on the stack - */ -void MainWin::createPageMediaList() -{ - MediaList* medialist = new MediaList(); - medialist->dockPage(); -} - /* * create an instance of the the joblist class on the stack */ -void MainWin::createPageJobList(QString &media, QString &client, - QTreeWidgetItem *parentTreeWidgetItem) +void MainWin::createPageJobList(const QString &media, const QString &client, + const QString &job, const QString &fileset, QTreeWidgetItem *parentTreeWidgetItem) { QTreeWidgetItem *holdItem; /* save current tree widget item in case query produces no results */ holdItem = treeWidget->currentItem(); - JobList* joblist = new JobList(media, client, parentTreeWidgetItem); - joblist->dockPage(); + JobList* joblist = new JobList(media, client, job, fileset, parentTreeWidgetItem); /* If this is a query of jobs on a specific media */ - if ((media != "") || (client != "")) { + if ((media != "") || (client != "") || (job != "") || (fileset != "")) { joblist->setCurrent(); /* did query produce results, if not close window and set back to hold */ if (joblist->m_resultCount == 0) { @@ -173,49 +178,6 @@ void MainWin::createPageJobList(QString &media, QString &client, } } -/* - * create an instance of the the Clients class on the stack - */ -void MainWin::createPageClients() -{ - Clients* clients = new Clients(); - clients->dockPage(); -} - -/* - * create an instance of the the storage class on the stack - */ -void MainWin::createPageStorage() -{ - Storage* storage = new Storage(); - storage->dockPage(); -} - -/* - * create an instance of the the fileset class on the stack - */ -void MainWin::createPageFileSet() -{ - FileSet* fileset = new FileSet(); - fileset->dockPage(); -} - -/* Create a root Tree Widget */ -QTreeWidgetItem *MainWin::createTopPage(char *name) -{ - QTreeWidgetItem *item = new QTreeWidgetItem(treeWidget); - item->setText(0, name); - return item; -} - -/* Create A Tree Widget Item which will be associated with a Page in the stacked widget */ -QTreeWidgetItem *MainWin::createPage(char *name, QTreeWidgetItem *parent) -{ - QTreeWidgetItem *item = new QTreeWidgetItem(parent); - item->setText(0, name); - return item; -} - /* * Handle up and down arrow keys for the command line * history. @@ -257,6 +219,7 @@ void MainWin::createConnections() /* Connect signals to slots */ connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(input_line())); connect(actionAbout_bat, SIGNAL(triggered()), this, SLOT(about())); + connect(actionBat_Help, SIGNAL(triggered()), this, SLOT(help())); connect(treeWidget, SIGNAL(itemClicked(QTreeWidgetItem *, int)), this, SLOT(treeItemClicked(QTreeWidgetItem *, int))); connect(treeWidget, SIGNAL( @@ -267,6 +230,9 @@ void MainWin::createConnections() connect(actionQuit, SIGNAL(triggered()), app, SLOT(closeAllWindows())); connect(actionLabel, SIGNAL(triggered()), this, SLOT(labelButtonClicked())); connect(actionRun, SIGNAL(triggered()), this, SLOT(runButtonClicked())); + connect(actionEstimate, SIGNAL(triggered()), this, SLOT(estimateButtonClicked())); + connect(actionBrowse, SIGNAL(triggered()), this, SLOT(browseButtonClicked())); + connect(actionJobPlot, SIGNAL(triggered()), this, SLOT(jobPlotButtonClicked())); connect(actionRestore, SIGNAL(triggered()), this, SLOT(restoreButtonClicked())); connect(actionUndock, SIGNAL(triggered()), this, SLOT(undockWindowButton())); connect(actionToggleDock, SIGNAL(triggered()), this, SLOT(toggleDockContextWindow())); @@ -279,16 +245,27 @@ void MainWin::createConnections() */ void MainWin::closeEvent(QCloseEvent *event) { + m_isClosing = true; writeSettings(); + /* close all non console pages, this will call settings in destructors */ + while (m_consoleHash.count() < m_pagehash.count()) { + foreach(Pages *page, m_pagehash) { + if (page != page->console()) { + QTreeWidgetItem* pageSelectorTreeWidgetItem = mainWin->getFromHash(page); + if (pageSelectorTreeWidgetItem->childCount() == 0) { + page->console()->setCurrent(); + page->closeStackPage(); + } + } + } + } + /* close the console pages and terminate connection */ foreach(Console *console, m_consoleHash){ console->writeSettings(); console->terminate(); + console->closeStackPage(); } event->accept(); - foreach(Pages *page, m_pagehash) { - if (!page->isDocked()) - page->close(); - } } void MainWin::writeSettings() @@ -298,6 +275,7 @@ void MainWin::writeSettings() settings.beginGroup("MainWin"); settings.setValue("winSize", size()); settings.setValue("winPos", pos()); + settings.setValue("state", saveState()); settings.endGroup(); } @@ -308,6 +286,7 @@ void MainWin::readSettings() settings.beginGroup("MainWin"); resize(settings.value("winSize", QSize(1041, 801)).toSize()); move(settings.value("winPos", QPoint(200, 150)).toPoint()); + restoreState(settings.value("state").toByteArray()); settings.endGroup(); } @@ -335,8 +314,16 @@ void MainWin::treeItemClicked(QTreeWidgetItem *item, int /*column*/) */ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *previousitem) { + if (m_isClosing) return; /* if closing the application, do nothing here */ + Pages *previousPage, *nextPage; - Console *previousConsole, *nextConsole; + Console *previousConsole = NULL; + Console *nextConsole; + + /* remove all actions before adding actions appropriate for new page */ + foreach(QAction* pageAction, treeWidget->actions()) { + treeWidget->removeAction(pageAction); + } /* first determine the next item */ @@ -371,7 +358,7 @@ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *pre if ((previousPage) || (previousConsole)) { if (nextConsole != previousConsole) { /* remove connections to the current console */ - disconnect(actionConnect, SIGNAL(triggered()), previousConsole, SLOT(connect())); + disconnect(actionConnect, SIGNAL(triggered()), previousConsole, SLOT(connect_dir())); disconnect(actionStatusDir, SIGNAL(triggered()), previousConsole, SLOT(status_dir())); disconnect(actionMessages, SIGNAL(triggered()), previousConsole, SLOT(messages())); disconnect(actionSelectFont, SIGNAL(triggered()), previousConsole, SLOT(set_font())); @@ -379,15 +366,6 @@ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *pre QBrush greyBrush(Qt::lightGray); dirItem->setBackground(0, greyBrush); } - /* make sure the close window and toggle dock options are removed */ - treeWidget->removeAction(actionClosePage); - treeWidget->removeAction(actionToggleDock); - /* Is this a page that has been inserted into the hash */ - if (previousPage) { - foreach(QAction* pageaction, previousPage->m_contextActions) { - treeWidget->removeAction(pageaction); - } - } } } @@ -397,7 +375,7 @@ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *pre if (nextConsole != previousConsole) { /* make connections to the current console */ m_currentConsole = nextConsole; - connect(actionConnect, SIGNAL(triggered()), m_currentConsole, SLOT(connect())); + connect(actionConnect, SIGNAL(triggered()), m_currentConsole, SLOT(connect_dir())); connect(actionSelectFont, SIGNAL(triggered()), m_currentConsole, SLOT(set_font())); connect(actionStatusDir, SIGNAL(triggered()), m_currentConsole, SLOT(status_dir())); connect(actionMessages, SIGNAL(triggered()), m_currentConsole, SLOT(messages())); @@ -421,10 +399,9 @@ void MainWin::treeItemChanged(QTreeWidgetItem *currentitem, QTreeWidgetItem *pre nextPage->setContextMenuDockText(); treeWidget->addAction(actionToggleDock); - /* if this page is closeable, then add that action */ - if (nextPage->isCloseable()) { + /* if this page is closeable, and it has no childern, then add that action */ + if ((nextPage->isCloseable()) && (currentitem->child(0) == NULL)) treeWidget->addAction(actionClosePage); - } /* Add the actions to the Page Selectors tree widget that are part of the * current items list of desired actions regardless of whether on top of stack*/ @@ -439,7 +416,17 @@ void MainWin::labelButtonClicked() void MainWin::runButtonClicked() { - new runPage(); + new runPage(""); +} + +void MainWin::estimateButtonClicked() +{ + new estimatePage(); +} + +void MainWin::browseButtonClicked() +{ + new restoreTree(); } void MainWin::restoreButtonClicked() @@ -447,6 +434,13 @@ void MainWin::restoreButtonClicked() new prerestorePage(); } +void MainWin::jobPlotButtonClicked() +{ + JobPlotPass pass; + pass.use = false; + new JobPlot(NULL, pass); +} + /* * The user just finished typing a line in the command line edit box */ @@ -455,8 +449,8 @@ void MainWin::input_line() QString cmdStr = lineEdit->text(); /* Get the text */ lineEdit->clear(); /* clear the lineEdit box */ if (m_currentConsole->is_connected()) { - m_currentConsole->display_text(cmdStr + "\n"); - m_currentConsole->write_dir(cmdStr.toUtf8().data()); /* send to dir */ + /* Use consoleInput to allow typing anything */ + m_currentConsole->consoleInput(cmdStr); } else { set_status("Director not connected. Click on connect button."); } @@ -476,6 +470,11 @@ void MainWin::about() " interface to the Director.")); } +void MainWin::help() +{ + Help::displayFile("index.html"); +} + void MainWin::set_statusf(const char *fmt, ...) { va_list arg_ptr; @@ -529,6 +528,7 @@ void MainWin::toggleDockContextWindow() */ void MainWin::stackItemChanged(int) { + if (m_isClosing) return; /* if closing the application, do nothing here */ Pages* page = (Pages*)stackedWidget->currentWidget(); /* run the virtual function in case this class overrides it */ page->currentStackItem(); @@ -608,8 +608,30 @@ QTreeWidgetItem *MainWin::currentTopItem() void MainWin::setPreferences() { prefsDialog prefs; - prefs.commDebug->setCheckState(g_commDebug ? Qt::Checked : Qt::Unchecked); - prefs.displayAll->setCheckState(g_displayAll ? Qt::Checked : Qt::Unchecked); + prefs.commDebug->setCheckState(m_commDebug ? Qt::Checked : Qt::Unchecked); + prefs.displayAll->setCheckState(m_displayAll ? Qt::Checked : Qt::Unchecked); + prefs.sqlDebug->setCheckState(m_sqlDebug ? Qt::Checked : Qt::Unchecked); + prefs.commandDebug->setCheckState(m_commandDebug ? Qt::Checked : Qt::Unchecked); + prefs.miscDebug->setCheckState(m_miscDebug ? Qt::Checked : Qt::Unchecked); + prefs.recordLimit->setCheckState(m_recordLimitCheck ? Qt::Checked : Qt::Unchecked); + prefs.recordSpinBox->setValue(m_recordLimitVal); + prefs.daysLimit->setCheckState(m_daysLimitCheck ? Qt::Checked : Qt::Unchecked); + prefs.daysSpinBox->setValue(m_daysLimitVal); + prefs.checkMessages->setCheckState(m_checkMessages ? Qt::Checked : Qt::Unchecked); + prefs.checkMessagesSpin->setValue(m_checkMessagesInterval); + prefs.executeLongCheckBox->setCheckState(m_longList ? Qt::Checked : Qt::Unchecked); + prefs.rtPopDirCheckBox->setCheckState(m_rtPopDirDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtDirCurICCheckBox->setCheckState(m_rtDirCurICDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtDirICCheckBox->setCheckState(m_rtDirICDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtFileTabICCheckBox->setCheckState(m_rtFileTabICDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtVerTabICCheckBox->setCheckState(m_rtVerTabICDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtUpdateFTCheckBox->setCheckState(m_rtUpdateFTDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtUpdateVTCheckBox->setCheckState(m_rtUpdateVTDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtChecksCheckBox->setCheckState(m_rtChecksDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtIconStateCheckBox->setCheckState(m_rtIconStateDebug ? Qt::Checked : Qt::Unchecked); + prefs.rtRestore1CheckBox->setCheckState(m_rtRestore1Debug ? Qt::Checked : Qt::Unchecked); + prefs.rtRestore2CheckBox->setCheckState(m_rtRestore2Debug ? Qt::Checked : Qt::Unchecked); + prefs.rtRestore3CheckBox->setCheckState(m_rtRestore3Debug ? Qt::Checked : Qt::Unchecked); prefs.exec(); } @@ -622,8 +644,70 @@ prefsDialog::prefsDialog() void prefsDialog::accept() { this->hide(); - g_commDebug = this->commDebug->checkState() == Qt::Checked; - g_displayAll = this->displayAll->checkState() == Qt::Checked; + mainWin->m_commDebug = this->commDebug->checkState() == Qt::Checked; + mainWin->m_displayAll = this->displayAll->checkState() == Qt::Checked; + mainWin->m_sqlDebug = this->sqlDebug->checkState() == Qt::Checked; + mainWin->m_commandDebug = this->commandDebug->checkState() == Qt::Checked; + mainWin->m_miscDebug = this->miscDebug->checkState() == Qt::Checked; + mainWin->m_recordLimitCheck = this->recordLimit->checkState() == Qt::Checked; + mainWin->m_recordLimitVal = this->recordSpinBox->value(); + mainWin->m_daysLimitCheck = this->daysLimit->checkState() == Qt::Checked; + mainWin->m_daysLimitVal = this->daysSpinBox->value(); + mainWin->m_checkMessages = this->checkMessages->checkState() == Qt::Checked; + mainWin->m_checkMessagesInterval = this->checkMessagesSpin->value(); + mainWin->m_longList = this->executeLongCheckBox->checkState() == Qt::Checked; + + mainWin->m_rtPopDirDebug = this->rtPopDirCheckBox->checkState() == Qt::Checked; + mainWin->m_rtDirCurICDebug = this->rtDirCurICCheckBox->checkState() == Qt::Checked; + mainWin->m_rtDirICDebug = this->rtDirICCheckBox->checkState() == Qt::Checked; + mainWin->m_rtFileTabICDebug = this->rtFileTabICCheckBox->checkState() == Qt::Checked; + mainWin->m_rtVerTabICDebug = this->rtVerTabICCheckBox->checkState() == Qt::Checked; + mainWin->m_rtUpdateFTDebug = this->rtUpdateFTCheckBox->checkState() == Qt::Checked; + mainWin->m_rtUpdateVTDebug = this->rtUpdateVTCheckBox->checkState() == Qt::Checked; + mainWin->m_rtChecksDebug = this->rtChecksCheckBox->checkState() == Qt::Checked; + mainWin->m_rtIconStateDebug = this->rtIconStateCheckBox->checkState() == Qt::Checked; + mainWin->m_rtRestore1Debug = this->rtRestore1CheckBox->checkState() == Qt::Checked; + mainWin->m_rtRestore2Debug = this->rtRestore2CheckBox->checkState() == Qt::Checked; + mainWin->m_rtRestore3Debug = this->rtRestore3CheckBox->checkState() == Qt::Checked; + + QSettings settings("www.bacula.org", "bat"); + settings.beginGroup("Debug"); + settings.setValue("commDebug", mainWin->m_commDebug); + settings.setValue("displayAll", mainWin->m_displayAll); + settings.setValue("sqlDebug", mainWin->m_sqlDebug); + settings.setValue("commandDebug", mainWin->m_commandDebug); + settings.setValue("miscDebug", mainWin->m_miscDebug); + settings.endGroup(); + settings.beginGroup("JobList"); + settings.setValue("recordLimitCheck", mainWin->m_recordLimitCheck); + settings.setValue("recordLimitVal", mainWin->m_recordLimitVal); + settings.setValue("daysLimitCheck", mainWin->m_daysLimitCheck); + settings.setValue("daysLimitVal", mainWin->m_daysLimitVal); + settings.endGroup(); + settings.beginGroup("Messages"); + settings.setValue("checkMessages", mainWin->m_checkMessages); + settings.setValue("checkMessagesInterval", mainWin->m_checkMessagesInterval); + settings.endGroup(); + settings.beginGroup("Misc"); + settings.setValue("longList", mainWin->m_longList); + settings.endGroup(); + settings.beginGroup("RestoreTree"); + settings.setValue("rtPopDirDebug", mainWin->m_rtPopDirDebug); + settings.setValue("rtDirCurICDebug", mainWin->m_rtDirCurICDebug); + settings.setValue("rtDirCurICRetDebug", mainWin->m_rtDirICDebug); + settings.setValue("rtFileTabICDebug", mainWin->m_rtFileTabICDebug); + settings.setValue("rtVerTabICDebug", mainWin->m_rtVerTabICDebug); + settings.setValue("rtUpdateFTDebug", mainWin->m_rtUpdateFTDebug); + settings.setValue("rtUpdateVTDebug", mainWin->m_rtUpdateVTDebug); + settings.setValue("rtChecksDebug", mainWin->m_rtChecksDebug); + settings.setValue("rtIconStateDebug", mainWin->m_rtIconStateDebug); + settings.setValue("rtRestore1Debug", mainWin->m_rtRestore1Debug); + settings.setValue("rtRestore2Debug", mainWin->m_rtRestore2Debug); + settings.setValue("rtRestore3Debug", mainWin->m_rtRestore3Debug); + settings.endGroup(); + foreach(Console *console, mainWin->m_consoleHash) { + console->startTimer(); + } } void prefsDialog::reject() @@ -631,3 +715,43 @@ void prefsDialog::reject() this->hide(); mainWin->set_status("Canceled"); } + +/* read preferences for the prefences dialog box */ +void MainWin::readPreferences() +{ + QSettings settings("www.bacula.org", "bat"); + settings.beginGroup("Debug"); + m_commDebug = settings.value("commDebug", false).toBool(); + m_displayAll = settings.value("displayAll", false).toBool(); + m_sqlDebug = settings.value("sqlDebug", false).toBool(); + m_commandDebug = settings.value("commandDebug", false).toBool(); + m_miscDebug = settings.value("miscDebug", false).toBool(); + settings.endGroup(); + settings.beginGroup("JobList"); + m_recordLimitCheck = settings.value("recordLimitCheck", true).toBool(); + m_recordLimitVal = settings.value("recordLimitVal", 150).toInt(); + m_daysLimitCheck = settings.value("daysLimitCheck", false).toBool(); + m_daysLimitVal = settings.value("daysLimitVal", 28).toInt(); + settings.endGroup(); + settings.beginGroup("Messages"); + m_checkMessages = settings.value("checkMessages", false).toBool(); + m_checkMessagesInterval = settings.value("checkMessagesInterval", 28).toInt(); + settings.endGroup(); + settings.beginGroup("Misc"); + m_longList = settings.value("longList", false).toBool(); + settings.endGroup(); + settings.beginGroup("RestoreTree"); + m_rtPopDirDebug = settings.value("rtPopDirDebug", false).toBool(); + m_rtDirCurICDebug = settings.value("rtDirCurICDebug", false).toBool(); + m_rtDirICDebug = settings.value("rtDirCurICRetDebug", false).toBool(); + m_rtFileTabICDebug = settings.value("rtFileTabICDebug", false).toBool(); + m_rtVerTabICDebug = settings.value("rtVerTabICDebug", false).toBool(); + m_rtUpdateFTDebug = settings.value("rtUpdateFTDebug", false).toBool(); + m_rtUpdateVTDebug = settings.value("rtUpdateVTDebug", false).toBool(); + m_rtChecksDebug = settings.value("rtChecksDebug", false).toBool(); + m_rtIconStateDebug = settings.value("rtIconStateDebug", false).toBool(); + m_rtRestore1Debug = settings.value("rtRestore1Debug", false).toBool(); + m_rtRestore2Debug = settings.value("rtRestore2Debug", false).toBool(); + m_rtRestore3Debug = settings.value("rtRestore3Debug", false).toBool(); + settings.endGroup(); +}