BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
loaderpreviewpanel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/dataloader/loaderpreviewpanel.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI2_DATALOADER_LOADERPREVIEWPANEL_H
16 #define BORNAGAIN_GUI2_DATALOADER_LOADERPREVIEWPANEL_H
17 
18 #include "darefl_export.h"
19 #include <QWidget>
20 
21 class QTabWidget;
22 
23 namespace gui2 {
24 
25 class ImportTextView;
26 class ImportTableWidget;
27 
28 class ParserInterface;
29 struct ColumnInfo;
30 
31 //! Panel with settings for DataLoaderDialog.
32 //! Located on its right side, contains text and table views.
33 
34 class DAREFLCORE_EXPORT LoaderPreviewPanel : public QWidget {
35  Q_OBJECT
36 
37 public:
38  LoaderPreviewPanel(QWidget* parent = nullptr);
39 
40  void showData(const ParserInterface* parser);
41 
42  std::vector<ColumnInfo> columnInfo() const;
43 
44  void clearPanel();
45 
46 private:
47  ImportTextView* m_textView{nullptr};
48  ImportTableWidget* m_tableWidget{nullptr};
49  QTabWidget* m_tabWidget{nullptr};
50 };
51 
52 } // namespace gui2
53 
54 #endif // BORNAGAIN_GUI2_DATALOADER_LOADERPREVIEWPANEL_H
Contains table with imported data.
Text view to show imported data.
Panel with settings for DataLoaderDialog.
Interface for all classes capable of parsing ASCII data into multicolumn presentation.
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20