Printing: enable UI elements that now can be used

The new statistics code, enable the editing of colors, font, and other
template options.

This patch enables the UI elements for these features.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
This commit is contained in:
Gehad elrobey 2015-08-21 19:13:20 +02:00 committed by Lubomir I. Ivanov
parent 69f2921ffa
commit b6d3735204

View file

@ -93,15 +93,12 @@ void PrintOptions::on_radioDiveListPrint_toggled(bool check)
printOptions->type = print_options::DIVELIST; printOptions->type = print_options::DIVELIST;
// print options // print options
ui.printInColor->setEnabled(true);
ui.printSelected->setEnabled(true); ui.printSelected->setEnabled(true);
// print template // print template
ui.deleteButton->setEnabled(true); ui.deleteButton->setEnabled(true);
ui.editButton->setEnabled(true);
ui.exportButton->setEnabled(true); ui.exportButton->setEnabled(true);
ui.importButton->setEnabled(true); ui.importButton->setEnabled(true);
ui.printTemplate->setEnabled(true);
setupTemplates(); setupTemplates();
} }
@ -113,15 +110,12 @@ void PrintOptions::on_radioStatisticsPrint_toggled(bool check)
printOptions->type = print_options::STATISTICS; printOptions->type = print_options::STATISTICS;
// print options // print options
ui.printInColor->setEnabled(false);
ui.printSelected->setEnabled(false); ui.printSelected->setEnabled(false);
// print template // print template
ui.deleteButton->setEnabled(false); ui.deleteButton->setEnabled(false);
ui.editButton->setEnabled(false);
ui.exportButton->setEnabled(false); ui.exportButton->setEnabled(false);
ui.importButton->setEnabled(false); ui.importButton->setEnabled(false);
ui.printTemplate->setEnabled(false);
setupTemplates(); setupTemplates();
} }