Code::Blocks  SVN r11506
genericselectpath.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  *
5  * $Revision: 10270 $
6  * $Id: genericselectpath.cpp 10270 2015-05-15 10:57:08Z jenslody $
7  * $HeadURL: https://svn.code.sf.net/p/codeblocks/code/trunk/src/plugins/scriptedwizard/genericselectpath.cpp $
8  */
9 
10 #include <sdk.h>
11 #ifndef CB_PRECOMP
12  //(*InternalHeadersPCH(GenericSelectPath)
13  #include <wx/string.h>
14  #include <wx/intl.h>
15  //*)
16 #endif
17 #include "genericselectpath.h"
18 
19 //(*IdInit(GenericSelectPath)
24 //*)
25 
26 BEGIN_EVENT_TABLE(GenericSelectPath,wxPanel)
27  //(*EventTable(GenericSelectPath)
28  //*)
29 END_EVENT_TABLE()
30 
32 {
33  //(*Initialize(GenericSelectPath)
34  Create(parent, id, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("id"));
35  BoxSizer1 = new wxBoxSizer(wxVERTICAL);
36  lblDescr = new wxStaticText(this, ID_STATICTEXT1, _("Please select the location of XXX\non your computer. This is the top-level folder where\nXXX is installed."), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT1"));
37  BoxSizer1->Add(lblDescr, 0, wxALL|wxEXPAND, 8);
38  lblLabel = new wxStaticText(this, ID_STATICTEXT2, _("Location of XXX:"), wxDefaultPosition, wxDefaultSize, 0, _T("ID_STATICTEXT2"));
39  BoxSizer1->Add(lblLabel, 0, wxTOP|wxLEFT|wxRIGHT|wxEXPAND, 8);
40  BoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
41  txtFolder = new wxTextCtrl(this, ID_TEXTCTRL1, _("Text"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
42  BoxSizer2->Add(txtFolder, 1, wxALL|wxALIGN_TOP, 0);
43  btnBrowse = new wxButton(this, ID_BUTTON1, _("..."), wxDefaultPosition, wxSize(22,22), 0, wxDefaultValidator, _T("ID_BUTTON1"));
44  BoxSizer2->Add(btnBrowse, 0, wxALL|wxALIGN_TOP, 0);
45  BoxSizer1->Add(BoxSizer2, 0, wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND, 8);
46  SetSizer(BoxSizer1);
47  BoxSizer1->Fit(this);
48  BoxSizer1->SetSizeHints(this);
49  //*)
50 
51  // Set the control's name so that calls to wxWindow::FindWindowByName() succeed...
52  txtFolder->SetName(_T("txtFolder"));
53 }
54 
56 {
57 }
static const long ID_STATICTEXT1
int wxNewId()
const wxValidator wxDefaultValidator
static const long ID_BUTTON1
static const long ID_TEXTCTRL1
#define _T(string)
const long ID_TEXTCTRL1
#define wxTAB_TRAVERSAL
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
const wxString & _(const wxString &string)
static const long ID_STATICTEXT2
int wxWindowID