14 #include <Inventor/C/errors/debugerror.h>
15 #include <Inventor/nodes/SoSelection.h>
23 #include "ui_vp1aodcontrollerform.h"
24 #include "ui_settings_cuts_form.h"
25 #include "ui_objectbrowser.h"
43 #include "Inventor/nodes/SoMaterial.h"
44 #include "Inventor/nodes/SoDrawStyle.h"
45 #include "Inventor/nodes/SoComplexity.h"
46 #include "Inventor/nodes/SoLightModel.h"
47 #include <Inventor/nodes/SoSeparator.h>
48 #include <Inventor/actions/SoSearchAction.h>
51 #include <QTreeWidget>
52 #include <QTreeWidgetItem>
59 Ui::VP1AODControllerForm
ui;
108 m_d->
ui.setupUi(
this);
133 l<<
"Object"<<
"Information";
138 m_d->
ui.pushButton_interactions->hide();
145 m_d->
ui.pushButton_dumpToJSON->setMaximumHeight(
static_cast<int>(0.5+QFontMetricsF(
m_d->
ui.pushButton_dumpToJSON->font()).height()*1.05+2));
146 m_d->
ui.pushButton_dumpToJSON->setMinimumHeight(
m_d->
ui.pushButton_dumpToJSON->maximumHeight());
147 m_d->
ui.pushButton_dumpToJSON->setCheckable(
true);
149 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
150 sizePolicy.setHorizontalStretch(0);
151 sizePolicy.setVerticalStretch(0);
152 sizePolicy.setHeightForWidth(
m_d->
ui.pushButton_dumpToJSON->sizePolicy().hasHeightForWidth());
153 m_d->
ui.pushButton_dumpToJSON->setSizePolicy(sizePolicy);
154 m_d->
ui.pushButton_dumpToJSON->setFocusPolicy(Qt::NoFocus);
156 m_d->
ui.pushButton_dumpToJSON->hide();
208 QString
ct = cb->currentText();
212 bool save = cb->blockSignals(
true);
216 bool enabled =
false;
219 cb->setEnabled(
false);
223 int i = restoredSelection.isEmpty() ? -1 : cb->findText(restoredSelection);
225 i =
ct.isEmpty() ? -1 : cb->findText(
ct);
226 restoredSelection =
"";
229 cb->setCurrentIndex(
i);
233 int i_vp1(-1), i_atlas(-1);
234 for (
int j = 0; j <cb->count();++j) {
235 if (i_vp1==-1&&cb->itemText(j).contains(
"vp1",Qt::CaseInsensitive))
237 if (i_atlas==-1&&cb->itemText(j).contains(
"atlas",Qt::CaseInsensitive))
241 cb->setCurrentIndex(i_vp1);
243 cb->setCurrentIndex(i_atlas);
247 cb->setEnabled(
true);
251 cb->blockSignals(
false);
307 messageVerbose(
"AODSystemController::objectBrowserClicked: Couldn't get system base pointer");
313 messageVerbose(
"AODSystemController::objectBrowserClicked: Couldn't get VP1AODSystem pointer");
314 std::cout<<
"Pointer value = "<<sysBase<<
" and type = "<<
typeid(sysBase).
name()<<std::endl;
323 std::cout<<
"Have node from browser: "<<
node<<std::endl;
330 std::cout<<
"sel->select(node): "<<
node<<std::endl;
340 #define VP1CONTROLLERCLASSNAME AODSystemController