author | alwin <alwin> | 2004-04-22 20:57:40 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-04-22 20:57:40 (UTC) |
commit | d93cb43bb2c79a9a8357e195fcdfd8ff140f8a75 (patch) (side-by-side diff) | |
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 @@ -1,80 +1,77 @@ #ifndef _IMAGE_VIEW_H #define _IMAGE_VIEW_H #include <opie2/oimagescrollview.h> #include <qwidget.h> namespace Opie { namespace Core { class OConfig; class OKeyConfigManager; } } class ImageView:public Opie::MM::OImageScrollView { Q_OBJECT enum ActionIds { ViewInfo, FullScreen, ShowNext, ShowPrevious, Zoomer, Autorotate, Autoscale }; public: ImageView(Opie::Core::OConfig *cfg, QWidget* parent, const char* name = 0, WFlags fl = 0 ); virtual ~ImageView(); Opie::Core::OKeyConfigManager* manager(); void setFullScreen(bool how); - virtual void enableFullscreen(); bool fullScreen(){return m_isFullScreen;} + virtual void enableFullscreen(); signals: void dispImageInfo(const QString&); void dispNext(); void dispPrev(); void toggleFullScreen(); void hideMe(); void toggleZoomer(); void toggleAutoscale(); void toggleAutorotate(); protected: Opie::Core::OConfig * m_cfg; Opie::Core::OKeyConfigManager*m_viewManager; void initKeys(); bool m_isFullScreen:1; - bool m_focus_out:1; - bool block_next_focus:1; - + bool m_ignore_next_in:1; + int focus_in_count; virtual void focusInEvent ( QFocusEvent * ); - virtual void focusOutEvent ( QFocusEvent * ); + protected slots: virtual void slotShowImageInfo(); virtual void keyReleaseEvent(QKeyEvent * e); virtual void contentsMousePressEvent ( QMouseEvent * e); }; class ImageWidget:public QWidget { Q_OBJECT public: ImageWidget(QWidget * parent=0, const char * name=0, WFlags f = WStyle_Customize | WStyle_NoBorder); virtual ~ImageWidget(){}; protected: public slots: - virtual void show(); - virtual void hide(); protected slots: }; #endif |