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 | 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 | |||
@@ -4,4 +4,6 @@ | |||
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 { |
@@ -30,4 +32,5 @@ public: | |||
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 | ||
@@ -47,5 +50,9 @@ protected: | |||
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: |
@@ -53,5 +60,20 @@ protected slots: | |||
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 | ||