]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/radiobox.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKRADIOBOXH__
13 #define __GTKRADIOBOXH__
20 #include "wx/object.h"
22 #include "wx/control.h"
23 #include "wx/bitmap.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 extern const char *wxRadioBoxNameStr
;
37 //-----------------------------------------------------------------------------
39 //-----------------------------------------------------------------------------
41 class wxRadioBox
: public wxControl
44 DECLARE_DYNAMIC_CLASS(wxRadioBox
)
49 wxRadioBox( wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
50 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
51 const int n
= 0, const wxString choices
[] = NULL
,
52 const int majorDim
= 0, const long style
= wxRA_HORIZONTAL
,
53 const wxString
&name
= wxRadioBoxNameStr
);
54 bool Create( wxWindow
*parent
, const wxWindowID id
, const wxString
& title
,
55 const wxPoint
&pos
= wxDefaultPosition
, const wxSize
&size
= wxDefaultSize
,
56 const int n
= 0, const wxString choices
[] = NULL
,
57 const int majorDim
= 0, const long style
= wxRA_HORIZONTAL
,
58 const wxString
&name
= wxRadioBoxNameStr
);
59 int FindString( const wxString
& s
) const;
60 void SetSelection( const int n
);
61 int GetSelection(void) const;
62 wxString
GetString( const int n
) const;
63 wxString
GetLabel(void) const;
64 void SetLabel( const wxString
& label
);
65 void SetLabel( const int item
, const wxString
& label
);
66 void SetLabel( const int item
, wxBitmap
*bitmap
);
67 wxString
GetLabel( const int item
) const;
68 bool Show( const bool show
);
69 void Enable( const bool enable
);
70 void Enable( const int item
, const bool enable
);
71 void Show( const int item
, const bool show
);
72 virtual wxString
GetStringSelection(void) const;
73 virtual bool SetStringSelection( const wxString
& s
);
74 virtual int Number(void) const;
75 int GetNumberOfRowsOrCols(void) const;
76 void SetNumberOfRowsOrCols( const int n
);
80 GtkRadioButton
*m_radio
;
84 #endif // __GTKRADIOBOXH__