Diffstat (limited to 'noncore/graphics/opie-eye/gui/imageview.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/imageview.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.h b/noncore/graphics/opie-eye/gui/imageview.h index f0e6541..640905a 100644 --- a/noncore/graphics/opie-eye/gui/imageview.h +++ b/noncore/graphics/opie-eye/gui/imageview.h | |||
@@ -1,20 +1,22 @@ | |||
1 | #ifndef _IMAGE_VIEW_H | 1 | #ifndef _IMAGE_VIEW_H |
2 | #define _IMAGE_VIEW_H | 2 | #define _IMAGE_VIEW_H |
3 | 3 | ||
4 | #include <opie2/oimagescrollview.h> | 4 | #include <opie2/oimagescrollview.h> |
5 | 5 | ||
6 | #include <qwidget.h> | 6 | #include <qwidget.h> |
7 | 7 | ||
8 | class QTimer; | 8 | class QTimer; |
9 | class QActionGroup; | ||
10 | class QAction; | ||
9 | 11 | ||
10 | namespace Opie { | 12 | namespace Opie { |
11 | namespace Core { | 13 | namespace Core { |
12 | class OConfig; | 14 | class OConfig; |
13 | class OKeyConfigManager; | 15 | class OKeyConfigManager; |
14 | } | 16 | } |
15 | } | 17 | } |
16 | 18 | ||
17 | class ImageView:public Opie::MM::OImageScrollView | 19 | class ImageView:public Opie::MM::OImageScrollView |
18 | { | 20 | { |
19 | Q_OBJECT | 21 | Q_OBJECT |
20 | 22 | ||
@@ -26,45 +28,48 @@ class ImageView:public Opie::MM::OImageScrollView | |||
26 | Zoomer, | 28 | Zoomer, |
27 | Autorotate, | 29 | Autorotate, |
28 | Autoscale | 30 | Autoscale |
29 | }; | 31 | }; |
30 | 32 | ||
31 | public: | 33 | public: |
32 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); | 34 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); |
33 | virtual ~ImageView(); | 35 | virtual ~ImageView(); |
34 | Opie::Core::OKeyConfigManager* manager(); | 36 | Opie::Core::OKeyConfigManager* manager(); |
35 | void setFullScreen(bool how); | 37 | void setFullScreen(bool how); |
36 | bool fullScreen(){return m_isFullScreen;} | 38 | bool fullScreen(){return m_isFullScreen;} |
37 | virtual void enableFullscreen(); | 39 | virtual void enableFullscreen(); |
40 | void stopSlide(); | ||
41 | void setMenuActions(QActionGroup*hGroup,QActionGroup*nextprevGroup, QActionGroup*disptypeGroup); | ||
38 | 42 | ||
39 | signals: | 43 | signals: |
40 | void dispImageInfo(const QString&); | 44 | void dispImageInfo(const QString&); |
41 | void dispNext(); | 45 | void dispNext(); |
42 | void dispPrev(); | 46 | void dispPrev(); |
43 | void toggleFullScreen(); | 47 | void toggleFullScreen(); |
44 | void hideMe(); | 48 | void hideMe(); |
45 | void toggleZoomer(); | 49 | void toggleZoomer(); |
46 | void toggleAutoscale(); | 50 | void toggleAutoscale(); |
47 | void toggleAutorotate(); | 51 | void toggleAutorotate(); |
48 | 52 | ||
49 | protected: | 53 | protected: |
50 | Opie::Core::OConfig * m_cfg; | 54 | Opie::Core::OConfig * m_cfg; |
51 | Opie::Core::OKeyConfigManager*m_viewManager; | 55 | Opie::Core::OKeyConfigManager*m_viewManager; |
52 | void initKeys(); | 56 | void initKeys(); |
53 | bool m_isFullScreen:1; | 57 | bool m_isFullScreen:1; |
54 | bool m_ignore_next_in:1; | 58 | bool m_ignore_next_in:1; |
55 | int focus_in_count; | 59 | int focus_in_count; |
56 | QTimer*m_slideTimer; | 60 | QTimer*m_slideTimer; |
57 | int m_slideValue; | 61 | int m_slideValue; |
58 | virtual void focusInEvent ( QFocusEvent * ); | 62 | virtual void focusInEvent ( QFocusEvent * ); |
63 | QActionGroup *m_gDisplayType,*m_gPrevNext,*m_hGroup; | ||
59 | 64 | ||
60 | public slots: | 65 | public slots: |
61 | virtual void hide(); | 66 | virtual void hide(); |
62 | virtual void startSlide(int); | 67 | virtual void startSlide(int); |
63 | virtual void nextSlide(); | 68 | virtual void nextSlide(); |
64 | 69 | ||
65 | protected slots: | 70 | protected slots: |
66 | virtual void slotShowImageInfo(); | 71 | virtual void slotShowImageInfo(); |
67 | virtual void keyReleaseEvent(QKeyEvent * e); | 72 | virtual void keyReleaseEvent(QKeyEvent * e); |
68 | virtual void contentsMousePressEvent ( QMouseEvent * e); | 73 | virtual void contentsMousePressEvent ( QMouseEvent * e); |
69 | }; | 74 | }; |
70 | 75 | ||