31 lines
791 B
C++
31 lines
791 B
C++
#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() {
|
|
}
|