1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
15 Author: Stefan Hundhammer <sh@suse.de>
24 #include "YTimeField.h"
26 class YQWidgetCaption;
30 class YQTimeField : public QFrame, public YTimeField
38 YQTimeField( YWidget * parent,
39 const string & label );
44 virtual ~YQTimeField();
47 * Get the current value (the text entered by the user or set from the
48 * outside) of this input field.
50 * Implemented from YSimpleInputField.
52 virtual string value();
55 * Set the current value (the text entered by the user or set from the
56 * outside) of this input field.
58 * Implemented from YSimpleInputField.
60 virtual void setValue( const string & newValue );
63 * Set the label (the caption above the input field).
65 * Reimplemented from YSimpleInputField.
67 virtual void setLabel( const string & label );
70 * Set enabled/disabled state.
72 * Reimplemented from YWidget.
74 virtual void setEnabled( bool enabled );
77 * Preferred width of the widget.
79 * Reimplemented from YWidget.
81 virtual int preferredWidth();
84 * Preferred height of the widget.
86 * Reimplemented from YWidget.
88 virtual int preferredHeight();
91 * Set the new size of the widget.
93 * Reimplemented from YWidget.
95 virtual void setSize( int newWidth, int newHeight );
98 * Accept the keyboard focus.
100 * Reimplemented from YWidget.
102 virtual bool setKeyboardFocus();
107 YQWidgetCaption * _caption;
108 QTimeEdit * _qt_timeEdit;
112 #endif // YQTimeField_h