libyui
 
Loading...
Searching...
No Matches
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{
58protected:
59
63 YSelectionBox( YWidget * parent, const std::string & label );
64
65public:
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
152private:
153
155};
156
157
158#endif // YSelectionBox_h
Definition ImplPtr.h:43
Definition YProperty.h:198
Definition YProperty.h:105
void setImmediateMode(bool on=true)
Definition YSelectionBox.cc:86
virtual void setShrinkable(bool shrinkable=true)
Definition YSelectionBox.cc:74
YSelectionBox(YWidget *parent, const std::string &label)
Definition YSelectionBox.cc:50
virtual const YPropertySet & propertySet()
Definition YSelectionBox.cc:96
virtual const char * widgetClass() const
Definition YSelectionBox.h:75
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition YSelectionBox.cc:141
bool shrinkable() const
Definition YSelectionBox.cc:68
virtual ~YSelectionBox()
Definition YSelectionBox.cc:62
bool immediateMode() const
Definition YSelectionBox.cc:80
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition YSelectionBox.cc:122
const char * userInputProperty()
Definition YSelectionBox.h:149
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 YSelectionBox.cc:37