]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/radiobox.h
changed removed wxToUpper to standard toupper
[wxWidgets.git] / include / wx / gtk / radiobox.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: radiobox.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
c801d85f
KB
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKRADIOBOXH__
12#define __GTKRADIOBOXH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
19#include "wx/object.h"
20#include "wx/list.h"
21#include "wx/control.h"
22#include "wx/bitmap.h"
23
24//-----------------------------------------------------------------------------
25// classes
26//-----------------------------------------------------------------------------
27
28class wxRadioBox;
29
30//-----------------------------------------------------------------------------
31// global data
32//-----------------------------------------------------------------------------
33
34extern const char *wxRadioBoxNameStr;
35
36//-----------------------------------------------------------------------------
37// wxRadioBox
38//-----------------------------------------------------------------------------
39
40class wxRadioBox: public wxControl
41{
42
43 DECLARE_DYNAMIC_CLASS(wxRadioBox)
44
45 public:
46
47 wxRadioBox(void);
6de97a3b
RR
48 inline wxRadioBox( wxWindow *parent, wxWindowID id, const wxString& title,
49 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
c67daf87 50 int n = 0, const wxString choices[] = (const wxString *) NULL,
6de97a3b
RR
51 int majorDim = 0, long style = wxRA_HORIZONTAL,
52 const wxValidator& val = wxDefaultValidator,
53 const wxString& name = wxRadioBoxNameStr )
54 {
55 Create( parent, id, title, pos, size, n, choices, majorDim, style, val, name );
56 }
d6d1892b 57 ~wxRadioBox(void);
debe6624 58 bool Create( wxWindow *parent, wxWindowID id, const wxString& title,
6de97a3b 59 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
c67daf87 60 int n = 0, const wxString choices[] = (const wxString *) NULL,
6de97a3b
RR
61 int majorDim = 0, long style = wxRA_HORIZONTAL,
62 const wxValidator& val = wxDefaultValidator,
63 const wxString& name = wxRadioBoxNameStr );
c801d85f 64 int FindString( const wxString& s) const;
debe6624 65 void SetSelection( int n );
c801d85f 66 int GetSelection(void) const;
debe6624 67 wxString GetString( int n ) const;
c801d85f 68 void SetLabel( const wxString& label );
debe6624
JS
69 void SetLabel( int item, const wxString& label );
70 void SetLabel( int item, wxBitmap *bitmap );
71 wxString GetLabel( int item ) const;
72 bool Show( bool show );
73 void Enable( bool enable );
74 void Enable( int item, bool enable );
75 void Show( int item, bool show );
c801d85f
KB
76 virtual wxString GetStringSelection(void) const;
77 virtual bool SetStringSelection( const wxString& s );
78 virtual int Number(void) const;
79 int GetNumberOfRowsOrCols(void) const;
debe6624 80 void SetNumberOfRowsOrCols( int n );
d3904ceb 81
3f659fd6 82 void OnSize( wxSizeEvent &event );
b292e2f5 83 void SetFocus();
3f659fd6 84
868a2826
RR
85 // implementation
86
b4071e91 87 bool IsOwnGtkWindow( GdkWindow *window );
58614078 88 void ApplyWidgetStyle();
d3b4d113 89 wxSize LayoutItems();
b4071e91 90
d6d1892b 91 bool m_alreadySent;
d3b4d113 92 int m_majorDim;
d6d1892b 93 wxList m_boxes;
c801d85f 94
3f659fd6 95 DECLARE_EVENT_TABLE()
c801d85f
KB
96};
97
98#endif // __GTKRADIOBOXH__