00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00032 #ifndef MAINWIDGET_H
00033 #define MAINWIDGET_H
00034
00035 #include <QMainWindow>
00036
00037 #include "point3dwidget.h"
00038 #include "refimagewidget.h"
00039 #include "filereader.h"
00040 #include <QSizePolicy>
00041 #include "settingwindow.h"
00042
00043 class QMenu;
00044
00048 class MainWidget: public QMainWindow{
00049 Q_OBJECT
00050
00051 public:
00052 MainWidget();
00053 ~MainWidget();
00054
00055 private:
00056 QMainWindow *refWindow;
00057 Point3dWidget *point3dWidget;
00058 RefImgWidget *refImgWidget;
00059 SettingWindow *setWindow;
00060 FileReader *fileReader;
00061
00062 QString sceneInformation;
00063 QString fileName;
00064
00065 QMenu *mainMenu;
00066 QAction *toggleImg;
00067 QAction *showScene;
00068 QAction *showSetting;
00069
00070 void setupMenuBar();
00071 QSize getSize();
00072 void setVisible(QWidget *widget);
00073
00074 public slots:
00075 void openFile();
00076 void saveBMP();
00077 void changeToggle();
00078 void sceneInfo();
00079 void showSettings();
00080 void aboutS3d();
00081 void help();
00082
00083 protected:
00084 void closeEvent(QCloseEvent *ce);
00085
00086 };
00087
00088 #endif