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 | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/gui/imageview.h b/noncore/graphics/opie-eye/gui/imageview.h index 4d2405f..5f15bc9 100644 --- a/noncore/graphics/opie-eye/gui/imageview.h +++ b/noncore/graphics/opie-eye/gui/imageview.h | |||
@@ -1,11 +1,13 @@ | |||
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> | ||
7 | |||
6 | namespace Opie { | 8 | namespace Opie { |
7 | namespace Core { | 9 | namespace Core { |
8 | class OConfig; | 10 | class OConfig; |
9 | class OKeyConfigManager; | 11 | class OKeyConfigManager; |
10 | } | 12 | } |
11 | } | 13 | } |
@@ -26,12 +28,13 @@ class ImageView:public Opie::MM::OImageScrollView | |||
26 | 28 | ||
27 | public: | 29 | public: |
28 | 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 ); |
29 | virtual ~ImageView(); | 31 | virtual ~ImageView(); |
30 | Opie::Core::OKeyConfigManager* manager(); | 32 | Opie::Core::OKeyConfigManager* manager(); |
31 | void setFullScreen(bool how); | 33 | void setFullScreen(bool how); |
34 | virtual void enableFullscreen(); | ||
32 | bool fullScreen(){return m_isFullScreen;} | 35 | bool fullScreen(){return m_isFullScreen;} |
33 | 36 | ||
34 | signals: | 37 | signals: |
35 | void dispImageInfo(const QString&); | 38 | void dispImageInfo(const QString&); |
36 | void dispNext(); | 39 | void dispNext(); |
37 | void dispPrev(); | 40 | void dispPrev(); |
@@ -43,16 +46,35 @@ signals: | |||
43 | 46 | ||
44 | protected: | 47 | protected: |
45 | Opie::Core::OConfig * m_cfg; | 48 | Opie::Core::OConfig * m_cfg; |
46 | Opie::Core::OKeyConfigManager*m_viewManager; | 49 | Opie::Core::OKeyConfigManager*m_viewManager; |
47 | void initKeys(); | 50 | void initKeys(); |
48 | bool m_isFullScreen:1; | 51 | bool m_isFullScreen:1; |
49 | void enableFullscreen(); | 52 | bool m_focus_out:1; |
53 | bool block_next_focus:1; | ||
54 | |||
55 | virtual void focusInEvent ( QFocusEvent * ); | ||
56 | virtual void focusOutEvent ( QFocusEvent * ); | ||
50 | 57 | ||
51 | protected slots: | 58 | protected slots: |
52 | virtual void slotShowImageInfo(); | 59 | virtual void slotShowImageInfo(); |
53 | virtual void keyReleaseEvent(QKeyEvent * e); | 60 | virtual void keyReleaseEvent(QKeyEvent * e); |
54 | virtual void contentsMousePressEvent ( QMouseEvent * e); | 61 | virtual void contentsMousePressEvent ( QMouseEvent * e); |
55 | virtual void focusInEvent ( QFocusEvent * ); | 62 | }; |
63 | |||
64 | class ImageWidget:public QWidget | ||
65 | { | ||
66 | Q_OBJECT | ||
67 | public: | ||
68 | ImageWidget(QWidget * parent=0, const char * name=0, WFlags f = WStyle_Customize | WStyle_NoBorder); | ||
69 | virtual ~ImageWidget(){}; | ||
70 | |||
71 | protected: | ||
72 | |||
73 | public slots: | ||
74 | virtual void show(); | ||
75 | virtual void hide(); | ||
76 | |||
77 | protected slots: | ||
56 | }; | 78 | }; |
57 | 79 | ||
58 | #endif | 80 | #endif |