- QString aLabel = atts.value("label-id");
- QString anIcon = atts.value("icon-id");
- bool isAux = atts.value("auxiliary") == "true";
-
+ QString aLabel = atts.value("label-id");
+ QString anIcon = atts.value("icon-id");
+ bool isAuxOrNeedHyp = ( qName == "hypothesis" ?
+ atts.value("auxiliary") == "true" :
+ atts.value("need-hyp" ) == "true" );
+ int isNeedGeom = 1;
+ bool isSupportSubmeshes = false;
+ QString aNeedGeom = atts.value("need-geom");
+ if ( !aNeedGeom.isEmpty() )
+ isNeedGeom = (aNeedGeom == "true") ? 1 : (aNeedGeom == "never") ? -1 : 0;
+ QString suppSub = atts.value("support-submeshes");
+ if ( !suppSub.isEmpty() )
+ isSupportSubmeshes = (suppSub == "true");
+ QString context = atts.value("context");
+ if ( context.isEmpty() )
+ context = "ANY";
+ else
+ context = context.toUpper();
+
+ bool isOk;
+ QString groupIDStr = atts.value("group-id");
+ int groupID = groupIDStr.toUInt( &isOk );
+ if ( !isOk ) groupID = -1;
+ QString priorityStr = atts.value("priority");
+ int priority = priorityStr.toUInt( &isOk );
+ if ( !isOk ) priority = -1;
+