- improved part downloader: now asks for the path instead of just directing the user to settings. auto-fix download now configurable and opt-in

- interface fixes and changes: edit modes now use plain letter keybinds like gimp, fixed some edit modes missing from the menu, magic wand now follows the selection mode (in order to group selective/drawing modes together like that), etc

- fixed endless loop in prepareVBO due to badly incremented iterator

- commit work done on bfc support experimental

- fixed: missing WIN32 keyword in cmakelists caused the command prompt to show up when ldforge was executed

- fixed: due to a shared pointer called via reference called dismiss() in LDDocument::closeInitialFile, this could cause LDDocuments to delete themselves in setImplicit(true) as no shared pointers were left inside closeInitialFile to keep the refcount up.

- fixed compilation on windows

- a more elegant fix to the problem addressed in the previous commit

- fixed documentless objects being selected on document close

- if an external program fails to run properly, an stdout&stderr log is now printed

- changed the unorthodox color selection grid into a push button grid

- fixed infinite recursion when loading logoed studs

- renamed line loop to line path, updated changelog

- finished line loop mode

- added line loop mode (doesn't actually create anything yet)

- circle mode now locks the angle offset on final confirmation stage

- refactor

- display a label next to the spinbox showing the fraction

- axed an unused variable

- circle tool is now able to rotate the partial circular primitives spawned

- ring finder now also tries scaling by 10 (3.4, 6.4 -> 34, 64), fixed floating point math argghhhhhhhh

- now tries to download missing files off ldraw.org

- now able to spawn partial circular primitives

- circle mode can now do hi-res

- ldforge can now open files from command-line input

- got rid of an annoying debug message

- get rid of NUM_PRIMES

- major identifier renaming

- more refactor, updated .hgignore

- refactor

- use less verbose commit time/version string in the window title

- fixed crash-on-exit (simply by not running full destruction processing during program termination)

- and fixed compilation on linux systems too

- fixed compilation on windows systems

- fixed: changing the document of a subfile wasn't recorded into history properly

- whoah looks like I forgot to save in designer...

- down with all these unnecessary semicolons!

- refactored up the configuration dialog. Instead of setting all configuration values one-by-one, dynamically fill in the values and save them into config based on widget names and data

- changed configuration entry name from minuscule camelCase to majuscule CamelCase. reasoning for this being that these variables are globals.

- fixed: direct color support did not work properly with full-black #000000

- refactoring

- refactor

- use the untransformed subfile when testing whether a subfile is flat, otherwise it won't be considered flat if the subfile is rotated. or worse...

- added a code generator to produce a configuration.inc which replaces the old, DIABOLIC configuration indexing mechanism

- changed copyright lines to use my legal name instead of my nickname

- moved LDMatrixObject to be an abstract class deriving from LDObject. LDSubfile only inherits from LDMatrixObject.

- moved ringFinder into root source directory, clearing the src/misc/ directory

- split the rectangle ability out of the draw mode into its own edit mode

- changed `&&` and `||` operators to their named variants `and` and `or`

- part downloader: update the input widget with the corrected part name when guesswork is done

- initialize History as not ignoring or history will not work at all with new files

- altered the non-release version string format

- fixed incorrect conversions of weak pointers to strong ones

- reimplemented vertex tracking using a method similar to what the GL compiler uses

- now prints the filesize upon successful save

- magic wand: when flood-selecting surfaces, also pick any matching conditional lines

- fixed: ring finder's solutions' scale values would drop to 0.0 if it would not choose to upscale radii

- okay that was dumb

- updated filenames

- now with license headers

- and now it works fine too

- now compiles

- merged with main

- more work on edit modes

- more work on edit modes

- saving work done on edit mode revamp

- updated qrc

- draw the free camera icon when in magic wand mode

- changelog entry for magic wand

- update the object list when the magic wand empties the selection when clicking on background

- added the magic wand tool

- optimized simplify()

- refactor

- added ability to filter out surfaces/edgelines/condlines from the viewport

- refactored stuff

- refactor

- ringfinder: attempt to upscale fractional radii to integral ones. this improves results

- refactored up the ringfinder, apply -DDEBUG with RelWithDebInfo

- imported the .gitignore from the old git repository as .hgignore and adapted it slightly

README.md edited online with Bitbucket

- adapted the code to use hg-based updaterevision

- transitioned from git to hg

- moved most of LDColorData API into LDColor

- refactor. got rid of the LDSharedVertex nonsense, fixed up split lines action

- added split lines action, doesn't yet work very well

- allow 5 decimals for grid precision

- refactor glRenderer.h

- made transparent direct colors a compile-time opt-in since it appears to be non-standard

- got rid of the old numeric() function

- minor edit

- added close buttons to tabs

- removed obsolete stuff from colors.cc header

- disable the 'transparent' checkbox when there is no direct color selected

- changed all color usage to use LDColor classes instead of color indices. Added support for direct colors.

- source reformat

- added various hi-res counterpart primitive categories

- updated the fast-draw studs category to use the 8\ subdirectory, all existing fast-draw primitives have been moved-to so those now go to Other.

- sort primitive categories alphabetically

- added primitives toolbox

- String -> QString

- added an action for opening the subfiles pointed to by selected references as editable documents

- made select by color/type no longer require uniform selection

- LDObject::Type moved back to global namespace

- removed code rendered unnecessary

- made LDDocument use shared pointers, this eliminates a lot of document-related crashes

- subfile inverting now detects flatness and acts accordingly instead of naively applying invertnext to everything

- simplified parse error handling

- when saving, prepare the data first into a buffer and then write to disk, minimizing the time needed to perform the I/O operation.

- made coordinate rounding precision configurable

- further edits to crashcatcher

- crashcatcher: don't use the bomb box at all, instead just write the crashlog and then abort for good

- reformatted the changelog. 0.3-specific changes reformatted to use Zandronum-like version history, this is much easier to work with

- selecting an invertnext'd object now also selects the invertnext

- don't crash when inverting conditional lines

- removed the build time in favor of commit time which I think is much more important

- bfc red/green view and random colors are now mutually exclusive, enabling one disables the other.

- make pick scenes always use particularly thick lines so that the line picking behavior is relayed to the mouse-over highlight

- use a faster ID choosing setup, this should work so long as nobody goes to create 17 million objects

- hopefully stabilized the entire shared pointers deal now

- improved shared pointer behavior, still not there yet

- initial overhaul with smart pointers

- slight refactor in ldobject methods

- renamed some renderer members

- crashcatcher: hide the main window before doing anything and also write the crashlog into a file

- when an object is deleted, if it's the renderer's object-under-cursor the field needs to be cleared or ldforge crashes

- grid-snap the drawn circle radius, not the point used for the distance calculation

- added a macro for adding operator++ and operator-- to enums, less cast hell this way

- significantly sped up selecting all objects, it is now an actually fast operation

- made the mouse-hover object highlight togglable from configuration

- added a selection hover effect to the renderer. selecting objects just became a lot more convenient...

- cut unnecessary code from MainWindow::updateSelection. speeds it up a bit, especially when unselecting but it's not fast enough to my tastes yet

- overhauled configuration setup a bit: configuration entries renamed and are now in a cfg:: namespace

- changed the config dialog's grid ui from being dynamically generated into a static one in the designer interface

- use a function for utf16 type conversion instead of a macro

- grids now have a single coordinate snap value instead of individual X, Y and Z values

- buh

- optimized picking, black is background now in pick scenes

- don't let random colors be too dark (or fully white either for dark backgrounds which use white lines)

- more icons

- fixed: the random colors action wasn't being checked on startup if it was enabled in config, causing it to go out of sync

- some minor cleanup

- simplified the code handling bfc statements a bit

- don't simplify (aka remove extra whitespace from) comment texts

- added build time to window title properly

- removed rest of the uses of <anonymous>

- added changelog entries

- vertex snapping is now smarter, does a depth compare to favor vertices closer to camera and does a short-range 2d check + out-of-range 2d check

- removed some relics from the old immediate mode renderer

- apply #pragma once to glShared.h

- type-aliased QString to String

- resetAngles still needs to request a zoom to fit or the ctrl-0 action doesn't zoom to fit

- more elegant version of ded0a9b, do not zoom to fit in setDocument, instead zoom to fit before rendering

- use #pragma once for the gl compiler header

- when setting the current document, the GL compiler must be told that a merge is necessary *before* setting the renderer's document as setDocument will call zoomToFit which renders the scene. this rendering must trigger a merge or ldforge crashes if a new document is created when a document is already open.

- <anonymous> -> untitled

- reimplemented the Vertex class as a derivative of QVector3D

- more icons

- more icons

- more icons

- started work on new icon set

Merge ../ldforge into gl

- added an icon for random colors

- refactored the gl compiler a tad, made selection blend work with BFC/random colors

- added ability to draw with random colors

- fixed: rotating a subfile would make known verts go out of sync

- use less saturated colors for the axes

- conditional lines are now rendered with stippled lines again

- now works with selection subfiling

- removed more debug stuff

- sped up known vertex information gathering by an order of magnitude

- cleanup

- reimplemented vertex snapping

- removed the debug code

- fixed: use @surfacenum instead of @surfacevbo to GLCompiler::vboSize... this was causing these damn artifacts whose root cause I've been hunting for MONTHS

Merge ../ldforge into gl

- more debug stuff....

Merge ../ldforge into gl

Merge ../ldforge into gl

Merge ../ldforge into gl

- added safety check to the countof macro

- more debugging...

Merge ../ldforge into gl

Merge ../ldforge into gl

Merge ../ldforge into gl

- fixed: an overlay that failed to load no longer attempts to reload it over and over again

- renamed some enumerators, added license header to glcompiler.cc

- subfile coloring now works again

- renamed several GLCompiler members and methods

- only sort and strip duplicates from the objects-staged-to-compile list when actually compiling staged objects, this eliminates needless calls which slowed file loading down a ton.

- fixed zoom value not being initialized properly + some other minor things

- refactor

- hooked object compilation to low-level functions so as to remove the compileObject() crap from edit actions

- objects need to be compiled when added to the document

- ported over the selected color blend from master

- the GL compiler now supports multiple documents

- LDDocument must be initialized with m_needsGLReInit as true or it will not be compiled properly...

- fixed build errors

Merge ../ldforge into gl

Merge ../ldforge into gl

- minor stuff

Merge ../ldforge into gl

- axes are now drawn properly again

Merge ../ldforge into gl

Merge ../ldforge into gl

- greatly improved the GL compiler, now deals colors and object removal properly

Merge ../ldforge into gl

Merge ../ldforge into gl

- work on improved rendering performance

Merge ../ldforge into gl

- now actually renders stuff correctly

- renamed some member variables for clarity

- removed some unneeded code

- converted to VBO

Merge ../ldforge into gl

- refactoring

- rename GLCompiler::Vertex to GLCompiler::VAO to avoid name conflicts

- renamed VertexCompiler to GLCompiler

- reworked the vertex compiler, objects are now colorized properly

- Merge ../ldforge into gl

- Merge ../ldforge into gl

- now compiles again

- Merge commit '5c835eb' into HEAD

now compiles again

Merge branch 'master' into gl

Merge branch 'master' into gl

- moved the uncolorize action to the color toolbar, renamed to uncolor

- use the keyword 'not' in place of the exclamation mark for operator!, this is clearer. also converted uses of '== false' to this.

- renamed some cmake identifiers

- now compiles with clang

- doubled buffer sizes in updaterevision to prevent GIT_HASH from being truncated

- some tweaks to version.cc

- generate gitinfo.h in the build directory, not source directory. made ldforge depend on revision_check properly

- use index-based iterating in LDDocument::closeUnused because deleting documents while iterating over g_loadedFiles causes the iterator to become invalidated

- renamed files to camelCase

- added a long int overload to StringFormatArg

- fixed various compilation issues

- doxygen'd DocumentPointer.h

- doxygenified Version.h

- changed doxygen entity style from @argh to \argh

- whoah whoops

- doxygenified Types.h

- made MessageLog.h and RingFinder.h suitable for doxygen

- added doxygen support for MainWindow.h

- added license header to format.h

- replaced the fmt/log/dlog/fprint macros in favor of template functions. renamed to format, print, dprint and fprint respectively.

- forgot macros.h out of the previous commit

- migrated the codebase to use a simpler PROPERTY macro, arrrrrrrrrrrrrrrrrrrrrgh

- changed header guards into #pragma once

- renamed LDObject::deleteSelf to LDObject::destroy

- unified separator styles

- renamed several LDObject methods

- removed debug stuff

- replaced the left-hand document list with a tab bar

- derp

- separated version stuff to new files to allow version changes be compiled near-instantly

- fixed compilation

- migrated to CMake again

- reorganized the toolbar a little bit

- updated the PROPERTY macro

- refactored filenames

- bleh, don't need IN_IDE_PARSER there..

- added dvalof debug macro

- some corrections to zoomtofit

- removed some pointless typedefs

- changed the default color toolbar

- forgot the invokation deferer files

- refactoring

- added .cfg files to .gitignore

- use the correct text color to draw coordinates on the viewport

- GL-variables that should be document-specific are now properly document-specific (i.e. pan and zoom won't be shared across documents anymore)

- make the remaining virtual methods of LDObject pure virtual

- added a type alias LDObjectList

- whoopsie, forgot to re-add the cache flag to that inline flagset there

- make subfile references subject to position transformation again

- improved rotation point finding behavior. not sure what did I even do to improve it...

- use QCoreApplication::applicationDirPath instead of a custom hack to get the application path

- changelog: the file loading fix was backported to 0.2.1

- configuration is now always situated and read from the application working directory

- did stuff to types, fixed primitive listing

- removed the File class in favor of QFile

- if loading another file to replace an explicitly loaded file, this file won't get closed automatically and thus needs to be manually closed. We also need to check that it's safe to close before doing this. Also fixed a rather argh problem with ::save not using the proper path...

- corrected relationships between documents: opening a main file with the same name as another document is to overload it and editing the document is to invalidate its cache so that it gets rendered properly in other documents possibly referencing it.

- removed the 'str' typedef, use QString directly

- use --long in the git describe command for the GIT_DESCRIBE macro definition

- some cleanup

- reformatting

- added Ball Joint-8 stuff to primitive categories

- updated copyright year in the about prompt

- updated copyright year. Best wishes for 2014!

- when configuration options are default, they need to be removed from the settings

- whoops, forgot an #include in gldraw.cc

- minor edit

- split the ring finder to separate files

- fixed: subfile rotation had matrix multiplication done with operands the wrong way around, causing morphing

- removed some unnecessary full refreshes

- added a configurable select color

- "black edges" now actually mean white edges when the background is dark

- removed debug code from ldobject::select

- refactored config code

- use a local file with QSettings at all times. Registry is such a pain..

- now recognizes the recently added 8\ subdirectory

- removed the horrible actions.h hack in favor of usage of Qt's meta object system

- updated .gitignore

- forgot this too!

- forgot these new files out...

- documents are now refcounted. This should seriously stabilize (and speed up!) the pruning of unused files

- OH MY FORKING GOD

- fixed configuration dialog not accepting values past 99.99 for grid angles

corrected angle display

further improved file behavior

- added visible line angles when drawing

removed some debug code

- bumped max amount of recent files from 5 to 10

- added selection auto-subfiling(!)

- line lengths are now displayed when drawing

- non-release builds now display git revision info if available. This turned out to be much simpler to implement than I expected..

- code parser no longer complains about scientific notation

- cleanup closing of unused files is now defered to the event loop using a new InvokationDeferer class. This prevents ldforge from closing unused files when it *really* shouldn't be doing that, instead waiting until everything is done before it begins the cleanup process.

- fixed minor goofup with for_axis

- ext programs requiring wine now properly display an error prompt if wine is missing

- convert overlay images explicitly to ARGB32 format, otherwise they might not be able to be made translucent properly

- added file headers to crashcatcher.cc and .h

- removed the version monikers, new version is now just 0.3 instead of 0.3-alpha. BUILD_ID can now only be INTERNAL and RELEASE. It was way too complicated to my tastes.

- history now works on object list moving as well

- implicit documents are now auto-closed when rendered unused, in general, a LOT better document closing behavior

- made history ignore file loading and undo/redo calls instead of having hard-coded ignore on the actions, this will probably save a lot of hair

- fixed: LDObject methods still used operator delete directly, causing *a very frustrating* crash to debug

History should now behave properly..

- corrected history behavior. LDObject::clone() is now off-limits, createCopy() must be used instead. LDObject::deleteSelf() must be used to delete LDObjects (destructor is protected now)

- fixed: cones with 3 digit numbers wouldn't go to the "Cones (48)" category properly

- LDEmpty now overrides getTypeName properly

- changed source file extension from .cpp to .cc

- LDObject::move is no longer virtual

- fixed: LDMatrixObject's position would be an invalid pointer if it was created with the default constructor, causing a crash

- Reworked primitive listing. No longer uses multi-threading.

- LDFile renamed to LDDocument, file.h -> document.h

net_autoclose is now true by default

renamed LDCndLine to LDCondLine

more stuff

Cleaned up download.cpp/.h, used PROPERTY. Added LIST_OPS to PROPERTY

minor cleanup

Renamed "quick colors" in the configuration to "color toolbar"

- re-added the external programs to the toolbar

updated README.md with a mention of the ring drawing

minor cleanup

- added build_shared to .gitignore

- Improved coordinate rounding, replaced the hack with a proper implementation, now rounds properly and works on subfiles as well

- Renamed common.h to main.h, split the PROPERTY macro and supporting macros to property.h

- Changed the callback parm of PROPERTY to a stock/custom write method argument.

- upgraded the PROPERTY macro, resulting in a major code refactor

- ensured header files' guards start with LDFORGE_

removed old and unused src.pro file

renamed the version to 0.3-alpha in the changelog

changelog entry

Made rotation/pan/zoom values camera-dependant (so now there's 7 sets of them instead of 1)

updated .gitignore

removed the legacy dir

forgot the new icons

- Added new actions "Hide" and "Reveal" which allow direct setting of objects' visibility setting instead of toggling it.

added a configuration option for line anti-aliasing

fixed: deleting objects would trigger a crash

more minor changes

style corrections

i'm dumb

also removed the if() case mentioned in the prior commit from addObjectDialog.cpp. :P

enclosed the assert replacement in braces. In release mode, the assert is replaced with nothing and there's a little bit of code in addObjectDialog which uses it as a statement in an one-line if(). With the assert disappearing in release builds this triggered a GCC warning, as the if would be left without a body.

- migrated selection from ForgeWindow to individual LDFiles. Should've done this long ago.

changeProperty(): don't change the property if the value would not change, this should save some procecssing..

initialize GLRenderer::m_hoverpos to (0, 0, 0)

cosmetic fixes

fixed: the file loader would skip every 300th line. And I thought I was going nuts when my quads kept disappearing...

Made the config dialog use a list widget for navigation over a tab widget.

- added LDSharedVertex class for holding copy-on-write vertices. Will need this for future features..

now displays build type in the window title (unless a release build of a release), fixed some macro shenanigans

made messagelog handle messages with newlines

Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().

fixed: LDForge would crash if message log got full - the older lines would be removed with ::erase, which now expects an iterator because of the recent transition to QList. Why does QList::iterator allow 0 to be passed?

fixed a small memory leak

Fixed: LDForge would sometimes crash over unitialized data in the GL renderer. This crash sure eluded me for a while. Turned out zoomToFit(), which uses m_width and m_height is called before resizeGL() which initializes these variables. This data is used in an operator new[] call.

- added debug/release build configuration. Debug builds are really useful things!

removed some custom functions in favor of Qt implementations

reworked the ring finder algorithm greatly, tries harder to find the optimal solution

Added last-resort ring draw with quads

Ring draw: maintain separate polygons for the ring circles and draw them separately of the ring fill to prevent artifact lines from being drawn

Removed the List -> QList alias, use QList directly

removed the List class in favor of QList

removed debug prints from the ring finder

ring finder integrated! it lives!

Finally got the ringfinder working! Working on integrating it to ring drawing...

Ring drawing: previewing complete

further cleansing - removed most uses of unsigned ints, removed list reversers

a bit more cleanup

nuked "container_cast"

When drawing circles, draw the radius in the middle

further cleanup

last code reformatting i swear

Added a new editing mode for drawing circles.

it's LDForge's 1st birthday!

Stuff

Further work on VAO rendering

VAO rendering works now! woo!

Merge branch 'master' into gl, reworked stuff

For some reason, of all changesets, 4fb5763 made compiling subfiles extremely slow. WTF? Reverted the change to restore compilation speed.

down with cmake!

made LDFile interfacing a bit clearer

removed unused LabeledWidget

redirect the user to configuration if the download path is not given

err

rework quick color code a tad

rename RadioBox to RadioGroup

bit of a clarification

fixed: couldn't open larger files because of a type mismatch in moc method calling, leading into runtime problems

fixed: front and back camera wouldn't render anything

Apparently CMake requires the moc files to be compiled separately.. qt4_wrap_cpp does nothing if I don't include the results in the executable... why?

add .kdev_include_paths to gitignore

Changed build system from qmake to CMake.

merged aboutDialog.cpp to dialogs.cpp

stuff

Fixed crash with closing: since logoed studs are now loaded, the first file in g_loadedFiles is not explicit anymore. the closing code assumed this

more changes. Spawn the config prompt on first start, on the profile tab. gl_colorbfc and gl_blackedges now default to false.

woo smallification!

Added ListConfig type, using it in recent files now

minor cleanup

removed broken config type check

added profile data auto-filling

ensure that all Configs are polymorphic

bit more cleanup

- added "Go to line" action, renamed the config classes to proper camelcase

Cut the Object-suffix from LDObject types, it doesn't help things at all

Use QFlags for the inlining flags, type-safety++

Rewrote stud logo support, restructuring inlining stuff in the process. Logoed studs must only be used for rendering scenes, otherwise they will for instance get inlined in and that's not desired, or the vertex snapper will catch onto the logo's coordinates.

added support for logoed studs

more cleanup

Code formatting: use same separators everywhere, remove extra spaces from license headers, simplified message manager api a bit

ask the user for isecalc's path if adding edges to intersector output and no path is defined

added missing UI file

ask the user for ext prog paths instead of telling to go to configuration if no path is defined

minor change

made config dialog default to the correct tab again

made downloaded files be stored into recent files

Use a busy cursor while compiling all

Use brighter text color with dark backgrounds for the message manager

::getIndex() should never return -1 if ::file() is not null so no check needed there..

fixed: LDObject's various methods still assumed that the current file wouldn't change

Added action "add history line" for adding new history entries

rework

Picking now works with the VAO setup

BIG COMMIT -- Moving from display lists to VAOs.

(0) -448 +448 tip

mercurial