1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
24 #include "YDateField.h"
27 class YQWidgetCaption;
30 class YQDateField : public QFrame, public YDateField
39 YQDateField( YWidget * parent,
40 const string & label );
45 virtual ~YQDateField();
48 * Get the current value (the text entered by the user or set from the
49 * outside) of this input field.
51 * Implemented from YSimpleInputField.
53 virtual string value();
56 * Set the current value (the text entered by the user or set from the
57 * outside) of this input field.
59 * Implemented from YSimpleInputField.
61 virtual void setValue( const string & newValue );
64 * Set the label (the caption above the input field).
66 * Reimplemented from YSimpleInputField.
68 virtual void setLabel( const string & label );
71 * Set enabled/disabled state.
73 * Reimplemented from YWidget.
75 virtual void setEnabled( bool enabled );
78 * Preferred width of the widget.
80 * Reimplemented from YWidget.
82 virtual int preferredWidth();
85 * Preferred height of the widget.
87 * Reimplemented from YWidget.
89 virtual int preferredHeight();
92 * Set the new size of the widget.
94 * Reimplemented from YWidget.
96 virtual void setSize( int newWidth, int newHeight );
99 * Accept the keyboard focus.
101 * Reimplemented from YWidget.
103 virtual bool setKeyboardFocus();
108 YQWidgetCaption * _caption;
109 Q3DateEdit * _qt_dateEdit;
113 #endif // YQDateField_h