Commit graph

586 commits

Author SHA1 Message Date
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
David Kocik
217bcfd37d SLA only mode in wizard
Activates only if PrusaSlicer.ini does NOT contains any FFF printers.
Added only_default_printers() function to activate wizard if none printers are installed.
2021-11-11 17:08:54 +01:00
Vojtech Bubnik
3a93277531 Revert "medical"
This reverts commit 117302ba22.
2021-11-11 11:22:57 +01:00
Vojtech Bubnik
117302ba22 medical 2021-11-11 10:11:13 +01:00
David Kocik
8b51dc6dee Menu text 2021-11-10 16:34:54 +01:00
David Kocik
43986c2896 Changes in notifying about new releases.
- Unified preferences settings. version_check option is replaced with notify_release that has 3 states.
- fixed logic when show notification based on version string.
- notification shows released version
- dialog notifying new version is never showing if external updater is running.
Escape quotes inside path to external updater
2021-11-10 15:27:46 +01:00
Lukas Matena
6895e0fde1 External updater is only run in GUI mode 2021-11-10 15:27:46 +01:00
YuSanka
a3f6ce1ac6 MsgDialog: Some code refactoring.
Use style for whole Dialog instead of wxWindowID for just one default button
2021-11-10 10:49:43 +01:00
YuSanka
8bc074f5f2 MSW: Dark Mode: Update of PrintHostDialogs 2021-11-08 11:06:48 +01:00
YuSanka
bbcedae5fd MSW: DarkMode: Improvements for message Dialogs
* A little bit reworked MsgDialog: Checkbox and buttons are placed under the Static line
 * Implemented wrapper for wxRichMessageDialog
 + Implemented wrapper for wxStaticLine
2021-11-05 15:20:06 +01:00
YuSanka
aff9e1f7ea MSW_DarkMode: Next Improvements
* Refreshed title bar for all Dialogs and MainFrame
* Refreshed header of the DataViewCtrl and ListView
* Refresh tooltips
* Redraw SpinCtrls
* Use system menu with is colored in respect to the color mode
* Preferences: Added parameter "Use system menu for application" and moved to the "Dark mode" tab with "Enable Dark mode parameter"
2021-11-05 10:01:13 +01:00
David Kocik
ca8f7fbf80 Copying from other config folders:
Find if there is more recent config in other folders (alpha / beta / release).
If yes, ask user, make snapshot, copy files.
if there is no current config, ask user and copy recent one.
2021-11-02 10:51:45 +01:00
David Kocik
79d9fd154e Wrong build on windows system (32 vs 64bit) dialog 2021-11-02 10:51:45 +01:00
Lukas Matena
3124892fae Fixed a tripping assert 2021-11-01 12:52:45 +01:00
YuSanka
23ab9fb181 MSW DarkMode: Set mode colors for "Change volume type" dialog. 2021-10-29 08:46:29 +02:00
Vojtech Bubnik
ae62801250 Implemented "Details" section enclosing OpenGL extensions when copying
sysinfo to clipboard for inserting into github issue.
Fix of [Feature Request] Help => System Info => Copy to Clipboard: wrap list of extensions with <details> tag 
2021-10-23 20:13:25 +02:00
Vojtech Bubnik
5ccf7e9e47 Updated version and config location to beta. 2021-10-22 17:10:09 +02:00
Lukas Matena
00dfb8f69c Make sure that we have the lower_layer_edge_grid when placing seams 2021-10-22 13:16:08 +02:00
Lukas Matena
13ff92335b Several fixes and improvements in SendSystemInfoDialog:
- do not show memory in MB, show it in GiB rounded to one decimal place
- when sending fails, the HTTP error code is not presented to the user (it is logged though)
- when the user cancels the sending, no extra "sending cancelled" message is shown
- in case there is no internet connection, the dialog is not shown at all
- a 6 second timeout for a case that connection is lost during sending
- the dialog is only shown when the wizard does not show on startup
2021-10-18 15:34:51 +02:00
David Kocik
ffc29a2536 Preferences Highlighter 2021-10-14 14:29:53 +02:00
David Kocik
ac6259e387 Preferences: notify_relese option with Choice type Field.
OptionsGroup:: Added possibility of the right alignment of the controls
+ Added separator line to Preferences
2021-10-13 15:39:06 +02:00
David Kocik
c4f78fcdc9 Check version string for alpha and beta release versions.
Preferences setting to show / not show alpha beta releases.
2021-10-11 10:01:48 +02:00
YuSanka
e1104d5f7d Win11 specific: Added workaround for implicit set of the dark mode 2021-10-11 09:54:38 +02:00
YuSanka
68fd37b300 Added SVG-file for G-CodeViewer logo 2021-10-07 11:53:19 +02:00
Lukas Matena
a49c691241 SendSystemInfoDialog now opens through CallAfter, GL extensions are sorted 2021-10-05 15:09:53 +02:00