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
18
#include "
Device/Unit/IUnitConverter.h
"
19
#include "
GUI/coregui/Views/ImportDataWidgets/CsvImportAssistant/CsvNamespace.h
"
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
();
32
void
setColumnAs
(
csv::ColumnType
);
33
void
resetTable
();
34
void
discardRow
();
35
36
private
:
37
int
m_row
;
38
int
m_col
;
39
QMenu*
m_coordSubMenu
;
40
QAction*
m_selectFromThisRowOn
;
41
QAction*
m_selectUntilThisRow
;
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
CsvNamespace.h
Defines namespace csv.
IUnitConverter.h
Defines interface IUnitConverter and possible axis units.
TableContextMenu
Definition:
TableContextMenu.h:24
TableContextMenu::setFirstRow
void setFirstRow()
TableContextMenu::resetTable
void resetTable()
TableContextMenu::discardRow
void discardRow()
TableContextMenu::m_coordSubMenu
QMenu * m_coordSubMenu
Definition:
TableContextMenu.h:39
TableContextMenu::m_selectFromThisRowOn
QAction * m_selectFromThisRowOn
Definition:
TableContextMenu.h:40
TableContextMenu::m_setAsQ
QAction * m_setAsQ
Definition:
TableContextMenu.h:44
TableContextMenu::m_setAsIntensity
QAction * m_setAsIntensity
Definition:
TableContextMenu.h:45
TableContextMenu::TableContextMenu
TableContextMenu(QWidget *parent=nullptr)
Definition:
TableContextMenu.cpp:17
TableContextMenu::m_row
int m_row
Definition:
TableContextMenu.h:37
TableContextMenu::m_discardRow
QAction * m_discardRow
Definition:
TableContextMenu.h:46
TableContextMenu::m_setAsTheta
QAction * m_setAsTheta
Definition:
TableContextMenu.h:43
TableContextMenu::setLastRow
void setLastRow()
TableContextMenu::setColumnAs
void setColumnAs(csv::ColumnType)
TableContextMenu::m_resetAction
QAction * m_resetAction
Definition:
TableContextMenu.h:42
TableContextMenu::m_selectUntilThisRow
QAction * m_selectUntilThisRow
Definition:
TableContextMenu.h:41
TableContextMenu::m_col
int m_col
Definition:
TableContextMenu.h:38
csv::ColumnType
ColumnType
Definition:
CsvNamespace.h:23
GUI
coregui
Views
ImportDataWidgets
CsvImportAssistant
TableContextMenu.h
Generated by
1.9.1