const bool isAddSeparator)
{
return addFeature(theWBName,
+ theInfo.toolBar,
theInfo.id,
theInfo.text,
//Issue #650: in the SALOME mode the tooltip should be same as text
}
//******************************************************
-QAction* SHAPERGUI::addFeature(const QString& theWBName, const QString& theId,
- const QString& theTitle, const QString& theTip,
+QAction* SHAPERGUI::addFeature(const QString& theWBName, const QString& theTBName,
+ const QString& theId, const QString& theTitle, const QString& theTip,
const QIcon& theIcon, const QKeySequence& theKeys,
bool isCheckable, const bool isAddSeparator,
const QString& theStatusTip)
if (isAddSeparator)
createMenu(separator(), aWBMenu);
- int aWBTool = createTool(theWBName, theWBName);
+ int aWBTool = createTool(theTBName, theTBName);
int aToolId = createTool(aId, aWBTool);
if (isAddSeparator)
createTool(separator(), aWBTool);
//--- XGUI connector interface -----
- virtual QAction* addFeature(const QString& theWBName, const QString& theId,
- const QString& theTitle, const QString& theTip, const QIcon& theIcon,
+ virtual QAction* addFeature(const QString& theWBName, const QString& theTBName,
+ const QString& theId, const QString& theTitle,
+ const QString& theTip, const QIcon& theIcon,
const QKeySequence& theKeys/* = QKeySequence()*/,
bool isCheckable /*= false*/, const bool isAddSeparator/* = false*/,
const QString& theStatusTip);
//! Creates a feature (command) in SALOME desktop
//! \param theWBName - a workbench name
+ //! \param theTBName - a toolbar name
//! \param theId - an id of the feature
//! \param theTitle - a menu item string
//! \param theTip - a tooltip string (help)
//! \param theKeys - hot keys
//! \param isAddSeparator boolean flag about adding separator after the action
//! returns created action
- virtual QAction* addFeature(const QString& theWBName, const QString& theId,
+ virtual QAction* addFeature(const QString& theWBName, const QString& theTBName,
+ const QString& theId,
const QString& theTitle, const QString& theTip,
const QIcon& theIcon,
const QKeySequence& theKeys, bool isCheckable,