- 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.

camera icons now draw real tooltips instead of faking them

fixed crashing with inlining

updates to recent files menu

corrected problems with the version string

Converted configuration code to use QSettings.

Merged PartDownloader into the prompt and renamed the prompt to PartDownloader

now with changelog entry

Moved the alias macro to common.h

finalized downloading

stability to downloading

added config option, refined logic and regexps. This behaves coherently now. :)

More work on downloading

handle errors

now actually downloads parts

added missing files

Begin groundwork on downloading from ldraw.org

Create README.md

Angles need to be reset when changing the current file too

Fixed crash on opening a file

style cleanup - it should be all unified now

chglog

If the vertex snapper finds a vertex closer than 4 pixels, it likely is the vertex being looked for and the algorithm can terminate early, hopefully this will save a few cycles on large parts.

added support for BFC CLIP/NOCLIP

Added an option for listing implicit files

Added an action for creating a new, blank file, improved multi-file stability

No need to test whether it's safe to close all when creating a new part anymore, since it no longer closes anything.

some further little optimization

Don't recompile everything when using quick colors, this speeds things up a little

more cleanup

cleanup

Include the moc files in the source cpp files to reduce compile time

Renamed LDOpenFile to LDFile

- fixed: checking the hi-res option would not allow segment values over 16.

primitive generator: added support for multiple spaces before primitive numbers, add "Hi-Res" to the names of 48/ primitives

Separated LDConfig.ldr-specific stuff to ldconfig.cpp/h

commentary++

cosmetics

Made File::iterator private - it's used only for range-for loops so it should not be used by anything else than File itself.

Renamed vector to List, changed it to wrap around std::deque.

Use repaint() instead of update() when redrawing the scene after a pick so that the new scene is repainted immediately.

Fixed crashing when closing all

stuff

restyle

Apply the proper edge color in the color sector too

restyle colorselectdialog.cpp

Further restructure, removed GUI toolbar icon size slider (always 22x22 now)

fixed: the list view couldn't select multiple items anymore

some rework with closing files, not right there, seems

change camera to top if switching to draw mode in free camera

Finalized multi-file behavior. The future is here! :P

behavior update

Added actions for saving all files, closing and closing all files

Multiple file support works now! woo!

moved ext program action definitions to extprogs.cpp rather than proxying it through gui_editactions.cpp

fixed config dialog crashing

Shortcuts are now properly loaded again

updates on file list

File list is populated now..

Converted ForgeWindow to Designer UI(!)

restructure; removed g_BBox

Moved the bbox class to types

Made the pointer to current file a private member of an anonymous shell class, thus getting accessors

more formatting

Appended 'Object' to the names of all LDObject derivatives so even though the LD prefix isn't reserved for just LDObjects anymore, these classes remain distinct

Reformatting..

Bump version to 0.2.999-intern now that 0.2-alpha is out.

Tag 0.2 alpha

Fixed compilation under windows/qt5

added missing openprogress.ui

make aborting work in the new setup

make file loading be done properly as just a QObject rather than multi-threaded..

handle empty lines better

Use system clipboard rather than an internal one

apply the c++11 'override' keyword to overriding virtual functions

fixed: history is supposed to be closed by default

further work on primitive cond-lines. I think I got it now.

Renamed the color class to LDColor for clarity

primitive generator: add conditional lines to cylinders; improved bad color handling

Added history functionality for swapping

fixed: double-clicking an object and editing it that way would not register to history

when inlining (as an action), reinterpret the inlinees so that there's not any pointer mess-ups

more restyle/refactor

restyle..

Removed the two string arrays containing object types and icon names, moved these as LDObjects' virtual functions

Cleaned up the toolbars, removed clutter by removing most of the not-so-often-used items

removed the history dialog, it doesn't fit in with the new history system

Fixed: color selector prompt would crash if no default was given

dded an action to quickly toggle BFC red/green view.

pngout'd

uh, stuff

BFC icon stuff - old icon is now used for bfc red/green view-to-be

rename: msglog.cpp/h -> messagelog.cpp/h

fixed: stuff that was changed during file open was written to history

astyle history.cpp

Converted flip prompt to Designer UI

Converted Ytruder interface to Designer UI

Further verbosity, #ifdef the test axle pic out of release builds

Completed Edger 2 interface

gitignore *.dat files so I won't commit in my test files accidentally

Update gitignore

Added missing src/src.pro file

Also put all generated UI headers on ignore

remove ldforge.kdev4 and put it on ignore

Converted ldraw path prompt

fixed: overlays coudln't be defined for other cameras than the one used currently

Converted overlay prompt

Added missing what's this in edit raw prompt

Removed more obsolete code

Converted rotation point prompt

Converted about dialog

converted the raw edit prompt

Designerified the replace coordinates action

Converted the config dialog to a designer UI file

Largely reworked the color selector. Still not perfect but is better

applied message log to some actions

optimize the common case

fixed: when a new message line was added, the viewport wasn't updated

remove old test messages

Re-added the message log, now draws into the viewport

Apply tr() for possible future translations

rework aborting.. I'm still not sure I'm doing it right, though.

Show values in file opening prompt

simplify a bit

Added ability to load the overlay meta

Made overlay data be contained in the part files, still wip

UI-ified the new part prompt

changelog entry

Turns out I overlooked a slot and didn't need to derive from QSpinBox after all

Nuked the obsolete radial type now

Further work on the primitive generator

Begin converting the radial type into a primitive generator

restyled file.cpp

Added an atof overload to convert from string to float, hopefully without any precision error

Use unique IDs instead of file indices in picking lists, this is much less prone to error

minor improvements to primitive handling

Exported Rectifier interface to .ui file

..

Converted Intersector UI, improved handling of failed ext program launches, fixed launch of non-wine programs

Converted Isecalc front-end dialog to Designer UI

Added an ui file for a to-be edger2 launcher

Added support for launching external programs with Wine

Only write config options to file that actually deviate from the default. Should've done this earlier on... before 0.1 alpha was tagged

Nuked the now-empty string.cpp/.h

Added license header to primitives.cpp

Use a more greenish green rather than yellowish lime, added some constraints to when double-clicking in the viewport should edit the given object to prevent unwanted popups

When editing an existing subfile, select the primitive from the list automatically if found

Better categorized Technic primitives

Added support for regex-based primitive categorization

Moved primitive handling to new code files

Make camera icons a member of GLRenderer so multiple renderers won't conflict about them

Added primitive scanning, replaced parts list in subfile add dialog with it

Nuked parts.lst parsing, that was stupid

Converted from C-style fopen to the new File class

Added a File type that wraps around QFile and provides stuff like a null file and range-for-iterating

Converted to 16-bit strings.. again

Also allow objects to be edited by double-click in the viewport

forgot changelog entry about some key defaults changes

Objects can now be edited by double-clicking on them in the object list view

Minor tweak to drawing rectangle selection (don't draw it if it was to be an additive pick)

Update the rect vertices right after rect draw mode is entered so that the old values don't remain to spook around

And I forgot to rebrand the actual dialog box...

Renamed Set Contents into Edit LDraw Code; made the add object dialog's comment line box wider

changelog update

Clipboard now stores LDraw code rather than object clones, this seems much less prone to problems

Made history work with most things

Color changing is now logged into history

Reworked properties a bit

Restructed recent files handling, the list shouldn't screw the hell up anymore.

Cleansed the string class, moved implementations from header to code file

Laid down the foundations of the new history system

fixed: subfiles and radials couldn't be moved, made add-picking with control work again despite its double-use as range picking, changed 'Name' to 'Title' in new part dialog and widened it a bit

Refactor LDSubfile

Make LDMatrixObject's transform and pos members properties

Make LDRadial's members accessed properties

Make LDObject's color and parent properties with accessors

Purged out the old history code

Made range selection be done with Ctrl+Left rather than Shift+Left, additive is Ctrl+Alt+Left. Shift+Left is now an aliasing for panning alongside Mid.

Make drawn vertices display a label containing coordinate informations, round down calculated coordinates

Fixed behavior of mid-button vertex selector, add ability to all-replace and relative moving to replace coords

Added ability to snap to pre-existing vertices while drawing, added changelog

Fixed: Coordinates weren't drawn properly on a bright background (was always drawn in bright colors..). Note that previous commits were left dangling in their own head, the string class changes broke too many things.

Removed the Configure button from the LDraw path config dialog, it's no longer needed

Fixed text editing not triggering configuration. So simple..

Added Export To File action, moved it + insert from to File menu

rewrote isNumber using range-for

Added method for zooming to fit, fixed zoom being inappropriate when parts are first loaded

Further work on image generation experiment

Added ability to have multiple GLRenderers

Take the aforementioned operator<< into use

Made a vector class which wraps around std::vector... finally I have an operator<< for the thing.

Make LDOpenFile's members PROPERTIES

Use QMutex for the thread locking, remove filename from the progress dialog since it's not known anyway

Added a progress dialog for file loading to respond to desktops while loading files. With large files the no-response policy could be a bad thing. My first real use case of multi-threading...

Replace direct abort() calls with fatal() in String methods

Now that 0.1 is released, version number becomes 0.1.999

Added tag v0.1-alpha for changeset 3125c2a1a9ba

Tag version 0.1 alpha (for real this time)

Changed shortcut of Set Color to C, like MLCAD

Fixed: selecting objects in list view didn't update the GL view properly

Added LICENSE.icons to help clarity on the licensing of the icons

License graphical assets under CC BY-SA 3.0 Unported

Use a C-array for config too for the same reasons as with actions

Use a more Windows-like config dir name under Windows; warn when unable to read it

Added fatal error message box for the.. fatal stuff. Windows isn't really good at conveying error messages, converted actions into a C-style array because I've had a ton of problems with the vector approach (it gets zeroed when it shouldn't be..)

Fixed basename (for real...) and ported ::first and ::last from my previous string class implementation, std::string::find_last_of doesn't do what I thought it did

fix basename

added basename since windows doesn't have it

changed the way config dialog gets key input from user so it works in qt5

(0) -384 +384 tip

mercurial