const wxString& name = wxRadioBoxNameStr);
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
// ------------------------------------------------------------------------
virtual wxString GetString(unsigned int n) const;
virtual void SetString(unsigned int n, const wxString& label);
// 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:
virtual wxSize DoGetBestSize() const;
};
const wxValidator& val = wxDefaultValidator,
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 int GetSelection() const;
virtual wxString GetString(unsigned int item) const;
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 void SetLabel(const wxString& label) ;
- virtual bool Show(bool show = true);
// Other external functions
void Command(wxCommandEvent& event);
const wxValidator& val = wxDefaultValidator,
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)
virtual void SetSelection(int item);
virtual int GetSelection() const;
virtual wxString GetString(unsigned int item) const;
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 void SetLabel(const wxString& label) ;
- virtual bool Show(bool show = true);
// Other external functions
void Command(wxCommandEvent& event);
const wxValidator& val = wxDefaultValidator,
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);
int GetSelection() const;
virtual void SetString(unsigned int item, const wxString& label);
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 bool SetStringSelection(const wxString& s);
,const wxString& rsName = wxRadioBoxNameStr
);
- void Command(wxCommandEvent& rEvent);
- bool ContainsHWND(WXHWND hWnd) const;
+ // Enabling
virtual bool Enable(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
,WXHWND hWnd
,WXWORD wId
);
void SendNotificationEvent(void);
- virtual bool Show(unsigned int nItem, bool bShow = true);
- virtual bool Show(bool bShow = true);
MRESULT WindowProc( WXUINT uMsg
,WXWPARAM wParam
,WXLPARAM lParam
const wxValidator& val = wxDefaultValidator,
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
virtual void SetSelection(int n);
virtual int GetSelection() const;
virtual wxString GetString(unsigned int n) const;
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 wxString GetLabel();
// change/query the individual radio button state
virtual bool Enable(unsigned int n, bool enable = true) = 0;
virtual bool Show(unsigned int n, bool show = true) = 0;
-
- // NB: these functions are stubbed here for now but should become pure
- // 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; }
+ virtual bool IsItemEnabled(unsigned int n) const = 0;
+ virtual bool IsItemShown(unsigned int n) const = 0;
// return number of columns/rows in this radiobox
unsigned int GetColumnCount() const { return m_numCols; }