X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a74d1415bbea79a35a56c7a48d8e8a5edd54a8c..8721cada6f4233f23ad90309093c971022aad0af:/wxPython/src/misc2.i diff --git a/wxPython/src/misc2.i b/wxPython/src/misc2.i index c8049586dd..ddcb749eb3 100644 --- a/wxPython/src/misc2.i +++ b/wxPython/src/misc2.i @@ -86,7 +86,7 @@ wxString wxSaveFileSelector(const wxString& what, wxString wxDirSelector(const wxString& message = wxPyDirSelectorPromptStr, const wxString& defaultPath = wxPyEmptyString, - long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxDD_NEW_DIR_BUTTON, + long style = wxDD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, wxWindow *parent = NULL); @@ -303,6 +303,15 @@ enum wxSystemFeature wxSYS_CAN_ICONIZE_FRAME }; +// values for different screen designs +enum wxSystemScreen +{ + wxSYS_SCREEN_NONE = 0, // not yet defined + wxSYS_SCREEN_DESKTOP, // >= 800x600 + wxSYS_SCREEN_SMALL, // >= 640x480 + wxSYS_SCREEN_PDA, // >= 320x240 + wxSYS_SCREEN_TINY // < +}; class wxSystemSettings { @@ -319,6 +328,13 @@ public: // return true if the port has certain feature static bool HasFeature(wxSystemFeature index); + // Get system screen design (desktop, pda, ..) used for + // laying out various dialogs. + static wxSystemScreen GetScreen(); + + // Override default. + static void SetScreen( wxSystemScreen screen ); + }; @@ -657,6 +673,12 @@ void wxLogStatus(const wxString& szFormat); %name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const wxString& szFormat); void wxLogSysError(const wxString& szFormat); +// wxLogFatalError helper: show the (fatal) error to the user in a safe way, +// i.e. without using wxMessageBox() for example because it could crash +void wxSafeShowMessage(const wxString& title, const wxString& text); + + + // Suspress logging while an instance of this class exists class wxLogNull {