// Put some wx default wxChar* values into wxStrings.
DECLARE_DEF_STRING(FileSelectorPromptStr);
DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr);
-
+ DECLARE_DEF_STRING(DirSelectorPromptStr);
static const wxString wxPyEmptyString(wxT(""));
%}
const wxString& default_name = wxPyEmptyString,
wxWindow *parent = NULL);
+
+wxString wxDirSelector(const wxString& message = wxPyDirSelectorPromptStr,
+ const wxString& defaultPath = wxPyEmptyString,
+ long style = wxDD_DEFAULT_STYLE,
+ const wxPoint& pos = wxDefaultPosition,
+ wxWindow *parent = NULL);
+
wxString wxGetTextFromUser(const wxString& message,
const wxString& caption = wxPyEmptyString,
const wxString& default_value = wxPyEmptyString,
void wxFlushEvents();
#endif
+wxWindow* wxGetTopLevelParent(wxWindow *win);
+
//---------------------------------------------------------------------------
// Resource System
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 {
// 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 );
+
};
static void SetTimestamp(const wxString& ts);
static const wxString& GetTimestamp();
- bool GetVerbose() const { return m_bVerbose; }
+ bool GetVerbose() const;
static wxTraceMask GetTraceMask();
static bool IsAllowedTraceMask(const wxString& mask);
};
-class wxLogNull
-{
-public:
- wxLogNull();
- ~wxLogNull();
-};
-
-
class wxLogChain : public wxLog
{
public:
%name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const wxString& szFormat);
void wxLogSysError(const wxString& szFormat);
+// Suspress logging while an instance of this class exists
+class wxLogNull
+{
+public:
+ wxLogNull();
+ ~wxLogNull();
+};
+
+
+
%{
-// A Log class that can be derived from in wxPython
+// A wxLog class that can be derived from in wxPython
class wxPyLog : public wxLog {
public:
wxPyLog() : wxLog() {}