2013-01-18 06:04:25 +00:00
///////////////////////////////////////////////////////////////////////////
2019-02-11 00:07:38 +00:00
// C++ code generated with wxFormBuilder (version Nov 21 2018)
2013-01-18 06:04:25 +00:00
// http://www.wxformbuilder.org/
//
2018-08-01 13:36:42 +00:00
// PLEASE DO *NOT* EDIT THIS FILE!
2013-01-18 06:04:25 +00:00
///////////////////////////////////////////////////////////////////////////
# include "dialog_exit_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_EXIT_BASE : : DIALOG_EXIT_BASE ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : DIALOG_SHIM ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
wxBoxSizer * bSizerMain ;
bSizerMain = new wxBoxSizer ( wxVERTICAL ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
wxBoxSizer * bSizerUpper ;
bSizerUpper = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
m_bitmap = new wxStaticBitmap ( this , wxID_ANY , wxNullBitmap , wxDefaultPosition , wxDefaultSize , 0 ) ;
2018-08-01 23:06:12 +00:00
bSizerUpper - > Add ( m_bitmap , 0 , wxALL , 5 ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
wxBoxSizer * bSizerMessages ;
bSizerMessages = new wxBoxSizer ( wxVERTICAL ) ;
2019-02-07 09:43:37 +00:00
2018-08-01 23:06:12 +00:00
m_TextInfo = new wxStaticText ( this , wxID_ANY , _ ( " Save changes? " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2013-01-18 06:04:25 +00:00
m_TextInfo - > Wrap ( - 1 ) ;
2016-05-10 06:56:03 +00:00
m_TextInfo - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , wxFONTFAMILY_DEFAULT , wxFONTSTYLE_NORMAL , wxFONTWEIGHT_BOLD , false , wxEmptyString ) ) ;
2019-02-07 09:43:37 +00:00
2018-08-01 13:36:42 +00:00
bSizerMessages - > Add ( m_TextInfo , 0 , wxALL , 5 ) ;
2019-02-07 09:43:37 +00:00
m_staticTextWarningMessage = new wxStaticText ( this , wxID_ANY , _ ( " If you don't save, all your changes will be permanently lost. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-11 00:07:38 +00:00
m_staticTextWarningMessage - > Wrap ( 300 ) ;
2019-02-07 09:43:37 +00:00
bSizerMessages - > Add ( m_staticTextWarningMessage , 0 , wxALL , 5 ) ;
2013-01-18 06:04:25 +00:00
bSizerUpper - > Add ( bSizerMessages , 1 , wxEXPAND , 5 ) ;
2019-02-07 09:43:37 +00:00
2018-08-01 13:36:42 +00:00
bSizerMain - > Add ( bSizerUpper , 1 , wxEXPAND | wxALL , 5 ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
m_staticline = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
2019-02-11 00:07:38 +00:00
bSizerMain - > Add ( m_staticline , 0 , wxEXPAND | wxLEFT | wxRIGHT , 10 ) ;
2019-02-07 09:43:37 +00:00
2018-08-01 13:36:42 +00:00
m_buttonSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
2019-02-07 09:43:37 +00:00
2018-08-01 13:36:42 +00:00
m_ApplyToAllOpt = new wxCheckBox ( this , wxID_ANY , _ ( " Apply to all " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
2019-02-11 00:07:38 +00:00
m_buttonSizer - > Add ( m_ApplyToAllOpt , 0 , wxALIGN_CENTER_VERTICAL | wxBOTTOM | wxTOP , 5 ) ;
2019-02-07 09:43:37 +00:00
2018-10-17 10:23:02 +00:00
m_buttonSizer - > Add ( 20 , 0 , 1 , wxRIGHT | wxLEFT , 5 ) ;
2019-02-07 09:43:37 +00:00
2018-08-01 23:06:12 +00:00
m_DiscardButton = new wxButton ( this , wxID_ANY , _ ( " Discard Changes " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonSizer - > Add ( m_DiscardButton , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
2019-02-07 09:43:37 +00:00
2018-10-17 10:23:02 +00:00
m_buttonSizer - > Add ( 20 , 0 , 0 , wxRIGHT | wxLEFT , 5 ) ;
2019-02-07 09:43:37 +00:00
m_sdbSizer = new wxStdDialogButtonSizer ( ) ;
m_sdbSizerOK = new wxButton ( this , wxID_OK ) ;
m_sdbSizer - > AddButton ( m_sdbSizerOK ) ;
m_sdbSizerCancel = new wxButton ( this , wxID_CANCEL ) ;
m_sdbSizer - > AddButton ( m_sdbSizerCancel ) ;
m_sdbSizer - > Realize ( ) ;
2019-02-11 00:07:38 +00:00
m_buttonSizer - > Add ( m_sdbSizer , 0 , wxBOTTOM | wxTOP , 5 ) ;
2019-02-07 09:43:37 +00:00
2019-02-11 00:07:38 +00:00
bSizerMain - > Add ( m_buttonSizer , 0 , wxEXPAND | wxLEFT , 5 ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
this - > SetSizer ( bSizerMain ) ;
this - > Layout ( ) ;
bSizerMain - > Fit ( this ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
this - > Centre ( wxBOTH ) ;
2019-02-07 09:43:37 +00:00
2013-01-18 06:04:25 +00:00
// Connect Events
2018-08-01 23:06:12 +00:00
m_DiscardButton - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXIT_BASE : : OnDiscard ) , NULL , this ) ;
2019-02-07 09:43:37 +00:00
m_sdbSizerOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXIT_BASE : : OnSave ) , NULL , this ) ;
2013-01-18 06:04:25 +00:00
}
DIALOG_EXIT_BASE : : ~ DIALOG_EXIT_BASE ( )
{
// Disconnect Events
2018-08-01 23:06:12 +00:00
m_DiscardButton - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXIT_BASE : : OnDiscard ) , NULL , this ) ;
2019-02-07 09:43:37 +00:00
m_sdbSizerOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( DIALOG_EXIT_BASE : : OnSave ) , NULL , this ) ;
2013-01-18 06:04:25 +00:00
}