src/model.h

changeset 1288
d1e45f90654b
parent 1278
6e1ea24e5a5e
child 1306
be85306198a2
equal deleted inserted replaced
1287:f1da43b7f5c6 1288:d1e45f90654b
101 QVector<LDObject*>::iterator begin(); 101 QVector<LDObject*>::iterator begin();
102 QVector<LDObject*>::iterator end(); 102 QVector<LDObject*>::iterator end();
103 QModelIndex indexOf(LDObject* object) const; 103 QModelIndex indexOf(LDObject* object) const;
104 bool isEmpty() const; 104 bool isEmpty() const;
105 class DocumentManager* documentManager() const; 105 class DocumentManager* documentManager() const;
106 LDObject* insertFromString(int position, QString line);
107 LDObject* addFromString(QString line);
108 LDObject* replaceWithFromString(LDObject* object, QString line);
109 IndexGenerator indices() const; 106 IndexGenerator indices() const;
110 LDObject* lookup(const QModelIndex& index) const; 107 LDObject* lookup(const QModelIndex& index) const;
111 QColor pickingColorForObject(const QModelIndex& objectIndex) const; 108 QColor pickingColorForObject(const QModelIndex& objectIndex) const;
112 QModelIndex objectByPickingColor(const QColor& color) const; 109 QModelIndex objectByPickingColor(const QColor& color) const;
113 110

mercurial