]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/spinbutt.h
Added wxStrnicmp and to wchar.h, not yet for Unicode mode.
[wxWidgets.git] / include / wx / gtk1 / spinbutt.h
CommitLineData
8e189077
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: spinbutt.h
3// Purpose: wxSpinButton class
4// Author: Robert Roebling
5// Modified by:
6// RCS-ID: $Id$
7// Copyright: (c) Robert Roebling
31528cd3 8// Licence: wxWindows licence
8e189077
RR
9/////////////////////////////////////////////////////////////////////////////
10
738f9e5a 11#ifndef __GTKSPINBUTTH__
8e189077
RR
12#define __GTKSPINBUTTH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
8e189077
RR
18//-----------------------------------------------------------------------------
19// wxSpinButton
20//-----------------------------------------------------------------------------
21
31528cd3 22class wxSpinButton : public wxSpinButtonBase
8e189077 23{
8e189077 24public:
31528cd3
VZ
25 wxSpinButton() { }
26 wxSpinButton( wxWindow *parent, wxWindowID id = -1,
27 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
28 long style = wxSP_VERTICAL, const wxString& name = "wxSpinButton")
29 {
30 Create(parent, id, pos, size, style, name);
31 }
31528cd3
VZ
32
33 bool Create( wxWindow *parent, wxWindowID id = -1,
34 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
35 long style = wxSP_VERTICAL, const wxString& name = "wxSpinButton" );
36
37 virtual int GetValue() const;
38 virtual void SetValue( int value );
39 virtual void SetRange( int minVal, int maxVal );
40 virtual int GetMin() const;
41 virtual int GetMax() const;
42
43 // implementation
44 void OnSize( wxSizeEvent &event );
45
46 bool IsOwnGtkWindow( GdkWindow *window );
47 void ApplyWidgetStyle();
48
49 GtkAdjustment *m_adjust;
50 float m_oldPos;
51
52private:
53 DECLARE_EVENT_TABLE()
738f9e5a 54 DECLARE_DYNAMIC_CLASS(wxSpinButton)
8e189077
RR
55};
56
8e189077
RR
57#endif
58 // __GTKSPINBUTTH__