![]() |
open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
|
Application main window, provides access to all global graphical user interface elements. More...
#include <mainwindow.h>
Public Slots | |
| void | loadLayout () |
Signals | |
| void | closing () |
| void | fullScreenToggled () |
Signals inherited from iAMainWindow | |
| void | histogramAvailable () |
| void | styleChanged () |
Public Member Functions | |
| MainWindow (QString const &appName, QString const &version, QString const &buildInformation, QString const &splashImage) | |
| ~MainWindow () override | |
| template<typename T > | |
| T * | activeChild () |
| Get the active child window of type T. More... | |
| QMdiSubWindow * | activeChild () override |
| Return the QMdiSubWindow for the current child. More... | |
| iAMdiChild * | activeMdiChild () override |
| Provides access to the currently active mdi child, if such is available. More... | |
| QMdiSubWindow * | addSubWindow (QWidget *child) override |
| add a new widget as sub window in the mdi area, and return the respective mdi subwindow. More... | |
| bool | brightMode () const override |
| whether the current qss theme is bright mode (true) or dark mode (false) More... | |
| template<typename T > | |
| QList< T * > | childList (QMdiArea::WindowOrder order=QMdiArea::CreationOrder) |
| Get the list of current child windows of type T. More... | |
| void | closeAllSubWindows () override |
| Close all child windows (with a question whether sure if a child has modified data) More... | |
| void | closeMdiChild (iAMdiChild *child) override |
| Close a child window. More... | |
| iAMdiChild * | createMdiChild (bool unsavedChanges) override |
| Create a new child window. More... | |
| QString const & | currentFile () const override |
| iAPreferences const & | defaultPreferences () const |
| QMenu * | fileMenu () override |
| Get the File menu (can be used by modules to append entries to it). More... | |
| QMenu * | filtersMenu () override |
| Get the Filters menu (can be used by modules to append entries to it). More... | |
| QMenu * | helpMenu () override |
| Get the Help menu (can be used by modules to append entries to it). More... | |
| void | loadArguments (int argc, char **argv) |
| bool | loadCamera (iAXmlSettings &xml) |
| void | loadFile (QString const &fileName) |
| void | loadFile (QString fileName, bool isStack) override |
| load the file under the given filename in a new child window More... | |
| void | loadFiles (QStringList fileNames) |
| void | loadPreferences (QDomNode preferencesNode) |
| void | loadRenderSettings (QDomNode renderSettingsNode) |
| void | loadSlicerSettings (QDomNode slicerSettingsNode) |
| void | loadSliceViews (QDomNode sliceViewsNode) |
| void | makeActionChildDependent (QAction *action) override |
| mark a QAction (typically added to filters or tools menu by a module) as depending on an MDI child window being open and active More... | |
| QList< iAMdiChild * > | mdiChildList () override |
| Get the list of current MdiChild windows. More... | |
| QList< QString > | mdiWindowTitles () |
| Get list of the titles of currently open MdiChild windows. More... | |
| iAModuleDispatcher & | moduleDispatcher () const override |
| retrieve the module dispatcher More... | |
| QString const & | path () const override |
| Retrieve current directory path (the "working folder") More... | |
| void | saveCamera (iAXmlSettings &xml) |
| void | savePreferences (iAXmlSettings &xml) |
| void | saveRenderSettings (iAXmlSettings &xml) |
| void | saveSlicerSettings (iAXmlSettings &xml) |
| void | saveSliceView (QDomDocument &doc, QDomNode &sliceViewsNode, vtkCamera *ren, QString const &elemStr) |
| void | saveSliceViews (iAXmlSettings &xml) |
| void | saveTransferFunction (QDomDocument &doc, iATransferFunction *transferFunction) |
| iAMdiChild * | secondNonActiveChild () override |
| Provides access to a second loaded mdi child, if such is available. More... | |
| void | setCurrentFile (const QString &fileName) |
| void | setPath (QString const &p) override |
| Set current directory path (the "working folder") More... | |
| QMenu * | toolsMenu () override |
| Get the Tools menu (can be used by modules to append entries to it). More... | |
| void | updateInteractionModeControls (int mode) |
| void | updateMagicLens2DCheckState (bool enabled) |
| iAMdiChild * | resultChild (QString const &title) override |
| iAMdiChild * | resultChild (int childInd, QString const &title) override |
| iAMdiChild * | resultChild (iAMdiChild *oldChild, QString const &title) override |
Static Public Member Functions | |
| static void | initResources () |
| static int | runGUI (int argc, char *argv[], QString const &appName, QString const &version, QString const &buildInformation, QString const &splashPath, QString const &iconPath) |
Application main window, provides access to all global graphical user interface elements.
| MainWindow::MainWindow | ( | QString const & | appName, |
| QString const & | version, | ||
| QString const & | buildInformation, | ||
| QString const & | splashImage | ||
| ) |
|
override |
|
virtual |
Get the active child window of type T.
Implements iAMainWindow.
|
overridevirtual |
Return the QMdiSubWindow for the current child.
Implements iAMainWindow.
|
overridevirtual |
Provides access to the currently active mdi child, if such is available.
Implements iAMainWindow.
|
overridevirtual |
add a new widget as sub window in the mdi area, and return the respective mdi subwindow.
Implements iAMainWindow.
|
overridevirtual |
whether the current qss theme is bright mode (true) or dark mode (false)
Implements iAMainWindow.
| QList< T * > MainWindow::childList | ( | QMdiArea::WindowOrder | order = QMdiArea::CreationOrder | ) |
Get the list of current child windows of type T.
|
overridevirtual |
Close all child windows (with a question whether sure if a child has modified data)
Implements iAMainWindow.
|
overridevirtual |
Close a child window.
Implements iAMainWindow.
|
signal |
|
overridevirtual |
Create a new child window.
Implements iAMainWindow.
|
overridevirtual |
Implements iAMainWindow.
| iAPreferences const & MainWindow::defaultPreferences | ( | ) | const |
|
overridevirtual |
Get the File menu (can be used by modules to append entries to it).
Implements iAMainWindow.
|
overridevirtual |
Get the Filters menu (can be used by modules to append entries to it).
Implements iAMainWindow.
|
signal |
|
overridevirtual |
Get the Help menu (can be used by modules to append entries to it).
Implements iAMainWindow.
|
static |
| void MainWindow::loadArguments | ( | int | argc, |
| char ** | argv | ||
| ) |
| bool MainWindow::loadCamera | ( | iAXmlSettings & | xml | ) |
| void MainWindow::loadFile | ( | QString const & | fileName | ) |
|
overridevirtual |
load the file under the given filename in a new child window
Implements iAMainWindow.
| void MainWindow::loadFiles | ( | QStringList | fileNames | ) |
|
slot |
| void MainWindow::loadPreferences | ( | QDomNode | preferencesNode | ) |
| void MainWindow::loadRenderSettings | ( | QDomNode | renderSettingsNode | ) |
| void MainWindow::loadSlicerSettings | ( | QDomNode | slicerSettingsNode | ) |
| void MainWindow::loadSliceViews | ( | QDomNode | sliceViewsNode | ) |
|
overridevirtual |
mark a QAction (typically added to filters or tools menu by a module) as depending on an MDI child window being open and active
Implements iAMainWindow.
|
overridevirtual |
Get the list of current MdiChild windows.
Implements iAMainWindow.
| QList< QString > MainWindow::mdiWindowTitles | ( | ) |
Get list of the titles of currently open MdiChild windows.
|
overridevirtual |
retrieve the module dispatcher
Implements iAMainWindow.
|
overridevirtual |
Retrieve current directory path (the "working folder")
Implements iAMainWindow.
|
overridevirtual |
Implements iAMainWindow.
|
overridevirtual |
Implements iAMainWindow.
|
overridevirtual |
Get access to result child with the given title. (depending on preferences, this will either open a new mdi child window, or reuse the currently active one)
Implements iAMainWindow.
|
static |
| void MainWindow::saveCamera | ( | iAXmlSettings & | xml | ) |
| void MainWindow::savePreferences | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveRenderSettings | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveSlicerSettings | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveSliceView | ( | QDomDocument & | doc, |
| QDomNode & | sliceViewsNode, | ||
| vtkCamera * | ren, | ||
| QString const & | elemStr | ||
| ) |
| void MainWindow::saveSliceViews | ( | iAXmlSettings & | xml | ) |
| void MainWindow::saveTransferFunction | ( | QDomDocument & | doc, |
| iATransferFunction * | transferFunction | ||
| ) |
|
overridevirtual |
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.
Implements iAMainWindow.
| void MainWindow::setCurrentFile | ( | const QString & | fileName | ) |
|
overridevirtual |
Set current directory path (the "working folder")
Implements iAMainWindow.
|
overridevirtual |
Get the Tools menu (can be used by modules to append entries to it).
Implements iAMainWindow.
| void MainWindow::updateInteractionModeControls | ( | int | mode | ) |
| void MainWindow::updateMagicLens2DCheckState | ( | bool | enabled | ) |