summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye/gui/mainwindow.h
Side-by-side diff
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.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
@@ -24,8 +24,13 @@ namespace Core{
class ImageView;
class ImageWidget;
class PIconView;
class imageinfo;
+class QMenuBar;
+class QToolBar;
+class QPopupMenu;
+class QAction;
+class StorageInfo;
class PMainWindow : public QMainWindow {
Q_OBJECT
enum Views { IconView, ImageInfo, ImageDisplay };
@@ -35,8 +40,9 @@ public:
~PMainWindow();
signals:
void configChanged();
+ void changeDir( const QString& );
public slots:
void slotShowInfo( const QString& inf );
void slotDisplay( const QString& inf );
@@ -52,8 +58,9 @@ public slots:
protected slots:
void raiseIconView();
void closeEvent( QCloseEvent* );
+ void showToolbar(bool);
private:
template<class T> void initT( const char* name, T**, int );
void initInfo();
@@ -67,12 +74,23 @@ private:
ImageView *m_disp;
bool autoRotate;
bool autoScale;
bool zoomerOn;
- QToolButton*rotateButton,*upButton,*fsButton,*viewModeButton;
+ QToolButton*rotateButton,*fsButton,*viewModeButton;
QToolButton*nextButton,*prevButton,*zoomButton,*scaleButton;
+ QMenuBar *menuBar;
+ QToolBar *toolBar;
+ QPopupMenu *fileMenu,*dispMenu,*fsMenu;
+ QAction*m_aShowInfo,*m_aBeam,*m_aTrash,*m_aViewfile,*m_aDirUp,*m_aStartSlide;
+ QAction*m_aHideToolbar;
+
+ /* for the device submenu - ToDo: Merge with the special button */
+ StorageInfo *m_storage;
+ QMap<QString, QString> m_dev;
private slots:
void slotConfig();
+ void slotSelectDir(int);
+ void dirChanged();
};
#endif