API Documentation
Loading...
Searching...
No Matches
AsciiModelFileDialog Class Reference

Default dialog shown when the user exports an ascii-or custom column style file. More...

#include <AsciiModelFileDialog.h>

Inheritance diagram for AsciiModelFileDialog:
[legend]
Collaboration diagram for AsciiModelFileDialog:
[legend]

Public Types

enum  AsciiError { e_valid , e_file_is_empty }
 

Public Slots

void updateFromUISlot ()
 
void showColumnContextMenu (const QPoint &point)
 
void selectColumn (uint04 column)
 
void onFieldChooserEdited ()
 
void onFieldChooserAccepted ()
 
void onFieldChooserDeleted ()
 

Public Member Functions

 AsciiModelFileDialog (bool is_import, ProgressInfo *log, QWidget *parent=nullptr)
 
 ~AsciiModelFileDialog ()
 
virtual void setRequests (const Buffer< FactoryParameters > &file) override
 
bool checkValidity ()
 
void enabledFormatChoosing (bool enabled)
 
void updateOptions (FactoryOptions &new_options) override
 
virtual void setUUIDs (Buffer< UUID > models) override
 
- Public Member Functions inherited from AutoModelFileDialog
 AutoModelFileDialog (bool is_import, ProgressInfo *log, QWidget *parent=nullptr)
 
 ~AutoModelFileDialog ()
 
Buffer< UUIDIDs () const
 
void selectAllVisible ()
 
void selectDefaultToExport ()
 
virtual void reset ()
 
virtual void beginProcess ()
 
void setIsValid (bool is_valid)
 
void setPositionOnEnd (bool position_on_end)
 
- Public Member Functions inherited from ModelFileDialog
 ModelFileDialog (bool is_import, ProgressInfo *log, QWidget *parent=0)
 
void setWindingCalculation (WindingMode winding)
 
void postUpdateUIRequest ()
 
bool shouldShow () const
 
void closeEvent (QCloseEvent *) override
 
virtual void isOptionMode (bool is_options_mode)
 
void setFormat (const FactoryParameters &format)
 
virtual void updateGeometriesAndFeatures ()
 
virtual void setGeometriesAndFeatures (const FactoryFeatures &features)
 
bool canRevertOptions () const
 
bool canResetOptions () const
 
File iniFile () const
 
FactoryOptions::IncludeProperties getReadPrecision () const
 
FactoryOptions::IncludeProperties getGenerationPrecision () const
 
FactoryOptions options () const
 

Static Public Member Functions

static FileFormat AsciiTemplateFormat ()
 
- Static Public Member Functions inherited from ModelFileDialog
static void ResetAllImportOptionsToDefaults ()
 
static void ResetAllExportOptionsToDefaults ()
 
static File INISettingsFolder (bool is_import)
 

Protected Member Functions

QSize sizeHint () const override
 
void predictDelimiter (AsciiOptions &options) const
 
void predictColumnType (AsciiOptions &options)
 
void predictFirstLine (uint04 &line, uint04 &row_count) const
 
bool predictHasHeaders () const
 
void setupColumnHeaders ()
 
void setColumn (uint04 index, const DesignParameter &params)
 
bool existsOutsideOf (uint04 index, const DesignParameter &params) const
 
bool existsBefore (uint04 index, const DesignParameter &params) const
 
Buffer< DesignParametergetPossibleChannels (const String &option)
 
Buffer< DesignParametergetChannelWhitelist () const
 
Buffer< DesignParametergetAvailableChannels (const Buffer< UUID > &models)
 
virtual void filterModelsToExport () override
 
File templateFolder () const
 
AsciiError updateUIFromFile (AsciiOptions &options)
 
AsciiError updateExportPreview ()
 
void setupDelimiterCombo ()
 
QMenu * createColumnMenu ()
 
void updateColumnsFromParams ()
 
AsciiOptions asciiOptions () const
 
void insertNewColumn (uint04 index)
 
void updateUINow () override
 
- Protected Member Functions inherited from AutoModelFileDialog
bool loadOrSaveFile ()
 
void processWarnings ()
 
void onOperationFinished (bool success)
 
void onSuccessfulSave ()
 
void onSuccessfulImport ()
 
virtual void _cancelled () override
 
virtual void _accepted () override
 
ModelFactoryfactory () const
 
- Protected Member Functions inherited from ModelFileDialog
const FactoryOptionsdefaultOptions ()
 

Protected Attributes

Ui::AsciiImportUI * ascii_ui
 
Buffer< ColumnDetailsm_column_details
 
uint04 m_line_preview_count = 60
 
uint04 m_selected_column = 0
 
QMenu * m_field_menu = nullptr
 
bool m_ignore_update = false
 
bool m_pulling_template = false
 
DynamicPointer< Scannerm_scanner
 
- Protected Attributes inherited from AutoModelFileDialog
Buffer< FactoryParametersm_files
 
ModelSelectionTreem_selection_tree
 
bool m_show_error_dialog
 
- Protected Attributes inherited from ModelFileDialog
File m_ini_file
 
UnitManager m_file_units
 
Ui::ImportSettings * ui
 
bool m_show_on_each_import
 
bool m_original_show_on_each_import
 
bool m_accepted
 
bool m_canceled
 
const bool m_is_import
 
bool m_has_settings_change
 
bool m_ui_dirty = false
 
FactoryParameters m_params
 
FactoryOptions m_default_options
 
ProgressInfom_log
 
Buffer< GenericOptionsGroup * > m_generic_options_widgets
 

Additional Inherited Members

- Signals inherited from AutoModelFileDialog
void loaded ()
 
- Signals inherited from ModelFileDialog
void dialogEnded (bool accepted)
 
void ModelLoaded (const Scene *object)
 
- Protected Slots inherited from ModelFileDialog
void saveOptionsAsDefault ()
 
void setShowOnEachImport ()
 
void setOptionsToDefault ()
 
void revertOptionsToFactoryDefault ()
 

Detailed Description

Default dialog shown when the user exports an ascii-or custom column style file.


Class: AsciiModelFileDialog

autotoc_md910

Member Enumeration Documentation

◆ AsciiError

enum AsciiError
Enumerator
e_valid 
e_file_is_empty 

Constructor & Destructor Documentation

◆ AsciiModelFileDialog()

AsciiModelFileDialog ( bool is_import,
ProgressInfo * log,
QWidget * parent = nullptr )

◆ ~AsciiModelFileDialog()

Member Function Documentation

◆ asciiOptions()

AsciiOptions asciiOptions ( ) const
protected

◆ AsciiTemplateFormat()

FileFormat AsciiTemplateFormat ( )
static

◆ checkValidity()

bool checkValidity ( )

◆ createColumnMenu()

QMenu * createColumnMenu ( )
protected

◆ enabledFormatChoosing()

void enabledFormatChoosing ( bool enabled)

◆ existsBefore()

bool existsBefore ( uint04 index,
const DesignParameter & params ) const
protected

◆ existsOutsideOf()

bool existsOutsideOf ( uint04 index,
const DesignParameter & params ) const
protected

◆ filterModelsToExport()

void filterModelsToExport ( )
overrideprotectedvirtual

Reimplemented from AutoModelFileDialog.

◆ getAvailableChannels()

Buffer< DesignParameter > getAvailableChannels ( const Buffer< UUID > & models)
protected

◆ getChannelWhitelist()

Buffer< DesignParameter > getChannelWhitelist ( ) const
protected

◆ getPossibleChannels()

Buffer< DesignParameter > getPossibleChannels ( const String & option)
protected

◆ insertNewColumn()

void insertNewColumn ( uint04 index)
protected

◆ onFieldChooserAccepted

void onFieldChooserAccepted ( )
slot

◆ onFieldChooserDeleted

void onFieldChooserDeleted ( )
slot

◆ onFieldChooserEdited

void onFieldChooserEdited ( )
slot

◆ predictColumnType()

void predictColumnType ( AsciiOptions & options)
protected

◆ predictDelimiter()

void predictDelimiter ( AsciiOptions & options) const
protected

◆ predictFirstLine()

void predictFirstLine ( uint04 & line,
uint04 & row_count ) const
protected

◆ predictHasHeaders()

bool predictHasHeaders ( ) const
protected

◆ selectColumn

void selectColumn ( uint04 column)
slot

◆ setColumn()

void setColumn ( uint04 index,
const DesignParameter & params )
protected

◆ setRequests()

void setRequests ( const Buffer< FactoryParameters > & file)
overridevirtual

Reimplemented from AutoModelFileDialog.

◆ setupColumnHeaders()

void setupColumnHeaders ( )
protected

◆ setupDelimiterCombo()

void setupDelimiterCombo ( )
protected

◆ setUUIDs()

void setUUIDs ( Buffer< UUID > models)
overridevirtual

Reimplemented from AutoModelFileDialog.

◆ showColumnContextMenu

void showColumnContextMenu ( const QPoint & point)
slot

◆ sizeHint()

QSize sizeHint ( ) const
overrideprotected

◆ templateFolder()

File templateFolder ( ) const
protected

◆ updateColumnsFromParams()

void updateColumnsFromParams ( )
protected

◆ updateExportPreview()

AsciiModelFileDialog::AsciiError updateExportPreview ( )
protected

◆ updateFromUISlot

void updateFromUISlot ( )
slot

◆ updateOptions()

void updateOptions ( FactoryOptions & new_options)
overridevirtual

Reimplemented from AutoModelFileDialog.

◆ updateUIFromFile()

AsciiModelFileDialog::AsciiError updateUIFromFile ( AsciiOptions & options)
protected

◆ updateUINow()

void updateUINow ( )
overrideprotectedvirtual

Reimplemented from ModelFileDialog.

Member Data Documentation

◆ ascii_ui

Ui::AsciiImportUI* ascii_ui
protected

◆ m_column_details

Buffer<ColumnDetails> m_column_details
protected

◆ m_field_menu

QMenu* m_field_menu = nullptr
protected

◆ m_ignore_update

bool m_ignore_update = false
protected

◆ m_line_preview_count

uint04 m_line_preview_count = 60
protected

◆ m_pulling_template

bool m_pulling_template = false
protected

◆ m_scanner

DynamicPointer<Scanner> m_scanner
protected

◆ m_selected_column

uint04 m_selected_column = 0
protected

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