BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Panel with settings for DataLoaderDialog. More...
Public Slots | |
QStringList | fileNames () const |
void | onAddFilesRequest () |
void | onRemoveFileRequest () |
QStringList | selectedFileNames () const |
Signals | |
void | fileNamesChanged (const QStringList &file_names) |
void | fileSelectionChanged (const QStringList &file_names) |
void | parserPropertyChanged () |
Public Member Functions | |
LoaderSelectorPanel (QWidget *parent=nullptr) | |
~LoaderSelectorPanel () | |
std::unique_ptr< ParserInterface > | createParser () const |
void | setTargetCanvas (const QStringList &canvas_names, int current_index) |
int | targetCanvasIndex () const |
Private Member Functions | |
void | init_connections () |
Private Attributes | |
ImportFileWidget * | m_fileSelectorWidget {nullptr} |
ParserPropertyWidget * | m_propertyWidget {nullptr} |
QSplitter * | m_splitter {nullptr} |
int | m_targetCanvasIndex {-1} |
Panel with settings for DataLoaderDialog.
Located on its left side, contains file selection dialog and parser property widget.
Definition at line 33 of file loaderselectorpanel.h.
gui2::LoaderSelectorPanel::LoaderSelectorPanel | ( | QWidget * | parent = nullptr | ) |
Definition at line 24 of file loaderselectorpanel.cpp.
References init_connections(), m_fileSelectorWidget, m_propertyWidget, and m_splitter.
|
default |
std::unique_ptr< ParserInterface > gui2::LoaderSelectorPanel::createParser | ( | ) | const |
Definition at line 46 of file loaderselectorpanel.cpp.
References gui2::ParserPropertyWidget::createParser(), and m_propertyWidget.
Referenced by gui2::DataLoaderDialog::onParseAllRequest(), and gui2::DataLoaderDialog::onShowFilePreviewRequest().
|
slot |
Definition at line 76 of file loaderselectorpanel.cpp.
References gui2::ImportFileWidget::fileNames(), and m_fileSelectorWidget.
Referenced by gui2::DataLoaderDialog::fileNames(), gui2::DataLoaderDialog::onLoadFilesRequest(), and gui2::DataLoaderDialog::onParseAllRequest().
|
signal |
Referenced by init_connections(), and gui2::DataLoaderDialog::initConnections().
|
signal |
Referenced by init_connections(), and gui2::DataLoaderDialog::initConnections().
|
private |
Definition at line 81 of file loaderselectorpanel.cpp.
References gui2::ImportFileWidget::fileNames(), gui2::ImportFileWidget::fileNamesChanged(), fileNamesChanged(), gui2::ImportFileWidget::fileSelectionChanged(), fileSelectionChanged(), m_fileSelectorWidget, m_propertyWidget, m_targetCanvasIndex, parserPropertyChanged(), gui2::ParserPropertyWidget::parserPropertyChanged(), gui2::ImportFileWidget::selectedFileNames(), and gui2::ParserPropertyWidget::targetCanvasChanged().
Referenced by LoaderSelectorPanel().
|
slot |
Definition at line 61 of file loaderselectorpanel.cpp.
References m_fileSelectorWidget, and gui2::ImportFileWidget::onAddFilesRequest().
Referenced by gui2::DataLoaderDialog::initConnections(), and gui2::DataLoaderDialog::invokeFileSelectorDialog().
|
slot |
Definition at line 66 of file loaderselectorpanel.cpp.
References m_fileSelectorWidget, and gui2::ImportFileWidget::onRemoveFileRequest().
Referenced by gui2::DataLoaderDialog::initConnections().
|
signal |
Referenced by init_connections(), and gui2::DataLoaderDialog::initConnections().
|
slot |
Definition at line 71 of file loaderselectorpanel.cpp.
References m_fileSelectorWidget, and gui2::ImportFileWidget::selectedFileNames().
Referenced by gui2::DataLoaderDialog::onShowFilePreviewRequest().
void gui2::LoaderSelectorPanel::setTargetCanvas | ( | const QStringList & | canvas_names, |
int | current_index | ||
) |
Definition at line 51 of file loaderselectorpanel.cpp.
References m_propertyWidget, and gui2::ParserPropertyWidget::setTargetCanvas().
Referenced by gui2::DataLoaderDialog::setTargetCanvas().
int gui2::LoaderSelectorPanel::targetCanvasIndex | ( | ) | const |
Definition at line 56 of file loaderselectorpanel.cpp.
References m_targetCanvasIndex.
Referenced by gui2::DataLoaderDialog::targetCanvasIndex().
|
private |
Definition at line 61 of file loaderselectorpanel.h.
Referenced by LoaderSelectorPanel(), fileNames(), init_connections(), onAddFilesRequest(), onRemoveFileRequest(), and selectedFileNames().
|
private |
Definition at line 62 of file loaderselectorpanel.h.
Referenced by LoaderSelectorPanel(), createParser(), init_connections(), and setTargetCanvas().
|
private |
Definition at line 63 of file loaderselectorpanel.h.
Referenced by LoaderSelectorPanel().
|
private |
Definition at line 60 of file loaderselectorpanel.h.
Referenced by init_connections(), and targetCanvasIndex().