BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
JobPropertiesWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/View/Job/JobPropertiesWidget.h
6 //! @brief Defines class JobPropertiesWidget
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_VIEW_JOB_JOBPROPERTIESWIDGET_H
16 #define BORNAGAIN_GUI_VIEW_JOB_JOBPROPERTIESWIDGET_H
17 
18 #include <QWidget>
19 
20 class JobItem;
22 class QTabWidget;
23 class QTextEdit;
24 class QTreeView;
25 
26 //! The JobPropertiesWidget class holds component editor for JobItem. Part of JobSelectorWidget,
27 //! resides at lower left corner of JobView.
28 
29 class JobPropertiesWidget : public QWidget {
30  Q_OBJECT
31 public:
32  explicit JobPropertiesWidget(QWidget* parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
33  ~JobPropertiesWidget() override;
34  void setItem(JobItem* item);
35 
36  QSize sizeHint() const override;
37  QSize minimumSizeHint() const override;
38 
39 private:
41 
42 private slots:
43  void onCommentsEdited();
44 
45 private:
46  QTabWidget* m_tabWidget;
47  QTreeView* m_propertiesView;
49  QTextEdit* m_commentsEditor;
51 };
52 
53 #endif // BORNAGAIN_GUI_VIEW_JOB_JOBPROPERTIESWIDGET_H
The JobPropertiesTableModel is a table model for the properties of a job except for the comment....
The JobPropertiesWidget class holds component editor for JobItem. Part of JobSelectorWidget,...
QSize sizeHint() const override
JobPropertiesWidget(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
QSize minimumSizeHint() const override
JobPropertiesTableModel * m_propertiesModel
void setItem(JobItem *item)