#include <ImportASCIIDialog.h>

Public Types | |
| enum | ImportMode { NewTables, NewColumns, NewRows, Overwrite } |
| Possible destinations for the imported data. More... | |
Public Member Functions | |
| const QString | columnSeparator () const |
| Return the selected column separator. | |
| QString | commentString () |
| Returns a string used to comment lines when importing ASCII files. | |
| QLocale | decimalSeparators () |
| Returns a locale having the decimal separators set to user custom settings. | |
| int | ignoredLines () const |
| Return the number of lines to be skipped at the start of each file. | |
| ImportASCIIDialog (bool importModeEnabled, QWidget *parent=0, bool extended=true, Qt::WFlags flags=0) | |
| Constructor. | |
| bool | importComments () |
| Returns true if the second line of the ASCII file should be used to set comments in table. | |
| ImportMode | importMode () const |
| Return the selected import mode. | |
| bool | readOnly () const |
| Whether the user wants the import options to be saved. | |
| bool | renameColumns () const |
| Whether to rename columns based on the first (non-skipped) line. | |
| void | setColumnSeparator (const QString &sep) |
| Set the selected columns separator. | |
| bool | simplifySpaces () const |
| Whether to replace sequences of whitespace charecters with a single space. | |
| bool | stripSpaces () const |
| Whether to remove whitespace from beginning and end of lines. | |
| bool | updateDecimalSeparators () const |
| Whether the user wants the decimal separators to be changed to application settings. | |
Private Slots | |
| void | changePreviewFile (const QString &path) |
| void | displayHelp () |
| Display help for advanced options. | |
| void | preview () |
| void | updateImportMode (int mode) |
| For Overwrite mode, allow only one file to be selected. | |
Private Member Functions | |
| void | closeEvent (QCloseEvent *) |
| void | initAdvancedOptions () |
| Initialise d_advanced_options and everything it contains. | |
Private Attributes | |
| QComboBox * | boxDecimalSeparator |
| QGroupBox * | d_advanced_options |
| Container widget for all advanced options. | |
| QComboBox * | d_column_separator |
| QLineEdit * | d_comment_string |
| QString | d_current_path |
| QPushButton * | d_help_button |
| QSpinBox * | d_ignored_lines |
| QCheckBox * | d_import_comments |
| QCheckBox * | d_import_dec_separators |
| QComboBox * | d_import_mode |
| QCheckBox * | d_preview_button |
| QSpinBox * | d_preview_lines_box |
| Table * | d_preview_table |
| QCheckBox * | d_read_only |
| QCheckBox * | d_rename_columns |
| QCheckBox * | d_simplify_spaces |
| QCheckBox * | d_strip_spaces |
Possible destinations for the imported data.
Important: Keep this in sync with the initialization of d_import_mode in initAdvancedOptions().
| ImportASCIIDialog::ImportASCIIDialog | ( | bool | importModeEnabled, | |
| QWidget * | parent = 0, |
|||
| bool | extended = true, |
|||
| Qt::WFlags | flags = 0 | |||
| ) |
Constructor.
| importModeEnabled | flag: enable/disable import mode combo box | |
| parent | parent widget (only affects placement of the dialog) | |
| extended | flag: show/hide the advanced options on start-up | |
| flags | window flags |
| void ImportASCIIDialog::changePreviewFile | ( | const QString & | path | ) | [private, slot] |
| void ImportASCIIDialog::closeEvent | ( | QCloseEvent * | e | ) | [private] |
| const QString ImportASCIIDialog::columnSeparator | ( | ) | const |
Return the selected column separator.
| QString ImportASCIIDialog::commentString | ( | ) | [inline] |
Returns a string used to comment lines when importing ASCII files.
| QLocale ImportASCIIDialog::decimalSeparators | ( | ) |
Returns a locale having the decimal separators set to user custom settings.
| void ImportASCIIDialog::displayHelp | ( | ) | [private, slot] |
Display help for advanced options.
| int ImportASCIIDialog::ignoredLines | ( | ) | const [inline] |
Return the number of lines to be skipped at the start of each file.
| bool ImportASCIIDialog::importComments | ( | ) | [inline] |
Returns true if the second line of the ASCII file should be used to set comments in table.
| ImportMode ImportASCIIDialog::importMode | ( | ) | const [inline] |
| void ImportASCIIDialog::initAdvancedOptions | ( | ) | [private] |
Initialise d_advanced_options and everything it contains.
| void ImportASCIIDialog::preview | ( | ) | [private, slot] |
| bool ImportASCIIDialog::readOnly | ( | ) | const [inline] |
Whether the user wants the import options to be saved.
| bool ImportASCIIDialog::renameColumns | ( | ) | const [inline] |
Whether to rename columns based on the first (non-skipped) line.
| void ImportASCIIDialog::setColumnSeparator | ( | const QString & | sep | ) |
Set the selected columns separator.
| bool ImportASCIIDialog::simplifySpaces | ( | ) | const [inline] |
Whether to replace sequences of whitespace charecters with a single space.
| bool ImportASCIIDialog::stripSpaces | ( | ) | const [inline] |
Whether to remove whitespace from beginning and end of lines.
| bool ImportASCIIDialog::updateDecimalSeparators | ( | ) | const [inline] |
Whether the user wants the decimal separators to be changed to application settings.
| void ImportASCIIDialog::updateImportMode | ( | int | mode | ) | [private, slot] |
For Overwrite mode, allow only one file to be selected.
QComboBox * ImportASCIIDialog::boxDecimalSeparator [private] |
QGroupBox* ImportASCIIDialog::d_advanced_options [private] |
Container widget for all advanced options.
QComboBox * ImportASCIIDialog::d_column_separator [private] |
QLineEdit* ImportASCIIDialog::d_comment_string [private] |
QString ImportASCIIDialog::d_current_path [private] |
QPushButton* ImportASCIIDialog::d_help_button [private] |
QSpinBox* ImportASCIIDialog::d_ignored_lines [private] |
QCheckBox * ImportASCIIDialog::d_import_comments [private] |
QCheckBox * ImportASCIIDialog::d_import_dec_separators [private] |
QComboBox* ImportASCIIDialog::d_import_mode [private] |
QCheckBox* ImportASCIIDialog::d_preview_button [private] |
QSpinBox * ImportASCIIDialog::d_preview_lines_box [private] |
Table* ImportASCIIDialog::d_preview_table [private] |
QCheckBox* ImportASCIIDialog::d_read_only [private] |
QCheckBox* ImportASCIIDialog::d_rename_columns [private] |
QCheckBox * ImportASCIIDialog::d_simplify_spaces [private] |
QCheckBox * ImportASCIIDialog::d_strip_spaces [private] |
1.5.4