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 |
|
18 |
|
19 #ifndef __PAGEZOOMCONTROL_P_H__ |
|
20 #define __PAGEZOOMCONTROL_P_H__ |
|
21 |
|
22 #include <QTimer> |
|
23 |
|
24 namespace WRT { |
|
25 |
|
26 class WrtPageManager; |
|
27 |
|
28 class PageZoomControlPrivate : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 enum ZoomDirection{zoomOut = -1, zoomReset = 0, zoomIn = 1}; |
|
34 |
|
35 PageZoomControlPrivate(WrtPageManager *mgr); |
|
36 ~PageZoomControlPrivate(); |
|
37 |
|
38 public slots: |
|
39 void smoothZoomIn(); |
|
40 void smoothZoomOut(); |
|
41 |
|
42 public: |
|
43 void createZoomTimer(ZoomDirection direction); |
|
44 void deleteTimer(); |
|
45 |
|
46 private: |
|
47 void setZoom(ZoomDirection direction); |
|
48 |
|
49 public: |
|
50 WrtPageManager *m_mgr; |
|
51 qreal m_value; |
|
52 QTimer *m_smoothZoomTimer; |
|
53 }; |
|
54 } |
|
55 #endif //__PAGEZOOMCONTROL_P_H__ |
|