]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/radiobox.h
* Fixed Async -> sync in wxExecute
[wxWidgets.git] / include / wx / gtk / radiobox.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobox.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKRADIOBOXH__
13#define __GTKRADIOBOXH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/list.h"
22#include "wx/control.h"
23#include "wx/bitmap.h"
24
25//-----------------------------------------------------------------------------
26// classes
27//-----------------------------------------------------------------------------
28
29class wxRadioBox;
30
31//-----------------------------------------------------------------------------
32// global data
33//-----------------------------------------------------------------------------
34
35extern const char *wxRadioBoxNameStr;
36
37//-----------------------------------------------------------------------------
38// wxRadioBox
39//-----------------------------------------------------------------------------
40
41class wxRadioBox: public wxControl
42{
43
44 DECLARE_DYNAMIC_CLASS(wxRadioBox)
45
46 public:
47
48 wxRadioBox(void);
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 );
77
78 private:
79
80 GtkRadioButton *m_radio;
81
82};
83
84#endif // __GTKRADIOBOXH__