#include "wx/cocoa/filedlg.h"
#elif defined(__WXPM__)
#include "wx/os2/filedlg.h"
+#elif defined(__WXPALMOS__)
+ #define wxHAS_GENERIC_FILEDIALOG
+ #include "wx/generic/filedlgg.h"
#endif
#endif // wxUSE_FILEDLG
#if defined(__WXUNIVERSAL__)
#include "wx/generic/treectlg.h"
#elif defined(__WXPALMOS__)
- #include "wx/palmos/treectrl.h"
+ #include "wx/generic/treectlg.h"
#elif defined(__WXMSW__)
#include "wx/msw/treectrl.h"
#elif defined(__WXMOTIF__)
}
}
-#elif defined(__UNIX__)
+#elif defined(__UNIX__) || defined(__WXPALMOS__)
paths.Add(wxT("/"));
names.Add(wxT("/"));
icon_ids.Add(wxFileIconsTable::computer);
#include "wx/dirctrl.h"
#include "wx/generic/dirdlgg.h"
#include "wx/artprov.h"
+#include "wx/menu.h"
// ----------------------------------------------------------------------------
// constants
void wxGenericFileCtrl::DoSetFilterIndex( int filterindex )
{
- const wxString& str = (wx_static_cast(wxStringClientData *,
- m_choice->GetClientObject( filterindex )))
- ->GetData();
+ wxClientData *pcd = m_choice->GetClientObject( filterindex );
+ if ( !pcd )
+ return;
+
+ const wxString& str = ((wx_static_cast(wxStringClientData *, pcd))->GetData());
m_list->SetWild( str );
m_filterIndex = filterindex;
if ( str.Left( 2 ) == wxT( "*." ) )
#if wxUSE_FILEDLG
// NOTE : it probably also supports MAC, untested
-#if !defined(__UNIX__) && !defined(__DOS__) && !defined(__WIN32__) && !defined(__OS2__)
+#if !defined(__UNIX__) && !defined(__DOS__) && !defined(__WIN32__) && !defined(__OS2__) && !defined(__PALMOS__)
#error wxGenericFileDialog currently only supports Unix, win32 and DOS
#endif
#if wxUSE_TOOLTIPS
#include "wx/tooltip.h"
#endif
+#if wxUSE_CONFIG
+ #include "wx/config.h"
+#endif
+#ifndef __WXPALMOS5__
#ifndef __WXWINCE__
#include <sys/types.h>
#include <sys/stat.h>
#if defined(__UNIX__) || defined(__DOS__)
#include <unistd.h>
#endif
+#endif // ! __WXPALMOS5__
#if defined(__WXWINCE__)
#define IsTopMostDir(dir) (dir == wxT("\\") || dir == wxT("/"))