libyui
 
Loading...
Searching...
No Matches
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{
38protected:
42 YMultiSelectionBox( YWidget * parent, const std::string & label );
43
44public:
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
138private:
139
141};
142
143
144#endif // YMultiSelectionBox_h
Definition ImplPtr.h:43
Definition YItem.h:56
Definition YMacroRecorder.h:39
virtual void setShrinkable(bool shrinkable=true)
Definition YMultiSelectionBox.cc:73
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition YMultiSelectionBox.cc:124
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition YMultiSelectionBox.cc:105
virtual const YPropertySet & propertySet()
Definition YMultiSelectionBox.cc:80
YMultiSelectionBox(YWidget *parent, const std::string &label)
Definition YMultiSelectionBox.cc:48
virtual void setCurrentItem(YItem *item)=0
bool shrinkable() const
Definition YMultiSelectionBox.cc:67
virtual const char * widgetClass() const
Definition YMultiSelectionBox.h:54
virtual void saveUserInput(YMacroRecorder *macroRecorder)
Definition YMultiSelectionBox.cc:141
const char * userInputProperty()
Definition YMultiSelectionBox.h:103
virtual ~YMultiSelectionBox()
Definition YMultiSelectionBox.cc:61
virtual YItem * currentItem()=0
Definition YProperty.h:198
Definition YProperty.h:105
YSelectionWidget(YWidget *parent, const std::string &label, bool enforceSingleSelection, bool recursiveSelection=false)
Definition YSelectionWidget.cc:59
std::string label() const
Definition YSelectionWidget.cc:99
YWidget(YWidget *parent)
Definition YWidget.cc:106
YWidget * parent() const
Definition YWidget.cc:277
Definition YMultiSelectionBox.cc:38