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 | 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 | |||
@@ -16,63 +16,81 @@ namespace Opie { | |||
16 | namespace Ui{ | 16 | namespace Ui{ |
17 | class OWidgetStack; | 17 | class OWidgetStack; |
18 | } | 18 | } |
19 | namespace Core{ | 19 | namespace Core{ |
20 | class OKeyConfigManager; | 20 | class OKeyConfigManager; |
21 | } | 21 | } |
22 | } | 22 | } |
23 | 23 | ||
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 }; |
32 | public: | 37 | public: |
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 | ||
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 ); |
43 | void slotReturn(); | 49 | void slotReturn(); |
44 | void slotRotateToggled(bool); | 50 | void slotRotateToggled(bool); |
45 | void slotScaleToggled(bool); | 51 | void slotScaleToggled(bool); |
46 | void slotZoomerToggled(bool); | 52 | void slotZoomerToggled(bool); |
47 | void slotToggleZoomer(); | 53 | void slotToggleZoomer(); |
48 | void slotToggleAutorotate(); | 54 | void slotToggleAutorotate(); |
49 | void slotToggleAutoscale(); | 55 | void slotToggleAutoscale(); |
50 | void setDocument( const QString& ); | 56 | void setDocument( const QString& ); |
51 | virtual void slotToggleFullScreen(); | 57 | virtual void slotToggleFullScreen(); |
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(); |
60 | void initDisp(); | 67 | void initDisp(); |
61 | 68 | ||
62 | private: | 69 | private: |
63 | Opie::Core::OConfig *m_cfg; | 70 | Opie::Core::OConfig *m_cfg; |
64 | Opie::Ui::OWidgetStack *m_stack; | 71 | Opie::Ui::OWidgetStack *m_stack; |
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 | ||
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 |