git-svn-id: svn://db.shs.com.ru/libs@658 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
30
qglengine/widgets/primitiveeditor.cpp
Normal file
30
qglengine/widgets/primitiveeditor.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "primitiveeditor.h"
|
||||
#include "ui_primitiveeditor.h"
|
||||
#include <QMetaEnum>
|
||||
|
||||
|
||||
PrimitiveEditor::PrimitiveEditor(QWidget *parent) : QWidget(parent), ui(new Ui::PrimitiveEditor) {
|
||||
ui->setupUi(this);
|
||||
QMetaEnum me = metaObject()->enumerator(0);
|
||||
for (int i=0; i<me.keyCount(); ++i)
|
||||
ui->comboPrimitives->addItem(me.key(i));
|
||||
|
||||
}
|
||||
|
||||
|
||||
PrimitiveEditor::~PrimitiveEditor() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
void PrimitiveEditor::assignQGLView(QGLView * v) {
|
||||
view = v;
|
||||
// connect(view, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
|
||||
// connect(view, SIGNAL(objectsPositionChanged()), this, SLOT(selectionChanged()));
|
||||
// connect(view->scene(), SIGNAL(treeChanged()), this, SLOT(selectionChanged()));
|
||||
// selectionChanged();
|
||||
}
|
||||
|
||||
|
||||
void PrimitiveEditor::showEditors() {
|
||||
}
|
||||
Reference in New Issue
Block a user