33
|
1 |
/*!
|
|
2 |
* Copyright (c) 2010 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: Extends HbInputButton
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef DIALPADNUMERICBUTTON_H
|
|
19 |
#define DIALPADNUMERICBUTTON_H
|
|
20 |
|
|
21 |
#include <hbicon.h>
|
|
22 |
#include <hbinputbutton.h>
|
|
23 |
|
|
24 |
class DialpadNumericButton : public HbInputButton
|
|
25 |
{
|
|
26 |
Q_OBJECT
|
|
27 |
|
48
|
28 |
// use label instead of text to override input button properties
|
|
29 |
Q_PROPERTY(QString iconName READ iconName)
|
|
30 |
Q_PROPERTY(QString primaryLabel READ primaryLabel WRITE setPrimaryLabel)
|
|
31 |
Q_PROPERTY(QString secondaryLabel READ secondaryLabel WRITE setSecondaryLabel)
|
|
32 |
Q_PROPERTY(QString secondaryLabelRow2 READ secondaryLabelRow2 WRITE setSecondaryLabelRow2)
|
|
33 |
|
33
|
34 |
public:
|
|
35 |
explicit DialpadNumericButton(int keyCode, const QPoint &position, const QSize &size = QSize(1, 1));
|
|
36 |
virtual ~DialpadNumericButton();
|
|
37 |
|
|
38 |
void setIcon(const HbIcon& icon);
|
|
39 |
HbIcon& icon();
|
48
|
40 |
QString iconName() const;
|
33
|
41 |
|
48
|
42 |
void setPrimaryLabel(const QString& value);
|
|
43 |
QString primaryLabel() const;
|
33
|
44 |
|
48
|
45 |
void setSecondaryLabel(const QString& value);
|
|
46 |
QString secondaryLabel() const;
|
33
|
47 |
|
48
|
48 |
void setSecondaryLabelRow2(const QString& value);
|
|
49 |
QString secondaryLabelRow2() const;
|
46
|
50 |
|
33
|
51 |
private:
|
|
52 |
HbIcon mIcon;
|
48
|
53 |
QString mPrimaryLabel;
|
|
54 |
QString mSecondaryLabel;
|
|
55 |
QString mSecondaryLabelRow2;
|
33
|
56 |
};
|
|
57 |
|
|
58 |
#endif // DIALPADNUMERICBUTTON_H
|