X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b18f47d00225c28c8f4152a2b7a1a14bcbe1c7ef..a90280fe1ac7b78563d44afffd1d3b0b521b5cd6:/interface/wx/collpane.h diff --git a/interface/wx/collpane.h b/interface/wx/collpane.h index bc553de157..5718757d1f 100644 --- a/interface/wx/collpane.h +++ b/interface/wx/collpane.h @@ -65,7 +65,7 @@ public: Usage sample: @code - wxCollapsiblePane *collpane = new wxCollapsiblePane(this, wxID_ANY, wxT("Details:")); + wxCollapsiblePane *collpane = new wxCollapsiblePane(this, wxID_ANY, "Details:"); // add the pane with a zero proportion value to the 'sz' sizer which contains it sz->Add(collpane, 0, wxGROW|wxALL, 5); @@ -73,7 +73,7 @@ public: // now add a test label in the collapsible pane using a sizer to layout it: wxWindow *win = collpane->GetPane(); wxSizer *paneSz = new wxBoxSizer(wxVERTICAL); - paneSz->Add(new wxStaticText(win, wxID_ANY, wxT("test!")), 1, wxGROW|wxALL, 2); + paneSz->Add(new wxStaticText(win, wxID_ANY, "test!"), 1, wxGROW|wxALL, 2); win->SetSizer(paneSz); paneSz->SetSizeHints(win); @endcode @@ -98,7 +98,7 @@ public: @library{wxcore} @category{ctrl} - + @appearance{collapsiblepane.png} @see wxPanel, wxCollapsiblePaneEvent */ @@ -109,7 +109,7 @@ public: Default constructor. */ wxCollapsiblePane(); - + /** Initializes the object and calls Create() with all the parameters. */ @@ -119,7 +119,7 @@ public: const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "collapsiblePane"); + const wxString& name = wxCollapsiblePaneNameStr); /** @param parent @@ -149,12 +149,12 @@ public: const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "collapsiblePane"); + const wxString& name = wxCollapsiblePaneNameStr); /** Collapses or expands the pane window. */ - void Collapse(bool collapse = true); + virtual void Collapse(bool collapse = true); /** Same as calling Collapse(@false). @@ -165,12 +165,12 @@ public: Returns a pointer to the pane window. Add controls to the returned wxWindow to make them collapsible. */ - wxWindow* GetPane() const; + virtual wxWindow* GetPane() const; /** Returns @true if the pane window is currently hidden. */ - bool IsCollapsed() const; + virtual bool IsCollapsed() const; /** Returns @true if the pane window is currently shown.