1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: nameanddescdlg.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////
#include "nameanddescbasedlg.h"
#include "codelite_exports.h"
// Declare the bitmap loading function
extern void wxC934BInitBitmapResources();
static bool bBitmapLoaded = false;
NameAndDescBaseDlg::NameAndDescBaseDlg(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos,
const wxSize& size, long style)
: wxDialog(parent, id, title, pos, size, style)
{
if(!bBitmapLoaded) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxC934BInitBitmapResources();
bBitmapLoaded = true;
}
bSizer1 = new wxBoxSizer(wxVERTICAL);
this->SetSizer(bSizer1);
fgSizer1 = new wxFlexGridSizer(2, 2, 0, 0);
fgSizer1->SetFlexibleDirection(wxBOTH);
fgSizer1->SetNonFlexibleGrowMode(wxFLEX_GROWMODE_SPECIFIED);
fgSizer1->AddGrowableCol(1);
bSizer1->Add(fgSizer1, 0, wxALL | wxEXPAND, 5);
m_staticText3 = new wxStaticText(this, wxID_ANY, _("Project name:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer1->Add(m_staticText3, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, 5);
m_textCtrlName = new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_textCtrlName->SetToolTip(_("Give a name to the template"));
m_textCtrlName->SetFocus();
#if wxVERSION_NUMBER >= 3000
m_textCtrlName->SetHint(wxT(""));
#endif
fgSizer1->Add(m_textCtrlName, 0, wxALL | wxEXPAND, 5);
m_staticText4 = new wxStaticText(this, wxID_ANY, _("Project category:"), wxDefaultPosition, wxSize(-1, -1), 0);
fgSizer1->Add(m_staticText4, 0, wxALL | wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL, 5);
wxArrayString m_choiceTypeArr;
m_choiceType = new wxComboBox(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), m_choiceTypeArr, 0);
m_choiceType->SetToolTip(_("Choose a category for this template"));
#if wxVERSION_NUMBER >= 3000
m_choiceType->SetHint(wxT(""));
#endif
fgSizer1->Add(m_choiceType, 0, wxALL | wxEXPAND, 5);
bSizer3 = new wxBoxSizer(wxVERTICAL);
bSizer1->Add(bSizer3, 1, wxALL | wxEXPAND, 5);
m_staticText2 = new wxStaticText(this, wxID_ANY, _("Description:"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer3->Add(m_staticText2, 0, wxLEFT | wxRIGHT | wxTOP, 5);
m_textCtrlDescription =
new wxTextCtrl(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1, -1), wxTE_RICH2 | wxTE_MULTILINE);
m_textCtrlDescription->SetToolTip(_("Set a description to this template"));
bSizer3->Add(m_textCtrlDescription, 1, wxALL | wxEXPAND, 5);
m_stdBtnSizer2 = new wxStdDialogButtonSizer();
bSizer1->Add(m_stdBtnSizer2, 0, wxALL | wxALIGN_CENTER_HORIZONTAL, 5);
m_buttonOK = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_buttonOK->SetDefault();
m_stdBtnSizer2->AddButton(m_buttonOK);
m_button6 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0);
m_stdBtnSizer2->AddButton(m_button6);
m_stdBtnSizer2->Realize();
SetName(wxT("NameAndDescBaseDlg"));
SetSizeHints(-1, -1);
if(GetSizer()) {
GetSizer()->Fit(this);
}
CentreOnParent(wxBOTH);
#if wxVERSION_NUMBER >= 2900
if(!wxPersistenceManager::Get().Find(this)) {
wxPersistenceManager::Get().RegisterAndRestore(this);
} else {
wxPersistenceManager::Get().Restore(this);
}
#endif
}
NameAndDescBaseDlg::~NameAndDescBaseDlg() {}
|