libyui
3.0.10
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Friends
YDateField.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: YDateField.h
20
21
Author: Stefan Hundhammer <sh@suse.de>
22
23
/-*/
24
25
#ifndef YDateField_h
26
#define YDateField_h
27
28
#include "YSimpleInputField.h"
29
30
class
YDateFieldPrivate
;
31
32
/**
33
* Input field for entering a date.
34
*
35
* Derived classes are required to implement:
36
* value()
37
* setValue()
38
*
39
* For both methods the date is formatted as "YYYY-MM-DD".
40
* See YSimpleInputField.h for more details.
41
**/
42
class
YDateField
:
public
YSimpleInputField
43
{
44
protected
:
45
/**
46
* Constructor.
47
**/
48
YDateField
(
YWidget
*
parent
,
const
std::string &
label
);
49
50
public
:
51
/**
52
* Destructor.
53
**/
54
virtual
~YDateField
();
55
56
/**
57
* Returns a descriptive name of this widget class for logging,
58
* debugging etc.
59
**/
60
virtual
const
char
*
widgetClass
()
const
{
return
"YDateField"
; }
61
62
63
private
:
64
65
ImplPtr<YDateFieldPrivate>
priv;
66
};
67
68
69
#endif // YDateField_h
YDateField
Definition:
YDateField.h:42
YWidget::parent
YWidget * parent() const
Definition:
YWidget.cc:269
YDateField::YDateField
YDateField(YWidget *parent, const std::string &label)
Definition:
YDateField.cc:43
YDateField::widgetClass
virtual const char * widgetClass() const
Definition:
YDateField.h:60
YDateFieldPrivate
Definition:
YDateField.cc:32
YDateField::~YDateField
virtual ~YDateField()
Definition:
YDateField.cc:51
ImplPtr< YDateFieldPrivate >
YSimpleInputField
Definition:
YSimpleInputField.h:37
YWidget
Definition:
YWidget.h:54
YSimpleInputField::label
std::string label() const
Definition:
YSimpleInputField.cc:62
src
YDateField.h
Generated by
1.8.5