25 #include <QHeaderView> 
   29 #include <ArmarXCore/interface/observers/TermImplBase.h> 
   30 #include <ArmarXCore/interface/observers/VariantBase.h> 
   34 #include "../VariantWidget.h" 
   39         const ConditionCheckBasePtr check,
 
   40         std::string checkName,
 
   41         bool showSupportedTypes,
 
   48         this->showSupportedTypes = showSupportedTypes;
 
   49         this->showParameters = showParameters;
 
   50         this->showResult = showResult;
 
   51         this->checkName = checkName;
 
   64         if (showSupportedTypes)
 
   68             QTableWidget* typesTable = 
new QTableWidget(
this);
 
   69             typesTable->horizontalHeader()->setStretchLastSection(
true);
 
   70             typesTable->setColumnCount(check->numberParameters + 1);
 
   72             headers.append(
"Datafield");
 
   74             for (
int i = 0; i < check->numberParameters; i++)
 
   76                 headers.append(QString(
"Param %1").arg(i + 1));
 
   79             typesTable->setHorizontalHeaderLabels(headers);
 
   80             typesTable->verticalHeader()->setVisible(
false);
 
   81             typesTable->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
 
   82             typesTable->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
 
   86             SupportedTypeList::const_iterator iter = check->supportedTypes.begin();
 
   88             while (iter != check->supportedTypes.end())
 
   90                 typesTable->setRowCount(r + 1);
 
   92                 tmp.setType(iter->dataFieldType);
 
   93                 std::string typeStr = tmp.getTypeName();
 
   95                 if (iter->dataFieldType == 0)
 
  100                 typesTable->setItem(r, 0, 
new QTableWidgetItem(typeStr.c_str()));
 
  102                 ParameterTypeList::const_iterator iterList = iter->parameterTypes.begin();
 
  105                 while (iterList != iter->parameterTypes.end())
 
  108                     tmp2.setType(*iterList);
 
  109                     std::string typeStr = tmp2.getTypeName();
 
  113                         typeStr = 
"Any type";
 
  116                     typesTable->setItem(r, 
c, 
new QTableWidgetItem(typeStr.c_str()));
 
  133                 DataFieldIdentifierPtr::dynamicCast(check->configuration.dataFieldIdentifier);
 
  134             addProperty(
"Datafield identifier", dataField->getIdentifierStr().c_str());
 
  136             ParameterList::iterator iter = check->configuration.checkParameters.begin();
 
  139             while (iter != check->configuration.checkParameters.end())
 
  141                 VariantPtr parameter = VariantPtr::dynamicCast(*iter);
 
  143                 addProperty(QString(
"Param %1 type").arg(p), parameter->getTypeName().c_str());
 
  144                 addProperty(QString(
"Param %1 value").arg(p), 
new VariantWidget(parameter));
 
  156             if (check->fulFilled)