AboutForm::AboutForm(QWidget *parent, Qt::WFlags flags) : QDialog(parent, flags) { ui.setupUi(this); QRect frect = frameGeometry(); frect.moveCenter(QDesktopWidget().availableGeometry().center()); move(frect.topLeft()); connect(ui.okButton, SIGNAL(click()), this, SLOT(OnOkClick())); }
/// wxEVT_COMMAND_LIST_ITEM_ACTIVATED event handler for ID_TOKENS void OnTokensItemActivated(wxListEvent& event) { if (lstTokens->GetSelectedItemCount() > 0) { btnOK->Enable(true); OnOkClick(event); } else { btnOK->Enable(false); } }
void VariableSettingsDlg::OnListVariable3DoubleClicked(wxCommandEvent& event) { if (!all_init) return; if (num_var >= 4 && set_fourth_from_third_mode) { lb4->SetSelection(lb3_cur_sel); lb4_cur_sel = lb3_cur_sel; if (is_time) { time_lb4->SetSelection(v3_time); v4_time = v3_time; } } OnOkClick(event); }
void VariableSettingsDlg::OnListVariable1DoubleClicked(wxCommandEvent& event) { if (!all_init) return; if (num_var >= 2 && set_second_from_first_mode) { lb2->SetSelection(lb1_cur_sel); lb2_cur_sel = lb1_cur_sel; if (is_time) { time_lb2->SetSelection(v1_time); v2_time = v1_time; } } OnOkClick(event); }
void VariableSettingsDlg::OnListVariable4DoubleClicked(wxCommandEvent& event) { if (!all_init) return; OnOkClick(event); }