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

Public Member Functions

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

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:
  • include/inviwo/qt/editor/inviwomainwindow.h