Sun, 29 Jan 2017 15:05:14 +0200
Major overhaul of object→document relationship: added the Model class which models the object buffer. Each object is to be included in a model (an invariant that currently does not hold). A document is a subclass of a model. The LDObject is also now agnostic about selection, and the selection is now a set. A lot of things are probably broken now but it's a major step forward.
The LDObject::destroy method is also now gone. The model decides when objects are destroyed and calls the destructor directly. The end result removes a lot of cruft and adds structure to LDObject relations.
Notes:
- Inlining does not currently work (nothing simply gets inlined in)
- More work is required to ensure that each object actually goes into a model
You need Qt4 or Qt5 with OpenGL and networking support. On Debian and derivatives, e.g. Ubuntu, you'll need: sudo apt-get install build-essential libqt4-dev libqt4-opengl-dev libqt4-network You may also replace qt4 with qt5 in the above for Qt5. To compile: - enter the root directory - enter 'qmake' - enter 'make release' or 'make debug'. A release build is made by default. Troubleshooting: - src/gldraw.h:22:21: fatal error: QGLWidget: No such file or directory You are missing the OpenGL development package, on Debian and derivatives, this is libqt4-opengl-dev or libqt5-opengl-dev.