]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/spinbutt.h
Updated version to 2.5.5
[wxWidgets.git] / include / wx / palmos / spinbutt.h
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////////
e1d63b79 2// Name: wx/palmos/spinbutt.h
ffecfa5a 3// Purpose: wxSpinButton class
e1d63b79 4// Author: William Osborne - minimal working wxPalmOS port
ffecfa5a 5// Modified by:
e1d63b79 6// Created: 10/13/04
ffecfa5a 7// RCS-ID: $Id$
e1d63b79 8// Copyright: (c) William Osborne
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_SPINBUTT_H_
13#define _WX_SPINBUTT_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "spinbutt.h"
17#endif
18
19#include "wx/control.h"
20#include "wx/event.h"
21
22class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase
23{
24public:
25 // construction
26 wxSpinButton() { }
27
28 wxSpinButton(wxWindow *parent,
5445a26c 29 wxWindowID id = wxID_ANY,
ffecfa5a
JS
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
33 const wxString& name = wxSPIN_BUTTON_NAME)
34 {
35 Create(parent, id, pos, size, style, name);
36 }
37
38 virtual ~wxSpinButton();
39
40 bool Create(wxWindow *parent,
5445a26c 41 wxWindowID id = wxID_ANY,
ffecfa5a
JS
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
45 const wxString& name = wxSPIN_BUTTON_NAME);
46
47
48 // accessors
49 virtual int GetValue() const;
50 virtual void SetValue(int val);
51 virtual void SetRange(int minVal, int maxVal);
52
ffecfa5a 53 // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
5445a26c 54 virtual bool AcceptsFocus() const { return false; }
ffecfa5a
JS
55
56protected:
57 virtual wxSize DoGetBestSize() const;
58
59private:
60 DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton)
61};
62
63#endif
64 // _WX_SPINBUTT_H_