Diffstat (limited to 'noncore/graphics/opie-eye/gui/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/gui/mainwindow.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/noncore/graphics/opie-eye/gui/mainwindow.h b/noncore/graphics/opie-eye/gui/mainwindow.h index 6fa1ab6..ae1cc09 100644 --- a/noncore/graphics/opie-eye/gui/mainwindow.h +++ b/noncore/graphics/opie-eye/gui/mainwindow.h | |||
@@ -24,8 +24,13 @@ namespace Core{ | |||
24 | class ImageView; | 24 | class ImageView; |
25 | class ImageWidget; | 25 | class ImageWidget; |
26 | class PIconView; | 26 | class PIconView; |
27 | class imageinfo; | 27 | class imageinfo; |
28 | class QMenuBar; | ||
29 | class QToolBar; | ||
30 | class QPopupMenu; | ||
31 | class QAction; | ||
32 | class StorageInfo; | ||
28 | 33 | ||
29 | class PMainWindow : public QMainWindow { | 34 | class PMainWindow : public QMainWindow { |
30 | Q_OBJECT | 35 | Q_OBJECT |
31 | enum Views { IconView, ImageInfo, ImageDisplay }; | 36 | enum Views { IconView, ImageInfo, ImageDisplay }; |
@@ -35,8 +40,9 @@ public: | |||
35 | ~PMainWindow(); | 40 | ~PMainWindow(); |
36 | 41 | ||
37 | signals: | 42 | signals: |
38 | void configChanged(); | 43 | void configChanged(); |
44 | void changeDir( const QString& ); | ||
39 | 45 | ||
40 | public slots: | 46 | public slots: |
41 | void slotShowInfo( const QString& inf ); | 47 | void slotShowInfo( const QString& inf ); |
42 | void slotDisplay( const QString& inf ); | 48 | void slotDisplay( const QString& inf ); |
@@ -52,8 +58,9 @@ public slots: | |||
52 | 58 | ||
53 | protected slots: | 59 | protected slots: |
54 | void raiseIconView(); | 60 | void raiseIconView(); |
55 | void closeEvent( QCloseEvent* ); | 61 | void closeEvent( QCloseEvent* ); |
62 | void showToolbar(bool); | ||
56 | 63 | ||
57 | private: | 64 | private: |
58 | template<class T> void initT( const char* name, T**, int ); | 65 | template<class T> void initT( const char* name, T**, int ); |
59 | void initInfo(); | 66 | void initInfo(); |
@@ -67,12 +74,23 @@ private: | |||
67 | ImageView *m_disp; | 74 | ImageView *m_disp; |
68 | bool autoRotate; | 75 | bool autoRotate; |
69 | bool autoScale; | 76 | bool autoScale; |
70 | bool zoomerOn; | 77 | bool zoomerOn; |
71 | QToolButton*rotateButton,*upButton,*fsButton,*viewModeButton; | 78 | QToolButton*rotateButton,*fsButton,*viewModeButton; |
72 | QToolButton*nextButton,*prevButton,*zoomButton,*scaleButton; | 79 | QToolButton*nextButton,*prevButton,*zoomButton,*scaleButton; |
80 | QMenuBar *menuBar; | ||
81 | QToolBar *toolBar; | ||
82 | QPopupMenu *fileMenu,*dispMenu,*fsMenu; | ||
83 | QAction*m_aShowInfo,*m_aBeam,*m_aTrash,*m_aViewfile,*m_aDirUp,*m_aStartSlide; | ||
84 | QAction*m_aHideToolbar; | ||
85 | |||
86 | /* for the device submenu - ToDo: Merge with the special button */ | ||
87 | StorageInfo *m_storage; | ||
88 | QMap<QString, QString> m_dev; | ||
73 | 89 | ||
74 | private slots: | 90 | private slots: |
75 | void slotConfig(); | 91 | void slotConfig(); |
92 | void slotSelectDir(int); | ||
93 | void dirChanged(); | ||
76 | }; | 94 | }; |
77 | 95 | ||
78 | #endif | 96 | #endif |