]> git.saurik.com Git - wxWidgets.git/commitdiff
Changes needed to get upto date with the latest wx CVS
authorRobin Dunn <robin@alldunn.com>
Wed, 24 Sep 2003 20:09:53 +0000 (20:09 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 24 Sep 2003 20:09:53 +0000 (20:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_defs.i
wxPython/src/_extras.py
wxPython/src/controls.i
wxPython/src/controls2.i
wxPython/src/fonts.i
wxPython/src/gdi.i
wxPython/src/windows.i
wxPython/src/windows2.i

index 54122585c6e7e83c777d6ec3e3b25a0c8e36f263..5e58282c49d2d8d600cf315040f96b96d8be6ada 100644 (file)
@@ -368,6 +368,7 @@ enum {
     wxID_HELP_PROCEDURES,
     wxID_HELP_CONTEXT,
     wxID_CLOSE_ALL,
     wxID_HELP_PROCEDURES,
     wxID_HELP_CONTEXT,
     wxID_CLOSE_ALL,
+    wxID_PREFERENCES,
 
     wxID_CUT,
     wxID_COPY,
 
     wxID_CUT,
     wxID_COPY,
@@ -446,6 +447,7 @@ enum {
     wxMENU_TEAROFF,
     wxMB_DOCKABLE,
     wxNO_FULL_REPAINT_ON_RESIZE,
     wxMENU_TEAROFF,
     wxMB_DOCKABLE,
     wxNO_FULL_REPAINT_ON_RESIZE,
+    wxFULL_REPAINT_ON_RESIZE,
 
     wxLEFT,
     wxRIGHT,
 
     wxLEFT,
     wxRIGHT,
index 7fdae3e4d2d28ad8691988345982e5d0e05b270c..0c6ab0c90f698814827fe81f275d7cbcec1c01f1 100644 (file)
@@ -954,8 +954,11 @@ of your Mac."""
         # KeyboardInterrupt???)  but will later segfault on exit.  By
         # setting the default handler then the app will exit, as
         # expected (depending on platform.)
         # KeyboardInterrupt???)  but will later segfault on exit.  By
         # setting the default handler then the app will exit, as
         # expected (depending on platform.)
-        import signal
-        signal.signal(signal.SIGINT, signal.SIG_DFL)
+        try:
+            import signal
+            signal.signal(signal.SIGINT, signal.SIG_DFL)
+        except:
+            pass
 
         # this initializes wxWindows and then calls our OnInit
         _wxStart(self.OnInit)
 
         # this initializes wxWindows and then calls our OnInit
         _wxStart(self.OnInit)
index 461262b48eaad8eb8942280d59872125c061fa51..e2d6e99dbe3eae5110012d40089ae2db311712a5 100644 (file)
@@ -557,6 +557,7 @@ public:
     int GetRange();
     int GetShadowWidth();
     int GetValue();
     int GetRange();
     int GetShadowWidth();
     int GetValue();
+    bool IsVertical() const;
     void SetBezelFace(int width);
     void SetRange(int range);
     void SetShadowWidth(int width);
     void SetBezelFace(int width);
     void SetRange(int range);
     void SetShadowWidth(int width);
@@ -881,6 +882,9 @@ public:
     bool LoadFile(const wxString& file);
     bool SaveFile(const wxString& file = wxPyEmptyString);
 
     bool LoadFile(const wxString& file);
     bool SaveFile(const wxString& file = wxPyEmptyString);
 
+    // sets the dirty flag
+    virtual void MarkDirty() = 0;
+
     // clears the dirty flag
     void DiscardEdits();
 
     // clears the dirty flag
     void DiscardEdits();
 
index f88d140f453d5a8d023b3595de8fc292c8b0c8d4..9096bc7f57cdafed4fc1e1157affb7378bca06ab 100644 (file)
@@ -476,6 +476,9 @@ public:
     // or small icon view)
     int GetCountPerPage() const;
 
     // or small icon view)
     int GetCountPerPage() const;
 
+    // return the total area occupied by all the items (icon/small icon only)
+    wxRect GetViewRect() const;
+    
 #ifdef __WXMSW__
     // Gets the edit control for editing labels.
     wxTextCtrl* GetEditControl() const;
 #ifdef __WXMSW__
     // Gets the edit control for editing labels.
     wxTextCtrl* GetEditControl() const;
@@ -556,10 +559,8 @@ public:
     // Gets the number of columns in the list control
     int GetColumnCount() const;
 
     // Gets the number of columns in the list control
     int GetColumnCount() const;
 
-    // Retrieves the spacing between icons in pixels.
-    // If small is TRUE, gets the spacing for the small icon
-    // view, otherwise the large icon view.
-    int GetItemSpacing(bool isSmall) const;
+    // get the horizontal and vertical components of the item spacing
+    wxSize GetItemSpacing() const;
 
 #ifndef __WXMSW__
     void SetItemSpacing( int spacing, bool isSmall = FALSE );
 
 #ifndef __WXMSW__
     void SetItemSpacing( int spacing, bool isSmall = FALSE );
index 289562f068d842557ffaae7bfb9d900b426062ff..fc3cf551f3e582f1fc76863216fb0b4e6ff81cc2 100644 (file)
@@ -131,6 +131,12 @@ enum wxFontEncoding
 
     wxFONTENCODING_UTF7,            // UTF-7 Unicode encoding
     wxFONTENCODING_UTF8,            // UTF-8 Unicode encoding
 
     wxFONTENCODING_UTF7,            // UTF-7 Unicode encoding
     wxFONTENCODING_UTF8,            // UTF-8 Unicode encoding
+    wxFONTENCODING_UTF16,           // UTF-16 Unicode encoding
+    wxFONTENCODING_UTF16BE,         // UTF-16 Big Endian Unicode encoding
+    wxFONTENCODING_UTF16LE,         // UTF-16 Little Endian Unicode encoding
+    wxFONTENCODING_UTF32,           // UTF-32 Unicode encoding
+    wxFONTENCODING_UTF32BE,         // UTF-32 Big Endian Unicode encoding
+    wxFONTENCODING_UTF32LE,         // UTF-32 Little Endian Unicode encoding
 
     // Far Eastern encodings
         // Chinese
 
     // Far Eastern encodings
         // Chinese
@@ -161,6 +167,9 @@ struct wxNativeFontInfo
     // reset to the default state
     void Init();
 
     // reset to the default state
     void Init();
 
+    // init with the parameters of the given font
+    void InitFromFont(const wxFont& font);
+
     // accessors and modifiers for the font elements
     int GetPointSize() const;
     wxFontStyle GetStyle() const;
     // accessors and modifiers for the font elements
     int GetPointSize() const;
     wxFontStyle GetStyle() const;
@@ -199,30 +208,30 @@ struct wxNativeFontInfo
 
 %{
 // Fix some link errors...  Remove this when these methods get real implementations...
 
 %{
 // Fix some link errors...  Remove this when these methods get real implementations...
-#if defined(__WXGTK__) || defined(__WXX11__)
-#if wxUSE_PANGO
-void wxNativeFontInfo::SetPointSize(int pointsize)
-    { wxFAIL_MSG( _T("not implemented") ); }
+// #if defined(__WXGTK__) || defined(__WXX11__)
+// #if wxUSE_PANGO
+// void wxNativeFontInfo::SetPointSize(int pointsize)
+//     { wxFAIL_MSG( _T("not implemented") ); }
 
 
-void wxNativeFontInfo::SetStyle(wxFontStyle style)
-    { wxFAIL_MSG( _T("not implemented") ); }
+// void wxNativeFontInfo::SetStyle(wxFontStyle style)
+//     { wxFAIL_MSG( _T("not implemented") ); }
 
 
-void wxNativeFontInfo::SetWeight(wxFontWeight weight)
-    { wxFAIL_MSG( _T("not implemented") ); }
+// void wxNativeFontInfo::SetWeight(wxFontWeight weight)
+//     { wxFAIL_MSG( _T("not implemented") ); }
 
 
-void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined))
-    { wxFAIL_MSG( _T("not implemented") ); }
+// void wxNativeFontInfo::SetUnderlined(bool WXUNUSED(underlined))
+//     { wxFAIL_MSG( _T("not implemented") ); }
 
 
-void wxNativeFontInfo::SetFaceName(wxString facename)
-    { wxFAIL_MSG( _T("not implemented") ); }
+// void wxNativeFontInfo::SetFaceName(wxString facename)
+//     { wxFAIL_MSG( _T("not implemented") ); }
 
 
-void wxNativeFontInfo::SetFamily(wxFontFamily family)
-    { wxFAIL_MSG( _T("not implemented") ); }
+// void wxNativeFontInfo::SetFamily(wxFontFamily family)
+//     { wxFAIL_MSG( _T("not implemented") ); }
 
 
-void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding)
-    { wxFAIL_MSG( _T("not implemented") ); }
-#endif
-#endif
+// void wxNativeFontInfo::SetEncoding(wxFontEncoding encoding)
+//     { wxFAIL_MSG( _T("not implemented") ); }
+// #endif
+// #endif
 %}
 
 //---------------------------------------------------------------------------
 %}
 
 //---------------------------------------------------------------------------
@@ -348,7 +357,7 @@ public:
 
     bool IsFixedWidth();
 
 
     bool IsFixedWidth();
 
-    wxNativeFontInfo* GetNativeFontInfo() const;
+    const wxNativeFontInfo* GetNativeFontInfo() const;
     wxString GetNativeFontInfoDesc() const;
     wxString GetNativeFontInfoUserDesc() const;
 
     wxString GetNativeFontInfoDesc() const;
     wxString GetNativeFontInfoUserDesc() const;
 
index d3fe92e1ae9784e35709dba8721f66ec2da9568d..751642779f7a4f7e265830594e9fc29ffbbabf18 100644 (file)
@@ -465,7 +465,7 @@ public:
 
     %pragma(python) addtoclass = "asTuple = Get
     def __str__(self):                  return str(self.asTuple())
 
     %pragma(python) addtoclass = "asTuple = Get
     def __str__(self):                  return str(self.asTuple())
-    def __repr__(self):                 return 'wxColour:' + str(self.asTuple())
+    def __repr__(self):                 return 'wxColour' + str(self.asTuple())
     def __nonzero__(self):              return self.Ok()
     def __getinitargs__(self):          return ()
     def __getstate__(self):             return self.asTuple()
     def __nonzero__(self):              return self.Ok()
     def __getinitargs__(self):          return ()
     def __getstate__(self):             return self.asTuple()
@@ -1210,6 +1210,10 @@ public:
         void Next() {
             (*self) ++;
         }
         void Next() {
             (*self) ++;
         }
+
+        bool __nonzero__() {
+            return self->operator bool();
+        }
     };
 };
 
     };
 };
 
index 41c469a0386dae767fbe05322d10915caab6c2ea..aaecd697c87f2e93f0ee12a7266cadedacf1d5fb 100644 (file)
@@ -879,10 +879,16 @@ public:
                     const wxBitmap& bmpUnchecked = wxNullBitmap);
     //void SetBitmap(const wxBitmap& bmpChecked);
     //wxBitmap GetBitmap(bool bChecked = TRUE);
                     const wxBitmap& bmpUnchecked = wxNullBitmap);
     //void SetBitmap(const wxBitmap& bmpChecked);
     //wxBitmap GetBitmap(bool bChecked = TRUE);
+    
+    void SetDisabledBitmap( const wxBitmap& bmpDisabled );
+    const wxBitmap& GetDisabledBitmap() const;
+   
     void SetMarginWidth(int nWidth);
     int GetMarginWidth();
     static int GetDefaultMarginWidth();
     bool IsOwnerDrawn();
     void SetMarginWidth(int nWidth);
     int GetMarginWidth();
     static int GetDefaultMarginWidth();
     bool IsOwnerDrawn();
+    // switch on/off owner-drawing the item
+    void SetOwnerDrawn(bool ownerDrawn = TRUE);
     void ResetOwnerDrawn();
 #endif
 
     void ResetOwnerDrawn();
 #endif
 
index 7ca8d1843bd24b453497f65c454e961aed6f282b..20d6329a905ba573fd33db89d89bf07d3a889c26 100644 (file)
@@ -129,14 +129,14 @@ public:
     // adds a new page to the control
     virtual bool AddPage(wxWindow *page,
                          const wxString& text,
     // adds a new page to the control
     virtual bool AddPage(wxWindow *page,
                          const wxString& text,
-                         bool bSelect = false,
+                         bool select = false,
                          int imageId = -1);
 
     // the same as AddPage(), but adds the page at the specified position
     virtual bool InsertPage(size_t n,
                             wxWindow *page,
                             const wxString& text,
                          int imageId = -1);
 
     // the same as AddPage(), but adds the page at the specified position
     virtual bool InsertPage(size_t n,
                             wxWindow *page,
                             const wxString& text,
-                            bool bSelect = false,
+                            bool select = false,
                             int imageId = -1) = 0;
 
     // set the currently selected page, return the index of the previously
                             int imageId = -1) = 0;
 
     // set the currently selected page, return the index of the previously