BornAgain  1.19.0
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/coregui/Views/JobWidgets/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_COREGUI_VIEWS_JOBWIDGETS_JOBPROPERTIESWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBPROPERTIESWIDGET_H
17 
19 
20 class JobItem;
21 class QTextEdit;
22 class QTabWidget;
23 class ComponentEditor;
24 
25 //! The JobPropertiesWidget class holds component editor for JobItem. Part of JobSelectorWidget,
26 //! resides at lower left corner of JobView.
27 
29  Q_OBJECT
30 public:
32  explicit JobPropertiesWidget(QWidget* parent = nullptr);
33 
34  QSize sizeHint() const;
35  QSize minimumSizeHint() const;
36 
37 protected:
38  void subscribeToItem();
39  void unsubscribeFromItem();
40  void contextMenuEvent(QContextMenuEvent*);
41 
42 private slots:
43  void onTextChanged();
44 
45 private:
46  void updateItem();
47  JobItem* jobItem();
48 
49  QTabWidget* m_tabWidget;
51  QTextEdit* m_commentsEditor;
53 };
54 
55 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBPROPERTIESWIDGET_H
Defines class ItemComboWidget.
Component editor for SessionItem.
The JobPropertiesWidget class holds component editor for JobItem.
JobPropertiesWidget(QWidget *parent=nullptr)
ComponentEditor * m_componentEditor
void contextMenuEvent(QContextMenuEvent *)
The SessionItemWidget class is a base for all widgets representing the content of SessionItem.