30 const QString formfactor =
32 setTitle(
"Particle (" + formfactor +
")");
46 collapser->addAction(showInRealSpaceAction);
Defines class ActionFactory.
Defines class GroupBoxCollapser.
Defines class ParticleForm.
Defines class ParticleItem.
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
ParticleForm(QWidget *parent, ParticleItem *item, bool allowAbundance, SampleEditorController *ec, bool allowRemove=true)
void enableStructureEditing(bool b)
FormFactorItem * formfactor_at_bottom() const
Class to modify a sample from the layer oriented sample editor.
void requestViewInRealSpace(SampleItem item)
void removeParticle(ItemWithParticles *item)