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 onFieldChooserAccepted ()
 
void onFieldChooserDeleted ()
 
void onFieldChooserEdited ()
 
void selectColumn (uint04 column)
 
void showColumnContextMenu (const QPoint &point)
 
void updateFromUISlot ()
 

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

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 revertOptionsToFactoryDefault ()
 
void saveOptionsAsDefault ()
 
void setOptionsToDefault ()
 
void setShowOnEachImport ()
 

Detailed Description

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


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()

static 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()

virtual 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()

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

Reimplemented from AutoModelFileDialog.

◆ setupColumnHeaders()

void setupColumnHeaders ( )
protected

◆ setupDelimiterCombo()

void setupDelimiterCombo ( )
protected

◆ setUUIDs()

virtual 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()

AsciiError updateExportPreview ( )
protected

◆ updateFromUISlot

void updateFromUISlot ( )
slot

◆ updateOptions()

void updateOptions ( FactoryOptions & new_options)
overridevirtual

Reimplemented from AutoModelFileDialog.

◆ updateUIFromFile()

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 file: