libyui
Loading...
Searching...
No Matches
YSimpleInputField.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: YSimpleInputField.h
20
21
Author: Stefan Hundhammer <shundhammer@suse.de>
22
23
/-*/
24
25
#ifndef YSimpleInputField_h
26
#define YSimpleInputField_h
27
28
#include "YWidget.h"
29
30
class
YSimpleInputFieldPrivate
;
31
32
37
class
YSimpleInputField
:
public
YWidget
38
{
39
protected
:
43
YSimpleInputField
(
YWidget
*
parent
,
const
std::string &
label
);
44
45
public
:
49
virtual
~YSimpleInputField
();
50
57
virtual
std::string
value
() = 0;
58
65
virtual
void
setValue
(
const
std::string & text ) = 0;
66
70
std::string
label
()
const
;
71
78
virtual
void
setLabel
(
const
std::string &
label
);
79
90
virtual
bool
setProperty
(
const
std::string &
propertyName
,
91
const
YPropertyValue
&
val
);
92
99
virtual
YPropertyValue
getProperty
(
const
std::string &
propertyName
);
100
107
virtual
const
YPropertySet
&
propertySet
();
108
114
virtual
std::string
shortcutString
()
const
{
return
label
(); }
115
121
virtual
void
setShortcutString
(
const
std::string &
str
)
122
{
setLabel
(
str
); }
123
128
const
char
*
userInputProperty
() {
return
YUIProperty_Value; }
129
130
131
private
:
132
133
ImplPtr<YSimpleInputFieldPrivate>
priv;
134
};
135
136
137
#endif
// YSimpleInputField_h
TreeItem
Definition
TreeItem.h:41
YPropertySet
Definition
YProperty.h:198
YPropertyValue
Definition
YProperty.h:105
YSimpleInputField
Definition
YSimpleInputField.h:38
YSimpleInputField::getProperty
virtual YPropertyValue getProperty(const std::string &propertyName)
Definition
YSimpleInputField.cc:114
YSimpleInputField::propertySet
virtual const YPropertySet & propertySet()
Definition
YSimpleInputField.cc:78
YSimpleInputField::YSimpleInputField
YSimpleInputField(YWidget *parent, const std::string &label)
Definition
YSimpleInputField.cc:47
YSimpleInputField::setProperty
virtual bool setProperty(const std::string &propertyName, const YPropertyValue &val)
Definition
YSimpleInputField.cc:98
YSimpleInputField::setShortcutString
virtual void setShortcutString(const std::string &str)
Definition
YSimpleInputField.h:121
YSimpleInputField::setLabel
virtual void setLabel(const std::string &label)
Definition
YSimpleInputField.cc:70
YSimpleInputField::userInputProperty
const char * userInputProperty()
Definition
YSimpleInputField.h:128
YSimpleInputField::shortcutString
virtual std::string shortcutString() const
Definition
YSimpleInputField.h:114
YSimpleInputField::setValue
virtual void setValue(const std::string &text)=0
YSimpleInputField::label
std::string label() const
Definition
YSimpleInputField.cc:64
YSimpleInputField::value
virtual std::string value()=0
YSimpleInputField::~YSimpleInputField
virtual ~YSimpleInputField()
Definition
YSimpleInputField.cc:58
YWidget
Definition
YWidget.h:55
YWidget::parent
YWidget * parent() const
Definition
YWidget.cc:277
YSimpleInputFieldPrivate
Definition
YSimpleInputField.cc:36
src
YSimpleInputField.h
Generated by
1.10.0