Rev | Line | |
---|
[4] | 1 | #ifndef _QSCENEWIDGET_H_ |
---|
| 2 | #define _QSCENEWIDGET_H_ |
---|
| 3 | |
---|
| 4 | #include <QtGui> |
---|
| 5 | |
---|
| 6 | #include "ui_qscenewidget.h" |
---|
| 7 | |
---|
| 8 | namespace projection |
---|
| 9 | { |
---|
| 10 | class Scene; |
---|
| 11 | |
---|
| 12 | class QSceneWidget : public QWidget |
---|
| 13 | { |
---|
| 14 | Q_OBJECT |
---|
| 15 | |
---|
| 16 | public: |
---|
| 17 | |
---|
| 18 | QSceneWidget(QWidget* pParent=0, Qt::WFlags flag=0); |
---|
| 19 | ~QSceneWidget(); |
---|
| 20 | |
---|
| 21 | void setScene(Scene* pScene); |
---|
| 22 | |
---|
| 23 | void updateGUI(); |
---|
| 24 | |
---|
| 25 | private slots: |
---|
| 26 | |
---|
| 27 | void on_transformWidget_matrixChanged(const TransformMatrix& matrix); |
---|
| 28 | void on_typeComboBox_activated(int); |
---|
| 29 | |
---|
| 30 | void on_showInDesignViewCheckBox_toggled(bool checked); |
---|
| 31 | void on_sceneSizeEdit_editingFinished(); |
---|
| 32 | void on_gridCheckBox_toggled(bool checked); |
---|
| 33 | void on_gridSizeEdit_editingFinished(); |
---|
| 34 | |
---|
| 35 | void on_centerViewButton_clicked(); |
---|
| 36 | void on_viewAllButton_clicked(); |
---|
| 37 | |
---|
| 38 | private: |
---|
| 39 | |
---|
| 40 | Ui::QSceneWidget ui; |
---|
| 41 | |
---|
| 42 | Scene* m_pScene; |
---|
| 43 | }; |
---|
| 44 | |
---|
| 45 | }; // projection |
---|
| 46 | |
---|
| 47 | #endif // _QSCENEWIDGET_H_ |
---|
Note: See
TracBrowser
for help on using the repository browser.