Ignore:
File:
1 edited

Legend:

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

    r02ce36 ra39006  
    1515
    1616
    17 #include <QtGui/QTableWidget>
     17#include <QtGui/QTreeWidget>
    1818#include "CodePatterns/Observer/Observer.hpp"
    1919
     
    2121class MoleculeListClass;
    2222
    23 class QtWorldView : public QTableWidget, public Observer
     23class QtWorldView : public QTreeWidget, public Observer
    2424{
    2525  Q_OBJECT
     
    3232  virtual void update(Observable *publisher);
    3333  virtual void subjectKilled(Observable *publisher);
     34  virtual void paintEvent(QPaintEvent * event);
     35  void refill();
    3436
    3537  static const int COLUMNCOUNT;
    36   enum {NAME,ATOMCOUNT,FORMULA,COLUMNTYPES_MAX} COLUMNTYPES;
     38  enum {NAME,ATOMCOUNT,FORMULA,OCCURRENCE,COLUMNTYPES_MAX} COLUMNTYPES;
    3739  static const char *COLUMNNAMES[];
    3840
    3941private slots:
    40   void moleculeChanged(int row, int column);
     42  void moleculeChanged();
    4143
    42   void cellSelected(int row, int column);
     44  void rowSelected();
    4345
    4446signals:
     
    4951  std::vector<bool> molSelection; //!< needed to determine when a selection changes
    5052  MoleculeListClass *molecules;
     53  bool dirty;
    5154};
    5255
Note: See TracChangeset for help on using the changeset viewer.