Example #1
0
MSyntax deletedMessage::newSyntax() {
	MSyntax syntax;
	syntax.setObjectType(MSyntax::kSelectionList);
	syntax.setMinObjects(1);
	syntax.useSelectionAsDefault(true);
	return syntax;
}
Example #2
0
MSyntax dagMessageCmd::newSyntax()
{
	MSyntax syntax;

	syntax.useSelectionAsDefault(true);
	syntax.setObjectType(MSyntax::kSelectionList);
	syntax.setMinObjects(0);

	syntax.addFlag(kAllDagFlag, kAllDagFlagLong);
	syntax.addFlag(kParentAddedFlag, kParentAddedFlagLong);
	syntax.addFlag(kParentRemovedFlag, kParentRemovedFlagLong);
	syntax.addFlag(kChildAddedFlag, kChildAddedFlagLong);
	syntax.addFlag(kChildRemovedFlag, kChildRemovedFlagLong);
	syntax.addFlag(kChildReorderedFlag, kChildReorderedFlagLong);
	syntax.addFlag(kHelpFlag, kHelpFlagLong);
	return syntax;
}
Example #3
0
MSyntax QueryF3d::newSyntax()
{
  MSyntax syntax;
  
  syntax.addFlag("-f", "-file", MSyntax::kString);
  syntax.addFlag("-r", "-range", MSyntax::kNoArg);
  syntax.addFlag("-v", "-verbose", MSyntax::kNoArg);
  syntax.addFlag("-pl", "-partitions", MSyntax::kNoArg);
  syntax.addFlag("-p", "-partition", MSyntax::kString);
  syntax.addFlag("-ll", "-layers", MSyntax::kNoArg);
  syntax.addFlag("-l", "-layer", MSyntax::kString);
  syntax.addFlag("-sc", "-scalar", MSyntax::kNoArg);
  syntax.addFlag("-vc", "-vector", MSyntax::kNoArg);
  syntax.addFlag("-res", "-resolution", MSyntax::kNoArg);
  
  syntax.setMinObjects(0);
  syntax.setMaxObjects(0);
  
  return syntax;
}