libyui
 
Loading...
Searching...
No Matches
YProgressBar.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: YProgressBar.h
20
21 Author: Stefan Hundhammer <shundhammer@suse.de>
22
23/-*/
24
25#ifndef YProgressBar_h
26#define YProgressBar_h
27
28#include "YWidget.h"
29
31
32
36class YProgressBar : public YWidget
37{
38protected:
43 const std::string & label,
44 int maxValue = 100 );
45
46public:
50 virtual ~YProgressBar();
51
56 virtual const char * widgetClass() const { return "YProgressBar"; }
57
61 std::string label();
62
69 virtual void setLabel( const std::string & label );
70
75 int maxValue() const;
76
80 int value() const;
81
88 virtual void setValue( int newValue );
89
100 virtual bool setProperty( const std::string & propertyName,
101 const YPropertyValue & val );
102
109 virtual YPropertyValue getProperty( const std::string & propertyName );
110
117 virtual const YPropertySet & propertySet();
118
119
120private:
121
123};
124
125
126#endif // YProgressBar_h
Definition ImplPtr.h:43
virtual ~YProgressBar()
Definition YProgressBar.cc:68
std::string label()
Definition YProgressBar.cc:74
int value() const
Definition YProgressBar.cc:92
virtual const char * widgetClass() const
Definition YProgressBar.h:56
int maxValue() const
Definition YProgressBar.cc:86
virtual void setValue(int newValue)
Definition YProgressBar.cc:98
virtual void setLabel(const std::string &label)
Definition YProgressBar.cc:80
virtual const YPropertySet & propertySet()
Definition YProgressBar.cc:111
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition YProgressBar.cc:131
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition YProgressBar.cc:147
YProgressBar(YWidget *parent, const std::string &label, int maxValue=100)
Definition YProgressBar.cc:55
Definition YProperty.h:198
Definition YProperty.h:105
YWidget(YWidget *parent)
Definition YWidget.cc:106
YWidget * parent() const
Definition YWidget.cc:277
Definition YProgressBar.cc:36