Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::InviwoMainWindow Class Reference
Inheritance diagram for inviwo::InviwoMainWindow:

Public Member Functions

 InviwoMainWindow (InviwoApplication *app)
void showWindow ()
bool openExample (const std::filesystem::path &exampleFileName)
void openLastWorkspace (const std::filesystem::path &workspace={})
bool openWorkspace (const std::filesystem::path &workspaceFileName)
bool openWorkspaceAskToSave (const std::filesystem::path &workspaceFileName)
NetworkEditorgetNetworkEditor () const
NetworkEditorViewgetNetworkEditorView () const
TextLabelOverlaygetNetworkEditorOverlay () const
SettingsWidgetgetSettingsWidget () const
ProcessorTreeWidgetgetProcessorTreeWidget () const
PropertyListWidgetgetPropertyListWidget () const
ConsoleWidgetgetConsoleWidget () const
AnnotationsWidgetgetAnnotationsWidget () const
HelpWidgetgetHelpWidget () const
InviwoApplicationgetInviwoApplication () const
EditorSettingsgetEditorSettings () const
InviwoEditMenugetInviwoEditMenu () const
ToolsMenugetToolsMenu () const
bool newWorkspace ()
bool openWorkspace ()
bool appendWorkspace ()
bool saveWorkspace ()
bool saveWorkspaceAs ()
void saveWorkspaceAsCopy ()
bool askToSaveWorkspaceChanges ()
void exitInviwo (bool saveIfModified=true)
void showAboutBox ()
void toggleWelcomeScreen ()
void showWelcomeScreen ()
void hideWelcomeScreen ()
QStringList getRecentWorkspaceList () const
 query the Qt settings for recent workspaces
bool hasRestoreWorkspace () const
void restoreWorkspace ()

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event) override
virtual void dragMoveEvent (QDragMoveEvent *event) override
virtual void dropEvent (QDropEvent *event) override

Member Function Documentation

◆ appendWorkspace()

bool inviwo::InviwoMainWindow::appendWorkspace ( )

shows a file dialog for appending a workspace.

Returns
true if the workspace was appended, otherwise false.
See also
askToSaveWorkspaceChanges

◆ newWorkspace()

bool inviwo::InviwoMainWindow::newWorkspace ( )

sets up an empty workspace. In case there are unsaved changes, the user will be asked to save or discard them, or cancel the task.

Returns
true if the workspace was opened, otherwise false.
See also
askToSaveWorkspaceChanges

◆ openExample()

bool inviwo::InviwoMainWindow::openExample ( const std::filesystem::path & exampleFileName)

loads the given example workspace.

Returns
true if the example was opened, otherwise false.

◆ openWorkspace() [1/2]

bool inviwo::InviwoMainWindow::openWorkspace ( )

shows a file dialog for loading a workspace. In case there are unsaved changes, the user will be asked to save or discard them, or cancel the loading.

Returns
true if the workspace was opened, otherwise false.
See also
askToSaveWorkspaceChanges

◆ openWorkspace() [2/2]

bool inviwo::InviwoMainWindow::openWorkspace ( const std::filesystem::path & workspaceFileName)

loads the given workspace.

Returns
true if the workspace was opened, otherwise false.

◆ openWorkspaceAskToSave()

bool inviwo::InviwoMainWindow::openWorkspaceAskToSave ( const std::filesystem::path & workspaceFileName)

loads the given workspace. In case there are unsaved changes, the user will be asked to save or discard them, or cancel the loading.

Returns
true if the workspace was opened, otherwise false.

◆ saveWorkspace()

bool inviwo::InviwoMainWindow::saveWorkspace ( )

saves the current workspace. If the workspace does not have a name yet, a file dialog will be shown.

Returns
true if the workspace was saved, otherwise false.
See also
saveWorkspaceAs

◆ saveWorkspaceAs()

bool inviwo::InviwoMainWindow::saveWorkspaceAs ( )

saves the current workspace using a file dialog

Returns
true if the workspace was saved, otherwise false.
See also
saveWorkspaceAs

The documentation for this class was generated from the following file:
  • inviwomainwindow.h