BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
TableContextMenu.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/ImportDataWidgets/CsvImportAssistant/TableContextMenu.h
6 //! @brief Defines class TableContextMenu
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_IMPORTDATAWIDGETS_CSVIMPORTASSISTANT_TABLECONTEXTMENU_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_CSVIMPORTASSISTANT_TABLECONTEXTMENU_H
17 
20 #include <QMenu>
21 #include <QStringList>
22 #include <QTableWidget>
23 
24 class TableContextMenu : public QMenu {
25  Q_OBJECT
26 public:
27  TableContextMenu(QWidget* parent = nullptr);
28 
29 signals:
30  void setFirstRow();
31  void setLastRow();
33  void resetTable();
34  void discardRow();
35 
36 private:
37  int m_row;
38  int m_col;
42  QAction* m_resetAction;
43  QAction* m_setAsTheta;
44  QAction* m_setAsQ;
45  QAction* m_setAsIntensity;
46  QAction* m_discardRow;
47 };
48 
49 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_IMPORTDATAWIDGETS_CSVIMPORTASSISTANT_TABLECONTEXTMENU_H
Defines namespace csv.
Defines interface IUnitConverter and possible axis units.
QAction * m_selectFromThisRowOn
QAction * m_setAsIntensity
TableContextMenu(QWidget *parent=nullptr)
QAction * m_discardRow
QAction * m_setAsTheta
void setColumnAs(csv::ColumnType)
QAction * m_resetAction
QAction * m_selectUntilThisRow
ColumnType
Definition: CsvNamespace.h:23