X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55811cde2d57fdfe78eee3d1adcdff1ddc5cb719..fe45b493dcc42fea4ad4f781a4fb7844d2e95fd0:/wxPython/src/_toplvl.i diff --git a/wxPython/src/_toplvl.i b/wxPython/src/_toplvl.i index 4a95c46301..a75afc47b8 100644 --- a/wxPython/src/_toplvl.i +++ b/wxPython/src/_toplvl.i @@ -30,13 +30,11 @@ enum wxMINIMIZE, wxMAXIMIZE, wxCLOSE_BOX, - wxTHICK_FRAME, wxSYSTEM_MENU, wxMINIMIZE_BOX, wxMAXIMIZE_BOX, wxTINY_CAPTION_HORIZ, wxTINY_CAPTION_VERT, - wxRESIZE_BOX, wxRESIZE_BORDER, wxDIALOG_NO_PARENT, @@ -54,16 +52,22 @@ enum wxFRAME_EX_METAL, wxDIALOG_EX_METAL, wxWS_EX_CONTEXTHELP, - - // Obsolete - wxDIALOG_MODAL, - wxDIALOG_MODELESS, - wxUSER_COLOURS, - wxNO_3D, wxFRAME_EX_CONTEXTHELP, wxDIALOG_EX_CONTEXTHELP, -}; +}; + +%pythoncode { + %# deprecated + RESIZE_BOX = MAXIMIZE_BOX + THICK_FRAME = RESIZE_BORDER + + %# Obsolete + wxDIALOG_MODAL = 0 + wxDIALOG_MODELESS = 0 + wxUSER_COLOURS = 0 + wxNO_3D = 0 +} enum @@ -378,6 +382,10 @@ public: void SetEscapeId(int escapeId); int GetEscapeId() const; + // Returns the parent to use for modal dialogs if the user did not specify it + // explicitly + wxWindow *GetParentForModalDialog(wxWindow *parent = NULL) const; + // splits text up at newlines and places the // lines into a vertical wxBoxSizer wxSizer* CreateTextSizer( const wxString &message ); @@ -425,6 +433,14 @@ public: //--------------------------------------------------------------------------- %newgroup +%{ +#define wxDEFAULT_MINIFRAME_STYLE wxCAPTION | wxRESIZE_BORDER | wxTINY_CAPTION_HORIZ +%} + +enum { + wxDEFAULT_MINIFRAME_STYLE +}; + MustHaveApp(wxMiniFrame); @@ -439,7 +455,7 @@ public: const wxString& title = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, + long style = wxDEFAULT_MINIFRAME_STYLE, const wxString& name = wxPyFrameNameStr); %RenameCtor(PreMiniFrame, wxMiniFrame()); @@ -448,7 +464,7 @@ public: const wxString& title = wxPyEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - long style = wxDEFAULT_FRAME_STYLE, + long style = wxDEFAULT_MINIFRAME_STYLE, const wxString& name = wxPyFrameNameStr); };