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 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;
35 virtual int GetColumnCount() const = 0;
36 virtual int GetRowCount() const = 0;
38 // return the item above/below/to the left/right of the given one
39 int GetNextItem(int item
, wxDirection dir
, long style
) const;
42 // implement some of wxItemContainerImmutable functions
43 virtual int FindString(const wxString
& s
) const;
45 // deprecated functions
46 // --------------------
48 #if WXWIN_COMPATIBILITY_2_4
49 wxDEPRECATED( int GetNumberOfRowsOrCols() const );
50 wxDEPRECATED( void SetNumberOfRowsOrCols(int n
) );
51 #endif // WXWIN_COMPATIBILITY_2_4
53 // for compatibility only, don't use these methods in new code!
54 #if WXWIN_COMPATIBILITY_2_2
55 wxDEPRECATED( int Number() const );
56 wxDEPRECATED( wxString
GetLabel(int n
) const );
57 wxDEPRECATED( void SetLabel(int n
, const wxString
& label
) );
58 #endif // WXWIN_COMPATIBILITY_2_2
61 #if defined(__WXUNIVERSAL__)
62 #include "wx/univ/radiobox.h"
63 #elif defined(__WXMSW__)
64 #include "wx/msw/radiobox.h"
65 #elif defined(__WXMOTIF__)
66 #include "wx/motif/radiobox.h"
67 #elif defined(__WXGTK__)
68 #include "wx/gtk/radiobox.h"
69 #elif defined(__WXMAC__)
70 #include "wx/mac/radiobox.h"
71 #elif defined(__WXCOCOA__)
72 #include "wx/cocoa/radiobox.h"
73 #elif defined(__WXPM__)
74 #include "wx/os2/radiobox.h"
75 #elif defined(__WXPALMOS__)
76 #include "wx/palmos/radiobox.h"
79 #endif // wxUSE_RADIOBOX
82 // _WX_RADIOBOX_H_BASE_