Debian Codegraph @

Runtime/templates/projects/executable-wxcrafter-dialog/wxcrafter.cpp

raw
1 //////////////////////////////////////////////////////////////////////
2 // This file was auto-generated by codelite's wxCrafter Plugin
3 // wxCrafter project file: wxcrafter.wxcp
4 // Do not modify this file by hand!
5 //////////////////////////////////////////////////////////////////////
6
7 #include "wxcrafter.hpp"
8
9 // Declare the bitmap loading function
10 extern void wxC9ED9InitBitmapResources();
11
12 static bool bBitmapLoaded = false;
13
14 MainDialogBaseClass::MainDialogBaseClass(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos,
15 const wxSize& size, long style)
16 : wxDialog(parent, id, title, pos, size, style)
17 {
18 if(!bBitmapLoaded) {
19 // We need to initialise the default bitmap handler
20 wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
21 wxC9ED9InitBitmapResources();
22 bBitmapLoaded = true;
23 }
24
25 wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
26 this->SetSizer(mainSizer);
27
28 mainSizer->Add(0, 0, 1, wxEXPAND | wxALL, WXC_FROM_DIP(5));
29
30 m_staticLine15 =
31 new wxStaticLine(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), wxLI_HORIZONTAL);
32
33 mainSizer->Add(m_staticLine15, 0, wxEXPAND | wxALL, WXC_FROM_DIP(5));
34
35 wxBoxSizer* boxSizer12 = new wxBoxSizer(wxHORIZONTAL);
36
37 mainSizer->Add(boxSizer12, 0, wxALIGN_CENTER_HORIZONTAL | wxALL, WXC_FROM_DIP(5));
38
39 m_buttonOK = new wxButton(this, wxID_OK, _("OK"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
40 m_buttonOK->SetDefault();
41
42 boxSizer12->Add(m_buttonOK, 0, wxALL, WXC_FROM_DIP(5));
43
44 m_buttonCancel =
45 new wxButton(this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1, -1)), 0);
46
47 boxSizer12->Add(m_buttonCancel, 0, wxALL, WXC_FROM_DIP(5));
48
49 SetName(wxT("MainDialogBaseClass"));
50 SetSize(wxDLG_UNIT(this, wxSize(500, 300)));
51 if(GetSizer()) {
52 GetSizer()->Fit(this);
53 }
54 if(GetParent()) {
55 CentreOnParent(wxBOTH);
56 } else {
57 CentreOnScreen(wxBOTH);
58 }
59 if(!wxPersistenceManager::Get().Find(this)) {
60 wxPersistenceManager::Get().RegisterAndRestore(this);
61 } else {
62 wxPersistenceManager::Get().Restore(this);
63 }
64 }
65
66 MainDialogBaseClass::~MainDialogBaseClass() {}