- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtMoleculeList.hpp
r0eb7bf3 r3eb91c 14 14 #endif 15 15 16 #include <QtGui/QTreeWidget> 16 17 17 #include <QtGui/QTreeWidget> 18 #include <map> 19 #include <string> 20 18 21 #include "CodePatterns/Observer/Observer.hpp" 22 23 #include "types.hpp" 19 24 20 25 class molecule; … … 31 36 protected: 32 37 virtual void update(Observable *publisher); 38 virtual void recieveNotification(Observable *publisher, Notification_ptr notification); 33 39 virtual void subjectKilled(Observable *publisher); 34 40 virtual void paintEvent(QPaintEvent * event); … … 36 42 37 43 static const int COLUMNCOUNT; 38 enum {NAME, ATOMCOUNT,FORMULA,OCCURRENCE,COLUMNTYPES_MAX} COLUMNTYPES;44 enum {NAME,VISIBILITY,ATOMCOUNT,FORMULA,OCCURRENCE,COLUMNTYPES_MAX} COLUMNTYPES; 39 45 static const char *COLUMNNAMES[]; 40 46 41 47 private slots: 42 48 void moleculeChanged(); 49 void visibilityChanged(QTreeWidgetItem*, int); 43 50 44 51 void rowsSelected(const QItemSelection & selected, const QItemSelection & deselected); … … 47 54 void moleculeSelected(molecule*); 48 55 void moleculeUnSelected(molecule*); 56 void moleculesVisibilityChanged(const moleculeId_t, bool); 49 57 50 58 private: … … 52 60 bool clearing; 53 61 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; 54 70 }; 55 71
Note:
See TracChangeset
for help on using the changeset viewer.