14EDA_REORDERABLE_LIST_DIALOG_BASE::EDA_REORDERABLE_LIST_DIALOG_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( wxSize( 320,220 ), wxDefaultSize );
18 wxBoxSizer* bSizerMain;
19 bSizerMain =
new wxBoxSizer( wxVERTICAL );
22 bTop =
new wxBoxSizer( wxHORIZONTAL );
24 wxFlexGridSizer* fgSizer1;
25 fgSizer1 =
new wxFlexGridSizer( 0, 3, 3, 0 );
26 fgSizer1->AddGrowableCol( 0 );
27 fgSizer1->AddGrowableCol( 2 );
28 fgSizer1->AddGrowableRow( 1 );
29 fgSizer1->SetFlexibleDirection( wxBOTH );
30 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 m_availableListLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Available:"), wxDefaultPosition, wxDefaultSize, 0 );
37 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
39 m_enabledListLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Enabled:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_availableListBox =
new wxListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_HEADER|wxLC_REPORT|wxLC_SINGLE_SEL|wxBORDER_SIMPLE|wxVSCROLL );
48 wxBoxSizer* bMiddleButtons;
49 bMiddleButtons =
new wxBoxSizer( wxVERTICAL );
51 m_btnAdd =
new wxButton(
this, wxID_ANY,
_(
">"), wxDefaultPosition, wxSize( 24,24 ), 0 );
52 bMiddleButtons->Add(
m_btnAdd, 0, wxBOTTOM, 10 );
54 m_btnRemove =
new wxButton(
this, wxID_ANY,
_(
"<"), wxDefaultPosition, wxSize( 24,24 ), 0 );
55 bMiddleButtons->Add(
m_btnRemove, 0, wxBOTTOM|wxALIGN_CENTER_HORIZONTAL, 20 );
58 fgSizer1->Add( bMiddleButtons, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
60 m_enabledListBox =
new wxListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_HEADER|wxLC_REPORT|wxLC_SINGLE_SEL|wxBORDER_SIMPLE|wxVSCROLL );
66 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
69 fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
72 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
77 bSizer4->Add(
m_btnUp, 0, 0, 5 );
85 fgSizer1->Add( bSizer4, 0, wxEXPAND, 5 );
88 bTop->Add( fgSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
91 bSizerMain->Add( bTop, 1, wxEXPAND, 5 );
108 this->SetSizer( bSizerMain );
111 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
virtual void onMoveUp(wxCommandEvent &event)=0
wxStaticText * m_enabledListLabel
wxBoxSizer * m_ButtonsSizer
STD_BITMAP_BUTTON * m_btnDown
~EDA_REORDERABLE_LIST_DIALOG_BASE()
wxListCtrl * m_availableListBox
virtual void onEnabledListItemSelected(wxListEvent &event)=0
virtual void onAddItem(wxCommandEvent &event)=0
virtual void onMoveDown(wxCommandEvent &event)=0
STD_BITMAP_BUTTON * m_btnUp
wxListCtrl * m_enabledListBox
virtual void onRemoveItem(wxCommandEvent &event)=0
EDA_REORDERABLE_LIST_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(580, 260), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_availableListLabel
virtual void onAvailableListItemSelected(wxListEvent &event)=0
wxButton * m_sdbSizerCancel
wxStdDialogButtonSizer * m_sdbSizer