|
open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Abstract interface class for the application's main window, provides access to all global graphical user interface elements. More...
#include <iAMainWindow.h>
Signals | |
| void | childChanged () |
| Triggered whenever the active child window has changed. | |
| void | styleChanged () |
| Triggered whenever the user has changed the style of the program (bright/dark/...) via the preferences. | |
Public Member Functions | |
| virtual QMdiSubWindow * | activeChild ()=0 |
| Return the QMdiSubWindow for the current child. | |
| virtual iAMdiChild * | activeMdiChild ()=0 |
| Provides access to the currently active mdi child, if such is available. | |
| virtual void | addActionIcon (QAction *action, QString const &iconName)=0 |
| add an icon to an action (and keep the action for that icon up-to-date if the style changes | |
| virtual QMdiSubWindow * | addSubWindow (QWidget *child)=0 |
| add a new widget as sub window in the mdi area, and return the respective mdi subwindow. | |
| virtual void | closeAllSubWindows ()=0 |
| Close all child windows (with a question whether sure if a child has modified data) | |
| virtual void | closeMdiChild (iAMdiChild *child)=0 |
| Close a child window. | |
| virtual iAMdiChild * | createMdiChild (bool unsavedChanges)=0 |
| Create a new child window. | |
| virtual iAPreferences const & | defaultPreferences () const =0 |
| retrieve the default preferences. | |
| virtual iARenderSettings const & | defaultRenderSettings () const =0 |
| retrieve default renderer settings. | |
| virtual iAVolumeSettings const & | defaultVolumeSettings () const =0 |
| retrieve default volume rendering settings. | |
| virtual QMenu * | fileMenu ()=0 |
| Get the File menu (can be used by modules to append entries to it). | |
| virtual QMenu * | filtersMenu ()=0 |
| Get the Filters menu (can be used by modules to append entries to it). | |
| virtual QMenu * | helpMenu ()=0 |
| Get the Help menu (can be used by modules to append entries to it). | |
| virtual void | loadFileNew (QString const &fileName, iAMdiChild *child=nullptr, std::shared_ptr< iAFileIO > io=nullptr)=0 |
| Load a file, either into an existing child window or creating a new one. | |
| virtual void | makeActionChildDependent (QAction *action)=0 |
| mark a QAction (typically added to filters or tools menu by a module) as depending on an MDI child window being open and active | |
| virtual QList< iAMdiChild * > | mdiChildList ()=0 |
| Get the list of current MdiChild windows. | |
| virtual iAModuleDispatcher & | moduleDispatcher () const =0 |
| retrieve the module dispatcher | |
| virtual QString const & | path () const =0 |
| Retrieve current directory path (the "working folder") | |
| virtual iAMdiChild * | secondNonActiveChild ()=0 |
| Provides access to a second loaded mdi child, if such is available. | |
| virtual void | setPath (QString const &p)=0 |
| Set current directory path (the "working folder") | |
| virtual QMenu * | toolsMenu ()=0 |
| Get the Tools menu (can be used by modules to append entries to it). | |
Static Public Member Functions | |
| static iAMainWindow * | get () |
| Access to the main window (more or less singleton); implementation currently in iAModuleDispatcher.cpp. | |
Static Protected Attributes | |
| static iAMainWindow * | m_mainWnd = nullptr |
| the one main window | |
Abstract interface class for the application's main window, provides access to all global graphical user interface elements.
|
pure virtual |
Return the QMdiSubWindow for the current child.
Implemented in MainWindow, and MainWindow.
|
pure virtual |
Provides access to the currently active mdi child, if such is available.
Implemented in MainWindow.
|
pure virtual |
add an icon to an action (and keep the action for that icon up-to-date if the style changes
Implemented in MainWindow.
|
pure virtual |
add a new widget as sub window in the mdi area, and return the respective mdi subwindow.
Implemented in MainWindow.
|
signal |
Triggered whenever the active child window has changed.
Use for example to adapt UI's depending on the current child (toolbars etc.)
|
pure virtual |
Close all child windows (with a question whether sure if a child has modified data)
Implemented in MainWindow.
|
pure virtual |
Close a child window.
Implemented in MainWindow.
|
pure virtual |
Create a new child window.
Implemented in MainWindow.
|
pure virtual |
retrieve the default preferences.
Implemented in MainWindow.
|
pure virtual |
retrieve default renderer settings.
Implemented in MainWindow.
|
pure virtual |
retrieve default volume rendering settings.
TODO: more generic interface, also suitable for other datasets (mesh, ...)
Implemented in MainWindow.
|
pure virtual |
Get the File menu (can be used by modules to append entries to it).
Implemented in MainWindow.
|
pure virtual |
Get the Filters menu (can be used by modules to append entries to it).
Implemented in MainWindow.
|
static |
Access to the main window (more or less singleton); implementation currently in iAModuleDispatcher.cpp.
|
pure virtual |
Get the Help menu (can be used by modules to append entries to it).
Implemented in MainWindow.
|
pure virtual |
Load a file, either into an existing child window or creating a new one.
| fileName | the name of the file (project or dataset) to load |
| child | the child window to load the data into. If left at default value nullptr, a new child will be created |
| io | the file io to be used when loading the file. If left at default value nullptr, the iAFileTypeRegistry will be consulted to create an io fitting for the given filename |
Implemented in MainWindow.
|
pure virtual |
mark a QAction (typically added to filters or tools menu by a module) as depending on an MDI child window being open and active
Implemented in MainWindow.
|
pure virtual |
Get the list of current MdiChild windows.
Implemented in MainWindow.
|
pure virtual |
retrieve the module dispatcher
Implemented in MainWindow.
|
pure virtual |
Retrieve current directory path (the "working folder")
Implemented in MainWindow.
|
pure virtual |
Provides access to a second loaded mdi child, if such is available.
Will throw an error if none is available or more than two are loaded.
Implemented in MainWindow.
|
pure virtual |
Set current directory path (the "working folder")
Implemented in MainWindow.
|
signal |
Triggered whenever the user has changed the style of the program (bright/dark/...) via the preferences.
|
pure virtual |
Get the Tools menu (can be used by modules to append entries to it).
Implemented in MainWindow.
|
staticprotected |
the one main window