libyui
2.42.5
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Friends
YSlider.h
1
/*
2
Copyright (C) 2000-2012 Novell, Inc
3
This library is free software; you can redistribute it and/or modify
4
it under the terms of the GNU Lesser General Public License as
5
published by the Free Software Foundation; either version 2.1 of the
6
License, or (at your option) version 3.0 of the License. This library
7
is distributed in the hope that it will be useful, but WITHOUT ANY
8
WARRANTY; without even the implied warranty of MERCHANTABILITY or
9
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10
License for more details. You should have received a copy of the GNU
11
Lesser General Public License along with this library; if not, write
12
to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13
Floor, Boston, MA 02110-1301 USA
14
*/
15
16
17
/*-/
18
19
File: YSlider.h
20
21
Author: Stefan Hundhammer <sh@suse.de>
22
23
/-*/
24
25
#ifndef YSlider_h
26
#define YSlider_h
27
28
#include "YIntField.h"
29
30
class
YSliderPrivate
;
31
32
33
/**
34
* Slider: Input widget for an integer value between a minimum and a maximum
35
* value. Very similar to IntField in semantics, but with a graphical slider
36
* that can be dragged to the desired value. It also contains an IntField to
37
* allow entering the value directly.
38
*
39
* Don't confuse this widget with ProgressBar: ProgressBar is output-only.
40
*
41
*
42
* This is an optional widget, i.e. not all UIs support it.
43
**/
44
class
YSlider
:
public
YIntField
45
{
46
protected
:
47
/**
48
* Constructor.
49
*
50
* Create a Slider with 'label' as the caption, and the specified minimum
51
* and maximum values.
52
*
53
* Note that YWidgetFactory::createSlider() also has an 'initialValue'
54
* parameter that is not used here (because the current value is not stored
55
* in this base class, but in the derived class).
56
**/
57
YSlider
(
YWidget
*
parent
,
58
const
std::string &
label
,
59
int
minValue
,
60
int
maxValue
);
61
62
public
:
63
/**
64
* Destructor.
65
**/
66
virtual
~YSlider
();
67
68
/**
69
* Returns a descriptive name of this widget class for logging,
70
* debugging etc.
71
**/
72
virtual
const
char
*
widgetClass
()
const
{
return
"YSlider"
; }
73
74
private
:
75
76
ImplPtr<YSliderPrivate>
priv;
77
};
78
79
80
#endif // YSlider_h
src
YSlider.h
Generated by
1.8.3