isis/src/qisis/objs/Tool/Tool.cpp
void Tool::addTo(ViewportMainWindow *pViewPortMnWin) {
    addTo(pViewPortMnWin->workspace());
    addToPermanent(pViewPortMnWin->permanentToolBar());
    addToActive(pViewPortMnWin->activeToolBar());
    addTo(pViewPortMnWin->toolPad());
    if(!menuName().isEmpty()) {
      QMenu *menu = pViewPortMnWin->getMenu(menuName());
//      if (menu->actions().size() > 0) menu->addSeparator();
      addTo(menu);
    }

    //connect(this, SIGNAL(clearWarningSignal ()), pViewPortMnWin, SLOT(resetWarning ()));
  }
/**
   * Adds the tool to the application
   *
   * @param pViewPortMnWin
   */
Adds the tool to the application
@param pViewPortMnWin
Adds the tool to the application @param pViewPortMnWin
void Tool::addTo(ViewportMainWindow *pViewPortMnWin) {
    addTo(pViewPortMnWin->workspace());
    addToPermanent(pViewPortMnWin->permanentToolBar());
    addToActive(pViewPortMnWin->activeToolBar());
    addTo(pViewPortMnWin->toolPad());
    if(!menuName().isEmpty()) {
      QMenu *menu = pViewPortMnWin->getMenu(menuName());
      addTo(menu);
    }
  }
void Tool :: addTo ( ViewportMainWindow * pViewPortMnWin ) { addTo ( pViewPortMnWin -> workspace ( ) ) ; addToPermanent ( pViewPortMnWin -> permanentToolBar ( ) ) ; addToActive ( pViewPortMnWin -> activeToolBar ( ) ) ; addTo ( pViewPortMnWin -> toolPad ( ) ) ; if ( ! menuName ( ) . isEmpty ( ) ) { QMenu * menu = pViewPortMnWin -> getMenu ( menuName ( ) ) ; addTo ( menu ) ; } }
Adds the tool to the application
 @param pViewPortMnWin
Adds the tool to the application @param pViewPortMnWin
//      if (menu->actions().size() > 0) menu->addSeparator(); //connect(this, SIGNAL(clearWarningSignal ()), pViewPortMnWin, SLOT(resetWarning ()));