libyui
YDumbTab.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: YDumbTab.h
20 
21  Author: Stefan Hundhammer <shundhammer@suse.de>
22 
23 /-*/
24 
25 #ifndef YDumbTab_h
26 #define YDumbTab_h
27 
28 #include "YSelectionWidget.h"
29 
30 class YDumbTabPrivate;
31 
40 class YDumbTab : public YSelectionWidget
41 {
42 protected:
46  YDumbTab( YWidget * parent );
47 
48 public:
52  virtual ~YDumbTab();
53 
58  virtual const char * widgetClass() const { return "YDumbTab"; }
59 
68  virtual void addItem( YItem * item );
69 
83  virtual bool setProperty( const std::string & propertyName,
84  const YPropertyValue & val );
85 
93  virtual YPropertyValue getProperty( const std::string & propertyName );
94 
101  virtual const YPropertySet & propertySet();
102 
109  virtual bool stretchable( YUIDimension dim ) const;
110 
115  virtual std::string debugLabel() const;
116 
122  virtual void activate() = 0;
123 
124 private:
125 
126  // Disable unwanted base class methods
127  std::string label() const;
128  virtual void setLabel( const std::string & newLabel ) {};
129 
130 
132 };
133 
134 
135 #endif // YDumbTab_h
virtual std::string debugLabel() const
Definition: YDumbTab.cc:85
virtual ~YDumbTab()
Definition: YDumbTab.cc:61
Definition: YDumbTab.h:40
Definition: YProperty.h:104
Definition: YSelectionWidget.h:45
Definition: YProperty.h:197
YWidget * parent() const
Definition: YWidget.cc:271
virtual void activate()=0
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition: YDumbTab.cc:124
virtual void addItem(YItem *item)
Definition: YDumbTab.cc:68
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition: YDumbTab.cc:141
virtual bool stretchable(YUIDimension dim) const
Definition: YDumbTab.cc:75
Definition: YItem.h:55
YDumbTab(YWidget *parent)
Definition: YDumbTab.cc:47
Definition: YWidget.h:54
virtual const char * widgetClass() const
Definition: YDumbTab.h:58
virtual const YPropertySet & propertySet()
Definition: YDumbTab.cc:102
Definition: YDumbTab.cc:36