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