1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxRadioBox declaration
4 // Author: Vadim Zeitlin
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_RADIOBOX_H_BASE_
13 #define _WX_RADIOBOX_H_BASE_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "radioboxbase.h"
21 #include "wx/ctrlsub.h"
23 extern WXDLLEXPORT_DATA(const wxChar
*) wxRadioBoxNameStr
;
25 // ----------------------------------------------------------------------------
26 // wxRadioBoxBase is not a normal base class, but rather a mix-in because the
27 // real wxRadioBox derives from different classes on different platforms: for
28 // example, it is a wxStaticBox in wxUniv and wxMSW but not in other ports
29 // ----------------------------------------------------------------------------
31 class WXDLLEXPORT wxRadioBoxBase
: public wxItemContainerImmutable
34 // change the individual radio button state
35 virtual bool Enable(int n
, bool enable
= true) = 0;
36 virtual bool Show(int n
, bool show
= true) = 0;
39 virtual int GetColumnCount() const = 0;
40 virtual int GetRowCount() const = 0;
42 // return the item above/below/to the left/right of the given one
43 int GetNextItem(int item
, wxDirection dir
, long style
) const;
46 // implement some of wxItemContainerImmutable functions
47 virtual int FindString(const wxString
& s
) const;
49 // deprecated functions
50 // --------------------
52 #if WXWIN_COMPATIBILITY_2_4
53 wxDEPRECATED( int GetNumberOfRowsOrCols() const );
54 wxDEPRECATED( void SetNumberOfRowsOrCols(int n
) );
55 #endif // WXWIN_COMPATIBILITY_2_4
57 // for compatibility only, don't use these methods in new code!
58 #if WXWIN_COMPATIBILITY_2_2
59 wxDEPRECATED( int Number() const );
60 wxDEPRECATED( wxString
GetLabel(int n
) const );
61 wxDEPRECATED( void SetLabel(int n
, const wxString
& label
) );
62 #endif // WXWIN_COMPATIBILITY_2_2
65 #if defined(__WXUNIVERSAL__)
66 #include "wx/univ/radiobox.h"
67 #elif defined(__WXMSW__)
68 #include "wx/msw/radiobox.h"
69 #elif defined(__WXMOTIF__)
70 #include "wx/motif/radiobox.h"
71 #elif defined(__WXGTK__)
72 #include "wx/gtk/radiobox.h"
73 #elif defined(__WXMAC__)
74 #include "wx/mac/radiobox.h"
75 #elif defined(__WXCOCOA__)
76 #include "wx/cocoa/radiobox.h"
77 #elif defined(__WXPM__)
78 #include "wx/os2/radiobox.h"
79 #elif defined(__WXPALMOS__)
80 #include "wx/palmos/radiobox.h"
83 #endif // wxUSE_RADIOBOX
86 // _WX_RADIOBOX_H_BASE_