]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/carbon/spinbutt.h
remove an unused pool of strings using wxStringList
[wxWidgets.git] / include / wx / osx / carbon / spinbutt.h
CommitLineData
5c6eb3a8
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: spinbutt.h
3// Purpose: wxSpinButton class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_SPINBUTT_H_
13#define _WX_SPINBUTT_H_
14
15#include "wx/control.h"
16#include "wx/event.h"
17
18/*
19 The wxSpinButton is like a small scrollbar than is often placed next
20 to a text control.
21
22 wxSP_HORIZONTAL: horizontal spin button
23 wxSP_VERTICAL: vertical spin button (the default)
24 wxSP_ARROW_KEYS: arrow keys increment/decrement value
25 wxSP_WRAP: value wraps at either end
26 */
27
28class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase
29{
30public:
31 // construction
32 wxSpinButton();
33
34 wxSpinButton(wxWindow *parent,
35 wxWindowID id = -1,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
39 const wxString& name = wxT("wxSpinButton"))
40 {
41 Create(parent, id, pos, size, style, name);
42 }
43
44 virtual ~wxSpinButton();
45
46 bool Create(wxWindow *parent,
47 wxWindowID id = -1,
48 const wxPoint& pos = wxDefaultPosition,
49 const wxSize& size = wxDefaultSize,
50 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
51 const wxString& name = wxT("wxSpinButton"));
52
53
54 // accessors
5c6eb3a8 55 virtual void SetRange(int minVal, int maxVal);
524c47aa
SC
56 virtual int GetValue() const ;
57 virtual void SetValue(int val);
5c6eb3a8
SC
58
59 // implementation
60
524c47aa 61#if wxOSX_USE_CARBON
5c6eb3a8 62 virtual void MacHandleControlClick( WXWidget control , wxInt16 controlpart , bool mouseStillDown ) ;
524c47aa
SC
63#endif
64 // osx specific event handling common for all osx-ports
65
66 virtual bool HandleClicked( double timestampsec );
5c6eb3a8
SC
67
68protected:
524c47aa
SC
69 void SendThumbTrackEvent() ;
70
71 virtual wxSize DoGetBestSize() const;
5c6eb3a8
SC
72
73private:
74 DECLARE_DYNAMIC_CLASS(wxSpinButton)
75};
76
77#endif
78 // _WX_SPINBUTT_H_