Output field keyword alias names

This commit is contained in:
Magne Sjaastad
2020-04-17 13:55:49 +02:00
parent 2d5d4e4f52
commit 3c05fff768
3 changed files with 19 additions and 2 deletions

View File

@@ -24,6 +24,7 @@
#include "cafClassTypeName.h"
#include "cafPdmDefaultObjectFactory.h"
#include "cafPdmXmlFieldHandle.h"
#include <QAction>
#include <QApplication>
@@ -122,7 +123,14 @@ void RicExportObjectAndFieldKeywordsFeature::exportObjectAndFieldKeywords( const
for ( auto f : fields )
{
if ( !f->xmlCapability()->isIOReadable() ) continue;
stream << " " << f->keyword() << "\n";
for ( auto alias : f->keywordAliases() )
{
stream << " (A)" << alias << "\n";
}
}
stream << "\n";