示例#1
0
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()));
}
示例#2
0
	/// 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);
		}
	}
示例#3
0
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);
}
示例#4
0
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);
}
示例#5
0
void VariableSettingsDlg::OnListVariable4DoubleClicked(wxCommandEvent& event)
{
	if (!all_init)
        return;
	OnOkClick(event);
}