33 #define COL_PREDICATE 1
68 const std::string * pMiriamAnnotation = NULL;
70 if ((pEntity = dynamic_cast< CModelEntity * >(pObject)) != NULL)
72 else if ((pEvent = dynamic_cast< CEvent * >(pObject)) != NULL)
74 else if ((pReaction = dynamic_cast< CReaction * >(pObject)) != NULL)
76 else if ((pFunction = dynamic_cast< CFunction * >(pObject)) != NULL)
79 if (pMiriamAnnotation && *pMiriamAnnotation !=
"")
89 QMessageBox::Ok, QMessageBox::Ok);
102 for (; it != end; ++it)
106 if (pSubjectItem == NULL)
109 insert(it->pSubject, pSubjectItem);
112 const CRDFSubject & Subject = it->pSubject->getSubject();
128 if (it->Predicate.getURI() ==
"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject")
131 insert(it->pObject, pObjectItem);
134 pObjectItem =
find(it->pObject);
136 if (pObjectItem == NULL)
139 insert(it->pObject, pObjectItem);
143 QTreeWidgetItem * pParent = pObjectItem->parent();
147 mpTreeWidget->invisibleRootItem()->removeChild(pObjectItem);
148 pSubjectItem->addChild(pObjectItem);
152 pParent->removeChild(pObjectItem);
153 pSubjectItem->addChild(pObjectItem);
160 mpTreeWidget->setFocus();
169 mpTreeWidget->clear();
174 std::map< const CRDFNode *, CQRDFTreeViewItem * >::iterator it =
mNode2Item.find(pNode);
CRDFNode * createAboutNode(const std::string &key)
Header file of class CModelEntity and CModelValue.
const std::string & getResource() const
CCopasiObject * get(const std::string &key)
const std::string & getBlankNodeID() const
static std::string getAllMessageText(const bool &chronological=true)
virtual bool enterProtected()
const std::string & getMiriamAnnotation() const
std::map< const CRDFNode *, CQRDFTreeViewItem * > mNode2Item
CQRDFTreeView(QWidget *parent=0, const char *name=0)
void insert(const CRDFNode *pNode, CQRDFTreeViewItem *pItem)
static StandardButton warning(QWidget *parent, const QString &title, const QString &text, StandardButtons buttons=Ok, StandardButton defaultButton=NoButton)
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
const std::set< CRDFTriplet > & getTriplets() const
CQRDFTreeViewItem * find(const CRDFNode *pNode)
static CKeyFactory * getKeyFactory()
void setTriplet(const CRDFTriplet &triplet)
The class for handling a chemical kinetic function.
Header file of class CEvent.
static CRDFGraph * graphFromXml(const std::string &xml)
const eSubjectType & getType() const