00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00033 #ifndef SETTINGWINDOW_H
00034 #define SETTINGWINDOW_H
00035 #include <QMainWindow>
00036
00037 #include <QGroupBox>
00038 #include "point3dwidget.h"
00039 #include <QPushButton>
00040 #include <QColorDialog>
00041
00042 #include <QCheckBox>
00043 #include <QSpinBox>
00044 #include <QRadioButton>
00045 #include <QLabel>
00046
00050 class SettingWindow: public QMainWindow{
00051 Q_OBJECT
00052
00053 public:
00054 SettingWindow(QWidget *parent = 0);
00055 ~SettingWindow();
00056 void setPointWidget(Point3dWidget *pw);
00057 private:
00058 QGroupBox *visualBox;
00059 QCheckBox *camera;
00060 QCheckBox *bound;
00061 QCheckBox *movingStatus;
00062 QPushButton *colorSelector;
00063 QPushButton *initCam;
00064
00065 QGroupBox *primitives;
00066 QSpinBox *cubeWidthSpin;
00067 QPushButton *alterColor;
00068
00069 Point3dWidget *point3dWidget;
00070
00071 private slots:
00072 void selectColor();
00073 void initCamera();
00074 void changeMoving(bool status);
00075 void changeBound(bool status);
00076 void changeView(bool status);
00077 void changeCubeWidth(int cubeWidth);
00078 void toPoint(bool status);
00079 void toCube(bool status);
00080 void initColor(bool status);
00081 void changeColor();
00082
00083 };
00084
00085 #endif