Commit Graph

1994 Commits (9124a4e1defe9169749136f01dec557e8a4e8ec3)

Author SHA1 Message Date
Dhruv Gramopadhye 9124a4e1de fix: use macOS Frameworks
We want solvespace to dynamically link with only one OpenGL library at a
time, in particular the one that ships with MacOS. For this we use macOS
frameworks, and pass the appropriate flag to the linker.

We should not use default cmake logic for finding openGL, since it seems
to find the wrong version of libGL, that may have been installed by some
other package at some point.
2024-04-04 00:42:09 -07:00
Dhruv Gramopadhye 94618d4ce1
CI, macOS: Update dead links to libomp in dependency installer
Big Sur -> Ventura
2023-12-05 14:16:27 +02:00
ruevs 727b0153f6
Update CHANGELOG.md 2023-11-23 10:27:33 +02:00
phkahler 87d0e097bb CTRL-TAB un/hides the toolbar 2023-11-23 09:09:41 +02:00
ruevs d88ed3f2ee Adjust the test suite to match the new behaviour of Path::Join. 2023-11-22 11:12:06 -05:00
ruevs 6f7e45ba9f Fix invalid parts linkage in assemblies when the folder has only one char.
Fix a bug in the `Split` function that would drop a single character
directory name at the end of the path.

Because of the above bug when a directory containing an assembly file had
a name with only one character, the assembly file was saved incorrectly and
the path to the linked files was invalid.

For example if `assembly.slvs` was located in a directory called `a` and
links `subpart.slvs` in the same directory this would result in:

Group.impFileRel=a\subpart.slvs

Which resulted in the linked part not being found when opening next time.

Fixes: #1347
2023-11-22 11:12:06 -05:00
ruevs d5e8a8267c Fix opening of assembly groups with relative (empty) paths.
The `Join` method that merges paths used to return an empty path when
either of the paths was empty. This caused problems when opening files
with linked/assembled groups when the current path was relative - for
example when SolveSpace was ran from the command line with a drawing
files (in the same directory) as a parameter e.g. `solvespace assemby.slvs`.

See https://github.com/solvespace/solvespace/pull/1194 for detailed
discussion.

Fixes: #1292
2023-11-22 11:12:06 -05:00
ruevs 5edc1ec0fb Images are construction by default
With this change and the previous commit images will not be included in
3d groups by default.
2023-11-22 11:06:43 -05:00
ruevs 70382660c8 Do not include construction images in extrude/lathe/revolve/helix
To avoid unnecessary/annoying copies of images added in 2d sketches if they
are marked "construction" they will not be copied when creating solids.

Fixes: #1418
2023-11-22 11:06:43 -05:00
phkahler e7c0c1665f GTK: Eliminate direct references to gdk event struct members in prep for moving to GTK4. 2023-10-14 14:16:38 -04:00
ruevs 0d26ca17f7 UI: Make marquee selection of line segments precise
Before marquee selection worked by checking whether the Axis Aligned
Bounding Box of an entity and the selection marquee overlap. This selects
(slanted) line segments even though the marquee did not "touch" them.

To fix this for line segments actually check that the selection marque
intersects the line segment.
2023-10-14 18:43:40 +03:00
ruevs 9edf2bcc34 Win32: Fix for compiling with MinGW.org GCC-6.3.0-1
MinGW-w64 MinGW-Builds 13.1.0 on the other hand does not need this.
2023-09-29 16:02:20 +03:00
phkahler f399997976 Speed up view change animations 2023-09-28 19:37:10 -04:00
phkahler 1963a836ef Improve boolean difference operations...
...by fixing the logic in KeepRegion() to properly keep/discard
regions where two surfaces coincide.

Now difference works as well as intersection in this respect.

Change inSame to coincSame for clarity.
2023-09-22 17:32:26 +03:00
Victor Kustov 1919a18916 Fix language bug
Signed-off-by: Victor Kustov <ktrace@yandex.ru>
2023-09-20 09:15:20 -04:00
Koen Schmeets e6565c8118
Debug issue with notarization 2023-09-12 21:14:42 +02:00
vthriller beb473b94d Ask before overwriting existing file
Closes #1399
2023-09-12 12:08:26 -04:00
Tomáš Hübelbauer 36ecb85bb3 Update the issue template to show where to look for SolveSpace version on macOS
macOS SolveSpace has the Help menu but it lacks the About menu item in it and instead the way to find the SolveSpace version is to go to SolveSpace > About SolveSpace. This PR updates the issue template to show that.

I have also replaced the `...` with an ellipsis (`…`) as it IMO looks better (can revert this if it doesn't match the menu item on Windows/Linux) and updated the example version to the current SolveSpace version.
2023-08-14 08:06:57 -04:00
Yusuf Yavuzyigit 88e4d08324 Update test.yml with ubuntu-latest and macos-latest 2023-08-09 13:58:58 +03:00
Yusuf Yavuzyigit 95b00bd888
Fix CI for Ubuntu and MacOS (#1388)
Seems like ubuntu-18.04 and macos-10.15 are no longer hosted by GitHub. Switching to ubuntu-latest (at the time of writing: 22.04) and macos-latest (at the time of writing 12) works.

[GitHub hosted runners](https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources)
2023-08-08 18:28:32 +03:00
Paul Kahler 0e2fd2e6d9
Update CHANGELOG.md
Mention the new behavior of ESC while sketching.
2023-07-27 09:41:33 -04:00
phkahler b34d9a2f11 Delete the partially drawn entity when ESC is pressed on pending operations by using UndoUndo() 2023-07-26 20:42:18 -04:00
ruevs f0912d42b1 UI: Remove shortcut key collisions in the Sketch menu
"&Workplane" -> "Wor&kplane"
"&Image" -> "I&mage"
"Tangent &Arc at Point" -> "Ta&ngent Arc at Point"

Closes #1019
2023-07-14 16:32:33 +03:00
Matteo Scalia 3d04d4cc04 skip duplicate drilled holes 2023-07-07 08:49:24 -04:00
alufers 7ccb0ffac4 UI: Add Ctrl+Shift+S keyboard shortuct for Save As
Many desktop programs use this shortcut for the "Save As" dialog,
so it makes sense to add it here so that different variants of parts
can be quickly created.
2023-07-03 17:00:06 +03:00
phkahler fd25424ab5 small simplifications 2023-05-21 12:19:35 -04:00
phkahler 604335f1c9 rename the enums for surface classification in the SShell class. 2023-05-21 12:19:35 -04:00
liuxilu 2e2aceb5ed
Chinese transalation updated (#1365)
* revised zh_CN.po

* update PO-Revision-Date

* revised zh_CN.po

* revised zh_CN.po

* revert workaround for fixed crash #990
2023-05-04 19:28:00 +03:00
Alexandre Prokoudine aa0d25e6ae
Update Russian translation (#1355) 2023-04-05 00:02:29 +03:00
ruevs 659215d84c Translations: update Spanish
Mostly with Google translate :-)
2023-03-17 11:37:12 +02:00
ruevs 7161a2ab38 Translations: update Japanese
Japanese (ja_JP): updated by @verylowfreq
2023-03-17 10:13:49 +02:00
ruevs b69d565e9d Translations: update Turkish
Turkish (tr_TR): updated by @mhalil
2023-03-17 10:13:49 +02:00
ruevs 9e043c66ca UI: Fix typo in the "Angle" constraint hint. 2023-03-17 10:13:49 +02:00
ruevs dab6e173ee Translations: update all other languages
- French (fr_FR): updated by @progval
- Czech (cs_CZ): updated by @strzinek
- Turkish (tr_TR): updated by @mhalil
- German (de_DE): small update from @rurban
- All other languages: changed messages will revert to English until updated.
2023-03-17 10:13:49 +02:00
ruevs d63047d089 Translations: update English 2023-03-17 10:13:49 +02:00
ruevs 0305f9a56c Translations: update German and Russian
...to the best of my abilities. Both need a review from a native speaker.
2023-03-17 10:13:48 +02:00
ruevs 69ded9721f Update the year to 2023 in the About dialog and Windows version resource. 2023-03-17 10:12:12 +02:00
ruevs 25b5977962 Fix a crash when constraining a line segment symmetric
This was a regression Introduced in 3d3d5c7.
Fixes #1345
2023-02-28 22:49:36 +02:00
Blockers d6e970918f Fix MessageBox Avalanches due to Message blocking
This fixes #1320. The root cause for the avalanche of
messages is due to how the refresh timer system calls GenerateAll. When
GenerateAll is called by Refresh, if a Message occurs, that Message will
block GenerateAll. It _doesn't_ block subsequent calls from the timer to
Refresh (presumably from a separate thread). Because the
"scheduledGenerateAll" flag is not cleared until after the generation is
unblocked, each following refresh triggers another call to GenerateAll.
By reversing the flag clear and call, it breaks the cycle. I don't think
this matters for scheduledShowTW, but I updated it as well.
2023-02-03 11:52:16 -05:00
robnee 3c91bf7ca4 Add config option for "camera" rotation navigation
SS rotates the model when middle button dragging while some users expect
this operation to rotate the camera where left-right and up-down directions are
reversed instead.  This adds that option.
2023-02-03 11:50:55 -05:00
phkahler 302aebfd1a quiet some compiler warnings 2023-02-01 13:36:42 -05:00
phkahler e4fcb7de08 stop using deprecated gtk_show_uri on Linux 2023-02-01 13:36:42 -05:00
phkahler 0c28adc69e eliminate possible use before set warnings 2023-01-31 22:14:54 -05:00
Koen Schmeets 8117a21d59
Revert legacy snapstore key 2023-01-31 23:45:42 +01:00
phkahler 9ee9aa7609 Treat a linked group as mesh-only if it has a Mesh but no Shell. 2023-01-29 18:36:38 -05:00
ruevs b556daaf74 Tanslations: update main translation file 2023-01-18 17:44:08 +02:00
ruevs 3f11bbe47a Translations: change contact informatuion in "Report-Msgid-Bugs-To:"
to current maintainer.
2023-01-18 17:40:35 +02:00
lomatus 10c6c09541 Chinese translation updated. 2023-01-17 19:29:07 -05:00
ruevs 9282b403dd UI: Make the new "dimensions only mode" icons consistent with the rest.
Also optimize for size.
2023-01-17 19:16:36 -05:00
ruevs 60cd95d608 Dimension constraints only display mode improvements
Make the `TriStateButton` class "universal" and use it in place of the
`OccludedLinesButton` class which is now removed.

Fix the tool-tips on the constraint button to show what will come instead
of what is - just like the the occluded lines button. Also change the
text of the tool-tips wording to be more clear and consistent with other
buttons.

Small stylistic and code formatting changes.
2023-01-17 19:16:36 -05:00