12DIALOG_IMPORT_SYMBOL_SELECT_BASE::DIALOG_IMPORT_SYMBOL_SELECT_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxSize( 600,450 ), wxDefaultSize );
16 wxBoxSizer* bMainSizer;
17 bMainSizer =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bContentSizer;
20 bContentSizer =
new wxBoxSizer( wxHORIZONTAL );
22 wxBoxSizer* bLeftSizer;
23 bLeftSizer =
new wxBoxSizer( wxVERTICAL );
25 m_searchCtrl =
new wxSearchCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 bLeftSizer->Add(
m_searchCtrl, 0, wxEXPAND|wxBOTTOM, 5 );
32 m_symbolList =
new wxDataViewListCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_SINGLE );
35 wxBoxSizer* bButtonsSizer;
36 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
38 m_selectAllButton =
new wxButton(
this, wxID_ANY,
_(
"Select All"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_selectNoneButton =
new wxButton(
this, wxID_ANY,
_(
"Select None"), wxDefaultPosition, wxDefaultSize, 0 );
45 bLeftSizer->Add( bButtonsSizer, 0, wxEXPAND|wxTOP, 5 );
48 bContentSizer->Add( bLeftSizer, 2, wxEXPAND|wxALL, 5 );
50 wxBoxSizer* bRightSizer;
51 bRightSizer =
new wxBoxSizer( wxVERTICAL );
53 wxBoxSizer* bUnitSizer;
54 bUnitSizer =
new wxBoxSizer( wxHORIZONTAL );
56 m_unitLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Unit:"), wxDefaultPosition, wxDefaultSize, 0 );
58 bUnitSizer->Add(
m_unitLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
60 wxArrayString m_unitChoiceChoices;
61 m_unitChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_unitChoiceChoices, 0 );
65 bUnitSizer->Add(
m_unitChoice, 0, wxALIGN_CENTER_VERTICAL, 5 );
68 bRightSizer->Add( bUnitSizer, 0, wxEXPAND|wxBOTTOM, 5 );
70 m_previewPanel =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
80 bContentSizer->Add( bRightSizer, 3, wxEXPAND|wxALL, 5 );
83 bMainSizer->Add( bContentSizer, 1, wxEXPAND, 5 );
85 m_statusLine =
new wxStaticText(
this, wxID_ANY,
_(
"0 symbols selected"), wxDefaultPosition, wxDefaultSize, 0 );
87 bMainSizer->Add(
m_statusLine, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
96 bMainSizer->Add(
m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
99 this->SetSizer( bMainSizer );
102 this->Centre( wxBOTH );