use generic dialogs under Palm (generic.diff part of patch 1894861)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,6 +202,9 @@ wxSaveFileSelector(const wxString& what,
|
||||
#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
|
||||
|
@@ -435,7 +435,7 @@ protected:
|
||||
#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__)
|
||||
|
@@ -251,7 +251,7 @@ size_t wxGetAvailableDrives(wxArrayString &paths, wxArrayString &names, wxArrayI
|
||||
}
|
||||
}
|
||||
|
||||
#elif defined(__UNIX__)
|
||||
#elif defined(__UNIX__) || defined(__WXPALMOS__)
|
||||
paths.Add(wxT("/"));
|
||||
names.Add(wxT("/"));
|
||||
icon_ids.Add(wxFileIconsTable::computer);
|
||||
|
@@ -33,6 +33,7 @@
|
||||
#include "wx/dirctrl.h"
|
||||
#include "wx/generic/dirdlgg.h"
|
||||
#include "wx/artprov.h"
|
||||
#include "wx/menu.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
|
@@ -1178,9 +1178,11 @@ bool wxGenericFileCtrl::SetFilename( const wxString& name )
|
||||
|
||||
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( "*." ) )
|
||||
|
@@ -19,7 +19,7 @@
|
||||
#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
|
||||
|
||||
@@ -53,7 +53,11 @@
|
||||
#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>
|
||||
@@ -82,6 +86,7 @@
|
||||
#if defined(__UNIX__) || defined(__DOS__)
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#endif // ! __WXPALMOS5__
|
||||
|
||||
#if defined(__WXWINCE__)
|
||||
#define IsTopMostDir(dir) (dir == wxT("\\") || dir == wxT("/"))
|
||||
|
Reference in New Issue
Block a user