Commit graph

1529 commits

Author SHA1 Message Date
Leonardo Zide
592c91df72 Added czech translation. 2020-04-24 17:16:53 -07:00
Leonardo Zide
4e6306a649 Translucent step fade. 2020-04-19 20:21:18 -07:00
Leonardo Zide
5a76f4c870 Scoped enums. 2020-04-18 19:45:21 -07:00
Leonardo Zide
a5c2e617d5 Array cleanup. 2020-04-18 19:38:29 -07:00
Leonardo Zide
cde5db25fe Auto generate Windows rc file. 2020-04-18 10:20:20 -07:00
Leonardo Zide
b27ef52025 Replaced Set Active button with a checkbox. Fixes #459. 2020-04-18 08:49:11 -07:00
Leonardo Zide
ad45bb9a47 Paste pieces to the current step. Fixes #452. 2020-04-12 13:01:28 -07:00
Leonardo Zide
5e8baffcf7 Added shortcut option for Fade Previous Steps. Fixes #420. 2020-04-11 11:16:21 -07:00
Leonardo Zide
70da56bb05 More accurate bounding box calculation for submodels. 2020-04-11 11:04:27 -07:00
Johannes Sixt
ca73f3e3ad
Synthesis of Technic Universal Joints (#456)
* Split synth info initialzation by type.

We are going to remove the type enumeration and use a class hierarchy
instead. This preparation will then be helpful.

* Make Add...Parts() overrides of a virtual AddPart() function.

Since we have a class hierarchy for the different synthesized pieces, we
can now turn a case distinction into a virtual function call.

* Move initialization based on type to derived class constructors.

Move initialization of end transformations of flexible parts into
class lcSynthInfoCurved.

* Make GetDefaultControlPoints() virtual with overrides.

* Remove obsolete enum lcSynthType.

We have replaced its purpose by derived classes by now.

* Initialize shock absorbers' spring part ID early.

This removes the awkward early return that is needed in the if-else
cascade.

* Split lcSynthInfo into derived classes for curved and straight pieces.

* Only curved parts have varying sections, start, middle, and end properties.

Move the properties from the base class to the derived class that needs
them.

* Use derived classes to mark synthesized objects of different kinds.

We will extend the derived classes in the upcoming commits.

* PieceInfo is only needed to synthesize some hoses and shock absorbers.

* Initialize edge part IDs of flexible hoses early.

This removes another case distinction in AddParts().

* Verify the number of control points loaded from a model file.

* Synthesize Technic universal joints.

The direction of one end can be changed so that it points to the control
point.

* Technic universal joints need only the position of the control point.

* Synthesize legacy universal joints.
2020-03-30 12:17:08 -07:00
Leonardo Zide
b9662dd3e0 gcc fix. 2020-03-22 20:32:04 -07:00
Leonardo Zide
7275c4256d Added const qualifiers. 2020-03-22 20:18:52 -07:00
Leonardo Zide
66bed1a8f0 gcc fix. 2020-03-22 16:19:15 -07:00
Leonardo Zide
a5bb4a3051 Removed std::exchange. 2020-03-22 16:07:07 -07:00
Leonardo Zide
7c9773f228 Fixed override and virtual function qualifiers. 2020-03-22 15:44:41 -07:00
Leonardo Zide
90f1336a48 Scoped enums and constexpr. 2020-03-22 13:44:20 -07:00
Leonardo Zide
ade7334fa1 Support up to 10 control points and prevent the user from adding more. 2020-03-22 11:12:15 -07:00
Leonardo Zide
fab6a8fa11 Don't flag submodels as decorated parts. Fixes #453. 2020-03-14 11:24:56 -07:00
Leonardo Zide
85a9b19b2c Warning fixes. 2020-02-24 14:31:08 -08:00
Leonardo Zide
93ef9e0edc Fixed view size on retina displays. Fixes #447. 2020-02-24 12:58:38 -08:00
Leonardo Zide
e9c38e4f39 Added scoped enums. 2020-02-15 11:36:06 -08:00
Leonardo Zide
e5d06a29a2 Renamed pipette to color picker and fixed indentation. 2020-02-15 11:14:12 -08:00
RenateZwei
aa3ead6504
Added color picker (#446)
Added color picker
2020-02-15 10:59:14 -08:00
Leonardo Zide
bee37f0bc6 Fixed incorrect bounding box drawing when dragging a new submodel. 2020-02-01 11:42:22 -08:00
Leonardo Zide
fb7f952e98 Fixed a case where drag and drop a submodel didn't do anything. 2020-02-01 11:34:56 -08:00
Leonardo Zide
60aca425a0 Fixed crash using undo while dragging a new part. 2020-02-01 10:58:19 -08:00
Leonardo Zide
d626048a64 Fixed view not refreshing after cancelling a drop. 2020-02-01 10:42:29 -08:00
Leonardo Zide
be2f4caf65 Include parts in submodels in the 'Parts in Use' category. Fixes #436. 2020-02-01 10:33:51 -08:00
Leonardo Zide
0ced302cd0 Updated minifig.ini to 19-03. 2020-01-31 17:35:14 -08:00
Leonardo Zide
858bb73778 Warning fix. 2020-01-27 12:01:52 -08:00
Leonardo Zide
9b7c7563a2 Added option to insert steps after the current step to avoid confusion. Fixes #373 and #408. 2020-01-26 18:41:31 -08:00
Leonardo Zide
bbc40d5a22 Start new model when closing the last tab. Fixes #422. 2020-01-26 11:31:21 -08:00
Leonardo Zide
59098436b7 Use menu names for the keyboard preferences. Fixes #411. 2020-01-26 11:03:41 -08:00
Leonardo Zide
3e3e7135f8 Made visibility property more user friendly. Fixes #423. 2020-01-25 18:07:33 -08:00
Leonardo Zide
a87a19f9c9 Fixed crash unzipping uncompressed files. 2020-01-25 12:44:50 -08:00
Leonardo Zide
93e8f4a85e Fixed possible buffer overflow. 2020-01-24 13:12:34 -08:00
Leonardo Zide
3b8b22493a Reorganized PLI function. 2020-01-20 15:39:20 -08:00
Leonardo Zide
ddf6f9dbba Automatically zoom out parts in the parts list image if needed. 2020-01-18 18:47:15 -08:00
Leonardo Zide
b698686420 Fixed compiler warnings. 2020-01-18 16:53:33 -08:00
Leonardo Zide
58957440cf Fixed crash loading certain parts. 2020-01-17 14:44:35 -08:00
Leonardo Zide
51fe5416b4 Replaced HTML parts list with BOM style image. 2020-01-14 12:48:18 -08:00
Leonardo Zide
6d818d48d2 Fixed HTML export not including submodels. Fixes #429. 2020-01-11 12:45:36 -08:00
Leonardo Zide
b43675f323 Array cleanup. 2020-01-10 17:40:14 -08:00
Leonardo Zide
220fb26a3a Added button to import inventories to a palette. 2020-01-09 12:06:42 -08:00
Leonardo Zide
7a78f86cd5 Workaround for Qt changing the order of items when drag and dropping. Fixes #424. 2020-01-05 18:14:50 -08:00
Leonardo Zide
9bc99235ef Fixed compiler warnings. 2020-01-05 15:19:50 -08:00
Leonardo Zide
8f48b09ae3 Added view sphere toggle. Fixes #284. 2020-01-05 11:38:24 -08:00
Leonardo Zide
7425c41673 Allow multiple selection in the Model List Dialog. Fixes #419. 2020-01-04 13:00:31 -08:00
Leonardo Zide
636f84ad6c Fixed recent file being removed from menu when cancelling saving the current file. 2020-01-04 11:25:52 -08:00
Leonardo Zide
6891c59d38 Elide status bar text. Fixes #417. 2020-01-04 10:48:17 -08:00