]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/radiobox.h
added GetHimagelist()
[wxWidgets.git] / include / wx / radiobox.h
... / ...
CommitLineData
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$
8// Copyright: (c) wxWidgets team
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_RADIOBOX_H_BASE_
13#define _WX_RADIOBOX_H_BASE_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "radioboxbase.h"
17#endif
18
19#if wxUSE_RADIOBOX
20
21#include "wx/ctrlsub.h"
22
23extern WXDLLEXPORT_DATA(const wxChar*) wxRadioBoxNameStr;
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
28// example, it is a wxStaticBox in wxUniv and wxMSW but not in other ports
29// ----------------------------------------------------------------------------
30
31class WXDLLEXPORT wxRadioBoxBase : public wxItemContainerImmutable
32{
33public:
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;
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
45
46 // implement some of wxItemContainerImmutable functions
47 virtual int FindString(const wxString& s) const;
48
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
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
63};
64
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"
81#endif
82
83#endif // wxUSE_RADIOBOX
84
85#endif
86 // _WX_RADIOBOX_H_BASE_