27 DIALOG_SHIM( aParent, wxID_ANY, aTitle, wxDefaultPosition, wxDefaultSize,
28 wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ),
29 m_contentPanel( nullptr )
40 auto mainSizer =
new wxBoxSizer( wxVERTICAL );
41 SetSizer( mainSizer );
43 mainSizer->Add(
m_contentPanel, 1, wxEXPAND|wxLEFT|wxTOP|wxRIGHT, 5 );
46 auto sdbSizer =
new wxStdDialogButtonSizer();
47 auto sdbSizerOK =
new wxButton(
this, wxID_OK );
48 sdbSizer->AddButton( sdbSizerOK );
49 auto sdbSizerCancel =
new wxButton(
this, wxID_CANCEL );
50 sdbSizer->AddButton( sdbSizerCancel );
53 mainSizer->Add( sdbSizer, 0, wxALL|wxEXPAND, 5 );
void InstallPanel(wxPanel *aPanel)
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
DIALOG_EMBED_FILES(wxWindow *aParent, const wxString &aTitle)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...