12DIALOG_SELECT_3D_MODEL_BASE::DIALOG_SELECT_3D_MODEL_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( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerUpper;
20 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
22 bSizerUpper->SetMinSize( wxSize( -1,400 ) );
23 m_splitterWin =
new wxSplitterWindow(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_3D );
28 wxBoxSizer* bSizerLeft;
29 bSizerLeft =
new wxBoxSizer( wxVERTICAL );
31 m_FileTree =
new wxGenericDirCtrl(
m_panelLeft, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDIRCTRL_3D_INTERNAL|wxDIRCTRL_EDIT_LABELS|wxDIRCTRL_SHOW_FILTERS|wxBORDER_DEFAULT, wxEmptyString, 0 );
36 bSizerLeft->Add(
m_FileTree, 1, wxALL|wxEXPAND, 5 );
39 bSizer7 =
new wxBoxSizer( wxHORIZONTAL );
42 bSizerLeft->Add( bSizer7, 0, wxEXPAND, 5 );
59 bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
61 wxBoxSizer* bSizerLower;
62 bSizerLower =
new wxBoxSizer( wxHORIZONTAL );
64 m_stDirChoice =
new wxStaticText(
this, wxID_ANY,
_(
"Available paths:"), wxDefaultPosition, wxDefaultSize, 0 );
66 bSizerLower->Add(
m_stDirChoice, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxRIGHT|wxTOP, 5 );
68 wxArrayString m_dirChoicesChoices;
69 m_dirChoices =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_dirChoicesChoices, 0 );
71 bSizerLower->Add(
m_dirChoices, 1, wxTOP|wxBOTTOM|wxRIGHT, 5 );
73 m_cfgPathsButt =
new wxButton(
this, wxID_ANY,
_(
"Configure Paths"), wxDefaultPosition, wxDefaultSize, 0 );
74 bSizerLower->Add(
m_cfgPathsButt, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
77 bSizerMain->Add( bSizerLower, 0, wxEXPAND, 5 );
80 bSizer6 =
new wxBoxSizer( wxHORIZONTAL );
82 m_EmbedModelCb =
new wxCheckBox(
this, wxID_ANY,
_(
"Embed Model"), wxDefaultPosition, wxDefaultSize, 0 );
86 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
95 bSizer6->Add(
m_sdbSizer, 0, wxEXPAND|wxALL, 5 );
98 bSizerMain->Add( bSizer6, 0, wxEXPAND, 5 );
101 this->SetSizer( bSizerMain );
103 bSizerMain->Fit(
this );
105 this->Centre( wxBOTH );
wxStaticText * m_stDirChoice
wxBoxSizer * m_Sizer3Dviewer
virtual void OnFileActivated(wxCommandEvent &event)
wxButton * m_cfgPathsButt
virtual void SetRootDir(wxCommandEvent &event)
~DIALOG_SELECT_3D_MODEL_BASE()
wxButton * m_sdbSizerCancel
wxStdDialogButtonSizer * m_sdbSizer
void m_splitterWinOnIdle(wxIdleEvent &)
wxSplitterWindow * m_splitterWin
virtual void Cfg3DPaths(wxCommandEvent &event)
DIALOG_SELECT_3D_MODEL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Select 3D Model"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnSelectionChanged(wxCommandEvent &event)
wxGenericDirCtrl * m_FileTree
wxCheckBox * m_EmbedModelCb
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...