open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Signals | Public Member Functions | List of all members
iAMainWindow Class Referenceabstract

#include <iAMainWindow.h>

Inheritance diagram for iAMainWindow:
[legend]
Collaboration diagram for iAMainWindow:
[legend]

Signals

void histogramAvailable ()
 
void styleChanged ()
 

Public Member Functions

virtual QMdiSubWindow * activeChild ()=0
 Return the QMdiSubWindow for the current child. More...
 
virtual iAMdiChildactiveMdiChild ()=0
 Provides access to the currently active mdi child, if such is available. More...
 
virtual QMdiSubWindow * addSubWindow (QWidget *child)=0
 add a new widget as sub window in the mdi area, and return the respective mdi subwindow. More...
 
virtual bool brightMode () const =0
 whether the current qss theme is bright mode (true) or dark mode (false) More...
 
virtual void closeAllSubWindows ()=0
 Close all child windows (with a question whether sure if a child has modified data) More...
 
virtual void closeMdiChild (iAMdiChild *child)=0
 Close a child window. More...
 
virtual iAMdiChildcreateMdiChild (bool unsavedChanges)=0
 Create a new child window. More...
 
virtual QString const & currentFile () const =0
 
virtual QMenu * fileMenu ()=0
 Get the File menu (can be used by modules to append entries to it). More...
 
virtual QMenu * filtersMenu ()=0
 Get the Filters menu (can be used by modules to append entries to it). More...
 
virtual QMenu * helpMenu ()=0
 Get the Help menu (can be used by modules to append entries to it). More...
 
virtual void loadFile (QString fileName, bool isStack)=0
 load the file under the given filename in a new child window More...
 
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 More...
 
virtual QList< iAMdiChild * > mdiChildList ()=0
 Get the list of current MdiChild windows. More...
 
virtual iAModuleDispatchermoduleDispatcher () const =0
 retrieve the module dispatcher More...
 
virtual QString const & path () const =0
 Retrieve current directory path (the "working folder") More...
 
virtual iAMdiChildsecondNonActiveChild ()=0
 Provides access to a second loaded mdi child, if such is available. More...
 
virtual void setPath (QString const &p)=0
 Set current directory path (the "working folder") More...
 
virtual QMenu * toolsMenu ()=0
 Get the Tools menu (can be used by modules to append entries to it). More...
 
virtual iAMdiChildresultChild (QString const &title)=0
 
virtual iAMdiChildresultChild (int childInd, QString const &title)=0
 
virtual iAMdiChildresultChild (iAMdiChild *oldChild, QString const &title)=0
 

Member Function Documentation

◆ activeChild()

virtual QMdiSubWindow * iAMainWindow::activeChild ( )
pure virtual

Return the QMdiSubWindow for the current child.

Implemented in MainWindow, and MainWindow.

◆ activeMdiChild()

virtual iAMdiChild * iAMainWindow::activeMdiChild ( )
pure virtual

Provides access to the currently active mdi child, if such is available.

Returns
pointer to the currently active mdi child, or nullptr if no child is currently open

Implemented in MainWindow.

◆ addSubWindow()

virtual QMdiSubWindow * iAMainWindow::addSubWindow ( QWidget *  child)
pure virtual

add a new widget as sub window in the mdi area, and return the respective mdi subwindow.

Implemented in MainWindow.

◆ brightMode()

virtual bool iAMainWindow::brightMode ( ) const
pure virtual

whether the current qss theme is bright mode (true) or dark mode (false)

Implemented in MainWindow.

◆ closeAllSubWindows()

virtual void iAMainWindow::closeAllSubWindows ( )
pure virtual

Close all child windows (with a question whether sure if a child has modified data)

Implemented in MainWindow.

◆ closeMdiChild()

virtual void iAMainWindow::closeMdiChild ( iAMdiChild child)
pure virtual

Close a child window.

Implemented in MainWindow.

◆ createMdiChild()

virtual iAMdiChild * iAMainWindow::createMdiChild ( bool  unsavedChanges)
pure virtual

Create a new child window.

Implemented in MainWindow.

◆ currentFile()

virtual QString const & iAMainWindow::currentFile ( ) const
pure virtual
Deprecated:
. Use a specific mdichilds, or even better, an mdichilds dlg_modalities methods instead!

Implemented in MainWindow.

◆ fileMenu()

virtual QMenu * iAMainWindow::fileMenu ( )
pure virtual

Get the File menu (can be used by modules to append entries to it).

Implemented in MainWindow.

◆ filtersMenu()

virtual QMenu * iAMainWindow::filtersMenu ( )
pure virtual

Get the Filters menu (can be used by modules to append entries to it).

Implemented in MainWindow.

◆ helpMenu()

virtual QMenu * iAMainWindow::helpMenu ( )
pure virtual

Get the Help menu (can be used by modules to append entries to it).

Implemented in MainWindow.

◆ histogramAvailable

void iAMainWindow::histogramAvailable ( )
signal

◆ loadFile()

virtual void iAMainWindow::loadFile ( QString  fileName,
bool  isStack 
)
pure virtual

load the file under the given filename in a new child window

Implemented in MainWindow.

◆ makeActionChildDependent()

virtual void iAMainWindow::makeActionChildDependent ( QAction *  action)
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.

◆ mdiChildList()

virtual QList< iAMdiChild * > iAMainWindow::mdiChildList ( )
pure virtual

Get the list of current MdiChild windows.

Implemented in MainWindow.

◆ moduleDispatcher()

virtual iAModuleDispatcher & iAMainWindow::moduleDispatcher ( ) const
pure virtual

retrieve the module dispatcher

Implemented in MainWindow.

◆ path()

virtual QString const & iAMainWindow::path ( ) const
pure virtual

Retrieve current directory path (the "working folder")

Implemented in MainWindow.

◆ resultChild() [1/3]

virtual iAMdiChild * iAMainWindow::resultChild ( iAMdiChild oldChild,
QString const &  title 
)
pure virtual

Implemented in MainWindow.

◆ resultChild() [2/3]

virtual iAMdiChild * iAMainWindow::resultChild ( int  childInd,
QString const &  title 
)
pure virtual

Implemented in MainWindow.

◆ resultChild() [3/3]

virtual iAMdiChild * iAMainWindow::resultChild ( QString const &  title)
pure virtual

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)

Implemented in MainWindow.

◆ secondNonActiveChild()

virtual iAMdiChild * iAMainWindow::secondNonActiveChild ( )
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.

Deprecated:
instead of this method, in filters, use the facilities provided in iAFilter (via the requiredInputs parameter to the constructor) to specify multiple inputs

Implemented in MainWindow.

◆ setPath()

virtual void iAMainWindow::setPath ( QString const &  p)
pure virtual

Set current directory path (the "working folder")

Implemented in MainWindow.

◆ styleChanged

void iAMainWindow::styleChanged ( )
signal

◆ toolsMenu()

virtual QMenu * iAMainWindow::toolsMenu ( )
pure virtual

Get the Tools menu (can be used by modules to append entries to it).

Implemented in MainWindow.


The documentation for this class was generated from the following file: