1 #ifndef DIGITALTIMEDISPLAYWIDGET_H_
\r
2 #define DIGITALTIMEDISPLAYWIDGET_H_
\r
4 #include "TimeDisplayWidget.h"
\r
8 //! Userinterface class. Displays time in a digital display.
\r
10 * Userinterface class. Displays time in a digital display. Inherits TimeDisplayWidget and diplays time in
\r
11 * QLCDNumber display.
\r
13 class DigitalTimeDisplayWidget : public TimeDisplayWidget
\r
20 * Constructor to initialize a DigitalTimeDisplayWidget instance.
\r
21 * \param aNow Current time.
\r
22 * \param aFormat Time display format.
\r
23 * \param aParent Parent widget. Optional.
\r
25 DigitalTimeDisplayWidget( QTime aNow, QString aFormat, QWidget *aParent = 0 );
\r
27 virtual ~DigitalTimeDisplayWidget();
\r
29 //! Sets frame visibility.
\r
31 * Setst the visibility of the frame around this widget.
\r
32 * \param aVisible True, if frame is drawn, otherwise false.
\r
34 virtual void setFrameVisible( bool aVisible );
\r
38 * \param aWidth Width of the widget on the screen.
\r
39 * \param aHeight Height of the widget on the screen.
\r
41 virtual void setSize( int aWidth, int aHeight );
\r
45 * \param aFont The new font.
\r
47 virtual void setFont( const QFont &aFont );
\r
50 //! Displays the time.
\r
52 * Displays the time in LCD number display.
\r
54 virtual void showTime();
\r
57 //! Display to show the time.
\r
58 QLCDNumber *iDisplay;
\r
59 //! Format used to show time.
\r
60 QString iTimeFormat;
\r
64 #endif /*DIGITALTIMEDISPLAYWIDGET_H_*/
\r