10 #include <QErrorMessage>
11 #include <QMessageBox>
14 #include <QKeySequence>
15 #include <QDockWidget>
17 #include "svgviewer.h"
19 class MainWindow
: public QMainWindow
{
23 MainWindow(QWidget
*parent
= 0, QString firstFileName
= QString());
24 void updateMetadataText();
33 QAction
* actionReOpen
;
35 QAction
* actionZoomIn
;
36 QAction
* actionZoomOut
;
37 QAction
* actionZoomReset
;
38 QAction
* actionZoomBestFit
;
39 QAction
* actionStatusBar
;
40 QAction
* actionInfoDock
;
42 QStatusBar
* myStatusBar
;
43 QErrorMessage
* errorFileOpen
;
44 QDockWidget
* infoDock
;
51 void showStatusBarMessage(QString string
, int timeout
);
52 QString
boolToYesNo(bool b
);
55 void openFileDialog();
56 bool openFile(QString fileNames
);
60 void toggleMenuBar(bool enabled
);
61 void toggleStatusBar(bool enabled
);
65 #endif // MAINWINDOW_H