33#include <NDEVR/AutoModelFileDialog.h>
34#include <NDEVR/DesignParameter.h>
Default dialog shown when the user exports an ascii-or custom column style file.
Definition AsciiModelFileDialog.h:61
void onFieldChooserDeleted()
void updateColumnsFromParams()
Buffer< DesignParameter > getChannelWhitelist() const
uint04 m_selected_column
Definition AsciiModelFileDialog.h:113
QSize sizeHint() const override
File templateFolder() const
AsciiError updateUIFromFile(AsciiOptions &options)
void predictDelimiter(AsciiOptions &options) const
void predictFirstLine(uint04 &line, uint04 &row_count) const
virtual void filterModelsToExport() override
void predictColumnType(AsciiOptions &options)
AsciiError updateExportPreview()
void showColumnContextMenu(const QPoint &point)
Buffer< DesignParameter > getPossibleChannels(const String &option)
static FileFormat AsciiTemplateFormat()
void updateOptions(FactoryOptions &new_options) override
DynamicPointer< Scanner > m_scanner
Definition AsciiModelFileDialog.h:117
AsciiError
Definition AsciiModelFileDialog.h:65
@ e_file_is_empty
Definition AsciiModelFileDialog.h:67
@ e_valid
Definition AsciiModelFileDialog.h:66
void onFieldChooserEdited()
Buffer< DesignParameter > getAvailableChannels(const Buffer< UUID > &models)
void updateUINow() override
virtual void setUUIDs(Buffer< UUID > models) override
void setupDelimiterCombo()
bool m_ignore_update
Definition AsciiModelFileDialog.h:115
AsciiModelFileDialog(bool is_import, ProgressInfo *log, QWidget *parent=nullptr)
void setColumn(uint04 index, const DesignParameter ¶ms)
bool predictHasHeaders() const
AsciiOptions asciiOptions() const
uint04 m_line_preview_count
Definition AsciiModelFileDialog.h:112
void onFieldChooserAccepted()
bool existsOutsideOf(uint04 index, const DesignParameter ¶ms) const
QMenu * m_field_menu
Definition AsciiModelFileDialog.h:114
void insertNewColumn(uint04 index)
Buffer< ColumnDetails > m_column_details
Definition AsciiModelFileDialog.h:111
Ui::AsciiImportUI * ascii_ui
Definition AsciiModelFileDialog.h:110
bool existsBefore(uint04 index, const DesignParameter ¶ms) const
void setupColumnHeaders()
QMenu * createColumnMenu()
void enabledFormatChoosing(bool enabled)
void selectColumn(uint04 column)
virtual void setRequests(const Buffer< FactoryParameters > &file) override
bool m_pulling_template
Definition AsciiModelFileDialog.h:116
Storage class for all IO options related to an Ascii file output used by an IOFactory services that w...
Definition AsciiOptions.h:43
Dialog that allows user to choose import or export options while simultaniously automatically writing...
Definition AutoModelFileDialog.h:49
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
A definition of data that is logically stored in the Model heirarchy. Data could be a property of a M...
Definition DesignParameter.h:46
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
User-defined options that define preferences for importing and exporting using IOFactory objects.
Definition FactoryOptions.h:49
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
FactoryOptions options() const
Definition ModelFileDialog.h:103
A light-weight base class for Log that allows processes to update, without the need for additional in...
Definition ProgressInfo.hpp:48
The core String class for the NDEVR API.
Definition String.h:69
Stores information about a type, relevant for certain templated functions. To get information about a...
Definition TypeInfo.h:43
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96
Definition FontEditor.h:6
Stores the data for AsciiModelFileDialog user specified columns.
Definition AsciiModelFileDialog.h:51
TypeInfo type_info
Definition AsciiModelFileDialog.h:54
Buffer< DesignParameter > available_options
Definition AsciiModelFileDialog.h:53
DesignParameter selected_option
Definition AsciiModelFileDialog.h:52
bool has_decimals
Definition AsciiModelFileDialog.h:55