author | alwin <alwin> | 2004-10-31 16:31:04 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-10-31 16:31:04 (UTC) |
commit | 6d27de4d1d4ebce0acc9ab68037d7e9f3c1d3703 (patch) (unidiff) | |
tree | 793f8a0e448ff7944dab4ce5187d6e1b93daf416 /noncore/graphics/opie-eye/gui/mainwindow.h | |
parent | 92fa51ae338d92b0df078f8283b31afdfcf4341a (diff) | |
download | opie-6d27de4d1d4ebce0acc9ab68037d7e9f3c1d3703.zip opie-6d27de4d1d4ebce0acc9ab68037d7e9f3c1d3703.tar.gz opie-6d27de4d1d4ebce0acc9ab68037d7e9f3c1d3703.tar.bz2 |
all toolbuttons etc. switched to QAction objects
menu mostly finished
Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.h b/noncore/graphics/opie-eye/gui/mainwindow.h index ae1cc09..65151fc 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.h +++ b/noncore/graphics/opie-eye/gui/mainwindow.h | |||
@@ -29,6 +29,7 @@ class QMenuBar; | |||
29 | class QToolBar; | 29 | class QToolBar; |
30 | class QPopupMenu; | 30 | class QPopupMenu; |
31 | class QAction; | 31 | class QAction; |
32 | class QActionGroup; | ||
32 | class StorageInfo; | 33 | class StorageInfo; |
33 | 34 | ||
34 | class PMainWindow : public QMainWindow { | 35 | class PMainWindow : public QMainWindow { |
@@ -42,6 +43,7 @@ public: | |||
42 | signals: | 43 | signals: |
43 | void configChanged(); | 44 | void configChanged(); |
44 | void changeDir( const QString& ); | 45 | void changeDir( const QString& ); |
46 | void changeListMode(int); | ||
45 | 47 | ||
46 | public slots: | 48 | public slots: |
47 | void slotShowInfo( const QString& inf ); | 49 | void slotShowInfo( const QString& inf ); |
@@ -55,11 +57,13 @@ public slots: | |||
55 | void slotToggleAutoscale(); | 57 | void slotToggleAutoscale(); |
56 | void setDocument( const QString& ); | 58 | void setDocument( const QString& ); |
57 | virtual void slotToggleFullScreen(); | 59 | virtual void slotToggleFullScreen(); |
60 | virtual void slotFullScreenToggled(bool); | ||
58 | 61 | ||
59 | protected slots: | 62 | protected slots: |
60 | void raiseIconView(); | 63 | void raiseIconView(); |
61 | void closeEvent( QCloseEvent* ); | 64 | void closeEvent( QCloseEvent* ); |
62 | void showToolbar(bool); | 65 | void showToolbar(bool); |
66 | void listviewselected(QAction*); | ||
63 | 67 | ||
64 | private: | 68 | private: |
65 | template<class T> void initT( const char* name, T**, int ); | 69 | template<class T> void initT( const char* name, T**, int ); |
@@ -75,14 +79,19 @@ private: | |||
75 | bool autoRotate; | 79 | bool autoRotate; |
76 | bool autoScale; | 80 | bool autoScale; |
77 | bool zoomerOn; | 81 | bool zoomerOn; |
78 | QToolButton*rotateButton,*fsButton,*viewModeButton; | 82 | QToolButton*fsButton; |
79 | QToolButton*nextButton,*prevButton,*zoomButton,*scaleButton; | ||
80 | QMenuBar *menuBar; | ||
81 | QToolBar *toolBar; | 83 | QToolBar *toolBar; |
82 | QPopupMenu *fileMenu,*dispMenu,*fsMenu; | 84 | QPopupMenu *fileMenu,*dispMenu,*fsMenu,*listviewMenu; |
83 | QAction*m_aShowInfo,*m_aBeam,*m_aTrash,*m_aViewfile,*m_aDirUp,*m_aStartSlide; | 85 | QAction*m_aShowInfo,*m_aBeam,*m_aTrash,*m_aViewfile,*m_aDirUp,*m_aStartSlide; |
84 | QAction*m_aHideToolbar; | 86 | QAction*m_aHideToolbar,*m_aSetup,*m_aDirName,*m_aDirShort,*m_aDirLong; |
85 | 87 | QActionGroup *m_gListViewMode,*m_gDisplayType,*m_gPrevNext,*m_hGroup; | |
88 | QAction *m_aNext,*m_aPrevious,*m_aFullScreen; | ||
89 | QAction *m_aAutoRotate,*m_aAutoScale,*m_aZoomer; | ||
90 | |||
91 | /* init funs */ | ||
92 | void setupActions(); | ||
93 | void setupToolbar(); | ||
94 | void setupMenu(); | ||
86 | /* for the device submenu - ToDo: Merge with the special button */ | 95 | /* for the device submenu - ToDo: Merge with the special button */ |
87 | StorageInfo *m_storage; | 96 | StorageInfo *m_storage; |
88 | QMap<QString, QString> m_dev; | 97 | QMap<QString, QString> m_dev; |