mainwidget.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 **
00003 ** Author:  Jaime Valls Miro <jaime.vallsmiro@eng.uts.edu.au>
00004 **          Hue Tuan Thi <huetuan.thi@uts.edu.au>, (C) 2006
00005 **
00006 ** This file is part of the S3D Viewer Project
00007 **
00008 ** This file may be used under the terms of the GNU General Public
00009 ** License version 2.0 as published by the Free Software Foundation
00010 ** and appearing in the file LICENSE.GPL included in the packaging of
00011 ** this file.  Please review the following information to ensure GNU
00012 ** General Public Licensing requirements will be met:
00013 ** http://www.trolltech.com/products/qt/opensource.html
00014 **
00015 ** If you are unsure which license is appropriate for your use, please
00016 ** review the following information:
00017 ** http://www.trolltech.com/products/qt/licensing.html or contact the
00018 ** sales department at sales@trolltech.com.
00019 **
00020 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00021 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
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

Generated on Mon Aug 14 10:44:19 2006 for S3DViewer by  doxygen 1.4.4