15 #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLELISTVIEW_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLELISTVIEW_H
51 const QString& description);
Project document class handles all data related to the opened project (sample, job,...
List model for sample selection (used in the left pane of the layer oriented sample editor)
List view to select one sample (left side of layer-oriented sample editor)
MultiLayerItem * currentSample()
QAction * m_chooseFromLibraryAction
QAction * chooseFromLibraryAction()
ProjectDocument * m_document
QSize sizeHint() const override
SampleListModel * m_model
QList< QAction * > getOverlayActions(const QModelIndex &index, bool asHover)
void setCurrentSample(MultiLayerItem *sample)
QAction * createRemoveAction(QObject *parent, MultiLayerItem *item)
QAction * importSampleAction()
void currentSampleChanged(MultiLayerItem *current)
void selectFirstSample()
Select first sample, if any sample exists.
QAction * newSampleAction()
void onCurrentChanged(const QModelIndex &index)
void showContextMenu(const QPoint &pos)
QAction * m_newSampleAction
void createSampleFromLibrary(const QString &classname, const QString &title, const QString &description)
void importSampleFromPython()
QAction * m_importSampleAction
void removeSample(MultiLayerItem *item)
SampleListView(QWidget *parent, ProjectDocument *document)