24 #include <QPushButton>
30 , m_compositionItem(compositionItem)
33 setTitle(
"Composition of particles");
56 collapser->addAction(showInRealSpaceAction);
83 const int rowInLayout =
93 const int rowInLayout =
Defines class ActionFactory.
Defines class GroupBoxCollapser.
Defines class LayerEditorUtils.
Defines class ParticleCompositionForm.
Defines class ParticleCompositionItem.
Defines class VectorDescriptor.
static QAction * createShowInRealSpaceAction(QObject *parent, const QString &what, std::function< void()> slot=nullptr)
Create "show in RealSpace" action.
static QAction * createRemoveAction(QObject *parent, const QString &what, std::function< void()> slot=nullptr)
Create "remove" action.
static GroupBoxCollapser * installIntoGroupBox(QGroupBox *groupBox, bool expanded=true)
DoubleDescriptor abundance() const
SelectionDescriptor< RotationItem * > rotation()
Returns selection descriptor for rotation methods.
VectorDescriptor positionVector() const
SampleEditorController * m_ec
void onAboutToRemoveParticle(ItemWithParticles *item)
ParticleCompositionItem * m_compositionItem
ParticleCompositionForm(QWidget *parent, ParticleCompositionItem *compositionItem, SampleEditorController *ec, bool allowRemove=true)
ParticleCompositionItem * compositionItem() const
void onParticleAdded(ItemWithParticles *item)
QList< QWidget * > m_structureEditingWidgets
void enableStructureEditing(bool b)
QVector< ItemWithParticles * > particles() const
Class to modify a sample from the layer oriented sample editor.
void requestViewInRealSpace(SampleItem item)
void addParticle(ParticleLayoutItem *layout, ItemWithParticlesCatalog::Type type)
void removeParticle(ItemWithParticles *item)
QWidget * createWidgetForItemWithParticles(QWidget *parentWidget, ItemWithParticles *itemWithParticles, bool allowAbundance, SampleEditorController *ec, bool allowRemove=true)
QPushButton * createAddParticleButton(QWidget *parentWidget, std::function< void(FormFactorItemCatalog::Type t)> slotAddFormFactor, std::function< void(ItemWithParticlesCatalog::Type t)> slotAddParticle)