Shows options related to an import or export that utilizes the IOFactory methods to write or read properties.
More...
|
| | ModelFileDialog (bool is_import, InfoPipe *log, QWidget *parent=0) |
| | Constructs the model file dialog for import or export settings.
|
| bool | canResetOptions () const |
| | Returns whether the options can be reset to factory defaults.
|
| bool | canRevertOptions () const |
| | Returns whether the options can be reverted to saved defaults.
|
|
void | closeEvent (QCloseEvent *) override |
| | Handles the close event, treating it as a cancellation if not already accepted or canceled.
|
| void | dialogEnded (bool accepted) |
| | Emitted when the dialog is closed, indicating acceptance or cancellation.
|
| FactoryOptions::IncludeProperties | getGenerationPrecision () const |
| | Returns the generation precision setting from the current options.
|
| FactoryOptions::IncludeProperties | getReadPrecision () const |
| | Returns the read precision setting from the current options.
|
| File | iniFile () const |
| | Returns the INI settings file for the current format.
|
| virtual void | isOptionMode (bool is_options_mode) |
| | Switches the dialog between options-only mode and full import/export mode.
|
| void | ModelLoaded (const Scene *object) |
| | Emitted when a model has been loaded from the import.
|
| FactoryOptions | options () const |
| | Returns the current factory options.
|
|
void | postUpdateUIRequest () |
| | Posts a deferred request to update the UI on the next event loop cycle.
|
| virtual void | setFeatures (const FactoryFeatures &features) |
| | Sets the factory features and updates the UI accordingly.
|
| void | setFormat (const FactoryParameters &format) |
| | Sets the file format and parameters for this dialog.
|
| void | setWindingCalculation (WindingMode winding) |
| | Sets the winding calculation mode for mesh imports.
|
| bool | shouldShow () const |
| | Returns whether this dialog has settings that warrant showing it to the user.
|
|
virtual void | updateFeatures () |
| | Updates the UI to reflect the current factory feature set.
|
|
virtual void | updateUINow () |
| | Immediately updates the UI to reflect the current options state.
|
|
| static File | INISettingsFolder (bool is_import) |
| | Returns the folder where INI settings files are stored.
|
|
static void | ResetAllExportOptionsToDefaults () |
| | Resets all export options for all formats to factory defaults.
|
|
static void | ResetAllImportOptionsToDefaults () |
| | Resets all import options for all formats to factory defaults.
|
|
| const FactoryOptions & | defaultOptions () |
| | Returns the default factory options for the current format.
|
|
virtual void | onAccepted () |
| | Called when the user accepts the dialog.
|
|
virtual void | onCancelled () |
| | Called when the user cancels the dialog.
|
|
void | revertOptionsToFactoryDefault () |
| | Reverts the current options to the original factory defaults.
|
|
void | saveOptionsAsDefault () |
| | Saves the current options as the default for this file format.
|
|
void | setOptionsToDefault () |
| | Resets the current options to the saved defaults.
|
|
void | setShowOnEachImport () |
| | Toggles whether the options dialog is shown on each import.
|
| virtual void | updateOptions (FactoryOptions &new_options) |
| | Updates the given factory options from the current UI state.
|
|
|
bool | m_accepted |
| | Whether the dialog was accepted.
|
|
bool | m_canceled |
| | Whether the dialog was canceled.
|
|
FactoryOptions | m_default_options |
| | The default factory options for comparison.
|
|
UnitManager | m_file_units |
| | The unit manager for file unit conversions.
|
|
Buffer< GenericOptionsGroup * > | m_generic_options_widgets |
| | Widgets for format-specific generic options.
|
|
bool | m_has_settings_change |
| | Whether settings have been modified from defaults.
|
|
File | m_ini_file |
| | The INI file path for persisting options.
|
|
const bool | m_is_import |
| | Whether this dialog is for importing (true) or exporting (false).
|
|
InfoPipe * | m_log |
| | The logging pipe for status messages.
|
|
FactoryParameters | m_params |
| | The current factory parameters including format and options.
|
|
bool | m_ui_dirty = false |
| | Whether the UI needs to be refreshed.
|
|
Ui::ImportSettings * | ui |
| | The auto-generated UI form.
|
Shows options related to an import or export that utilizes the IOFactory methods to write or read properties.
Dialog allows user to edit settings related to one set of FactoryOptions
Definition at line 59 of file ModelFileDialog.h.
◆ ModelFileDialog()
| ModelFileDialog::ModelFileDialog |
( |
bool | is_import, |
|
|
InfoPipe * | log, |
|
|
QWidget * | parent = 0 ) |
Constructs the model file dialog for import or export settings.
- Parameters
-
| [in] | is_import | True for import dialogs, false for export dialogs. |
| [in] | log | The info pipe for logging messages. |
| [in] | parent | The optional parent widget. |
◆ canResetOptions()
| bool ModelFileDialog::canResetOptions |
( |
| ) |
const |
Returns whether the options can be reset to factory defaults.
- Returns
- True if reset is possible.
◆ canRevertOptions()
| bool ModelFileDialog::canRevertOptions |
( |
| ) |
const |
Returns whether the options can be reverted to saved defaults.
- Returns
- True if revert is possible.
◆ defaultOptions()
Returns the default factory options for the current format.
- Returns
- A reference to the default FactoryOptions.
◆ dialogEnded()
| void ModelFileDialog::dialogEnded |
( |
bool | accepted | ) |
|
Emitted when the dialog is closed, indicating acceptance or cancellation.
- Parameters
-
| [in] | accepted | True if the dialog was accepted, false if canceled. |
◆ getGenerationPrecision()
Returns the generation precision setting from the current options.
- Returns
- The include properties setting for generation.
◆ getReadPrecision()
Returns the read precision setting from the current options.
- Returns
- The include properties setting for reading.
◆ iniFile()
| File ModelFileDialog::iniFile |
( |
| ) |
const |
Returns the INI settings file for the current format.
- Returns
- The INI file path.
◆ INISettingsFolder()
| File ModelFileDialog::INISettingsFolder |
( |
bool | is_import | ) |
|
|
static |
Returns the folder where INI settings files are stored.
- Parameters
-
| [in] | is_import | Whether to return the import or export settings folder. |
- Returns
- The INI settings folder path.
◆ isOptionMode()
| virtual void ModelFileDialog::isOptionMode |
( |
bool | is_options_mode | ) |
|
|
virtual |
Switches the dialog between options-only mode and full import/export mode.
- Parameters
-
| [in] | is_options_mode | Whether to show only options without accept/cancel actions. |
◆ ModelLoaded()
| void ModelFileDialog::ModelLoaded |
( |
const Scene * | object | ) |
|
Emitted when a model has been loaded from the import.
- Parameters
-
| [in] | object | The loaded scene. |
◆ options()
◆ setFeatures()
| virtual void ModelFileDialog::setFeatures |
( |
const FactoryFeatures & | features | ) |
|
|
virtual |
Sets the factory features and updates the UI accordingly.
- Parameters
-
| [in] | features | The factory features to apply. |
◆ setFormat()
Sets the file format and parameters for this dialog.
- Parameters
-
| [in] | format | The factory parameters describing the file format. |
◆ setWindingCalculation()
| void ModelFileDialog::setWindingCalculation |
( |
WindingMode | winding | ) |
|
Sets the winding calculation mode for mesh imports.
- Parameters
-
| [in] | winding | The winding mode to apply. |
◆ shouldShow()
| bool ModelFileDialog::shouldShow |
( |
| ) |
const |
Returns whether this dialog has settings that warrant showing it to the user.
- Returns
- True if the dialog should be shown.
◆ updateOptions()
| virtual void ModelFileDialog::updateOptions |
( |
FactoryOptions & | new_options | ) |
|
|
protectedvirtual |
The documentation for this class was generated from the following file: