Code::Blocks
SVN r11506
plugins
scriptedwizard
genericsinglechoicelist.h
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
6
#ifndef GENERICSINGLECHOICELIST_H
7
#define GENERICSINGLECHOICELIST_H
8
9
10
//(*HeadersPCH(GenericSingleChoiceList)
11
#include <
wx/sizer.h
>
12
#include <
wx/panel.h
>
13
#include <
wx/stattext.h
>
14
#include <
wx/listbox.h
>
15
//*)
16
17
class
wxArrayString
;
18
class
wxString
;
19
20
class
GenericSingleChoiceList
:
public
wxPanel
21
{
22
public
:
23
24
GenericSingleChoiceList
(
wxWindow
* parent,
wxWindowID
id
= -1);
25
virtual
~GenericSingleChoiceList
();
26
27
void
SetChoices
(
const
wxArrayString
& choices,
int
defChoice);
28
int
GetChoice
()
const
{
return
GenericChoiceList
->GetSelection(); }
29
void
SetChoice
(
int
choice){
GenericChoiceList
->SetSelection(choice); }
30
void
SetDescription
(
const
wxString
& descr)
31
{
32
lblDescr
->SetLabel(descr);
33
34
GetSizer()->Fit(
this
);
35
GetSizer()->SetSizeHints(
this
);
36
}
37
38
//(*Identifiers(GenericSingleChoiceList)
39
static
const
long
ID_STATICTEXT1
;
40
static
const
long
ID_LISTBOX1
;
41
//*)
42
43
protected
:
44
45
//(*Handlers(GenericSingleChoiceList)
46
//*)
47
48
//(*Declarations(GenericSingleChoiceList)
49
wxListBox
*
GenericChoiceList
;
50
wxStaticText
*
lblDescr
;
51
//*)
52
53
private
:
54
55
DECLARE_EVENT_TABLE()
56
};
57
58
#endif
GenericSingleChoiceList::ID_STATICTEXT1
static const long ID_STATICTEXT1
Definition:
genericsinglechoicelist.h:39
listbox.h
GenericSingleChoiceList::lblDescr
wxStaticText * lblDescr
Definition:
genericsinglechoicelist.h:50
GenericSingleChoiceList
Definition:
genericsinglechoicelist.h:20
GenericSingleChoiceList::SetChoice
void SetChoice(int choice)
Definition:
genericsinglechoicelist.h:29
GenericSingleChoiceList::GenericSingleChoiceList
GenericSingleChoiceList(wxWindow *parent, wxWindowID id=-1)
Definition:
genericsinglechoicelist.cpp:32
wxString
GenericSingleChoiceList::GetChoice
int GetChoice() const
Definition:
genericsinglechoicelist.h:28
sizer.h
wxPanel
wxStaticText
GenericSingleChoiceList::SetChoices
void SetChoices(const wxArrayString &choices, int defChoice)
Definition:
genericsinglechoicelist.cpp:58
stattext.h
GenericSingleChoiceList::GenericChoiceList
wxListBox * GenericChoiceList
Definition:
genericsinglechoicelist.h:49
wxArrayString
GenericSingleChoiceList::~GenericSingleChoiceList
virtual ~GenericSingleChoiceList()
Definition:
genericsinglechoicelist.cpp:54
GenericSingleChoiceList::SetDescription
void SetDescription(const wxString &descr)
Definition:
genericsinglechoicelist.h:30
wxListBox
wxWindowID
int wxWindowID
wxWindow
panel.h
GenericSingleChoiceList::ID_LISTBOX1
static const long ID_LISTBOX1
Definition:
genericsinglechoicelist.h:40
Generated by
1.8.13