Dialog for configuration of ASCII files opening sequence.
More...
#include <AsciiOpenDlg.h>
Dialog for configuration of ASCII files opening sequence.
Definition at line 100 of file AsciiOpenDlg.h.
◆ Sequence
◆ ColumnType
◆ AsciiOpenDlg()
| AsciiOpenDlg::AsciiOpenDlg |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
Default constructor.
- Parameters
-
◆ ~AsciiOpenDlg()
| AsciiOpenDlg::~AsciiOpenDlg |
( |
| ) |
|
|
override |
◆ apply()
| bool AsciiOpenDlg::apply |
( |
| ) |
|
|
protected |
◆ applyAll()
| void AsciiOpenDlg::applyAll |
( |
| ) |
|
|
protected |
◆ autoFindBestSeparator()
| void AsciiOpenDlg::autoFindBestSeparator |
( |
| ) |
|
|
protected |
Tries to guess the best separator automagically.
◆ CheckOpenSequence()
| static bool AsciiOpenDlg::CheckOpenSequence |
( |
const Sequence & |
sequence, |
|
|
QString & |
errorMessage |
|
) |
| |
|
static |
Checks the "opening" sequence as set by the user.
- Returns
- validity (+ error message if not)
◆ checkSelectedColumnsValidity()
| void AsciiOpenDlg::checkSelectedColumnsValidity |
( |
| ) |
|
|
protected |
◆ columnsTypeHasChanged()
| void AsciiOpenDlg::columnsTypeHasChanged |
( |
int |
index | ) |
|
|
protected |
◆ commaDecimalCheckBoxToggled()
| void AsciiOpenDlg::commaDecimalCheckBoxToggled |
( |
bool |
| ) |
|
Slot called when the 'comma as decimal' checkbox is toggled.
◆ getAverageLineSize()
| double AsciiOpenDlg::getAverageLineSize |
( |
| ) |
const |
|
inline |
Returns roughly estimated average line size (in bytes)
Definition at line 152 of file AsciiOpenDlg.h.
◆ getColumnsCount()
| unsigned AsciiOpenDlg::getColumnsCount |
( |
| ) |
const |
|
inline |
◆ getMaxCloudSize()
| unsigned AsciiOpenDlg::getMaxCloudSize |
( |
| ) |
const |
Returns the max number of points per cloud.
◆ getOpenSequence()
| Sequence AsciiOpenDlg::getOpenSequence |
( |
| ) |
const |
Returns the whole "opening" sequence as set by the user.
◆ getSeparator()
| unsigned char AsciiOpenDlg::getSeparator |
( |
| ) |
const |
|
inline |
◆ getSkippedLinesCount()
| unsigned AsciiOpenDlg::getSkippedLinesCount |
( |
| ) |
const |
|
inline |
◆ onSeparatorChange()
| void AsciiOpenDlg::onSeparatorChange |
( |
const QString & |
separator | ) |
|
Slot called when separator changes.
◆ ResetApplyAll()
| static void AsciiOpenDlg::ResetApplyAll |
( |
| ) |
|
|
static |
Resets the "apply all" flag (if set)
◆ restorePreviousContext()
| bool AsciiOpenDlg::restorePreviousContext |
( |
| ) |
|
Restores the previous context ('Apply all' button)
- Returns
- whether a context was saved or not
◆ safeSequence()
| bool AsciiOpenDlg::safeSequence |
( |
| ) |
const |
Returns whether the current sequence is 'safe'.
A safe sequence is safe if it matches the header (if any) or if the file has less than 6 columns.
◆ setInput()
| void AsciiOpenDlg::setInput |
( |
const QString & |
filename, |
|
|
QTextStream * |
stream = nullptr |
|
) |
| |
Sets the input filename or text stream.
- Parameters
-
| filename | filename |
| stream | text stream |
◆ setSeparator()
| void AsciiOpenDlg::setSeparator |
( |
QChar |
| ) |
|
|
protected |
Sets the current separator.
◆ setSkippedLines()
| void AsciiOpenDlg::setSkippedLines |
( |
int |
linesCount | ) |
|
Sets the number of lines to skip.
◆ shortcutButtonPressed()
| void AsciiOpenDlg::shortcutButtonPressed |
( |
| ) |
|
|
protected |
◆ showLabelsIn2D()
| bool AsciiOpenDlg::showLabelsIn2D |
( |
| ) |
const |
Whether labels should be visible in 2D.
◆ updateTable()
| void AsciiOpenDlg::updateTable |
( |
| ) |
|
Forces the table to update itself.
◆ useCommaAsDecimal()
| bool AsciiOpenDlg::useCommaAsDecimal |
( |
| ) |
const |
Returns whether comma should be used as decimal point.
◆ m_averageLineSize
| double AsciiOpenDlg::m_averageLineSize |
|
protected |
◆ m_columnsCount
| unsigned AsciiOpenDlg::m_columnsCount |
|
protected |
◆ m_columnType
| std::vector<ColumnType> AsciiOpenDlg::m_columnType |
|
protected |
Identifies columns with numbers only [mandatory].
Definition at line 215 of file AsciiOpenDlg.h.
◆ m_filename
| QString AsciiOpenDlg::m_filename |
|
protected |
◆ m_headerLine
| QString AsciiOpenDlg::m_headerLine |
|
protected |
◆ m_separator
| QChar AsciiOpenDlg::m_separator |
|
protected |
◆ m_skippedLines
| unsigned AsciiOpenDlg::m_skippedLines |
|
protected |
◆ m_stream
| QTextStream* AsciiOpenDlg::m_stream |
|
protected |
◆ m_ui
| Ui_AsciiOpenDialog* AsciiOpenDlg::m_ui |
|
protected |
The documentation for this class was generated from the following file: