More null virtuals in wxRadioBoxBase (see: 'Developers_Notebook-Incomplete-API' in wxWiki)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -70,6 +70,22 @@ public:
|
|||||||
const wxString& name = wxRadioBoxNameStr);
|
const wxString& name = wxRadioBoxNameStr);
|
||||||
virtual ~wxRadioBox();
|
virtual ~wxRadioBox();
|
||||||
|
|
||||||
|
// Enabling
|
||||||
|
virtual bool Enable(unsigned int n, bool enable = true);
|
||||||
|
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Showing
|
||||||
|
virtual bool Show(unsigned int n, bool show = true);
|
||||||
|
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// Cocoa callbacks
|
// Cocoa callbacks
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
@@ -89,8 +105,6 @@ public:
|
|||||||
virtual wxString GetString(unsigned int n) const;
|
virtual wxString GetString(unsigned int n) const;
|
||||||
virtual void SetString(unsigned int n, const wxString& label);
|
virtual void SetString(unsigned int n, const wxString& label);
|
||||||
// change the individual radio button state
|
// change the individual radio button state
|
||||||
virtual bool Enable(unsigned int n, bool enable = true);
|
|
||||||
virtual bool Show(unsigned int n, bool show = true);
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
};
|
};
|
||||||
|
@@ -54,7 +54,25 @@ public:
|
|||||||
const wxValidator& val = wxDefaultValidator,
|
const wxValidator& val = wxDefaultValidator,
|
||||||
const wxString& name = wxRadioBoxNameStr);
|
const wxString& name = wxRadioBoxNameStr);
|
||||||
|
|
||||||
// Specific functions (in wxWidgets2 reference)
|
// Enabling
|
||||||
|
virtual bool Enable(bool enable = true);
|
||||||
|
virtual bool Enable(unsigned int item, bool enable = true);
|
||||||
|
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Showing
|
||||||
|
virtual bool Show(bool show = true);
|
||||||
|
virtual bool Show(unsigned int item, bool show = true);
|
||||||
|
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Specific functions (in wxWidgets2 reference)
|
||||||
virtual void SetSelection(int item);
|
virtual void SetSelection(int item);
|
||||||
virtual int GetSelection() const;
|
virtual int GetSelection() const;
|
||||||
|
|
||||||
@@ -63,13 +81,8 @@ public:
|
|||||||
virtual wxString GetString(unsigned int item) const;
|
virtual wxString GetString(unsigned int item) const;
|
||||||
virtual void SetString(unsigned int item, const wxString& label);
|
virtual void SetString(unsigned int item, const wxString& label);
|
||||||
|
|
||||||
virtual bool Enable(unsigned int item, bool enable = true);
|
|
||||||
virtual bool Show(unsigned int item, bool show = true);
|
|
||||||
|
|
||||||
virtual bool Enable(bool enable = true);
|
|
||||||
virtual wxString GetLabel() const;
|
virtual wxString GetLabel() const;
|
||||||
virtual void SetLabel(const wxString& label) ;
|
virtual void SetLabel(const wxString& label) ;
|
||||||
virtual bool Show(bool show = true);
|
|
||||||
|
|
||||||
// Other external functions
|
// Other external functions
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event);
|
||||||
|
@@ -54,6 +54,24 @@ public:
|
|||||||
const wxValidator& val = wxDefaultValidator,
|
const wxValidator& val = wxDefaultValidator,
|
||||||
const wxString& name = wxRadioBoxNameStr);
|
const wxString& name = wxRadioBoxNameStr);
|
||||||
|
|
||||||
|
// Enabling
|
||||||
|
virtual bool Enable(bool enable = true);
|
||||||
|
virtual bool Enable(unsigned int item, bool enable = true);
|
||||||
|
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Showing
|
||||||
|
virtual bool Show(bool show = true);
|
||||||
|
virtual bool Show(unsigned int item, bool show = true);
|
||||||
|
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// Specific functions (in wxWidgets2 reference)
|
// Specific functions (in wxWidgets2 reference)
|
||||||
virtual void SetSelection(int item);
|
virtual void SetSelection(int item);
|
||||||
virtual int GetSelection() const;
|
virtual int GetSelection() const;
|
||||||
@@ -63,13 +81,9 @@ public:
|
|||||||
virtual wxString GetString(unsigned int item) const;
|
virtual wxString GetString(unsigned int item) const;
|
||||||
virtual void SetString(unsigned int item, const wxString& label);
|
virtual void SetString(unsigned int item, const wxString& label);
|
||||||
|
|
||||||
virtual bool Enable(unsigned int item, bool enable = true);
|
|
||||||
virtual bool Show(unsigned int item, bool show = true);
|
|
||||||
|
|
||||||
virtual bool Enable(bool enable = true);
|
|
||||||
virtual wxString GetLabel() const;
|
virtual wxString GetLabel() const;
|
||||||
virtual void SetLabel(const wxString& label) ;
|
virtual void SetLabel(const wxString& label) ;
|
||||||
virtual bool Show(bool show = true);
|
|
||||||
|
|
||||||
// Other external functions
|
// Other external functions
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event);
|
||||||
|
@@ -72,15 +72,29 @@ public:
|
|||||||
const wxValidator& val = wxDefaultValidator,
|
const wxValidator& val = wxDefaultValidator,
|
||||||
const wxString& name = wxRadioBoxNameStr);
|
const wxString& name = wxRadioBoxNameStr);
|
||||||
|
|
||||||
|
// Enabling
|
||||||
|
virtual bool Enable(bool enable = true);
|
||||||
|
virtual bool Enable(unsigned int item, bool enable = true);
|
||||||
|
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Showing
|
||||||
|
virtual bool Show(bool show = true);
|
||||||
|
virtual bool Show(unsigned int item, bool show = true);
|
||||||
|
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
virtual void SetSelection(int n);
|
virtual void SetSelection(int n);
|
||||||
int GetSelection() const;
|
int GetSelection() const;
|
||||||
|
|
||||||
virtual void SetString(unsigned int item, const wxString& label);
|
virtual void SetString(unsigned int item, const wxString& label);
|
||||||
virtual wxString GetString(unsigned int item) const;
|
virtual wxString GetString(unsigned int item) const;
|
||||||
virtual bool Enable(bool enable = true);
|
|
||||||
virtual bool Enable(unsigned int item, bool enable = true);
|
|
||||||
virtual bool Show(unsigned int item, bool show = true);
|
|
||||||
virtual bool Show(bool show = true);
|
|
||||||
|
|
||||||
virtual wxString GetStringSelection() const;
|
virtual wxString GetStringSelection() const;
|
||||||
virtual bool SetStringSelection(const wxString& s);
|
virtual bool SetStringSelection(const wxString& s);
|
||||||
|
@@ -99,10 +99,26 @@ public:
|
|||||||
,const wxString& rsName = wxRadioBoxNameStr
|
,const wxString& rsName = wxRadioBoxNameStr
|
||||||
);
|
);
|
||||||
|
|
||||||
void Command(wxCommandEvent& rEvent);
|
// Enabling
|
||||||
bool ContainsHWND(WXHWND hWnd) const;
|
|
||||||
virtual bool Enable(bool bEnable = true);
|
virtual bool Enable(bool bEnable = true);
|
||||||
virtual bool Enable(unsigned int nItem, bool bEnable = true);
|
virtual bool Enable(unsigned int nItem, bool bEnable = true);
|
||||||
|
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Showing
|
||||||
|
virtual bool Show(bool bShow = true);
|
||||||
|
virtual bool Show(unsigned int nItem, bool bShow = true);
|
||||||
|
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Command(wxCommandEvent& rEvent);
|
||||||
|
bool ContainsHWND(WXHWND hWnd) const;
|
||||||
|
|
||||||
virtual WXHBRUSH OnCtlColor( WXHDC hDC
|
virtual WXHBRUSH OnCtlColor( WXHDC hDC
|
||||||
,WXHWND hWnd
|
,WXHWND hWnd
|
||||||
@@ -115,8 +131,6 @@ public:
|
|||||||
,WXWORD wId
|
,WXWORD wId
|
||||||
);
|
);
|
||||||
void SendNotificationEvent(void);
|
void SendNotificationEvent(void);
|
||||||
virtual bool Show(unsigned int nItem, bool bShow = true);
|
|
||||||
virtual bool Show(bool bShow = true);
|
|
||||||
MRESULT WindowProc( WXUINT uMsg
|
MRESULT WindowProc( WXUINT uMsg
|
||||||
,WXWPARAM wParam
|
,WXWPARAM wParam
|
||||||
,WXLPARAM lParam
|
,WXLPARAM lParam
|
||||||
|
@@ -85,6 +85,24 @@ public:
|
|||||||
const wxValidator& val = wxDefaultValidator,
|
const wxValidator& val = wxDefaultValidator,
|
||||||
const wxString& name = wxRadioBoxNameStr);
|
const wxString& name = wxRadioBoxNameStr);
|
||||||
|
|
||||||
|
// Enabling
|
||||||
|
virtual bool Enable(bool enable = true);
|
||||||
|
virtual bool Enable(unsigned int n, bool enable = true);
|
||||||
|
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Showing
|
||||||
|
virtual bool Show(bool show = true);
|
||||||
|
virtual bool Show(unsigned int n, bool show = true);
|
||||||
|
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const
|
||||||
|
{
|
||||||
|
/* TODO */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// implement the radiobox interface
|
// implement the radiobox interface
|
||||||
virtual void SetSelection(int n);
|
virtual void SetSelection(int n);
|
||||||
virtual int GetSelection() const;
|
virtual int GetSelection() const;
|
||||||
@@ -92,12 +110,6 @@ public:
|
|||||||
virtual wxString GetString(unsigned int n) const;
|
virtual wxString GetString(unsigned int n) const;
|
||||||
virtual void SetString(unsigned int n, const wxString& label);
|
virtual void SetString(unsigned int n, const wxString& label);
|
||||||
|
|
||||||
virtual bool Enable(bool enable = true);
|
|
||||||
virtual bool Enable(unsigned int n, bool enable = true);
|
|
||||||
|
|
||||||
virtual bool Show(bool show = true);
|
|
||||||
virtual bool Show(unsigned int n, bool show = true);
|
|
||||||
|
|
||||||
virtual void SetLabel(const wxString& label);
|
virtual void SetLabel(const wxString& label);
|
||||||
virtual wxString GetLabel();
|
virtual wxString GetLabel();
|
||||||
|
|
||||||
|
@@ -30,11 +30,8 @@ public:
|
|||||||
// change/query the individual radio button state
|
// change/query the individual radio button state
|
||||||
virtual bool Enable(unsigned int n, bool enable = true) = 0;
|
virtual bool Enable(unsigned int n, bool enable = true) = 0;
|
||||||
virtual bool Show(unsigned int n, bool show = true) = 0;
|
virtual bool Show(unsigned int n, bool show = true) = 0;
|
||||||
|
virtual bool IsItemEnabled(unsigned int n) const = 0;
|
||||||
// NB: these functions are stubbed here for now but should become pure
|
virtual bool IsItemShown(unsigned int n) const = 0;
|
||||||
// virtual once all ports implement them
|
|
||||||
virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const { return true; }
|
|
||||||
virtual bool IsItemShown(unsigned int WXUNUSED(n)) const { return true; }
|
|
||||||
|
|
||||||
// return number of columns/rows in this radiobox
|
// return number of columns/rows in this radiobox
|
||||||
unsigned int GetColumnCount() const { return m_numCols; }
|
unsigned int GetColumnCount() const { return m_numCols; }
|
||||||
|
Reference in New Issue
Block a user