14DIALOG_GROUP_PROPERTIES_BASE::DIALOG_GROUP_PROPERTIES_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bSizerMain;
19 bSizerMain =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bSizerUpper;
22 bSizerUpper =
new wxBoxSizer( wxVERTICAL );
24 wxFlexGridSizer* fgSizer1;
25 fgSizer1 =
new wxFlexGridSizer( 0, 2, 0, 0 );
26 fgSizer1->AddGrowableCol( 1 );
27 fgSizer1->SetFlexibleDirection( wxBOTH );
28 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 m_nameLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Group name:"), wxDefaultPosition, wxDefaultSize, 0 );
32 fgSizer1->Add(
m_nameLabel, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
34 m_nameCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
35 fgSizer1->Add(
m_nameCtrl, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
38 bSizerUpper->Add( fgSizer1, 0, wxEXPAND, 5 );
40 m_locked =
new wxCheckBox(
this, wxID_ANY,
_(
"Locked"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_locked->SetToolTip(
_(
"Prevents group from being moved on canvas") );
43 bSizerUpper->Add(
m_locked, 0, wxALL, 5 );
45 m_membersLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Group members:"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_membersList =
new wxListBox(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
52 bSizerUpper->Add(
m_membersList, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
54 wxBoxSizer* bMembershipButtons;
55 bMembershipButtons =
new wxBoxSizer( wxHORIZONTAL );
61 bMembershipButtons->Add( 10, 0, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
67 bSizerUpper->Add( bMembershipButtons, 0, wxBOTTOM|wxEXPAND, 5 );
70 bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
79 bSizerMain->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
82 this->SetSizer( bSizerMain );
84 bSizerMain->Fit(
this );
86 this->Centre( wxBOTH );
STD_BITMAP_BUTTON * m_bpAddMember
wxButton * m_sdbSizerCancel
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnRemoveMember(wxCommandEvent &event)
wxStaticText * m_membersLabel
~DIALOG_GROUP_PROPERTIES_BASE()
virtual void OnAddMember(wxCommandEvent &event)
virtual void onClose(wxCloseEvent &event)
virtual void OnMemberSelected(wxCommandEvent &event)
wxListBox * m_membersList
STD_BITMAP_BUTTON * m_bpRemoveMember
DIALOG_GROUP_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Group Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_nameLabel
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...