]> git.saurik.com Git - wxWidgets.git/commitdiff
ifacecheck fixes
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 28 Oct 2008 14:29:36 +0000 (14:29 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Tue, 28 Oct 2008 14:29:36 +0000 (14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/toplevel.h
interface/wx/treebase.h
interface/wx/treectrl.h
interface/wx/uri.h
interface/wx/url.h
interface/wx/ustring.h
interface/wx/variant.h
interface/wx/window.h
interface/wx/xrc/xmlres.h

index aded9fab57d9dd0d8e7a81ae2832e91a8103c873..2c30dada11b2e335c6a8f5ba93e948e32d851400 100644 (file)
@@ -99,7 +99,7 @@ public:
 
         @see GetIcons()
     */
-    const wxIcon GetIcon() const;
+    wxIcon GetIcon() const;
 
     /**
         Returns all icons associated with the window, there will be none of them
@@ -108,7 +108,7 @@ public:
 
         @see wxIconBundle
     */
-    const wxIconBundle GetIcons() const;
+    const wxIconBundle& GetIcons() const;
 
     /**
         Gets a string containing the window title.
@@ -133,7 +133,7 @@ public:
 
         @see IsIconized(), Maximize(), wxIconizeEvent.
     */
-    void Iconize(bool iconize);
+    virtual void Iconize(bool iconize = true);
 
     /**
         Returns @true if this window is currently active, i.e. if the user is
@@ -184,7 +184,7 @@ public:
 
         @see Iconize()
     */
-    void Maximize(bool maximize);
+    virtual void Maximize(bool maximize = true);
 
     /**
         Use a system-dependent way to attract users attention to the window when
@@ -210,7 +210,7 @@ public:
 
         @see GetDefaultItem()
     */
-    void SetDefaultItem(wxWindow* win);
+    wxWindow* SetDefaultItem(wxWindow* win);
 
     /**
         Sets the icon for this window.
@@ -368,7 +368,7 @@ public:
             fully transparent, and a value of 255 sets the window to be fully
             opaque.
     */
-    virtual bool SetTransparent(int alpha);
+    virtual bool SetTransparent(wxByte alpha);
 
     /**
         This virtual function is not meant to be called directly but can be
index 6debc4fae1b9d816249375272294ceb166ea0639..4218dac815075cf36aa465ba4126d143d482d5c3 100644 (file)
@@ -88,7 +88,7 @@ public:
     /**
         Returns the item associated with this node.
     */
-    const wxTreeItemId GetId();
+    const wxTreeItemId& GetId() const;
 
     /**
         Sets the item associated with this node.
@@ -98,7 +98,7 @@ public:
 
 /**
     Indicates which type to associate an image with a wxTreeCtrl item.
-    
+
     @see wxTreeCtrl::GetItemImage(), wxTreeCtrl::SetItemImage()
 */
 enum wxTreeItemIcon
index 3a38670fcf9d061d15d45d759117a39cbcd08987..16236a68459cb4456c5ad78c1c0eaaf15231dcb9 100644 (file)
@@ -155,12 +155,12 @@ public:
 
         @see Create(), wxValidator
     */
-    wxTreeCtrl(wxWindow* parent, wxWindowID id,
+    wxTreeCtrl(wxWindow* parent, wxWindowID id = wxID_ANY,
                const wxPoint& pos = wxDefaultPosition,
                const wxSize& size = wxDefaultSize,
-               long style = wxTR_HAS_BUTTONS,
+               long style = wxTR_DEFAULT_STYLE,
                const wxValidator& validator = wxDefaultValidator,
-               const wxString& name = "treeCtrl");
+               const wxString& name = wxTreeCtrlNameStr);
 
 
     /**
@@ -253,15 +253,15 @@ public:
     virtual void CollapseAndReset(const wxTreeItemId& item);
 
     /**
-        Creates the tree control. See wxTreeCtrl::wxTreeCtrl() for further
-        details.
+        Creates the tree control.
+        See wxTreeCtrl::wxTreeCtrl() for further details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
+    bool Create(wxWindow* parent, wxWindowID id = wxID_ANY,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
-                long style = wxTR_HAS_BUTTONS,
+                long style = wxTR_DEFAULT_STYLE,
                 const wxValidator& validator = wxDefaultValidator,
-                const wxString& name = "treeCtrl");
+                const wxString& name = wxTreeCtrlNameStr);
 
     /**
         Deletes the specified item. A EVT_TREE_DELETE_ITEM() event will be
@@ -298,7 +298,8 @@ public:
 
         @see EndEditLabel(), wxTreeEvent
     */
-    void EditLabel(const wxTreeItemId& item);
+    virtual wxTextCtrl *EditLabel(const wxTreeItemId& item,
+                                  wxClassInfo* textCtrlClass = CLASSINFO(wxTextCtrl));
 
     /**
         Ends label editing. If @a cancelEdit is @true, the edit will be
@@ -309,7 +310,7 @@ public:
 
         @see EditLabel()
     */
-    void EndEditLabel(bool cancelEdit);
+    virtual void EndEditLabel(const wxTreeItemId& item, bool discardChanges = false);
 
     /**
         Scrolls and/or expands items to ensure that the given item is visible.
@@ -366,8 +367,8 @@ public:
         returns the total number of descendants, otherwise only one level of
         children is counted.
     */
-    unsigned int GetChildrenCount(const wxTreeItemId& item,
-                                  bool recursively = true) const;
+    virtual size_t GetChildrenCount(const wxTreeItemId& item,
+                                    bool recursively = true) const;
 
     /**
         Returns the number of items in the control.
@@ -417,7 +418,7 @@ public:
     /**
         Returns the current tree control indentation.
     */
-    int GetIndent() const;
+    virtual unsigned int GetIndent() const;
 
     /**
         Returns the background colour of the item.
@@ -462,13 +463,6 @@ public:
     */
     virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
 
-    /**
-        Gets the selected item image (this function is obsolete, use @ref
-        GetItemImage() "GetItemImage"( @a item, ::wxTreeItemIcon_Selected)
-        instead).
-    */
-    int GetItemSelectedImage(const wxTreeItemId& item) const;
-
     /**
         Gets the specified item state.
     */
@@ -580,7 +574,7 @@ public:
         Python list of @ref wxTreeItemId "wxTreeItemId"s.
         @endWxPythonOnly
     */
-    unsigned int GetSelections(wxArrayTreeItemIds& selection) const;
+    virtual size_t GetSelections(wxArrayTreeItemIds& selection) const;
 
     /**
         Returns the state image list (from which application-defined state
@@ -756,7 +750,7 @@ public:
     /**
         Sets the indentation for the tree control.
     */
-    void SetIndent(int indent);
+    virtual void SetIndent(unsigned int indent);
 
     /**
         Sets the colour of the item's background.
@@ -818,13 +812,6 @@ public:
     virtual void SetItemImage(const wxTreeItemId& item, int image,
                               wxTreeItemIcon which = wxTreeItemIcon_Normal);
 
-    /**
-        Sets the selected item image (this function is obsolete, use @ref
-        SetItemImage() "SetItemImage"( @a item, ::wxTreeItemIcon_Selected )
-        instead).
-    */
-    void SetItemSelectedImage(const wxTreeItemId& item, int selImage);
-
     /**
         Sets the specified item state. The value of @a state may be:
         - @c wxTREE_ITEMSTATE_NONE: to disable the item state (the state image will
@@ -980,7 +967,8 @@ public:
     /**
         Constructor, used by wxWidgets itself only.
     */
-    wxTreeEvent(wxEventType commandType, wxTreeCtrl* tree);
+    wxTreeEvent(wxEventType commandType, wxTreeCtrl* tree,
+                const wxTreeItemId& item = wxTreeItemId());
 
     /**
         Returns the item (valid for all events).
@@ -996,12 +984,12 @@ public:
     /**
         Returns the key event for EVT_TREE_KEY_DOWN() events.
     */
-    const wxKeyEvent GetKeyEvent() const;
+    const wxKeyEvent& GetKeyEvent() const;
 
     /**
         Returns the label if the event is a begin or end edit label event.
     */
-    const wxString GetLabel() const;
+    const wxString& GetLabel() const;
 
     /**
         Returns the old item index (valid for EVT_TREE_ITEM_CHANGING() and
index 455e5ed3476930e2334a856cdfdeb763ca64bf66..3bf6f3738939da1d360f82b4d4de8311153f6dc7 100644 (file)
@@ -67,13 +67,15 @@ public:
         Creates an empty URI.
     */
     wxURI();
+
     /**
         Constructor for quick creation.
 
         @param uri
             URI (Uniform Resource Identifier) to initialize with.
     */
-    wxURI(const wxChar* uri);
+    wxURI(const wxString& uri);
+
     /**
         Copies this URI from another URI.
 
@@ -104,13 +106,12 @@ public:
     /**
         Creates this URI from the @a uri string.
 
-        Returns the position at which parsing stopped (there is no such thing
-        as an "invalid" wxURI).
+        Returns @true if this instance was correctly initialized.
 
         @param uri
             String to initialize from.
     */
-    const wxChar* Create(const wxString uri);
+    bool Create(const wxString& uri);
 
     /**
         Obtains the fragment of this URI.
@@ -125,7 +126,7 @@ public:
     /**
         Obtains the host type of this URI, which is one of wxURIHostType.
     */
-    const wxURIHostType& GetHostType() const;
+    wxURIHostType GetHostType() const;
 
     /**
         Returns the password part of the userinfo component of this URI. Note
@@ -134,7 +135,7 @@ public:
 
         @c "http://<user>:<password>@mysite.com/mypath"
     */
-    const wxString& GetPassword() const;
+    wxString GetPassword() const;
 
     /**
         Returns the (normalized) path of the URI.
@@ -199,7 +200,7 @@ public:
 
         @c "http://<user>:<password>@mysite.com/mypath"
     */
-    const wxString& GetUser() const;
+    wxString GetUser() const;
 
     /**
         Returns the UserInfo component of the URI.
@@ -293,6 +294,6 @@ public:
         @param uricomp
             URI to compare to.
     */
-    void operator ==(const wxURI& uricomp);
+    bool operator==(const wxURI& uricomp) const;
 };
 
index 5b4974044155df7bd281f34546fc94f0d21d7a8c..f1c6e73c9711582e8e617a6384c2107f9aaeba34 100644 (file)
@@ -94,7 +94,7 @@ public:
     /**
         Returns a reference to the protocol which will be used to get the URL.
     */
-    wxProtocol GetProtocol();
+    wxProtocol& GetProtocol();
 
     /**
         Returns @true if this object is correctly initialized, i.e. if
index a6587f3d7b2fdbb2b35d51d7fb8a09d331e61b55..c42b7db65ea3c572f599ff859351e55c0431a0ac 100644 (file)
     as a squence of simple 8-bit charactesr and also different from
     @c std::wstring which stores the string differently depending on
     the definition of wchar_t.
-    
+
     The main purpose of wxUString is a to give users a Unicode string
-    class that has O(1) access to its content, to be identical on all 
+    class that has O(1) access to its content, to be identical on all
     platforms and to be easily convertable to wxString as well as other
     ways to store strings (C string literals, wide character
     string literals, character buffer, etc) by providing several overloads
     and built-in conversions to and from the various string formats.
-    
+
     wxUString derives from @c std::basic_string<wxChar32> and therefore
     offers the complete API of @c std::string.
-    
+
     @library{wxbase}
     @category{data}
-    
+
     @see wxString, @ref overview_string "wxString overview", @ref overview_unicode
     "Unicode overview"
 */
@@ -38,7 +38,7 @@
 
 class WXDLLIMPEXP_BASE wxUString: public std::basic_string<wxChar32>
 {
-public: 
+public:
     /**
         Default constructor.
     */
@@ -50,11 +50,11 @@ public:
     /**
         Constructs a string from a 32-bit string literal.
     */
-    wxUString( const wxChar32 *str );                            
+    wxUString( const wxChar32 *str );
     /**
         Constructs a string from 32-bit string buffer.
     */
-    wxUString( const wxU32CharBuffer &buf );                   
+    wxUString( const wxU32CharBuffer &buf );
     /**
         Constructs a string from C string literal using wxConvLibc to convert it to Unicode.
     */
@@ -106,28 +106,28 @@ public:
     /**
         Constructs a string from @a n characters @a ch.
     */
-    wxUString( size_type n, char ch );
+    wxUString( size_t n, char ch );
     /**
         Constructs a string from @a n characters @a ch.
     */
-    wxUString( size_type n, wxChar16 ch );
+    wxUString( size_t n, wxChar16 ch );
     /**
         Constructs a string from @a n characters @a ch.
     */
-    wxUString( size_type n, wxChar32 ch );
+    wxUString( size_t n, wxChar32 ch );
     /**
         Constructs a string from @a n characters @a ch.
     */
-    wxUString( size_type n, wxUniChar ch );
+    wxUString( size_t n, wxUniChar ch );
     /**
         Constructs a string from @a n characters @a ch.
     */
-    wxUString( size_type n, wxUniCharRef ch );
-    
+    wxUString( size_t n, wxUniCharRef ch );
+
     /**
         Static construction of a wxUString from a 7-bit ASCII string
     */
-    static wxUString FromAscii( const char *str, size_type n );
+    static wxUString FromAscii( const char *str, size_t n );
     /**
         Static construction of a wxUString from a 7-bit ASCII string
     */
@@ -135,7 +135,7 @@ public:
     /**
         Static construction of a wxUString from a UTF-8 encoded string
     */
-    static wxUString FromUTF8( const char *str, size_type n );
+    static wxUString FromUTF8( const char *str, size_t n );
     /**
         Static construction of a wxUString from a UTF-8 encoded string
     */
@@ -143,46 +143,46 @@ public:
     /**
         Static construction of a wxUString from a UTF-16 encoded string
     */
-    static wxUString FromUTF16( const wxChar16 *str, size_type n );
+    static wxUString FromUTF16( const wxChar16 *str, size_t n );
     /**
         Static construction of a wxUString from a UTF-16 encoded string
     */
     static wxUString FromUTF16( const wxChar16 *str );
-    
+
 
     /**
        Assigment from a 7-bit ASCII string literal
-    */    
+    */
     wxUString &assignFromAscii( const char *str );
     /**
        Assigment from a 7-bit ASCII string literal
-    */    
-    wxUString &assignFromAscii( const char *str, size_type n );
+    */
+    wxUString &assignFromAscii( const char *str, size_t n );
     /**
        Assigment from a UTF-8 string literal
-    */    
+    */
     wxUString &assignFromUTF8( const char *str );
     /**
        Assigment from a UTF-8 string literal
-    */    
-    wxUString &assignFromUTF8( const char *str, size_type n );
+    */
+    wxUString &assignFromUTF8( const char *str, size_t n );
     /**
        Assigment from a UTF-16 string literal
-    */    
+    */
     wxUString &assignFromUTF16( const wxChar16* str );
     /**
        Assigment from a UTF-16 string literal
-    */    
-    wxUString &assignFromUTF16( const wxChar16* str, size_type n );
+    */
+    wxUString &assignFromUTF16( const wxChar16* str, size_t n );
     /**
        Assigment from a C string literal using wxConvLibc
-    */    
+    */
     wxUString &assignFromCString( const char* str );
     /**
        Assigment from a C string literal using @a conv
-    */    
+    */
     wxUString &assignFromCString( const char* str, const wxMBConv &conv );
+
     /**
         Conversion to a UTF-8 string
     */
@@ -191,7 +191,7 @@ public:
         Conversion to a UTF-16 string
     */
     wxU16CharBuffer utf16_str() const;
-    
+
     /**
         Conversion to a wide character string (either UTF-16
         or UCS-4, depending on the size of wchar_t).
@@ -209,20 +209,20 @@ public:
        single and repeated characters etc.
     */
     wxUString &assign( const wxUString &str );
-     
+
     /**
        Appending. wxUString additionally provides overloads for
        wxString, C string, UTF-16 strings, 32-bit strings, char buffers,
        single and repeated characters etc.
     */
     wxUString &append( const wxUString &s );
-    
+
     /**
        Insertion. wxUString additionally provides overloads for
        wxString, C string, UTF-16 strings, 32-bit strings, char buffers,
        single characters etc.
     */
-    wxUString &insert( size_type pos, const wxUString &s );
+    wxUString &insert( size_t pos, const wxUString &s );
 
     /**
        Assignment operator. wxUString additionally provides overloads for
@@ -230,14 +230,14 @@ public:
        single characters etc.
     */
     inline wxUString& operator=(const wxUString& s);
-    
+
     /**
        Concatenation operator. wxUString additionally provides overloads for
        wxString, C string, UTF-16 strings, 32-bit strings, char buffers,
        single characters etc.
     */
     inline wxUString& operator+=(const wxUString& s);
-    
+
 };
 
     /**
index 3da7997746978e3829ebecc3fb3e2fc6348fe00d..c1dfa9b0c68d44f08ed3823ce007a0f37c059966 100644 (file)
@@ -160,12 +160,12 @@ public:
     /**
         Constructs a variant from a wxDateTime.
     */
-    wxVariant(wxDateTime& val, const wxString& name = wxEmptyString);
+    wxVariant(const wxDateTime& val, const wxString& name = wxEmptyString);
 
     /**
         Constructs a variant from a wxArrayString.
     */
-    wxVariant(wxArrayString& val, const wxString& name = wxEmptyString);
+    wxVariant(const wxArrayString& val, const wxString& name = wxEmptyString);
 
     /**
         Destructor.
@@ -266,7 +266,7 @@ public:
     /**
         Returns the character value.
     */
-    wxChar GetChar() const;
+    wxUniChar GetChar() const;
 
     /**
         Returns a pointer to the internal variant data. To take ownership of
@@ -293,7 +293,7 @@ public:
     /**
         Returns a constant reference to the variant name.
     */
-    const wxString GetName() const;
+    const wxString& GetName() const;
 
     /**
         Gets the string value.
@@ -536,7 +536,8 @@ public:
     /**
         Reads the data from @a stream.
     */
-    bool Read(ostream& stream);
+    virtual bool Read(istream& stream);
+
     /**
         Reads the data from @a string.
     */
index eadd1753976ba4ee8185c53e4819607371db7c65..ade519c6fb2d07c1ae3f409206949c559bf2288d 100644 (file)
@@ -745,12 +745,6 @@ public:
     */
     wxAccessible* GetAccessible();
 
-    /**
-        @deprecated
-        This method is deprecated, use GetEffectiveMinSize() instead.
-    */
-    wxSize GetAdjustedBestSize() const;
-
     /**
         Returns the background colour of the window.
 
index 67c7951101b53c587901ddb38e900de6a7bd1f2e..93c10b126a39420d61c24af26f8542606ff80463 100644 (file)
@@ -54,7 +54,7 @@ public:
     */
     wxXmlResource(const wxString& filemask,
                   int flags = wxXRC_USE_LOCALE,
-                  const wxString domain = wxEmptyString);
+                  const wxString& domain = wxEmptyString);
 
     /**
         Constructor.
@@ -67,7 +67,7 @@ public:
             This provides a way to allow the strings to only come from a specific catalog.
     */
     wxXmlResource(int flags = wxXRC_USE_LOCALE,
-                  const wxString domain = wxEmptyString);
+                  const wxString& domain = wxEmptyString);
 
     /**
         Destructor.