[tracking] Polish UI a bit

- add icons for graphical display of actions
 - extend description of tracking options
 - add debug logging
 - enable next button
 - show/hide tracking options based on configuration
This commit is contained in:
Adriaan de Groot 2017-11-06 10:12:41 -05:00
parent 806799ece4
commit 20a2465cc7
10 changed files with 228 additions and 19 deletions

View file

@ -42,3 +42,29 @@ TrackingPage::TrackingPage(QWidget *parent)
ui->setupUi( this );
}
void TrackingPage::showTrackingOption(TrackingType t, bool show)
{
QGroupBox *group = nullptr;
cDebug() << "Showing tracking option" << int(t) << show;
switch ( t )
{
case TrackingType::InstallTracking:
group = ui->installTrackingBox;
break;
case TrackingType::MachineTracking:
group = ui->machineTrackingBox;
break;
case TrackingType::UserTracking:
group = ui->UserTrackingBox;
break;
}
if ( group != nullptr )
if ( show )
group->show();
else
group->hide();
else
cDebug() << " .. unknown option" << int(t);
}