33#include <NDEVR/Editor.h>
34#include <NDEVR/FileChooserDialog.h>
35#include <QApplication>
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
ProjectEditor(const DynamicPointer< QTDesignObject > &project, QWidget *parent=nullptr)
Constructs a project editor for the given design object.
EditorShowMode showMode() const override
Returns the preferred display mode for this editor.
void hideFileChooser()
Hides the file chooser dialog if it is visible.
void clearValues()
Clears all input field values in the editor.
virtual void updateValues() override
Updates the UI values from the current project state.
void fileChosen()
Slot called when a file is chosen from the file browser dialog.
String folderName() const
Gets the current folder name from the UI.
void workingDirectory()
Opens a file browser to select the project working directory.
FileChooserDialog * m_file_chooser_dialog
The file chooser dialog for selecting project directories.
Ui::ProjectUI * ui
The auto-generated UI form.
bool willOverrideExisting(const StringView &folder_name, const StringView &project_name)
Checks whether saving to the given path would overwrite an existing project.
static String getProjectName(const StringView &project_name)
Extracts or sanitizes a project name from the given string.
static File getFileName(const StringView &folder_name, const StringView &project_name)
Constructs a file path from the folder name and project name.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
The primary namespace for the NDEVR SDK.
EditorShowMode
Describes how an Editor should be displayed within the application UI.
Vector2< g_type > project(const Vector3< g_type > &)
Projects a 3D point to 2D by dividing by the z component.