]> git.saurik.com Git - wxWidgets.git/blame - include/wx/radiobox.h
Make wxABI_VERSION default be e.g. 20699
[wxWidgets.git] / include / wx / radiobox.h
CommitLineData
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
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
1e6feb95
VZ
16 #pragma interface "radioboxbase.h"
17#endif
18
19#if wxUSE_RADIOBOX
20
8ba7c771 21#include "wx/ctrlsub.h"
1e6feb95 22
16cba29d 23extern WXDLLEXPORT_DATA(const wxChar*) wxRadioBoxNameStr;
1e6feb95
VZ
24
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
aca49b79 28// example, it is a wxStaticBox in wxUniv and wxMSW but not in other ports
1e6feb95
VZ
29// ----------------------------------------------------------------------------
30
8ba7c771 31class WXDLLEXPORT wxRadioBoxBase : public wxItemContainerImmutable
1e6feb95
VZ
32{
33public:
1e6feb95 34 // change the individual radio button state
1a87edf2 35 virtual bool Enable(int n, bool enable = true) = 0;
789f6795 36 virtual bool Show(int n, bool show = true) = 0;
1e6feb95
VZ
37
38 // layout parameters
39 virtual int GetColumnCount() const = 0;
40 virtual int GetRowCount() const = 0;
41
42 // return the item above/below/to the left/right of the given one
43 int GetNextItem(int item, wxDirection dir, long style) const;
44
bd0a76e2 45
8ba7c771
VZ
46 // implement some of wxItemContainerImmutable functions
47 virtual int FindString(const wxString& s) const;
48
bd0a76e2
VZ
49 // deprecated functions
50 // --------------------
51
52#if WXWIN_COMPATIBILITY_2_4
53 wxDEPRECATED( int GetNumberOfRowsOrCols() const );
54 wxDEPRECATED( void SetNumberOfRowsOrCols(int n) );
55#endif // WXWIN_COMPATIBILITY_2_4
56
1e6feb95 57 // for compatibility only, don't use these methods in new code!
1d79bd3e 58#if WXWIN_COMPATIBILITY_2_2
b4efc9b9
WS
59 wxDEPRECATED( int Number() const );
60 wxDEPRECATED( wxString GetLabel(int n) const );
61 wxDEPRECATED( void SetLabel(int n, const wxString& label) );
62e26542 62#endif // WXWIN_COMPATIBILITY_2_2
1e6feb95
VZ
63};
64
65#if defined(__WXUNIVERSAL__)
66 #include "wx/univ/radiobox.h"
67#elif defined(__WXMSW__)
68 #include "wx/msw/radiobox.h"
2049ba38 69#elif defined(__WXMOTIF__)
1e6feb95 70 #include "wx/motif/radiobox.h"
2049ba38 71#elif defined(__WXGTK__)
1e6feb95 72 #include "wx/gtk/radiobox.h"
34138703 73#elif defined(__WXMAC__)
1e6feb95 74 #include "wx/mac/radiobox.h"
e64df9bc
DE
75#elif defined(__WXCOCOA__)
76 #include "wx/cocoa/radiobox.h"
1777b9bb 77#elif defined(__WXPM__)
1e6feb95 78 #include "wx/os2/radiobox.h"
a152561c
WS
79#elif defined(__WXPALMOS__)
80 #include "wx/palmos/radiobox.h"
c801d85f
KB
81#endif
82
1e6feb95
VZ
83#endif // wxUSE_RADIOBOX
84
c801d85f 85#endif
34138703 86 // _WX_RADIOBOX_H_BASE_