+ // smart phones does not support or do not waste space for wxButtons
+#if defined(__SMARTPHONE__)
+
+ wxMenu *dirMenu = new wxMenu;
+ dirMenu->Append(ID_GO_HOME, _("Home"));
+
+ if (style & wxDD_NEW_DIR_BUTTON)
+ {
+ dirMenu->Append(ID_NEW, _("New directory"));
+ }
+
+ dirMenu->AppendCheckItem(ID_SHOW_HIDDEN, _("Show hidden directories"));
+ dirMenu->AppendSeparator();
+ dirMenu->Append(wxID_CANCEL, _("Cancel"));
+
+ SetRightMenu(wxID_ANY, _("Options"), dirMenu);
+
+#else
+
+ // 0) 'New' and 'Home' Buttons
+ wxSizer* buttonsizer = new wxBoxSizer( wxHORIZONTAL );
+
+ // VS: 'Home directory' concept is unknown to MS-DOS
+#if !defined(__DOS__)
+ wxBitmapButton* homeButton =
+ new wxBitmapButton(this, ID_GO_HOME,
+ wxArtProvider::GetBitmap(wxART_GO_HOME, wxART_BUTTON));
+ buttonsizer->Add( homeButton, 0, wxLEFT|wxRIGHT, 10 );
+#endif
+
+ // I'm not convinced we need a New button, and we tend to get annoying
+ // accidental-editing with label editing enabled.
+ if (style & wxDD_NEW_DIR_BUTTON)
+ {
+ wxBitmapButton* newButton =
+ new wxBitmapButton(this, ID_NEW,
+ wxArtProvider::GetBitmap(wxART_NEW_DIR, wxART_BUTTON));
+ buttonsizer->Add( newButton, 0, wxRIGHT, 10 );
+#if wxUSE_TOOLTIPS
+ newButton->SetToolTip(_("Create new directory"));
+#endif
+ }
+
+#if wxUSE_TOOLTIPS
+ homeButton->SetToolTip(_("Go to home directory"));
+#endif
+
+ topsizer->Add( buttonsizer, 0, wxTOP | wxALIGN_RIGHT, 10 );
+
+#endif // __SMARTPHONE__/!__SMARTPHONE__
+