qCC_io  version 2.5.4 (Qt) - 19 Apr 2014
 All Classes Functions Variables Typedefs
Classes | Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes | List of all members
AsciiOpenDlg Class Reference

Dialog for configuration of ASCII files opening sequence. More...

#include <AsciiOpenDlg.h>

Inheritance diagram for AsciiOpenDlg:
Inheritance graph
[legend]
Collaboration diagram for AsciiOpenDlg:
Collaboration graph
[legend]

Classes

struct  SequenceItem
 ASCII open sequence item. More...
 

Public Types

typedef std::vector< SequenceItemSequence
 ASCII open sequence.
 

Public Slots

void updateTable (const QString &separator)
 

Public Member Functions

 AsciiOpenDlg (QString filename, QWidget *parent=0)
 Default constructor.
 
virtual ~AsciiOpenDlg ()
 Default destructor.
 
Sequence getOpenSequence ()
 Returns the whole "opening" sequence as set by the user.
 
unsigned getSkippedLinesCount () const
 Returns number of lines to skip.
 
uchar getSeparator () const
 Returns user selected separator.
 
double getAverageLineSize () const
 Returns roughly estimated average line size (in bytes)
 
unsigned getColumnsCount () const
 Returns columns count per line.
 
unsigned getMaxCloudSize () const
 Returns the max number of points per cloud.
 

Static Public Member Functions

static bool CheckOpenSequence (const Sequence &sequence, QString &errorMessage)
 Checks the "opening" sequence as set by the user. More...
 

Protected Slots

void testBeforeAccept ()
 
void setSkippedLines (int linesCount)
 
void columnsTypeHasChanged (int index)
 
void shortcutButtonPressed ()
 
void checkSelectedColumnsValidity ()
 

Protected Attributes

Ui_AsciiOpenDialog * m_ui
 
unsigned m_skippedLines
 
QChar m_separator
 
double m_averageLineSize
 
QString m_filename
 
QString m_headerLine
 
std::vector< bool > m_columnsValidty
 Identifies columns with numbers only [mandatory].
 
unsigned m_columnsCount
 

Detailed Description

Dialog for configuration of ASCII files opening sequence.

Member Function Documentation

bool AsciiOpenDlg::CheckOpenSequence ( const Sequence sequence,
QString &  errorMessage 
)
static

Checks the "opening" sequence as set by the user.

Returns
validity (+ error message if not)

The documentation for this class was generated from the following files: