/* * QtMoleculeItem_occurrence.hpp * * Created on: Jan 18, 2015 * Author: heber */ #ifndef QTMOLECULEITEM_OCCURRENCE_HPP_ #define QTMOLECULEITEM_OCCURRENCE_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "UIElements/Views/Qt4/MoleculeList/QtMoleculeItem.hpp" class QtMoleculeItemFactory; /** This class contains the occurrence of a molecule. * */ class QtMoleculeItem_occurrence : public QtMoleculeItem { //!> only allow factory to instantiate items friend class QtMoleculeItemFactory; QtMoleculeItem_occurrence( QtObservedMolecule::ptr &_ObservedMolecule) { // cannot call pure virtual function in QtMoleculeItem's cstor updateState(_ObservedMolecule); } /** Performs the update of the molecule's occurrence. * * \param _ObservedMolecule object to update state from */ void updateState(const QtObservedMolecule::ptr &_ObservedMolecule) { setText(QString("")); } QtMoleculeItem::COLUMNTYPES getType() const { return QtMoleculeItem::OCCURRENCE; } }; #endif /* QTMOLECULEITEM_OCCURRENCE_HPP_ */