open_iA 2021.08
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Functions
iAGUIModuleInterface.cpp File Reference
#include "iAGUIModuleInterface.h"
#include "iALog.h"
#include "iAModuleAttachmentToChild.h"
#include "iAMainWindow.h"
#include "iAMdiChild.h"
#include <itkMacro.h>
#include <QMenu>
#include <QMessageBox>
#include <QStatusBar>
#include <QString>

Functions

void addToMenuSorted (QMenu *menu, QAction *action)
 Add a given action to a menu, such that the (previously sorted) menu stays alphabetically sorted. More...
 
QMenu * getOrAddSubMenu (QMenu *parentMenu, QString const &title, bool addSeparator)
 In the given menu, search for a menu with the given title; if it doesn't exist, add (alphabetically sorted). More...
 

Function Documentation

◆ addToMenuSorted()

void addToMenuSorted ( QMenu *  menu,
QAction *  action 
)

Add a given action to a menu, such that the (previously sorted) menu stays alphabetically sorted.

◆ getOrAddSubMenu()

QMenu * getOrAddSubMenu ( QMenu *  parentMenu,
QString const &  title,
bool  addSeparator 
)

In the given menu, search for a menu with the given title; if it doesn't exist, add (alphabetically sorted).