Skip to content
Snippets Groups Projects
ParticleForm.h 1.16 KiB
Newer Older
  • Learn to ignore specific revisions
  • //  ************************************************************************************************
    //
    //  BornAgain: simulate and fit reflection and scattering
    //
    
    //! @file      GUI/View/SampleDesigner/ParticleForm.h
    
    //! @brief     Defines class ParticleForm
    //!
    //! @homepage  http://www.bornagainproject.org
    //! @license   GNU General Public License v3 or higher (see COPYING)
    //! @copyright Forschungszentrum Jülich GmbH 2021
    //! @authors   Scientific Computing Group at MLZ (see CITATION, AUTHORS)
    //
    //  ************************************************************************************************
    
    
    Wuttke, Joachim's avatar
    Wuttke, Joachim committed
    #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_PARTICLEFORM_H
    #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_PARTICLEFORM_H
    
    
    #include <QGroupBox>
    
    class ParticleItem;
    class SampleEditorController;
    
    //! Form for editing a particle
    class ParticleForm : public QGroupBox {
    
        ParticleForm(QWidget* parent, ParticleItem* item, bool allowAbundance,
                     SampleEditorController* ec, bool allowRemove = true);
    
        void enableStructureEditing(bool b);
    
    private:
        QAction* m_removeAction = nullptr;
    };
    
    
    
    Wuttke, Joachim's avatar
    Wuttke, Joachim committed
    #endif // BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_PARTICLEFORM_H