changesModule = new UiWidget<Ui::ChangeTrackingUi>(this);
connect(changesModule->trackChangesCB, SIGNAL(clicked()),
this, SLOT(change_adaptor()));
- connect(changesModule->outputChangesCB, SIGNAL(clicked()),
- this, SLOT(change_adaptor()));
+ connect(changesModule->outputChangesCB, SIGNAL(toggled(bool)),
+ this, SLOT(outputChangesToggled(bool)));
connect(changesModule->changeBarsCB, SIGNAL(clicked()),
this, SLOT(change_adaptor()));
changesModule->trackChangesCB->setChecked(bp_.track_changes);
changesModule->outputChangesCB->setChecked(bp_.output_changes);
changesModule->changeBarsCB->setChecked(bp_.change_bars);
+ changesModule->changeBarsCB->setEnabled(bp_.output_changes);
// Make sure that the bc is in the INITIAL state
if (bc().policy().buttonStatus(ButtonPolicy::RESTORE))
}
+void GuiDocument::outputChangesToggled(bool on)
+{
+ changesModule->changeBarsCB->setEnabled(on);
+ change_adaptor();
+}
+
+
Dialog * createGuiDocument(GuiView & lv) { return new GuiDocument(lv); }
void moduleFilterChanged(const QString & text);
void resetModuleFilter();
void linenoToggled(bool);
+ void outputChangesToggled(bool);
private:
/// validate listings parameters and return an error message, if any
QString validateListingsParameters();