qtmeetings sources to Maemo garage
[qtmeetings] / src / UserInterface / Components / DigitalTimeDisplayWidget.h
1 #ifndef DIGITALTIMEDISPLAYWIDGET_H_\r
2 #define DIGITALTIMEDISPLAYWIDGET_H_\r
3 \r
4 #include "TimeDisplayWidget.h"\r
5 \r
6 class QLCDNumber;\r
7 \r
8 //! Userinterface class. Displays time in a digital display.\r
9 /*!\r
10  * Userinterface class. Displays time in a digital display. Inherits TimeDisplayWidget and diplays time in\r
11  * QLCDNumber display.\r
12  */\r
13 class DigitalTimeDisplayWidget : public TimeDisplayWidget\r
14 {\r
15         Q_OBJECT\r
16 \r
17 public:\r
18         //! Constructor.\r
19         /*!\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
24          */\r
25         DigitalTimeDisplayWidget( QTime aNow, QString aFormat, QWidget *aParent = 0 );\r
26         //! Destructor.\r
27         virtual ~DigitalTimeDisplayWidget();\r
28 \r
29         //! Sets frame visibility.\r
30         /*!\r
31          * Setst the visibility of the frame around this widget.\r
32          * \param aVisible True, if frame is drawn, otherwise false.\r
33          */\r
34         virtual void setFrameVisible( bool aVisible );\r
35         //! Sets size.\r
36         /*!\r
37          * Sets the size.\r
38          * \param aWidth Width of the widget on the screen.\r
39          * \param aHeight Height of the widget on the screen.\r
40          */\r
41         virtual void setSize( int aWidth, int aHeight );\r
42         //! Sets Font\r
43         /*!\r
44          * Sets the font.\r
45          * \param aFont The new font.\r
46          */\r
47         virtual void setFont( const QFont &aFont );\r
48 \r
49 protected:\r
50         //! Displays the time.\r
51         /*!\r
52          * Displays the time in LCD number display.\r
53          */\r
54         virtual void showTime();\r
55 \r
56 private:\r
57         //! Display to show the time.\r
58         QLCDNumber *iDisplay;\r
59         //! Format used to show time.\r
60         QString iTimeFormat;\r
61 \r
62 };\r
63 \r
64 #endif /*DIGITALTIMEDISPLAYWIDGET_H_*/\r