open_iA 2024.7
Loading...
Searching...
No Matches
Functions
iAToolHelper.h File Reference
#include <iALog.h>
#include "iAMainWindow.h"
#include "iAMdiChild.h"
#include "iAQMenuHelper.h"

Functions

template<class ToolType >
void addToolAction (iAMainWindow *mainWnd, QMenu *menu, bool unique=true, QString menuTitle=QString(), QString toolTitle=QString())
 
template<typename T >
T * addToolToActiveMdiChild (QString const &name, iAMainWindow *mainWnd, bool unique=true)
 helper function to add a tool to the current mdi child (if it exists)
 

Function Documentation

◆ addToolAction()

template<class ToolType >
void addToolAction ( iAMainWindow * mainWnd,
QMenu * menu,
bool unique = true,
QString menuTitle = QString(),
QString toolTitle = QString() )

◆ addToolToActiveMdiChild()

template<typename T >
T * addToolToActiveMdiChild ( QString const & name,
iAMainWindow * mainWnd,
bool unique = true )

helper function to add a tool to the current mdi child (if it exists)