2016-12-23 18:45:25 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2017-10-31 11:08:15 +01:00
|
|
|
// C++ code generated with wxFormBuilder (version Oct 27 2017)
|
2016-12-23 18:45:25 -05:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
|
//
|
2017-10-31 11:08:15 +01:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2016-12-23 18:45:25 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include "ActionDialogBase.h"
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2017-10-31 11:08:15 +01:00
|
|
|
ActionDialogBase::ActionDialogBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) : wxDialog(parent, id, title, pos, size, style)
|
2016-12-23 18:45:25 -05:00
|
|
|
{
|
2017-10-31 11:08:15 +01:00
|
|
|
this->SetSizeHints(wxDefaultSize, wxDefaultSize);
|
|
|
|
|
|
2016-12-23 18:45:25 -05:00
|
|
|
wxBoxSizer* mainSizer;
|
2017-10-31 11:08:15 +01:00
|
|
|
mainSizer = new wxBoxSizer(wxVERTICAL);
|
|
|
|
|
|
|
|
|
|
m_questionText = new wxStaticText(this, wxID_ANY, wxT("Question"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE);
|
|
|
|
|
m_questionText->Wrap(-1);
|
|
|
|
|
mainSizer->Add(m_questionText, 1, wxALL | wxEXPAND, 5);
|
|
|
|
|
|
2016-12-23 18:45:25 -05:00
|
|
|
wxBoxSizer* buttonSizer;
|
2017-10-31 11:08:15 +01:00
|
|
|
buttonSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
|
|
|
|
|
|
|
|
m_cancelButton = new wxButton(this, wxID_ANY, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0);
|
|
|
|
|
buttonSizer->Add(m_cancelButton, 1, wxALL | wxEXPAND, 5);
|
|
|
|
|
|
|
|
|
|
m_okButton = new wxButton(this, wxID_ANY, wxT("OK"), wxDefaultPosition, wxDefaultSize, 0);
|
|
|
|
|
buttonSizer->Add(m_okButton, 1, wxALL | wxEXPAND, 5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mainSizer->Add(buttonSizer, 1, wxEXPAND, 5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this->SetSizer(mainSizer);
|
2016-12-23 18:45:25 -05:00
|
|
|
this->Layout();
|
2017-10-31 11:08:15 +01:00
|
|
|
mainSizer->Fit(this);
|
|
|
|
|
|
|
|
|
|
this->Centre(wxBOTH);
|
|
|
|
|
|
2016-12-23 18:45:25 -05:00
|
|
|
// Connect Events
|
2017-10-31 11:08:15 +01:00
|
|
|
m_cancelButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ActionDialogBase::onClickCancel), NULL, this);
|
|
|
|
|
m_okButton->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ActionDialogBase::onClickOK), NULL, this);
|
2016-12-23 18:45:25 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ActionDialogBase::~ActionDialogBase()
|
|
|
|
|
{
|
|
|
|
|
// Disconnect Events
|
2017-10-31 11:08:15 +01:00
|
|
|
m_cancelButton->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ActionDialogBase::onClickCancel), NULL, this);
|
|
|
|
|
m_okButton->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(ActionDialogBase::onClickOK), NULL, this);
|
|
|
|
|
|
2016-12-23 18:45:25 -05:00
|
|
|
}
|