git-svn-id: svn://db.shs.com.ru/libs@658 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
40
qglengine/widgets/primitiveeditor.h
Normal file
40
qglengine/widgets/primitiveeditor.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef PRIMITIVEEDITOR_H
|
||||
#define PRIMITIVEEDITOR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "qglview.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class PrimitiveEditor;
|
||||
}
|
||||
|
||||
|
||||
class PrimitiveEditor : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum PrimitiveType {
|
||||
Plane,
|
||||
Cube,
|
||||
Ellipsoid,
|
||||
};
|
||||
Q_ENUMS(PrimitiveType)
|
||||
|
||||
explicit PrimitiveEditor(QWidget *parent = nullptr);
|
||||
~PrimitiveEditor();
|
||||
|
||||
void assignQGLView(QGLView * v);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
void showEditors();
|
||||
|
||||
Ui::PrimitiveEditor *ui;
|
||||
QGLView * view;
|
||||
QMap<PrimitiveType, QList<QWidget *> > editors;
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // PRIMITIVEEDITOR_H
|
||||
Reference in New Issue
Block a user