libyui  3.4.2
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  **/
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 
66 };
67 
68 
69 #endif // YDateField_h
Input field for entering a date.
Definition: YDateField.h:42
YWidget * parent() const
Return this widget&#39;s parent or 0 if it doesn&#39;t have a parent.
Definition: YWidget.cc:269
YDateField(YWidget *parent, const std::string &label)
Constructor.
Definition: YDateField.cc:43
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
Definition: YDateField.h:60
std::string label() const
Get the label (the caption above the input field).
virtual ~YDateField()
Destructor.
Definition: YDateField.cc:51
Abstract base class for simple input fields with a label above the field and a text value...
Abstract base class of all UI widgets.
Definition: YWidget.h:54