1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxRadioBox declaration
4 // Author: Vadim Zeitlin
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_RADIOBOX_H_BASE_
13 #define _WX_RADIOBOX_H_BASE_
17 #include "wx/ctrlsub.h"
19 extern WXDLLEXPORT_DATA(const wxChar
*) wxRadioBoxNameStr
;
21 // ----------------------------------------------------------------------------
22 // wxRadioBoxBase is not a normal base class, but rather a mix-in because the
23 // real wxRadioBox derives from different classes on different platforms: for
24 // example, it is a wxStaticBox in wxUniv and wxMSW but not in other ports
25 // ----------------------------------------------------------------------------
27 class WXDLLEXPORT wxRadioBoxBase
: public wxItemContainerImmutable
30 // change/query the individual radio button state
31 virtual bool Enable(int n
, bool enable
= true) = 0;
32 virtual bool Show(int n
, bool show
= true) = 0;
34 // NB: these functions are stubbed here for now but should become pure
35 // virtual once all ports implement them
36 virtual bool IsItemEnabled(int WXUNUSED(n
)) const { return true; }
37 virtual bool IsItemShown(int WXUNUSED(n
)) const { return true; }
40 virtual int GetColumnCount() const = 0;
41 virtual int GetRowCount() const = 0;
43 // return the item above/below/to the left/right of the given one
44 int GetNextItem(int item
, wxDirection dir
, long style
) const;
47 // deprecated functions
48 // --------------------
50 #if WXWIN_COMPATIBILITY_2_4
51 wxDEPRECATED( int GetNumberOfRowsOrCols() const );
52 wxDEPRECATED( void SetNumberOfRowsOrCols(int n
) );
53 #endif // WXWIN_COMPATIBILITY_2_4
56 #if defined(__WXUNIVERSAL__)
57 #include "wx/univ/radiobox.h"
58 #elif defined(__WXMSW__)
59 #include "wx/msw/radiobox.h"
60 #elif defined(__WXMOTIF__)
61 #include "wx/motif/radiobox.h"
62 #elif defined(__WXGTK__)
63 #include "wx/gtk/radiobox.h"
64 #elif defined(__WXMAC__)
65 #include "wx/mac/radiobox.h"
66 #elif defined(__WXCOCOA__)
67 #include "wx/cocoa/radiobox.h"
68 #elif defined(__WXPM__)
69 #include "wx/os2/radiobox.h"
70 #elif defined(__WXPALMOS__)
71 #include "wx/palmos/radiobox.h"
74 #endif // wxUSE_RADIOBOX
77 // _WX_RADIOBOX_H_BASE_