X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d0e2ede057148772415ee526344f1a1597db3ae7..074d2e0449453c9786f2a6431b4d48ceb429ca15:/wxPython/src/_cmndlgs.i?ds=sidebyside diff --git a/wxPython/src/_cmndlgs.i b/wxPython/src/_cmndlgs.i index c731226806..255839ecd3 100644 --- a/wxPython/src/_cmndlgs.i +++ b/wxPython/src/_cmndlgs.i @@ -180,15 +180,20 @@ public: //--------------------------------------------------------------------------- +%{ +// for compatibility only +#define wxHIDE_READONLY 0 +%} + enum { // These will dissappear in 2.8 wxOPEN, wxSAVE, - wxHIDE_READONLY, wxOVERWRITE_PROMPT, wxFILE_MUST_EXIST, wxMULTIPLE, wxCHANGE_DIR, + wxHIDE_READONLY, wxFD_OPEN, wxFD_SAVE, @@ -196,6 +201,7 @@ enum { wxFD_FILE_MUST_EXIST, wxFD_MULTIPLE, wxFD_CHANGE_DIR, + wxFD_PREVIEW, wxFD_DEFAULT_STYLE, }; @@ -283,10 +289,6 @@ example:: \"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif\" ", ""); - DocDeclStr( - void , SetStyle(long style), - "Sets the dialog style.", ""); - DocDeclStr( void , SetFilterIndex(int filterIndex), "Sets the default filter index, starting from zero.", ""); @@ -311,10 +313,6 @@ example:: wxString , GetWildcard() const, "Returns the file dialog wildcard.", ""); - DocDeclStr( - long , GetStyle() const, - "Returns the dialog style.", ""); - DocDeclStr( int , GetFilterIndex() const, "Returns the index into the list of filters supplied, optionally, in @@ -461,7 +459,7 @@ public: DocDeclStr( int , GetSelection(), - "Get the index of teh currently selected item.", ""); + "Get the index of the currently selected item.", ""); DocDeclStr( wxString , GetStringSelection(), @@ -522,6 +520,30 @@ public: //--------------------------------------------------------------------------- +DocStr( wxNumberEntryDialog, +"A dialog with spin control, ok and cancel buttons.", "") + +MustHaveApp(wxNumberEntryDialog); + +class wxNumberEntryDialog : public wxDialog +{ +public: + %pythonAppend wxNumberEntryDialog "self._setOORInfo(self)" + + DocCtorStr( + wxNumberEntryDialog(wxWindow *parent, + const wxString& message, + const wxString& prompt, + const wxString& caption, + long value, long min, long max, + const wxPoint& pos = wxDefaultPosition), + "Constructor. Use ShowModal method to show the dialog.", ""); + + long GetValue(); +}; + +//--------------------------------------------------------------------------- + DocStr(wxFontData, "This class holds a variety of information related to font dialogs and