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 f467f00..32f7e11 100644 --- a/noncore/graphics/opie-eye/gui/imageview.h +++ b/noncore/graphics/opie-eye/gui/imageview.h | |||
@@ -12,29 +12,35 @@ namespace Opie { | |||
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 | }; | 20 | }; |
20 | 21 | ||
21 | public: | 22 | public: |
22 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); | 23 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); |
23 | virtual ~ImageView(); | 24 | virtual ~ImageView(); |
24 | Opie::Core::OKeyConfigManager* manager(); | 25 | Opie::Core::OKeyConfigManager* manager(); |
26 | void setFullScreen(bool how){m_isFullScreen = how;} | ||
27 | bool fullScreen(){return m_isFullScreen;} | ||
25 | 28 | ||
26 | signals: | 29 | signals: |
27 | void dispImageInfo(const QString&); | 30 | void dispImageInfo(const QString&); |
28 | void dispNext(); | 31 | void dispNext(); |
29 | void dispPrev(); | 32 | void dispPrev(); |
33 | void toggleFullScreen(); | ||
30 | 34 | ||
31 | protected: | 35 | protected: |
32 | Opie::Core::OConfig * m_cfg; | 36 | Opie::Core::OConfig * m_cfg; |
33 | Opie::Core::OKeyConfigManager*m_viewManager; | 37 | Opie::Core::OKeyConfigManager*m_viewManager; |
34 | void initKeys(); | 38 | void initKeys(); |
39 | bool m_isFullScreen:1; | ||
40 | |||
35 | protected slots: | 41 | protected slots: |
36 | virtual void slotShowImageInfo(); | 42 | virtual void slotShowImageInfo(); |
37 | virtual void slotDispNext(); | 43 | virtual void slotDispNext(); |
38 | virtual void slotDispPrev(); | 44 | virtual void slotDispPrev(); |
39 | virtual void keyReleaseEvent(QKeyEvent * e); | 45 | virtual void keyReleaseEvent(QKeyEvent * e); |
40 | }; | 46 | }; |