myModule(theModule),
myResult(theModule->shaperToolbars())
{
- myFreeCommands = getModuleFreeCommands();
+ myFreeCommands = theModule->getFreeCommands();
setWindowTitle(tr("Toolbars"));
QVBoxLayout* aMailLayout = new QVBoxLayout(this);
myToolbarsList->addItems(aItems);
}
-QIntList SHAPERGUI_ToolbarsDlg::getModuleFreeCommands() const
-{
- QIntList aFreeCommands;
- QtxActionToolMgr* aMgr = myModule->toolMgr();
- QAction* anAction;
- int aId;
- QMap<QString, QIntList>::const_iterator aIt;
- QIntList aShaperActions = myModule->shaperActions();
- foreach(int aCmd, aShaperActions) {
- anAction = myModule->action(aCmd);
- aId = aMgr->actionId(anAction);
- if (!aMgr->containsAction(aId))
- aFreeCommands.append(aCmd);
- }
- return aFreeCommands;
-}
-
void SHAPERGUI_ToolbarsDlg::onDoubleClick(const QModelIndex& theIdx)
{