BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Dialog to hold DataSelector. More...
Public Slots | |
void | onCancelButton () |
void | onColumnRightClick (const QPoint &position) |
void | onImportButton () |
void | setColumnSlot (csv::ColumnType ct) |
Signals | |
void | separatorChanged (char newSeparator) |
Public Member Functions | |
DataSelector (csv::DataArray csvArray, QWidget *parent=nullptr) | |
int | coordinateColumn () const |
double | coordinateMultiplier () const |
size_t | firstLine () const |
int | intensityColumn () const |
double | intensityMultiplier () const |
size_t | lastLine () const |
std::set< int > | rowsToDiscard () const |
void | setDataArray (csv::DataArray csvArray) |
void | setSeparator (char newSeparator) |
Axes::Units | units () const |
Private Member Functions | |
QBoxLayout * | createLayout () |
bool | dataLooksGood () |
void | discardRow () |
bool | isInsideTable (QPoint point) |
size_t | maxLines () const |
void | populateUnitsComboBox () |
void | resetSelection () |
char | separator () const |
void | setColumnAs (csv::ColumnType coordOrInt) |
void | setColumnAs (int col, csv::ColumnType coordOrInt) |
void | setFirstRow () |
void | setLastRow () |
bool | updateData () |
void | updateSelection () |
Private Attributes | |
QPushButton * | m_cancelButton |
QComboBox * | m_coordinateUnitsComboBox |
csv::DataArray | m_data |
QLabel * | m_errorLabel |
QSpinBox * | m_firstDataRowSpinBox |
QPushButton * | m_importButton |
QSpinBox * | m_lastDataRowSpinBox |
QLineEdit * | m_separatorField |
CsvImportTable * | m_tableWidget |
Dialog to hold DataSelector.
Definition at line 32 of file DataSelector.h.
DataSelector::DataSelector | ( | csv::DataArray | csvArray, |
QWidget * | parent = nullptr |
||
) |
Definition at line 35 of file DataSelector.cpp.
References createLayout(), StyleUtils::setResizable(), and updateData().
|
inline |
Definition at line 39 of file DataSelector.h.
References CsvImportTable::coordinateColumn(), and m_tableWidget.
Referenced by CsvImportAssistant::runDataSelector().
|
inline |
Definition at line 41 of file DataSelector.h.
References CsvImportTable::coordinateMultiplier(), and m_tableWidget.
Referenced by CsvImportAssistant::runDataSelector().
|
private |
Definition at line 263 of file DataSelector.cpp.
References axisUnitLabel, CsvImportTable::dataSanityChanged(), m_cancelButton, m_coordinateUnitsComboBox, m_errorLabel, m_firstDataRowSpinBox, m_importButton, m_lastDataRowSpinBox, m_separatorField, m_tableWidget, onColumnRightClick(), onImportButton(), separator(), separatorChanged(), and updateSelection().
Referenced by DataSelector().
|
private |
|
private |
Definition at line 201 of file DataSelector.cpp.
References CsvImportTable::discardRows(), m_tableWidget, and CsvImportTable::selectedRows().
Referenced by onColumnRightClick().
size_t DataSelector::firstLine | ( | ) | const |
Definition at line 214 of file DataSelector.cpp.
References m_firstDataRowSpinBox.
Referenced by CsvImportAssistant::runDataSelector(), and updateSelection().
|
inline |
Definition at line 38 of file DataSelector.h.
References CsvImportTable::intensityColumn(), and m_tableWidget.
Referenced by CsvImportAssistant::runDataSelector().
|
inline |
Definition at line 40 of file DataSelector.h.
References CsvImportTable::intensityMultiplier(), and m_tableWidget.
Referenced by CsvImportAssistant::runDataSelector().
|
private |
Definition at line 81 of file DataSelector.cpp.
References m_tableWidget.
Referenced by onColumnRightClick().
size_t DataSelector::lastLine | ( | ) | const |
Definition at line 219 of file DataSelector.cpp.
References m_lastDataRowSpinBox.
Referenced by CsvImportAssistant::runDataSelector(), and updateSelection().
|
private |
Definition at line 224 of file DataSelector.cpp.
References m_lastDataRowSpinBox.
Referenced by resetSelection().
|
slot |
Definition at line 251 of file DataSelector.cpp.
|
slot |
Definition at line 96 of file DataSelector.cpp.
References discardRow(), TableContextMenu::discardRow(), isInsideTable(), m_tableWidget, resetSelection(), TableContextMenu::resetTable(), TableContextMenu::setColumnAs(), setColumnSlot(), setFirstRow(), TableContextMenu::setFirstRow(), setLastRow(), TableContextMenu::setLastRow(), and updateSelection().
Referenced by createLayout().
|
slot |
|
private |
Definition at line 156 of file DataSelector.cpp.
References CsvImportTable::availableCoordinateUnits(), m_coordinateUnitsComboBox, m_tableWidget, and units().
Referenced by setColumnAs().
|
private |
Definition at line 207 of file DataSelector.cpp.
References m_firstDataRowSpinBox, m_lastDataRowSpinBox, m_tableWidget, maxLines(), and CsvImportTable::resetSelection().
Referenced by onColumnRightClick(), and setDataArray().
|
inline |
Definition at line 42 of file DataSelector.h.
References m_tableWidget, and CsvImportTable::rowsToDiscard().
Referenced by CsvImportAssistant::runDataSelector().
|
private |
Definition at line 239 of file DataSelector.cpp.
References m_separatorField.
Referenced by createLayout().
|
signal |
Referenced by createLayout(), and CsvImportAssistant::runDataSelector().
|
private |
Definition at line 164 of file DataSelector.cpp.
References m_tableWidget, and CsvImportTable::selectedColumn().
Referenced by setColumnSlot().
|
private |
Definition at line 149 of file DataSelector.cpp.
References m_tableWidget, populateUnitsComboBox(), CsvImportTable::setColumnAs(), and updateSelection().
|
slot |
Definition at line 76 of file DataSelector.cpp.
References setColumnAs().
Referenced by onColumnRightClick().
|
inline |
Definition at line 44 of file DataSelector.h.
References m_data, resetSelection(), and updateData().
Referenced by CsvImportAssistant::runDataSelector().
|
private |
Definition at line 173 of file DataSelector.cpp.
References m_firstDataRowSpinBox, m_tableWidget, CsvImportTable::selectedRow(), and CsvImportTable::setFirstRow().
Referenced by onColumnRightClick().
|
private |
Definition at line 187 of file DataSelector.cpp.
References m_firstDataRowSpinBox, m_lastDataRowSpinBox, m_tableWidget, CsvImportTable::selectedRow(), and CsvImportTable::setLastRow().
Referenced by onColumnRightClick().
|
inline |
Definition at line 50 of file DataSelector.h.
References m_separatorField.
Referenced by CsvImportAssistant::runDataSelector().
Axes::Units DataSelector::units | ( | ) | const |
Definition at line 229 of file DataSelector.cpp.
References axisUnitLabel, m_coordinateUnitsComboBox, and csv::UnitsLabels.
Referenced by populateUnitsComboBox(), and CsvImportAssistant::runDataSelector().
|
private |
Definition at line 58 of file DataSelector.cpp.
References m_data, m_firstDataRowSpinBox, m_importButton, m_lastDataRowSpinBox, m_tableWidget, CsvImportTable::setData(), and CsvImportAssistant::showErrorMessage().
Referenced by DataSelector(), and setDataArray().
|
private |
Definition at line 115 of file DataSelector.cpp.
References axisUnitLabel, CsvImportTable::coordinateColumn(), CsvImportTable::dataLooksGood(), firstLine(), CsvImportTable::intensityColumn(), lastLine(), m_coordinateUnitsComboBox, m_errorLabel, m_importButton, m_tableWidget, CsvImportTable::setFirstRow(), and CsvImportTable::setLastRow().
Referenced by createLayout(), onColumnRightClick(), and setColumnAs().
|
private |
Definition at line 87 of file DataSelector.h.
Referenced by createLayout().
|
private |
Definition at line 85 of file DataSelector.h.
Referenced by createLayout(), populateUnitsComboBox(), units(), and updateSelection().
|
private |
Definition at line 80 of file DataSelector.h.
Referenced by setDataArray(), and updateData().
|
private |
Definition at line 88 of file DataSelector.h.
Referenced by createLayout(), and updateSelection().
|
private |
Definition at line 83 of file DataSelector.h.
Referenced by createLayout(), firstLine(), resetSelection(), setFirstRow(), setLastRow(), and updateData().
|
private |
Definition at line 86 of file DataSelector.h.
Referenced by createLayout(), updateData(), and updateSelection().
|
private |
Definition at line 84 of file DataSelector.h.
Referenced by createLayout(), lastLine(), maxLines(), resetSelection(), setLastRow(), and updateData().
|
private |
Definition at line 82 of file DataSelector.h.
Referenced by createLayout(), separator(), and setSeparator().
|
private |
Definition at line 81 of file DataSelector.h.
Referenced by coordinateColumn(), coordinateMultiplier(), createLayout(), discardRow(), intensityColumn(), intensityMultiplier(), isInsideTable(), onColumnRightClick(), populateUnitsComboBox(), resetSelection(), rowsToDiscard(), setColumnAs(), setFirstRow(), setLastRow(), updateData(), and updateSelection().