Made configuration a global singleton. I think I can give in at least that much because it makes solving a lot of problems easier.

Also removed the copy constructor and copy assignment because those only are bad news for a resource managing vector...

and let's put a newline there...

Deleted the copy constructor version of ResourceVector<T>::insert, like with append

Sorted the methods in Model's public section.

Renamed some methods of the Model class to remove the 'emplace' word (however cromulent it is, being from STL...) from them.

Moved LDObject lifetime management from Model to ResourceVector. This is a large refactor that removes some hacks from the Model class.

Added a new type ResourceVector which manages object lifetimes, and used it to remove a bit of memory management.

Polar grid is now togglable.

CMake fixes

Added polar grid snapping code.

Added polar grid rendering (which is disabled for now).

Grid::snap now snaps points.

Simplified Grid::snap.

At long last, the grid is finally now rendered onto the viewport. Woop!

Added support for ideal co-ordinates, which should make writing editing tools a lot easier. For some reason they don't yet work with the back and right cameras.

Removed some unused class stubs and definitions.

No need for braces there...

Cleanup ColorSelector, moved direct color composition to a new LDColor constructor.

Cleanup ColorSelector::colorButtonClicked()

Changed QByteArray to QVector to avoid that ugly reinterpret_cast.

Turned GLRenderer::pixelCapture to GLRenderer::screenCapture() which encapsulates screen capturing properly and returns a ready image.

Hardened the GLRenderer interface, made methods more private.

Cleanup GLRenderer::initializeAxes()

Removed GLRenderer::refresh(), update() does the job just as fine.

GLRenderer::drawVbos no longer needs to be told the GL type

Cleanup AlgorithmToolset::subfileSelection.

Fixed more dialog instances in AlgorithmToolset.

Moved all UI files from ui/ into src/dialogs/.

Removed unused class RadioGroup.

Replaced LDObjectList with QVector<LDObject*>

Removed the Origin and axes global constants.

At long last, the g_win pointer has been removed. Down with global variables!

print() is no longer a global function but is tied to HierarchyElement.

Made the GL renderer recieve information of object deletion via signals.

Moved GetIcon and makeSettings into the MainWindow namespace as static methods.

Removed the Critical and Question functions, replaced with direct QMessageBox uses. Removed unused code from mainwindow.h.

Removed dead code

Some cleanup in mainwindow.cpp, use QSet<QString> for the 'ignore' variable.

Reformat colors.cpp.

Removed unused code from macros.h.

Made fixed cameras matrix-based. This simplifies some math.

Added gnomon.dat to version control. It helps me sort out the cameras as I rework them.

Moved LDQuadrilateral into its own source pair.

Moved LDTriangle into its own source pair.

Renamed ldObject.cpp → linetypes/modelobject.cpp

Renamed glCompiler.cpp → glcompiler.cpp

Renamed ldDocument.cpp → lddocument.cpp

(0) -1000 -300 -100 -48 +48 +100 tip

mercurial