}
#else
AppElements_Command* aCmd = dynamic_cast<AppElements_Command*>(eachAction);
- aCmdDocKind = aCmd->documentKind();
+ aCmdDocKind = QString::fromStdString(aCmd->featureMessage()->documentKind());
#endif
if(!aCmdDocKind.isEmpty() && aCmdDocKind != aDocKind) {
eachAction->setEnabled(false);
#else
AppElements_MainMenu* aMenuBar = mainWindow()->menuObject();
AppElements_Command* aCommand = aMenuBar->feature(aFeatureKind.c_str());
- bool anIsAutoPreview = aCommand && aCommand->isAutoPreview();
+ bool anIsAutoPreview = aCommand && aCommand->featureMessage()->isAutoPreview();
#endif
if (!anIsAutoPreview) {
myPropertyPanel->findButton(PROP_PANEL_PREVIEW)->setVisible(true);
if(aHotKey != aFeatureInfo.shortcut) {
aFeatureInfo.shortcut = aHotKey;
}
- // Create feature...
- AppElements_Command* aCommand = aGroup->addFeature(aFeatureInfo,
- aDocKind,
- aNestedFeatures,
- theMessage->isAutoPreview());
+ AppElements_Command* aCommand = aGroup->addFeature(theMessage);
// Enrich created button with accept/abort buttons if necessary
AppElements_Button* aButton = aCommand->button();
if (aButton->isColumnButton()) {