libyui
YSelectionBox.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: YSelectionBox.h
20 
21  Author: Stefan Hundhammer <shundhammer@suse.de>
22 
23 /-*/
24 
25 #ifndef YSelectionBox_h
26 #define YSelectionBox_h
27 
28 #include "YSelectionWidget.h"
29 
31 
32 
57 {
58 protected:
59 
63  YSelectionBox( YWidget * parent, const std::string & label );
64 
65 public:
69  virtual ~YSelectionBox();
70 
75  virtual const char * widgetClass() const { return "YSelectionBox"; }
76 
80  bool shrinkable() const;
81 
89  virtual void setShrinkable( bool shrinkable = true );
90 
109  bool immediateMode() const;
110 
114  void setImmediateMode( bool on = true );
115 
126  virtual bool setProperty( const std::string & propertyName,
127  const YPropertyValue & val );
128 
135  virtual YPropertyValue getProperty( const std::string & propertyName );
136 
143  virtual const YPropertySet & propertySet();
144 
149  const char * userInputProperty() { return YUIProperty_CurrentItem; }
150 
151 
152 private:
153 
155 };
156 
157 
158 #endif // YSelectionBox_h
Definition: YSelectionBox.h:56
virtual const YPropertySet & propertySet()
Definition: YSelectionBox.cc:96
const char * userInputProperty()
Definition: YSelectionBox.h:149
bool immediateMode() const
Definition: YSelectionBox.cc:80
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition: YSelectionBox.cc:141
virtual ~YSelectionBox()
Definition: YSelectionBox.cc:62
bool shrinkable() const
Definition: YSelectionBox.cc:68
Definition: YProperty.h:104
Definition: YSelectionWidget.h:45
Definition: YProperty.h:197
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition: YSelectionBox.cc:122
YWidget * parent() const
Definition: YWidget.cc:271
void setImmediateMode(bool on=true)
Definition: YSelectionBox.cc:86
virtual void setShrinkable(bool shrinkable=true)
Definition: YSelectionBox.cc:74
Definition: YSelectionBox.cc:36
YSelectionBox(YWidget *parent, const std::string &label)
Definition: YSelectionBox.cc:50
std::string label() const
Definition: YSelectionWidget.cc:99
Definition: YWidget.h:54
virtual const char * widgetClass() const
Definition: YSelectionBox.h:75