libyui
YMultiSelectionBox.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 YMultiSelectionBox_h
26 #define YMultiSelectionBox_h
27 
28 #include "YSelectionWidget.h"
29 
31 
32 
37 {
38 protected:
42  YMultiSelectionBox( YWidget * parent, const std::string & label );
43 
44 public:
48  virtual ~YMultiSelectionBox();
49 
54  virtual const char * widgetClass() const { return "YMultiSelectionBox"; }
55 
59  bool shrinkable() const;
60 
68  virtual void setShrinkable( bool shrinkable = true );
69 
80  virtual bool setProperty( const std::string & propertyName,
81  const YPropertyValue & val );
82 
89  virtual YPropertyValue getProperty( const std::string & propertyName );
90 
97  virtual const YPropertySet & propertySet();
98 
103  const char * userInputProperty() { return YUIProperty_SelectedItems; }
104 
114  virtual YItem * currentItem() = 0;
115 
129  virtual void setCurrentItem( YItem * item ) = 0;
130 
136  virtual void saveUserInput( YMacroRecorder *macroRecorder );
137 
138 private:
139 
141 };
142 
143 
144 #endif // YMultiSelectionBox_h
virtual const char * widgetClass() const
Definition: YMultiSelectionBox.h:54
Definition: YMacroRecorder.h:38
Definition: YProperty.h:104
Definition: YSelectionWidget.h:45
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition: YMultiSelectionBox.cc:124
const char * userInputProperty()
Definition: YMultiSelectionBox.h:103
Definition: YProperty.h:197
YWidget * parent() const
Definition: YWidget.cc:271
Definition: YMultiSelectionBox.h:36
virtual ~YMultiSelectionBox()
Definition: YMultiSelectionBox.cc:61
std::string label() const
Definition: YSelectionWidget.cc:99
YMultiSelectionBox(YWidget *parent, const std::string &label)
Definition: YMultiSelectionBox.cc:48
Definition: YItem.h:55
virtual void saveUserInput(YMacroRecorder *macroRecorder)
Definition: YMultiSelectionBox.cc:141
virtual const YPropertySet & propertySet()
Definition: YMultiSelectionBox.cc:80
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition: YMultiSelectionBox.cc:105
virtual void setCurrentItem(YItem *item)=0
virtual void setShrinkable(bool shrinkable=true)
Definition: YMultiSelectionBox.cc:73
bool shrinkable() const
Definition: YMultiSelectionBox.cc:67
virtual YItem * currentItem()=0
Definition: YWidget.h:54
Definition: YMultiSelectionBox.cc:37