diff --git a/GUI/View/Sample/CoreAndShellForm.cpp b/GUI/View/Sample/CoreAndShellForm.cpp index 9090c2d1d748be5c2971d8c678087773677a5d75..71efe3d244089d63c1e20f60737315ea069c315f 100644 --- a/GUI/View/Sample/CoreAndShellForm.cpp +++ b/GUI/View/Sample/CoreAndShellForm.cpp @@ -197,9 +197,3 @@ void CoreAndShellForm::createShellWidgets() // no abundance since this is handled in CoreShell itself! } } - -void CoreAndShellForm::enableStructureEditing(bool b) -{ - m_removeAction->setVisible(b); - m_duplicateAction->setVisible(b); -} diff --git a/GUI/View/Sample/CoreAndShellForm.h b/GUI/View/Sample/CoreAndShellForm.h index 82e768571608623a098a45e136194d1832d1e806..938e84753617160bfe2f14c04d429365a13a8bb2 100644 --- a/GUI/View/Sample/CoreAndShellForm.h +++ b/GUI/View/Sample/CoreAndShellForm.h @@ -30,7 +30,6 @@ public: CoreAndShellForm(QWidget* parent, CoreAndShellItem* coreShellItem, SampleEditorController* ec, bool allowRemove = true); - void enableStructureEditing(bool b); CoreAndShellItem* coreShellItem() const { return m_item; } void createCoreWidgets(); diff --git a/GUI/View/Sample/LayerForm.cpp b/GUI/View/Sample/LayerForm.cpp index ebebfe2d9049db03cc04a97edc17f502b3f219fc..81a59111ee763b74a4ce89c1ab6c4381564f5208 100644 --- a/GUI/View/Sample/LayerForm.cpp +++ b/GUI/View/Sample/LayerForm.cpp @@ -127,18 +127,6 @@ LayerForm::LayerForm(QWidget* parent, LayerItem* layerItem, SampleEditorControll updateLayerPositionDependentElements(); } -void LayerForm::enableStructureEditing(bool b) -{ - m_removeAction->setVisible(b); - m_duplicateAction->setVisible(b); - - for (auto* w : m_structureEditingWidgets) - w->setVisible(b); - - if (b && m_ec->sampleItem()->layerItems().size() < 2) - m_moveButton->setVisible(false); -} - void LayerForm::updateColor() { QColor bckgroundCol = m_layer->color(); diff --git a/GUI/View/Sample/LayerForm.h b/GUI/View/Sample/LayerForm.h index cfed7ba7ca0cc2fdd84bf85878dba78528bfd2b2..c6c667e1225db1d7b423976cfbb7c43eac0143fc 100644 --- a/GUI/View/Sample/LayerForm.h +++ b/GUI/View/Sample/LayerForm.h @@ -30,7 +30,6 @@ class LayerForm : public CollapsibleGroupBox { public: LayerForm(QWidget* parent, LayerItem* layerItem, SampleEditorController* ec); - void enableStructureEditing(bool b); void updateLayerPositionDependentElements(); void onLayoutAdded(ParticleLayoutItem* layoutItem); void onAboutToRemoveLayout(ParticleLayoutItem* layoutItem); diff --git a/GUI/View/Sample/ParticleForm.cpp b/GUI/View/Sample/ParticleForm.cpp index e3dcb6e6c3f8bcce2e52e2ba551fcde72e6f6b9e..bb3d66ee502d3dc847a37873547b44807da90f95 100644 --- a/GUI/View/Sample/ParticleForm.cpp +++ b/GUI/View/Sample/ParticleForm.cpp @@ -65,9 +65,3 @@ ParticleForm::ParticleForm(QWidget* parent, ParticleItem* particleItem, bool all addTitleAction(m_removeAction); } } - -void ParticleForm::enableStructureEditing(bool b) -{ - m_removeAction->setVisible(b); - m_duplicateAction->setVisible(b); -} diff --git a/GUI/View/Sample/ParticleForm.h b/GUI/View/Sample/ParticleForm.h index 24a220d9a2a74ce28a15c55912d0c91ffb0b959d..8985b9bd2928390bb7ae8325b2d335f2ddc3cb6f 100644 --- a/GUI/View/Sample/ParticleForm.h +++ b/GUI/View/Sample/ParticleForm.h @@ -26,7 +26,6 @@ class ParticleForm : public CollapsibleGroupBox { public: ParticleForm(QWidget* parent, ParticleItem* particleItem, bool allowAbundance, SampleEditorController* ec, bool allowRemove = true); - void enableStructureEditing(bool b); private: QAction* m_removeAction = nullptr; diff --git a/GUI/View/Sample/ParticleLayoutForm.cpp b/GUI/View/Sample/ParticleLayoutForm.cpp index 45e4233a54775127743c0d005899fc27ab4f9ab9..89108e99770d041890246247a16c963363810a7e 100644 --- a/GUI/View/Sample/ParticleLayoutForm.cpp +++ b/GUI/View/Sample/ParticleLayoutForm.cpp @@ -87,14 +87,6 @@ ParticleLayoutForm::ParticleLayoutForm(LayerForm* form, ParticleLayoutItem* pLay updateTitle(form->layerItem()); } -void ParticleLayoutForm::enableStructureEditing(bool b) -{ - m_removeAction->setVisible(b); - m_duplicateAction->setVisible(b); - - for (auto* w : m_structureEditingWidgets) - w->setVisible(b); -} void ParticleLayoutForm::onParticleAdded(ItemWithParticles* item) { int index = m_layoutItem->itemsWithParticles().indexOf(item); diff --git a/GUI/View/Sample/ParticleLayoutForm.h b/GUI/View/Sample/ParticleLayoutForm.h index ecfde5c8307a70558be141a7f284ff0254b812a9..9790b11d551f8c349fd29ea434f1ae422ff04457 100644 --- a/GUI/View/Sample/ParticleLayoutForm.h +++ b/GUI/View/Sample/ParticleLayoutForm.h @@ -33,7 +33,6 @@ public: ParticleLayoutForm(LayerForm* form, ParticleLayoutItem* pLayoutItem, SampleEditorController* ec); - void enableStructureEditing(bool b); ParticleLayoutItem* layoutItem() const { return m_layoutItem; } void onParticleAdded(ItemWithParticles* item); void onAboutToRemoveParticle(ItemWithParticles* item);