34#include <NDEVR/ModelFileDialog.h>
35#if NDEVR_SUPPORTS_THREADING
36 #include <NDEVR/CachedFactoryIOThread.h>
120 bool loadOrSaveFile();
124 void processWarnings();
129 void onOperationFinished(
bool success);
133 void onSuccessfulSave();
137 void onSuccessfulImport();
157#if NDEVR_SUPPORTS_THREADING
166 bool m_position_on_end;
virtual void onAccepted() override
Called when the user accepts the dialog, finalizing the operation.
virtual void beginProcess()
Begins the import or export process using the current settings.
Buffer< UUID > IDs() const
Returns the UUIDs of the models currently selected in the dialog.
void selectDefaultToExport()
Selects the default set of models for export.
virtual void filterModelsToExport()
Filters the model list to show only those appropriate for export.
bool m_show_error_dialog
Whether to display an error dialog on failure.
virtual void onCancelled() override
Called when the user cancels the dialog, aborting any active operation.
Buffer< FactoryParameters > m_files
The file parameters for the current operation.
QSize sizeHint() const override
Returns the recommended size for this dialog.
ModelSelectionTree * m_selection_tree
The tree widget for selecting models to import or export.
CachedFactoryIOThread m_factory_thread
The background thread managing cached file I/O.
virtual void reset()
Resets the dialog to its initial state.
void setPositionOnEnd(bool position_on_end)
Sets whether the camera should reposition to the imported data on completion.
void loaded()
Emitted when the file has been successfully loaded or saved.
virtual void setUUIDs(Buffer< UUID > models)
Sets the UUIDs of models available for selection in the dialog.
virtual void updateOptions(FactoryOptions &new_options) override
Updates the given factory options with the current dialog settings.
AutoModelFileDialog(bool is_import, InfoPipe *log, QWidget *parent=nullptr)
Constructs the AutoModelFileDialog.
void setIsValid(bool is_valid)
Sets whether the current dialog configuration is valid for processing.
void selectAllVisible()
Selects all visible models in the selection tree.
virtual void setRequests(const Buffer< FactoryParameters > &file)
Sets the file requests to be processed, starting background I/O if possible.
The equivelent of std::vector but with a bit more control.
A thread designed to read and write files using the FactoryIO interface.
User-defined options that define preferences for importing and exporting using IOFactory objects.
A light-weight base class for Log that allows processes to update, without the need for additional in...
The core logic for importing and exporting files from the model hierarchy.
ModelFileDialog(bool is_import, InfoPipe *log, QWidget *parent=0)
Constructs the model file dialog for import or export settings.
A tree view widget for displaying and selecting Models from the scene.
The primary namespace for the NDEVR SDK.