]>
Commit | Line | Data |
---|---|---|
1e6feb95 VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/radiobox.h | |
3 | // Purpose: wxRadioBox declaration | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 10.09.00 | |
7 | // RCS-ID: $Id$ | |
99d80019 | 8 | // Copyright: (c) Vadim Zeitlin |
65571936 | 9 | // Licence: wxWindows licence |
1e6feb95 VZ |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
34138703 JS |
12 | #ifndef _WX_RADIOBOX_H_BASE_ |
13 | #define _WX_RADIOBOX_H_BASE_ | |
c801d85f | 14 | |
1e6feb95 VZ |
15 | #if wxUSE_RADIOBOX |
16 | ||
8ba7c771 | 17 | #include "wx/ctrlsub.h" |
1e6feb95 | 18 | |
16cba29d | 19 | extern WXDLLEXPORT_DATA(const wxChar*) wxRadioBoxNameStr; |
1e6feb95 VZ |
20 | |
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 | |
aca49b79 | 24 | // example, it is a wxStaticBox in wxUniv and wxMSW but not in other ports |
1e6feb95 VZ |
25 | // ---------------------------------------------------------------------------- |
26 | ||
8ba7c771 | 27 | class WXDLLEXPORT wxRadioBoxBase : public wxItemContainerImmutable |
1e6feb95 VZ |
28 | { |
29 | public: | |
1e6feb95 | 30 | // change the individual radio button state |
1a87edf2 | 31 | virtual bool Enable(int n, bool enable = true) = 0; |
789f6795 | 32 | virtual bool Show(int n, bool show = true) = 0; |
1e6feb95 VZ |
33 | |
34 | // layout parameters | |
35 | virtual int GetColumnCount() const = 0; | |
36 | virtual int GetRowCount() const = 0; | |
37 | ||
38 | // return the item above/below/to the left/right of the given one | |
39 | int GetNextItem(int item, wxDirection dir, long style) const; | |
40 | ||
bd0a76e2 VZ |
41 | // deprecated functions |
42 | // -------------------- | |
43 | ||
44 | #if WXWIN_COMPATIBILITY_2_4 | |
45 | wxDEPRECATED( int GetNumberOfRowsOrCols() const ); | |
46 | wxDEPRECATED( void SetNumberOfRowsOrCols(int n) ); | |
47 | #endif // WXWIN_COMPATIBILITY_2_4 | |
1e6feb95 VZ |
48 | }; |
49 | ||
50 | #if defined(__WXUNIVERSAL__) | |
51 | #include "wx/univ/radiobox.h" | |
52 | #elif defined(__WXMSW__) | |
53 | #include "wx/msw/radiobox.h" | |
2049ba38 | 54 | #elif defined(__WXMOTIF__) |
1e6feb95 | 55 | #include "wx/motif/radiobox.h" |
2049ba38 | 56 | #elif defined(__WXGTK__) |
1e6feb95 | 57 | #include "wx/gtk/radiobox.h" |
34138703 | 58 | #elif defined(__WXMAC__) |
1e6feb95 | 59 | #include "wx/mac/radiobox.h" |
e64df9bc DE |
60 | #elif defined(__WXCOCOA__) |
61 | #include "wx/cocoa/radiobox.h" | |
1777b9bb | 62 | #elif defined(__WXPM__) |
1e6feb95 | 63 | #include "wx/os2/radiobox.h" |
a152561c WS |
64 | #elif defined(__WXPALMOS__) |
65 | #include "wx/palmos/radiobox.h" | |
c801d85f KB |
66 | #endif |
67 | ||
1e6feb95 VZ |
68 | #endif // wxUSE_RADIOBOX |
69 | ||
c801d85f | 70 | #endif |
34138703 | 71 | // _WX_RADIOBOX_H_BASE_ |