equal
deleted
inserted
replaced
|
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: Implementation of HbProgressSlider |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef HBPROGRESSSLIDER_H_ |
|
23 #define HBPROGRESSSLIDER_H_ |
|
24 |
|
25 #include <hbwidget.h> |
|
26 #include <hbstyle.h> |
|
27 |
|
28 class QGraphicsItem; |
|
29 |
|
30 class HbProgressSlider : public HbWidget |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 HbProgressSlider(); |
|
36 virtual ~HbProgressSlider(); |
|
37 |
|
38 public: |
|
39 void setRange( int minimum, int maximum ); |
|
40 |
|
41 void setMaxText( const QString &text ); |
|
42 QString maxText(); |
|
43 |
|
44 void setMinText( const QString &text ); |
|
45 QString minText(); |
|
46 |
|
47 void setProgressValue( int value ); |
|
48 void setSliderValue( int value ); |
|
49 |
|
50 int sliderValue(); |
|
51 int progressValue(); |
|
52 |
|
53 int maximum(); |
|
54 |
|
55 public: |
|
56 void press(); |
|
57 void release(); |
|
58 void move( int value ); |
|
59 |
|
60 signals: |
|
61 void sliderPressed(); |
|
62 void sliderReleased(); |
|
63 void sliderMoved( int value ); |
|
64 |
|
65 public: |
|
66 int mSliderValue; |
|
67 int mProgressValue; |
|
68 int mMax; |
|
69 int mMin; |
|
70 |
|
71 QString mMaxText; |
|
72 QString mMinText; |
|
73 }; |
|
74 |
|
75 #endif /*HBPROGRESSSLIDER_H_*/ |
|
76 |