1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
26 #include "YDateField.h"
28 class YQWidgetCaption;
31 class YQDateField : public QFrame, public YDateField
40 YQDateField( YWidget * parent,
41 const string & label );
46 virtual ~YQDateField();
49 * Get the current value (the text entered by the user or set from the
50 * outside) of this input field.
52 * Implemented from YSimpleInputField.
54 virtual string value();
57 * Set the current value (the text entered by the user or set from the
58 * outside) of this input field.
60 * Implemented from YSimpleInputField.
62 virtual void setValue( const string & newValue );
65 * Set the label (the caption above the input field).
67 * Reimplemented from YSimpleInputField.
69 virtual void setLabel( const string & label );
72 * Set enabled/disabled state.
74 * Reimplemented from YWidget.
76 virtual void setEnabled( bool enabled );
79 * Preferred width of the widget.
81 * Reimplemented from YWidget.
83 virtual int preferredWidth();
86 * Preferred height of the widget.
88 * Reimplemented from YWidget.
90 virtual int preferredHeight();
93 * Set the new size of the widget.
95 * Reimplemented from YWidget.
97 virtual void setSize( int newWidth, int newHeight );
100 * Accept the keyboard focus.
102 * Reimplemented from YWidget.
104 virtual bool setKeyboardFocus();
109 YQWidgetCaption * _caption;
110 QDateEdit * _qt_dateEdit;
114 #endif // YQDateField_h