Skip to content

Commit 112fc31

Browse files
author
Brig Bagley
committed
Merge branch 'master' into brig_work
2 parents ac70866 + 8273cbe commit 112fc31

File tree

9 files changed

+2343
-893
lines changed

9 files changed

+2343
-893
lines changed

src/ExampleNets/BrainStimulator/patch_config_P.srn5

Lines changed: 2048 additions & 0 deletions
Large diffs are not rendered by default.

src/Interface/Modules/Render/ViewScene.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,16 @@ void ViewSceneDialog::newGeometryValue()
148148
for (auto it = geomData->begin(); it != geomData->end(); ++it, ++port)
149149
{
150150
boost::shared_ptr<Core::Datatypes::GeometryObject> obj = *it;
151+
auto displayName = QString::fromStdString(obj->objectName).split('_').first();
151152
if (isObjectUnselected(obj->objectName))
152153
{
153-
itemManager_->addItem(QString::fromStdString(obj->objectName), false);
154+
itemManager_->addItem(QString::fromStdString(obj->objectName), displayName, false);
154155
}
155156
else
156157
{
157158
spire->handleGeomObject(obj, port);
158159
validObjects.push_back(obj->objectName);
159-
itemManager_->addItem(QString::fromStdString(obj->objectName), true);
160+
itemManager_->addItem(QString::fromStdString(obj->objectName), displayName, true);
160161
}
161162
}
162163
spire->gcInvalidObjects(validObjects);
@@ -598,9 +599,11 @@ void ViewSceneItemManager::SetupConnections(ViewSceneDialog* slotHolder)
598599
connect(this, SIGNAL(itemSelected(const QString&)), slotHolder, SLOT(handleSelectedItem(const QString&)));
599600
}
600601

601-
void ViewSceneItemManager::addItem(const QString& name, bool checked)
602+
void ViewSceneItemManager::addItem(const QString& name, const QString& displayName, bool checked)
602603
{
603604
QStandardItem* item = new QStandardItem(name);
605+
//TODO dan
606+
//item->setToolTip(displayName);
604607

605608
item->setFlags(Qt::ItemIsUserCheckable | Qt::ItemIsEnabled);
606609
if (checked)

src/Interface/Modules/Render/ViewScene.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ namespace SCIRun {
132132
QStandardItemModel* model() { return model_; }
133133
void SetupConnections(ViewSceneDialog* slotHolder);
134134
public Q_SLOTS:
135-
void addItem(const QString& name, bool checked);
135+
void addItem(const QString& name, const QString& displayName, bool checked);
136136
void removeItem(const QString& name);
137137
void removeAll();
138138
Q_SIGNALS:

0 commit comments

Comments
 (0)