- topsizer->Add( buttonsizer, 0, wxALL | wxCENTER, 10 );
+ topsizer->Add(m_dirCtrl, wxSizerFlags(flagsBorder2).Proportion(1).Expand());
+
+#ifndef __SMARTPHONE__
+ // TODO: Make this an option depending on a flag?
+ wxCheckBox *
+ check = new wxCheckBox(this, ID_SHOW_HIDDEN, _("Show &hidden directories"));
+ topsizer->Add(check, wxSizerFlags(flagsBorder2).Right());
+#endif // !__SMARTPHONE__
+
+ // 2) text ctrl
+ m_input = new wxTextCtrl( this, ID_TEXTCTRL, m_path, wxDefaultPosition );
+ topsizer->Add(m_input, wxSizerFlags(flagsBorder2).Expand());
+
+ // 3) buttons if any
+ wxSizer *buttonSizer = CreateSeparatedButtonSizer(wxOK | wxCANCEL);
+ if ( buttonSizer )
+ {
+ topsizer->Add(buttonSizer, wxSizerFlags().Expand().DoubleBorder());
+ }
+
+#ifdef __SMARTPHONE__
+ // overwrite menu set by CreateSeparatedButtonSizer() call above
+ SetRightMenu(wxID_ANY, _("Options"), dirMenu);
+#endif