COPASI API  4.16.103
Public Member Functions | Protected Attributes | List of all members
CQSideCompoundWizardPage::CQListWidgetModelItem Class Reference

#include <CQAutolayoutWizard.h>

Inheritance diagram for CQSideCompoundWizardPage::CQListWidgetModelItem:
Inheritance graph
[legend]
Collaboration diagram for CQSideCompoundWizardPage::CQListWidgetModelItem:
Collaboration graph
[legend]

Public Member Functions

 CQListWidgetModelItem (const QString &text, const std::string &key)
 
const std::string & getKey () const
 
CCopasiObjectgetObject () const
 

Protected Attributes

std::string mKey
 

Detailed Description

Definition at line 156 of file CQAutolayoutWizard.h.

Constructor & Destructor Documentation

CQSideCompoundWizardPage::CQListWidgetModelItem::CQListWidgetModelItem ( const QString &  text,
const std::string &  key 
)

Definition at line 591 of file CQAutolayoutWizard.cpp.

591  :
592  QListWidgetItem(text)
593  , mKey(key)
594 {
595 }

Member Function Documentation

const std::string & CQSideCompoundWizardPage::CQListWidgetModelItem::getKey ( ) const

Definition at line 598 of file CQAutolayoutWizard.cpp.

599 {
600  return this->mKey;
601 }
CCopasiObject * CQSideCompoundWizardPage::CQListWidgetModelItem::getObject ( ) const

Definition at line 603 of file CQAutolayoutWizard.cpp.

References CKeyFactory::get(), and CCopasiRootContainer::getKeyFactory().

Referenced by CQSideCompoundWizardPage::getSideCompounds(), CQSideCompoundWizardPage::slotAddButtonClicked(), and CQSideCompoundWizardPage::slotRemoveButtonClicked().

604 {
605  CCopasiObject* pObject = NULL;
606 
607  if (!this->mKey.empty())
608  {
609  pObject = CCopasiRootContainer::getKeyFactory()->get(this->mKey);
610  }
611 
612  return pObject;
613 }
CCopasiObject * get(const std::string &key)
static CKeyFactory * getKeyFactory()

Member Data Documentation

std::string CQSideCompoundWizardPage::CQListWidgetModelItem::mKey
protected

Definition at line 169 of file CQAutolayoutWizard.h.


The documentation for this class was generated from the following files: