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.h21
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
@@ -26,12 +26,13 @@ class ImageWidget;
26class PIconView; 26class PIconView;
27class imageinfo; 27class imageinfo;
28class QMenuBar; 28class QMenuBar;
29class QToolBar; 29class QToolBar;
30class QPopupMenu; 30class QPopupMenu;
31class QAction; 31class QAction;
32class QActionGroup;
32class StorageInfo; 33class StorageInfo;
33 34
34class PMainWindow : public QMainWindow { 35class PMainWindow : public QMainWindow {
35 Q_OBJECT 36 Q_OBJECT
36 enum Views { IconView, ImageInfo, ImageDisplay }; 37 enum Views { IconView, ImageInfo, ImageDisplay };
37public: 38public:
@@ -39,12 +40,13 @@ public:
39 PMainWindow(QWidget*, const char*, WFlags ); 40 PMainWindow(QWidget*, const char*, WFlags );
40 ~PMainWindow(); 41 ~PMainWindow();
41 42
42signals: 43signals:
43 void configChanged(); 44 void configChanged();
44 void changeDir( const QString& ); 45 void changeDir( const QString& );
46 void changeListMode(int);
45 47
46public slots: 48public slots:
47 void slotShowInfo( const QString& inf ); 49 void slotShowInfo( const QString& inf );
48 void slotDisplay( const QString& inf ); 50 void slotDisplay( const QString& inf );
49 void slotReturn(); 51 void slotReturn();
50 void slotRotateToggled(bool); 52 void slotRotateToggled(bool);
@@ -52,17 +54,19 @@ public slots:
52 void slotZoomerToggled(bool); 54 void slotZoomerToggled(bool);
53 void slotToggleZoomer(); 55 void slotToggleZoomer();
54 void slotToggleAutorotate(); 56 void slotToggleAutorotate();
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
59protected slots: 62protected 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
64private: 68private:
65 template<class T> void initT( const char* name, T**, int ); 69 template<class T> void initT( const char* name, T**, int );
66 void initInfo(); 70 void initInfo();
67 void initDisp(); 71 void initDisp();
68 72
@@ -72,20 +76,25 @@ private:
72 PIconView* m_view; 76 PIconView* m_view;
73 imageinfo *m_info; 77 imageinfo *m_info;
74 ImageView *m_disp; 78 ImageView *m_disp;
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;
89 98
90private slots: 99private slots:
91 void slotConfig(); 100 void slotConfig();