add GetLabel/SetLabel implementation to wxWindowX11, the function just store the label string, but do nothing with it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-23 17:42:33 +00:00
parent 31f0808ee2
commit cc3acf904b
3 changed files with 5 additions and 14 deletions

View File

@@ -48,8 +48,9 @@ public:
virtual void Raise();
virtual void Lower();
virtual void SetLabel(const wxString& label);
virtual wxString GetLabel() const;
// SetLabel(), which does nothing in wxWindow
virtual void SetLabel(const wxString& label) wxOVERRIDE { m_Label = label; }
virtual wxString GetLabel() const wxOVERRIDE { return m_Label; }
virtual bool Show( bool show = true );
virtual bool Enable( bool enable = true );
@@ -187,6 +188,8 @@ private:
// common part of all ctors
void Init();
wxString m_Label;
DECLARE_DYNAMIC_CLASS(wxWindowX11)
wxDECLARE_NO_COPY_CLASS(wxWindowX11);
DECLARE_EVENT_TABLE()