Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageview.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.h b/noncore/graphics/opie-eye/gui/imageview.h index 6bf930f..445bee9 100644 --- a/noncore/graphics/opie-eye/gui/imageview.h +++ b/noncore/graphics/opie-eye/gui/imageview.h | |||
@@ -11,40 +11,46 @@ namespace Opie { | |||
11 | } | 11 | } |
12 | 12 | ||
13 | class ImageView:public Opie::MM::OImageScrollView | 13 | class ImageView:public Opie::MM::OImageScrollView |
14 | { | 14 | { |
15 | Q_OBJECT | 15 | Q_OBJECT |
16 | 16 | ||
17 | enum ActionIds { | 17 | enum ActionIds { |
18 | ViewInfo, | 18 | ViewInfo, |
19 | FullScreen, | 19 | FullScreen, |
20 | ShowNext, | 20 | ShowNext, |
21 | ShowPrevious, | 21 | ShowPrevious, |
22 | Zoomer, | 22 | Zoomer, |
23 | Autorotate, | ||
24 | Autoscale | ||
23 | }; | 25 | }; |
24 | 26 | ||
25 | public: | 27 | public: |
26 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); | 28 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); |
27 | virtual ~ImageView(); | 29 | virtual ~ImageView(); |
28 | Opie::Core::OKeyConfigManager* manager(); | 30 | Opie::Core::OKeyConfigManager* manager(); |
29 | void setFullScreen(bool how){m_isFullScreen = how;} | 31 | void setFullScreen(bool how); |
30 | bool fullScreen(){return m_isFullScreen;} | 32 | bool fullScreen(){return m_isFullScreen;} |
31 | 33 | ||
32 | signals: | 34 | signals: |
33 | void dispImageInfo(const QString&); | 35 | void dispImageInfo(const QString&); |
34 | void dispNext(); | 36 | void dispNext(); |
35 | void dispPrev(); | 37 | void dispPrev(); |
36 | void toggleFullScreen(); | 38 | void toggleFullScreen(); |
37 | void hideMe(); | 39 | void hideMe(); |
38 | void toggleZoomer(); | 40 | void toggleZoomer(); |
41 | void toggleAutoscale(); | ||
42 | void toggleAutorotate(); | ||
39 | 43 | ||
40 | protected: | 44 | protected: |
41 | Opie::Core::OConfig * m_cfg; | 45 | Opie::Core::OConfig * m_cfg; |
42 | Opie::Core::OKeyConfigManager*m_viewManager; | 46 | Opie::Core::OKeyConfigManager*m_viewManager; |
43 | void initKeys(); | 47 | void initKeys(); |
44 | bool m_isFullScreen:1; | 48 | bool m_isFullScreen:1; |
45 | 49 | ||
46 | protected slots: | 50 | protected slots: |
47 | virtual void slotShowImageInfo(); | 51 | virtual void slotShowImageInfo(); |
48 | virtual void keyReleaseEvent(QKeyEvent * e); | 52 | virtual void keyReleaseEvent(QKeyEvent * e); |
53 | virtual void contentsMousePressEvent ( QMouseEvent * e); | ||
49 | }; | 54 | }; |
55 | |||
50 | #endif | 56 | #endif |