BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
GroupInfoBox.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/InfoWidgets/GroupInfoBox.h
6 //! @brief Defines class GroupInfoBox
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_INFOWIDGETS_GROUPINFOBOX_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_INFOWIDGETS_GROUPINFOBOX_H
17 
18 #include <QGroupBox>
19 
20 //! The class which extends QGroupBox with clickable icon next to the label
21 class GroupInfoBox : public QGroupBox {
22  Q_OBJECT
23 
24 public:
25  GroupInfoBox(QWidget* parent = 0);
26  GroupInfoBox(const QString& title, QWidget* parent = 0);
27 
28  void setButtonToolTip(const QString& text);
29 
30 protected:
31  void mousePressEvent(QMouseEvent* e);
32  void paintEvent(QPaintEvent*);
33  void mouseMoveEvent(QMouseEvent* event);
34 
35 private:
36  void init_box();
37 
38  QString m_title;
39  QString m_toolTipText;
40  int m_xImage;
41  int m_yImage;
42 };
43 
44 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_INFOWIDGETS_GROUPINFOBOX_H
The class which extends QGroupBox with clickable icon next to the label.
Definition: GroupInfoBox.h:21
QString m_title
Definition: GroupInfoBox.h:38
void paintEvent(QPaintEvent *)
void setButtonToolTip(const QString &text)
QString m_toolTipText
Definition: GroupInfoBox.h:39
void mousePressEvent(QMouseEvent *e)
void mouseMoveEvent(QMouseEvent *event)
GroupInfoBox(QWidget *parent=0)