Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/QtMoleculeList.hpp

    r0eb7bf3 r3eb91c  
    1414#endif
    1515
     16#include <QtGui/QTreeWidget>
    1617
    17 #include <QtGui/QTreeWidget>
     18#include <map>
     19#include <string>
     20
    1821#include "CodePatterns/Observer/Observer.hpp"
     22
     23#include "types.hpp"
    1924
    2025class molecule;
     
    3136protected:
    3237  virtual void update(Observable *publisher);
     38  virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
    3339  virtual void subjectKilled(Observable *publisher);
    3440  virtual void paintEvent(QPaintEvent * event);
     
    3642
    3743  static const int COLUMNCOUNT;
    38   enum {NAME,ATOMCOUNT,FORMULA,OCCURRENCE,COLUMNTYPES_MAX} COLUMNTYPES;
     44  enum {NAME,VISIBILITY,ATOMCOUNT,FORMULA,OCCURRENCE,COLUMNTYPES_MAX} COLUMNTYPES;
    3945  static const char *COLUMNNAMES[];
    4046
    4147private slots:
    4248  void moleculeChanged();
     49  void visibilityChanged(QTreeWidgetItem*, int);
    4350
    4451  void rowsSelected(const QItemSelection & selected, const QItemSelection & deselected);
     
    4754  void moleculeSelected(molecule*);
    4855  void moleculeUnSelected(molecule*);
     56  void moleculesVisibilityChanged(const moleculeId_t, bool);
    4957
    5058private:
     
    5260  bool clearing;
    5361  bool selecting;
     62  bool ChangingChildrensVisibility;
     63
     64  typedef std::map<std::string, unsigned int> FormulaVisibilityCountMap_t;
     65  FormulaVisibilityCountMap_t FormulaVisibilityCountMap;
     66
     67  typedef std::map<std::string, QTreeWidgetItem*> FormulaTreeItemMap_t;
     68  //!> map of (unique) formulas in the world
     69  FormulaTreeItemMap_t formula;
    5470};
    5571
Note: See TracChangeset for help on using the changeset viewer.