2 * Copyright 2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
6 * John Scipione, jscipione@gmail.com
12 #include <AbstractSpinner.h>
15 class BSpinner
: public BAbstractSpinner
{
17 BSpinner(BRect frame
, const char* name
,
18 const char* label
, BMessage
* message
,
19 uint32 resizingMode
= B_FOLLOW_LEFT
| B_FOLLOW_TOP
,
20 uint32 flags
= B_WILL_DRAW
| B_NAVIGABLE
);
21 BSpinner(const char* name
, const char* label
,
23 uint32 flags
= B_WILL_DRAW
| B_NAVIGABLE
);
24 BSpinner(BMessage
* data
);
27 static BArchivable
* Instantiate(BMessage
* data
);
28 virtual status_t
Archive(BMessage
* data
, bool deep
= true) const;
30 virtual void Increment();
31 virtual void Decrement();
33 virtual status_t
GetSupportedSuites(BMessage
* message
);
35 virtual void AttachedToWindow();
37 virtual void SetEnabled(bool enable
);
39 int32
MinValue() const { return fMinValue
; }
40 virtual void SetMinValue(int32 min
);
42 int32
MaxValue() const { return fMaxValue
; }
43 virtual void SetMaxValue(int32 max
);
45 void Range(int32
* min
, int32
* max
);
46 virtual void SetRange(int32 min
, int32 max
);
48 int32
Value() const { return fValue
; };
49 virtual void SetValue(int32 value
);
50 virtual void SetValueFromText();
54 virtual void _ReservedSpinner20();
55 virtual void _ReservedSpinner19();
56 virtual void _ReservedSpinner18();
57 virtual void _ReservedSpinner17();
58 virtual void _ReservedSpinner16();
59 virtual void _ReservedSpinner15();
60 virtual void _ReservedSpinner14();
61 virtual void _ReservedSpinner13();
62 virtual void _ReservedSpinner12();
63 virtual void _ReservedSpinner11();
64 virtual void _ReservedSpinner10();
65 virtual void _ReservedSpinner9();
66 virtual void _ReservedSpinner8();
67 virtual void _ReservedSpinner7();
68 virtual void _ReservedSpinner6();
69 virtual void _ReservedSpinner5();
70 virtual void _ReservedSpinner4();
71 virtual void _ReservedSpinner3();
72 virtual void _ReservedSpinner2();
73 virtual void _ReservedSpinner1();