author | alwin <alwin> | 2004-04-22 20:57:40 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-22 20:57:40 (UTC) |
commit | d93cb43bb2c79a9a8357e195fcdfd8ff140f8a75 (patch) (unidiff) | |
tree | 066b20a65a2300c50308916027d3c055fd22a085 /noncore/graphics/opie-eye/gui/imageview.h | |
parent | 42977c57028a94735aaf9870097e1269815c6229 (diff) | |
download | opie-d93cb43bb2c79a9a8357e195fcdfd8ff140f8a75.zip opie-d93cb43bb2c79a9a8357e195fcdfd8ff140f8a75.tar.gz opie-d93cb43bb2c79a9a8357e195fcdfd8ff140f8a75.tar.bz2 |
ok. next variant of fullscreen toggeling. It seems, that now within all
circumstances the viewer get fullscreen back and we don't run into an
endless loop.
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 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.h b/noncore/graphics/opie-eye/gui/imageview.h index 5f15bc9..f3c37b5 100644 --- a/noncore/graphics/opie-eye/gui/imageview.h +++ b/noncore/graphics/opie-eye/gui/imageview.h | |||
@@ -10,71 +10,68 @@ namespace Opie { | |||
10 | class OConfig; | 10 | class OConfig; |
11 | class OKeyConfigManager; | 11 | class OKeyConfigManager; |
12 | } | 12 | } |
13 | } | 13 | } |
14 | 14 | ||
15 | class ImageView:public Opie::MM::OImageScrollView | 15 | class ImageView:public Opie::MM::OImageScrollView |
16 | { | 16 | { |
17 | Q_OBJECT | 17 | Q_OBJECT |
18 | 18 | ||
19 | enum ActionIds { | 19 | enum ActionIds { |
20 | ViewInfo, | 20 | ViewInfo, |
21 | FullScreen, | 21 | FullScreen, |
22 | ShowNext, | 22 | ShowNext, |
23 | ShowPrevious, | 23 | ShowPrevious, |
24 | Zoomer, | 24 | Zoomer, |
25 | Autorotate, | 25 | Autorotate, |
26 | Autoscale | 26 | Autoscale |
27 | }; | 27 | }; |
28 | 28 | ||
29 | public: | 29 | public: |
30 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); | 30 | ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); |
31 | virtual ~ImageView(); | 31 | virtual ~ImageView(); |
32 | Opie::Core::OKeyConfigManager* manager(); | 32 | Opie::Core::OKeyConfigManager* manager(); |
33 | void setFullScreen(bool how); | 33 | void setFullScreen(bool how); |
34 | virtual void enableFullscreen(); | ||
35 | bool fullScreen(){return m_isFullScreen;} | 34 | bool fullScreen(){return m_isFullScreen;} |
35 | virtual void enableFullscreen(); | ||
36 | 36 | ||
37 | signals: | 37 | signals: |
38 | void dispImageInfo(const QString&); | 38 | void dispImageInfo(const QString&); |
39 | void dispNext(); | 39 | void dispNext(); |
40 | void dispPrev(); | 40 | void dispPrev(); |
41 | void toggleFullScreen(); | 41 | void toggleFullScreen(); |
42 | void hideMe(); | 42 | void hideMe(); |
43 | void toggleZoomer(); | 43 | void toggleZoomer(); |
44 | void toggleAutoscale(); | 44 | void toggleAutoscale(); |
45 | void toggleAutorotate(); | 45 | void toggleAutorotate(); |
46 | 46 | ||
47 | protected: | 47 | protected: |
48 | Opie::Core::OConfig * m_cfg; | 48 | Opie::Core::OConfig * m_cfg; |
49 | Opie::Core::OKeyConfigManager*m_viewManager; | 49 | Opie::Core::OKeyConfigManager*m_viewManager; |
50 | void initKeys(); | 50 | void initKeys(); |
51 | bool m_isFullScreen:1; | 51 | bool m_isFullScreen:1; |
52 | bool m_focus_out:1; | 52 | bool m_ignore_next_in:1; |
53 | bool block_next_focus:1; | 53 | int focus_in_count; |
54 | |||
55 | virtual void focusInEvent ( QFocusEvent * ); | 54 | virtual void focusInEvent ( QFocusEvent * ); |
56 | virtual void focusOutEvent ( QFocusEvent * ); | 55 | |
57 | 56 | ||
58 | protected slots: | 57 | protected slots: |
59 | virtual void slotShowImageInfo(); | 58 | virtual void slotShowImageInfo(); |
60 | virtual void keyReleaseEvent(QKeyEvent * e); | 59 | virtual void keyReleaseEvent(QKeyEvent * e); |
61 | virtual void contentsMousePressEvent ( QMouseEvent * e); | 60 | virtual void contentsMousePressEvent ( QMouseEvent * e); |
62 | }; | 61 | }; |
63 | 62 | ||
64 | class ImageWidget:public QWidget | 63 | class ImageWidget:public QWidget |
65 | { | 64 | { |
66 | Q_OBJECT | 65 | Q_OBJECT |
67 | public: | 66 | public: |
68 | ImageWidget(QWidget * parent=0, const char * name=0, WFlags f = WStyle_Customize | WStyle_NoBorder); | 67 | ImageWidget(QWidget * parent=0, const char * name=0, WFlags f = WStyle_Customize | WStyle_NoBorder); |
69 | virtual ~ImageWidget(){}; | 68 | virtual ~ImageWidget(){}; |
70 | 69 | ||
71 | protected: | 70 | protected: |
72 | 71 | ||
73 | public slots: | 72 | public slots: |
74 | virtual void show(); | ||
75 | virtual void hide(); | ||
76 | 73 | ||
77 | protected slots: | 74 | protected slots: |
78 | }; | 75 | }; |
79 | 76 | ||
80 | #endif | 77 | #endif |