1 #ifndef TIMEDISPLAYWIDGET_H_
\r
2 #define TIMEDISPLAYWIDGET_H_
\r
8 //! Abstact. UserInterface class. Displays time.
\r
10 * Abstact. UserInterface class. Offers basic functionality to display time. Inherited by
\r
11 * DigitalTimeDisplayWidget.
\r
13 class TimeDisplayWidget : public QWidget
\r
20 * Basic constructor of TimeDisplayWidget.
\r
21 * \param aNow Current time
\r
22 * \param aParent Parent widget
\r
24 TimeDisplayWidget( QTime aNow, QWidget *aParent = 0 );
\r
26 virtual ~TimeDisplayWidget();
\r
28 //! Returns the current time
\r
30 * \return Current time stored be the widget
\r
34 //! Set background color
\r
36 * \param aColor Color of widget backgroud
\r
38 void setBackgroundColor( QColor aColor );
\r
39 //! Set foreground color
\r
41 * \param aColor Color of widget foregroud (text)
\r
43 void setForegroundColor( QColor aColor );
\r
44 //! Set frame visibility
\r
46 * Pure virtual function to set the visibility of the frame
\r
47 * \param aVisible True, if frame is drawn, otherwise false.
\r
49 virtual void setFrameVisible( bool aVisible ) = 0;
\r
52 * Pure virtual function to set the size of widget.
\r
56 virtual void setSize( int aWidth, int aHeight ) = 0;
\r
59 * Pure virtual function to set the font.
\r
62 virtual void setFont( const QFont &aFont ) = 0;
\r
67 * Updates the time displayd.
\r
68 * \param aNow Current time.
\r
70 void setTime( QTime aNow );
\r
73 //! Displays the time.
\r
75 * Pure virtual function to display time.
\r
77 virtual void showTime() = 0;
\r
80 //! Stores the time.
\r
85 #endif /*TIMEDISPLAYWIDGET_H_*/
\r