Commit graph

560 commits

Author SHA1 Message Date
Vojtech Bubnik
6a67a6e21b Fix of : Seemingly the OSX finder calls the "open files" callback
on PrusaSlicer too early now on some newest platforms, where the
application is not yet fully initialized. This fix postpones loading of
files in that case.
2022-04-07 15:52:33 +02:00
Lukas Matena
34a0f6d970 Bumped up version to 2.4.1-rc1 2022-03-03 11:16:57 +01:00
enricoturri1966
b4c11dfc83 SPE-1202 - Fixed project name after loading a 3mf file whose path contains diacritics by double clicking (might be a fix of , and ) 2022-02-25 14:11:06 +01:00
Vojtech Bubnik
a062a889d8 Follow-up to a1746e3e66
Fix for  - "Save Project" command doesn't work properly
2022-02-14 14:13:48 +01:00
YuSanka
a1746e3e66 Fix for - "Save Project" command doesn't work properly
Don't update saved presets on
   * preset selection
   * initialization of PresetCollection
, but update them on
   * load another project
   * initialization of an application
2022-02-07 11:59:39 +01:00
Lukas Matena
5c616c5931 Sync to 2.4.1-beta1 2022-02-01 14:16:13 +01:00
Lukas Matena
ebb9041041 Merge branch 'master' into stable - no conflicts fixed 2022-02-01 14:15:18 +01:00
Vojtech Bubnik
9dae482e12 Bumped up version to 2.4.1-beta1 2022-02-01 10:03:22 +01:00
Oleksandra Yushchenko
ddb14fa7f9
MSW specific: Highlighted text for the default buttons in dialog. Related to https://github.com/prusa3d/PrusaSlicer/issues/7564 () 2022-01-28 17:16:04 +01:00
Vojtech Bubnik
a103336c8c Fix of Opening a previous version of PrusaSlicer damages configuration
PrusaSlicer writes its version into "version" field of PrusaSlicer.ini
on start, unfortunately it used to do it too early, before the
"configuration invalid, reconfigure" dialog was shown to the user.
If user refused, the version was still written into PrusaSlicer.ini,
which lead to a newer slicer thinking the configuration is outdated.
2022-01-28 11:31:22 +01:00
YuSanka
fa9a0beec7 Follow-up to 1dffc40f - Save app_config every time a "restore_win_position" is changed
Fix for cases witch are described in https://github.com/prusa3d/PrusaSlicer/issues/2939#issuecomment-1017730712
2022-01-21 11:17:14 +01:00
Lukas Matena
200cbd165f Changed texts in the new 'crashed when restoring position' dialog 2022-01-14 17:26:19 +01:00
Lukas Matena
c28615cfcb Bumped up version number to 2.4.1-alpha0 2022-01-14 12:09:52 +01:00
YuSanka
5a2925466d Follow-up to 1dffc40f32 - Fixed a message text.
+Improved context of the MessageDialogs. We can use hyperlinks now.
2022-01-12 11:19:59 +01:00
YuSanka
1dffc40f32 Follow-up to 010fbded1a - Save app_config before a place of potential crash + fixed non-MSW build 2022-01-11 14:22:40 +01:00
YuSanka
010fbded1a Added "Restore window position on start" option to the "Preferences > General"
+ added crash detection for the cases, when PrusaSlicer is started from secondary display

Possible fix for part of:
  - PrusaSlic3r freezing at startup (Win 10)
and
  - PrusaSlicer won't launch on secondary monitor. Nahimic?
2022-01-11 13:53:25 +01:00
YuSanka
2b66a81ee1 Preferences: Changed tooltip for the "Suppress to open hyperlink in browser"
+ Show "PrusaSlicer: Don't ask me again" dialog when "Remember my choice" is checked in "PrusaSlicer: Open hyperlink" dialog
+ Ignore suppress of hyperlink for menu items
+ Code refactoring for OptionsGroup::launch_browser() => use common wxGetApp().open_browser_with_warning_dialog().
2022-01-06 13:55:40 +01:00
YuSanka
b5c45762c9 Follow up to 229df98386 - fixed non-MSW builds 2022-01-04 17:16:16 +01:00
YuSanka
229df98386 MSW specific: Highlight a focused buttons
Fix for  - Button in focus is not highlighted anymore in PS 2.4 (accessibility issue)
2022-01-04 16:39:10 +01:00
YuSanka
f83ba22a12 Fix for switch Dark/Light mode when preset settings are in separate dialog.
Set new color for title bar, tab bar and all scroll bars for settings dialog
2021-12-16 15:06:48 +01:00
Vojtech Bubnik
2dc461719f Importing newer config when starting the application:
Cache directory is newly deleted before it is imported from the newer
config location.

Linux specific: When asking for certificate directory, perform import
of configs first.
2021-12-15 16:09:22 +01:00
Vojtech Bubnik
b2bcf17dfa Fixed previous commit 2021-12-15 14:52:01 +01:00
Vojtech Bubnik
5ba9d59307 If taking configuration snapshot before importing newer configuration fails,
offer to stop importing configuration.
2021-12-15 14:27:25 +01:00
Vojtech Bubnik
56d50d7707 Delete existing vendors before importing newer vendors, as the existing
vendors may not be referenced by newer PrusaSlicer.ini imported.
2021-12-15 13:43:37 +01:00
YuSanka
ab245a97a4 Fix for - Dark-mode selection highlight 2021-12-15 13:24:40 +01:00
Vojtech Bubnik
12756e7979 Fixing previous commit on AppConfig and loading newer configuration. 2021-12-15 11:22:44 +01:00
Vojtech Bubnik
87880022fc Some improvements to copying of newer configuration to current folder:
1) Less context is kept in GUI_App.
2) Copying is not being done if loading current PrusaSlicer.ini fails
3) AppConfig (PrusaSlicer.ini) is saved first after the newer configuration is installed.
2021-12-15 11:09:34 +01:00
Vojtech Bubnik
b95a83aec1 Bugfix: Loading of AppConfig from an alternate locations. 2021-12-15 10:30:22 +01:00
YuSanka
14cb4a1314 Initialize fonts before first UI action 2021-12-15 09:50:19 +01:00
Vojtech Bubnik
b3d42df0f7 Bumped up version to release candidate,
changed the configuration directory from beta to final.
2021-12-14 14:49:32 +01:00
YuSanka
e2ac37e717 Follow-up 6d2efe29a4 - Call wxInitAllImageHandlers() before any UI actions to avoid "No image handler..." warnings.
+ Deleted unnecessary app_config->save() call
2021-12-14 14:56:38 +01:00
YuSanka
6d2efe29a4 Localization: Updated dictionaries for CS, DE, ES, FR, IT, NL, PL
+ GUI_App.cpp: Set language, color mode and initialization of image handlers before a call of check_older_app_config()
2021-12-14 14:13:44 +01:00
Vojtech Bubnik
021457d40f Fixed minor typo in wording. 2021-12-12 14:44:12 +01:00
Vojtech Bubnik
45038f2ccc Fix of PS 2.4.0 Beta 4: No image handler for type 15 defined.
On Linux, image handlers need to be initialized before showing
any PNG.
2021-12-11 16:59:21 +01:00
YuSanka
080e80a4d6 Localization: Next improvements: CS, IT, ES, DE, ES, FR 2021-12-10 17:28:36 +01:00
YuSanka
102ef9a024 Follow-up ea796aaa68
* Fixed builds for non-MSW platforms (We can't change the signature of the RichMessageDialog. It have to be completely the same as for wxRichMessageDialog)
* Texts of the message dialog are changed. Use InfoDialog instead of a RichMessageDialog.
* MsgDialog: Added SetButtonLabel() function
* InfoDialog: For constructor added is_marked_message and style parameter to allow to use marked text in the Dialog and set different style
2021-12-10 15:35:04 +01:00
David Kocik
ea796aaa68 Changed message about copying another configuration folder.
Added headline to RitchTextDialog.
2021-12-09 18:46:36 +01:00
David Kocik
091585076c Followup on 6490456ec4
Rename variable
2021-12-06 17:24:54 +01:00
David Kocik
6490456ec4 Do not perform config check if conf folder is redefined 2021-12-06 17:15:22 +01:00
Vojtech Bubnik
50da39d30b Windows specific: Only start the 3rd party updater application
if enabled in PrusaSlicer preferences.
2021-12-03 09:26:44 +01:00
YuSanka
efbf64fdea Added description line for the "Post-processing scripts".
ogStaticText id extended for SetPathEnd() function. It allows to use description line like a hyperlink
2021-12-02 15:18:05 +01:00
YuSanka
b78b91b72e Localization: Updated CZ, DE, ES, FR, IT and PL dictionaries.
+ Fixed some of phrases and updated POT-file
2021-12-01 13:07:25 +01:00
Lukas Matena
d6bd128fff Follow-up to e7cc12b 2021-11-30 13:58:09 +01:00
Vojtech Bubnik
5fd279cbc8 Fixing clang compiler warnings 2021-11-30 10:50:27 +01:00
Vojtech Bubnik
e7cc12b2c9 Fix of output file dialog extension template for OSX:
When opening a "Save" file dialog with a default output file name,
OSX file dialog strips the provided extension and replaces it
with the default extension. This causes issues with a custom
file output template, where a non-default file extension is specified.

This commit changes the function to generate file dialog templates
so that if a default extension is provided, it is emitted
as first into the extension template.

Fixes Post Processing passes wrong name 
2021-11-29 15:46:25 +01:00
Vojtech Bubnik
6ebee079c9 Follow-up to 9994e0bcbc
Start updater during start of prusaslicer.
Don't search the directory if only verifying that a file exists
is sufficient.
2021-11-19 15:48:03 +01:00
Vojtech Bubnik
05ed0a9b60 Removed check for a 64bit build running on a 32bit system,
such condition could never be fulfilled.

Slightly polished the wording of the warning.
2021-11-19 11:07:25 +01:00
Vojtech Bubnik
cc44089440 New BuildVolume class was created, which detects build volume type (rectangular,
circular, convex, concave) and performs efficient collision detection agains these build
volumes. As of now, collision detection is performed against a convex
hull of a concave build volume for efficency.

GCodeProcessor::Result renamed out of GCodeProcessor to GCodeProcessorResult,
so it could be forward declared.

Plater newly exports BuildVolume, not Bed3D. Bed3D is a rendering class,
while BuildVolume is a purely geometric class.

Reduced usage of global wxGetApp, the Bed3D is passed as a parameter
to View3D/Preview/GLCanvas.

Convex hull code was extracted from Geometry.cpp/hpp to Geometry/ConvexHulll.cpp,hpp.
New test inside_convex_polygon().
New efficent point inside polygon test: Decompose convex hull
to bottom / top parts and use the decomposition to detect point inside
a convex polygon in O(log n). decompose_convex_polygon_top_bottom(),
inside_convex_polygon().

New Circle constructing functions: circle_ransac() and circle_taubin_newton().

New polygon_is_convex() test with unit tests.
2021-11-16 10:15:51 +01:00
David Kocik
0548df9a76 Fixed parsing of older PrusaSlicer.ini files. 2021-11-14 20:53:35 +01:00
YuSanka
8bfa132a1b Localization fixes + new POT 2021-11-12 09:21:41 +01:00