summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/mainwindow.h
Unidiff
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.h20
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
@@ -22,23 +22,29 @@ namespace Core{
22} 22}
23 23
24class ImageView; 24class ImageView;
25class ImageWidget; 25class ImageWidget;
26class PIconView; 26class PIconView;
27class imageinfo; 27class imageinfo;
28class QMenuBar;
29class QToolBar;
30class QPopupMenu;
31class QAction;
32class StorageInfo;
28 33
29class PMainWindow : public QMainWindow { 34class PMainWindow : public QMainWindow {
30 Q_OBJECT 35 Q_OBJECT
31 enum Views { IconView, ImageInfo, ImageDisplay }; 36 enum Views { IconView, ImageInfo, ImageDisplay };
32public: 37public:
33 static QString appName() { return QString::fromLatin1("opie-eye" ); } 38 static QString appName() { return QString::fromLatin1("opie-eye" ); }
34 PMainWindow(QWidget*, const char*, WFlags ); 39 PMainWindow(QWidget*, const char*, WFlags );
35 ~PMainWindow(); 40 ~PMainWindow();
36 41
37signals: 42signals:
38 void configChanged(); 43 void configChanged();
44 void changeDir( const QString& );
39 45
40public slots: 46public 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 );
43 void slotReturn(); 49 void slotReturn();
44 void slotRotateToggled(bool); 50 void slotRotateToggled(bool);
@@ -50,12 +56,13 @@ public slots:
50 void setDocument( const QString& ); 56 void setDocument( const QString& );
51 virtual void slotToggleFullScreen(); 57 virtual void slotToggleFullScreen();
52 58
53protected slots: 59protected slots:
54 void raiseIconView(); 60 void raiseIconView();
55 void closeEvent( QCloseEvent* ); 61 void closeEvent( QCloseEvent* );
62 void showToolbar(bool);
56 63
57private: 64private:
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();
60 void initDisp(); 67 void initDisp();
61 68
@@ -65,14 +72,25 @@ private:
65 PIconView* m_view; 72 PIconView* m_view;
66 imageinfo *m_info; 73 imageinfo *m_info;
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
74private slots: 90private slots:
75 void slotConfig(); 91 void slotConfig();
92 void slotSelectDir(int);
93 void dirChanged();
76}; 94};
77 95
78#endif 96#endif