equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef LETTERWIDGET_H_ |
|
18 #define LETTERWIDGET_H_ |
|
19 |
|
20 #include <hbwidget.h> |
|
21 #include <QGraphicsLinearLayout> |
|
22 #include <QGraphicsGridLayout> |
|
23 #include <HbPushButton> |
|
24 #include <hblabel.h> |
|
25 #include <HbComboBox> |
|
26 |
|
27 class letterwidget: public HbWidget |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 letterwidget(QGraphicsItem *parent = 0); |
|
32 ~letterwidget(); |
|
33 QString state(); |
|
34 void setState( QString state ); |
|
35 |
|
36 private: |
|
37 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); |
|
38 |
|
39 QGraphicsGridLayout *mGridLayout; |
|
40 |
|
41 HbPushButton *mA; |
|
42 HbPushButton *mB; |
|
43 HbPushButton *mC; |
|
44 |
|
45 HbPushButton *mSave; |
|
46 HbPushButton *mDel; |
|
47 HbPushButton *mWait; |
|
48 HbPushButton *mPanic; |
|
49 |
|
50 signals: |
|
51 void save(); |
|
52 void del(); |
|
53 |
|
54 private slots: |
|
55 void toA(); |
|
56 void toB(); |
|
57 void toC(); |
|
58 void wait(); |
|
59 void panic(); |
|
60 |
|
61 private: |
|
62 QString mStatename; |
|
63 |
|
64 }; |
|
65 |
|
66 #endif /* LETTERWIDGET_H_*/ |