src/document.cpp

changeset 178
a23024fc98e0
parent 169
6da096930534
child 185
a38a0eb007b0
equal deleted inserted replaced
177:f69d53c053df 178:a23024fc98e0
31 Model* model, 31 Model* model,
32 DocumentManager* documents, 32 DocumentManager* documents,
33 const ldraw::ColorTable& colorTable, 33 const ldraw::ColorTable& colorTable,
34 QWidget* parent) : 34 QWidget* parent) :
35 QWidget{parent}, 35 QWidget{parent},
36 colorTable{colorTable},
36 model{model}, 37 model{model},
37 documents{documents}, 38 documents{documents},
38 colorTable{colorTable},
39 vertexMap{model}, 39 vertexMap{model},
40 renderer{new Canvas{model, documents, colorTable, this}}, 40 renderer{new Canvas{model, documents, colorTable, this}},
41 ui{*new Ui::Document}, 41 ui{*new Ui::Document},
42 toolsBar{new QToolBar{this}} 42 toolsBar{new QToolBar{this}}
43 { 43 {
232 void Document::adjustGridToView() 232 void Document::adjustGridToView()
233 { 233 {
234 this->renderer->adjustGridToView(); 234 this->renderer->adjustGridToView();
235 } 235 }
236 236
237 const Model &Document::getModel() 237 const Model &Document::getModel() const
238 { 238 {
239 return *this->model; 239 return *this->model;
240 } 240 }
241 241
242 const QSet<ldraw::id_t> Document::selectedObjects() const 242 const QSet<ldraw::id_t> Document::selectedObjects() const

mercurial