void InitWindow::on_response( int response_id ) { switch( response_id ) { case Gtk::RESPONSE_OK: OnAcceptButton(); break; case Gtk::RESPONSE_REJECT: OnResetButton(); break; } }
OptionsDialog::OptionsDialog(IControls *control, QWidget *parent) : QDialog(parent), ui(new Ui::OptionsDialog) { ui->setupUi(this); _control = control; _settings = control->GetSettings(); InitOptionsDialog(); connect(ui->buttonBox->button(QDialogButtonBox::Apply), SIGNAL(clicked()), this, SLOT(OnApplyButton())); connect(ui->buttonBox->button(QDialogButtonBox::Reset), SIGNAL(clicked()), this, SLOT(OnResetButton())); // TODO ui->_chkDescOfLoc->setEnabled(false); }