Commit Graph
100 Commits
Author SHA1 Message Date
YuSanka 080e80a4d6 Localization: Next improvements: CS, IT, ES, DE, ES, FR 2021-12-10 17:28:36 +01:00
YuSanka 14749d3c73 Code refactoring for ObjectList::get_selection_indexes().
Assert is changed to check if selection isn't empty.
Elsewhere processing of the empty selection can causes a crash.
2021-12-10 17:10:09 +01:00
YuSanka 102ef9a024 Follow-up https://github.com/prusa3d/PrusaSlicer/commit/ea796aaa68a2948058d02711cc25a0a0fcfcee30
* 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
YuSanka f1429f026c RichMessageDialog on non-MSW platforms: Set escape ID to wxID_CANCEL
+ Fixed behavior of the "Open hyperlink" dialog when "cross"(close window button) is clicked.
2021-12-09 16:00:12 +01:00
YuSanka 27883caa08 Follow-up https://github.com/prusa3d/PrusaSlicer/commit/b3074ad2cce49ab9ca929faf42ad5721f1b76849
Change random values of the S and V in HSV colors.
To avoid generation of the extremely light or dark colors we use now generated values from the range [0.65; 0.1]
2021-12-09 14:16:47 +01:00
YuSanka 77e8429eae Fix for #7146 - Reset settings for spiral vase mode is inconsistent 2021-12-08 16:36:50 +01:00
YuSanka 3d23907056 Fix of the position of "PrusaSlicer: Open hyperlink" Dialog
More info https://github.com/prusa3d/PrusaSlicer/issues/7419#issuecomment-988231014
2021-12-08 10:40:47 +01:00
YuSanka 9cd1df97d6 Fixed #7446 - Removed 'support' label makes the terms in the support selector confusing. 2021-12-07 16:25:22 +01:00
YuSanka 488eb51282 Fix for InfoDialog, when Info about in-recognized loaded config values is shown.
Text in this dialog wasn't marked correctly.
2021-12-07 15:19:04 +01:00
YuSanka 1ff7214532 Fix for endless loop dialog - see https://github.com/prusa3d/PrusaSlicer/issues/7419#issuecomment-986325432
When part's configuration is updated =>
Don't call config_manipulation.update_print_fff_config() separately for applied object's config and then applied own config.
Configuration have to be applied from object config and its config. And than call config_manipulation.update_print_fff_config().

+ Redundant call of the update_config_values() is deleted from DeleteButton event. All checks are made during update_settings_list().
2021-12-07 14:40:52 +01:00
YuSanka 940690ecdb Follow-up https://github.com/prusa3d/PrusaSlicer/commit/d8ecc191da71f34b584681ee21f4ebae96016241 - Remove from code a condition which has opposite effect effect now.
+ OptionsGroup::activate_line():Add same as at OG_CustomCtrl::CtrlLine::render() condition for the drawing of a option label.
It means that we draw option labels only, if line has more than one option.
2021-12-07 10:55:27 +01:00
YuSanka d8ecc191da Added a check that first layer height is not expressed as a percentage (related to https://github.com/prusa3d/PrusaSlicer/issues/7418)
first_layer_height cannot be changed to ConfigOptionFloat, that would break loading of old 3MFs.
The relative values from 3MFs should already be converted to absolute in `Preset::normalize`, what is missing is the UI check.

+ Code refactoring for OptionsGroup::create_single_option_line():
Don't clear label value in an Option. This value is used in Field::get_value_by_opt_type() to show error "%s doesn't support percentage".
=> At functions OG_CustomCtrl::CtrlLine::render() and OG_CustomCtrl::CtrlLine::get_pos() added check if current line has more than one option.
=> Draw option's label only when line has several options.
2021-12-07 09:20:36 +01:00
YuSanka a952fbc31a Allow a "Dark mode" in Preferences for G-code viewer 2021-12-06 11:44:29 +01:00
YuSanka f5dc746e94 Fix for #7419 - Non-modal settings window loses focus after accepting dialog (MSW specific issue)
MessageDialog is used instead of wxMessageDialog on MSW for supporting of the Light/Dark color mode.
But a constructor of the MsgDialog replaces a parent which is equal to nullptr with the MainFrame .
That is why non-modal dialog with Preset Settings loses a focus after close of the MessageDialog.

"m_msg_dlg_parent" is added to ConfigManipulation class. ConfigManipulation's instance owed by Tab will use the Tab as a parent for MessageDialogs.
=> The MessageDialog with information about configuration incompatibility will always appear over related SettingsTab
and a non-modal dialog with Preset Settings will not lose the focus.
2021-12-06 11:44:29 +01:00
YuSanka 8a2c15ad60 Fix for #7408 - Crash after closing error for deleting box shape with cylinder negative volume 2021-12-04 10:05:14 +01:00
YuSanka fdc4ee7542 Suppress to use info line "Post processing scripts shall..." on Linux.
Otherwise click on this line causes a strange frizz of the settings page.
And line hovering by the mouse has no visual effect on Linux.
(Neither wxEVT_ENTER_WINDOW nor wxEVT_LEAVE_WINDOW isn't catch by wxStaticText for some reason)

+ Call of the SetToolTip() moved from constructor to wxEVT_ENTER_WINDOW. In this case Tooltip text will always respect to the "suppress_hyperlinks" value.
2021-12-03 16:47:31 +01:00
YuSanka f14a5f40b3 Localization.
* --boost option is added to gettext_make_pot script to recognize Boost format strings.
* New script gettext_merge_po_with_pot is added to merging new lines from POT to current PO
* --check-format option is added to gettext_po_to_mo script to check language dependent format strings during generation MO from PO.
* POT is updated and all PO files are merged with it. So, community can just load needed PO file and continue in translation.
* ExtruderSequenceDialog: Added messed localization markers
2021-12-03 16:19:09 +01:00
YuSanka def5bd6797 Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/7272b2b083448859ec63798326f7b6feead0d071
Comment is extended
2021-12-03 09:39:37 +01:00
YuSanka 7272b2b083 Fix for #7207 - Display of object labels does not match with the "View"-menu, if "Complete individual objects" is used 2021-12-02 17:08:03 +01:00
YuSanka 71a9ded1c0 ObjectList: Fixed update of the icons for InfoItems, when color mode was changed
Sidebar:ObjectInfo: Fixed update of the icon, when color mode was changed
+ Added new icons for "Sinking" and "ShapeGallery"
2021-12-02 16:11:52 +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 fc089fd2c5 Code refactoring for https://github.com/prusa3d/PrusaSlicer/commit/d88ef826cd9be79ef55d735dda5a938a085da3f2
reload_scene() call were followed by update(). It synchronizes back-end with front-end and then it calls reload_scene() again.
However in SLA mode reload_scene() expects the back-end to be synchronized with front-end, thus we get asserts that we all have ignored for a long time.

So, we call ObjectList::update_info_items() after the call of update() where reload_scene() is already called and GLCanvas3D::is_object_sinking() will return correct value
2021-12-02 11:26:20 +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
YuSanka 8fc620375c Fix for #7384 - From/To UTF8 conversation issue for text controls in Settings Tabs
+ BitmapComboBox: fixed warning under MSW
2021-11-30 12:32:40 +01:00
YuSanka a8cc19127e Hide "Height range Modifier" menu item for the Simple mode
suggestion from the https://github.com/prusa3d/PrusaSlicer/issues/7381
2021-11-30 11:35:53 +01:00
YuSanka f5cf3cb81d MSW specific: Hide "Use system menu for application" option in Preferences for system older then Windows 10
(related to the fix of #7355 - PrusaSlicer 2.4.0-beta-2+win64 will not start on Windows 7 64-bit )

+ Updated URL_HASH SHA256 in wxWidgets.cmake in respect to the 51c824019e98fc97b0bcdd4d9f4ed4cb523a7cac in wxWidgets-v3.1.4-patched
2021-11-29 21:00:43 +01:00
YuSanka 84c4f181e4 Next fix for #6814.
"support_material_overhangs_queried" variable have not to be static after a fixing of the #6124.
2021-11-26 11:35:29 +01:00
YuSanka 609bd4046c Preferences: Beautification
Text settings: Wrap a label_text to the max 80 characters
MSW specific: Update alignment of the "Dark mode" tab
2021-11-23 16:39:53 +01:00
YuSanka 9029f63d0c Fixed minor bug - Added missed layout of the Tab, when preset is saved with new name.
"Delete" button wasn't observed
2021-11-23 15:54:41 +01:00
YuSanka 0c110af1df Localization: Next text improvements
+ new POT
 + new CZ translation
2021-11-23 14:56:41 +01:00
YuSanka 7828964f8c Fix for #7328 - Filename containing chars not usable on FAT result in error and crash in gcode export 2021-11-23 13:53:58 +01:00
YuSanka 93bd5ee08b Fixed a typo in 02c18dbc52.
Id of the WipeTower is equal to 1000
2021-11-22 09:52:02 +01:00
YuSanka 1b7975639e Follow-up https://github.com/prusa3d/PrusaSlicer/commit/172b97cc2a3ed1290ee0c02b164379d0e38bc39e - Show context menu only on right mouse click 2021-11-21 18:15:59 +01:00
YuSanka 21c8f373ff Code refactoring for 69731b1d => nsvgParseFromFileWithReplace() is extracted from nanosvg.h to BitmapCache 2021-11-19 17:00:38 +01:00
YuSanka 244b66649c Check unsaved preset changes only when presets have been changed in the project 2021-11-19 16:33:28 +01:00
YuSanka 172b97cc2a Fix for #7270 - Feature Request: Right-click object table name-field should bring up context-menu - same as in 3D Editor View
+ removed unused code
2021-11-19 10:24:02 +01:00
YuSanka 36df8df8b4 Fix for #6124 - Looped "Wipe Tower" message box, can't quit
Always add overloaded parameters for Object/Parts Settings to avoid lopped messages
2021-11-18 17:30:52 +01:00
YuSanka c447c84d2c Fixed non-WIN builds 2021-11-18 17:03:49 +01:00
YuSanka 5271877182 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into master 2021-11-18 14:34:41 +01:00
YuSanka b3074ad2cc DoubleSlider: Added calculation of the new color for "ColorChange" 2021-11-18 14:28:58 +01:00
YuSanka 1aaa4845c5 Partially ported https://github.com/supermerill/SuperSlicer/commit/ff195fc9(Add max_literal to setting def, to set the threshold for popup warning for float% fields) from @SuperSlicer
(related to https://github.com/prusa3d/PrusaSlicer/issues/2829#issuecomment-955606863)
2021-11-16 13:44:48 +01:00
YuSanka d6306f00b7 Resin colors: Set default value when color wasn't set in config 2021-11-16 12:48:13 +01:00
YuSanka f535b592ac Fixed a crash when loading STL file (from https://github.com/prusa3d/PrusaSlicer/commit/02c18dbc521ef33c2e23a3996c50ee60eecf8d2a)
+ Added info_icon next to the "Volume" value
2021-11-16 09:42:20 +01:00
YuSanka 02c18dbc52 Sidebar: Info box: Fixed value of the "Volume"
+ Hidden "Materials" item
2021-11-15 17:36:01 +01:00
YuSanka 871311c95c Fix for #7301 - Endless loop telling me 'Supports work better if the following feature is enabled: bridging perimeters' when setting 'generate support material' on a single object
This bug was from https://github.com/prusa3d/PrusaSlicer/commit/0c29eb9943df769ed045bd88f159406ecf9763ed
2021-11-15 10:48:53 +01:00
YuSanka a6863961f7 Localization + new POT
+ added hyperlinks for Ironing parameters
2021-11-15 08:32:40 +01:00
YuSanka 8ef03718d0 Linux specific: Using a pop-up menu on the "cog" wheel for changing of an extruder color.(related to #6759)
+ some code refactoring
+ change a little bit gray color in colorchange_del icons to avoid collision in Dark mode
2021-11-12 14:02:18 +01:00
YuSanka e70fc7f0da OG_CustomCtrl: Code refactoring - Use standard RichMessageDialog instead of own written 2021-11-12 12:13:29 +01:00
YuSanka 8bfa132a1b Localization fixes + new POT 2021-11-12 09:21:41 +01:00
YuSanka d599c85477 Fixed typo in https://github.com/prusa3d/PrusaSlicer/commit/a0e6c7a076c2b63eb5027757a8d398a8715152b4 2021-11-11 12:50:25 +01:00
YuSanka a0e6c7a076 Follow up https://github.com/prusa3d/PrusaSlicer/commit/a3f6ce1ac6a37c10e078672215c93bc0d705cab0 2021-11-11 10:31:12 +01:00
YuSanka 64e926b363 Fixed endless "New project" possibility 2021-11-11 08:46:39 +01:00
YuSanka de1785760c Follow up https://github.com/prusa3d/PrusaSlicer/commit/e8be7b2ecd3a21676af73805f96157f37418f8e5 - Remove unused code 2021-11-10 11:31:14 +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 e8be7b2ecd Implemented possibility to show resin colors from the Plater (Bottles with resin are colored now in preset combobox)
+ Added nsvgParseFromFileWithReplace() to replace some colors before parsing from SVG file
+ Thumbnails are saved with selected resin color in SL1 or SL1S files
+ "white" folder is deleted from "icons" now. THere is no needed anymore.
2021-11-09 17:01:50 +01:00
YuSanka a5f20d4c71 MsgDialog: Delete redundant code (fix for https://github.com/prusa3d/PrusaSlicer/issues/7254) 2021-11-09 12:52:59 +01:00
YuSanka 8bc074f5f2 MSW: Dark Mode: Update of PrintHostDialogs 2021-11-08 11:06:48 +01:00
YuSanka 2fcab52f86 Added "Color" parameter for SLA material 2021-11-05 17:22:37 +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
YuSanka 7520e2f193 Updated SHA256 in wxWidgets.cmake 2021-11-05 09:41:18 +01:00
YuSanka 23ab9fb181 MSW DarkMode: Set mode colors for "Change volume type" dialog. 2021-10-29 08:46:29 +02:00
YuSanka e5b51a654d Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/0c29eb9943df769ed045bd88f159406ecf9763ed
Next code refactoring: m_support_material_overhangs_queried have to be initialized from outside just once
2021-10-26 16:36:07 +02:00
YuSanka ef0dae8c97 Implemented possibility to apply conversion from inches/meters to mm for all loaded objects at once
+ Added MessageWithCheckBox dialog
+ some code refactoring for MessageDlg
2021-10-26 14:52:45 +02:00
YuSanka 054dd569af MSW Dark mode: Set mode colors for RichToolTips 2021-10-26 08:28:03 +02:00
YuSanka 0c29eb9943 Follow up e2475c9576 = code refactoring 2021-10-25 16:55:02 +02:00
YuSanka 0836fbb453 Allow to enter empty value for "G-code thumbnails" option 2021-10-25 16:28:08 +02:00
YuSanka e2475c9576 Workaround for #6814 2021-10-25 14:45:03 +02:00
YuSanka 038459b083 ConfigWizard: Added missed Refresh() 2021-10-25 13:59:22 +02:00
YuSanka 8d0a4c7cd6 SendSystemInfoDialog: Use button instead of hyperlink
+ Fixed wsWidgets asserts
2021-10-22 15:36:07 +02:00
YuSanka b6b5bdb592 Fixed wrong showing of the default context menu if right button was clicked on empty space when several objects are selected in 3DScene 2021-10-22 13:00:19 +02:00
YuSanka 7967997c7e InfoDialog: Small code refactoring 2021-10-22 11:37:02 +02:00
YuSanka aecd7e2b93 GalleryDialog: Added context menu for custom shapes
+ Added possibility to delete custom shaped by "DELETE" key
2021-10-14 12:16:14 +02:00
YuSanka a4ad4ff4a9 Auto color change: check overhangs lust from Preview when detecting auto color changes
+ fixed typo in equivalent_areas()
 + Added missed include
2021-10-12 15:23:50 +02:00
YuSanka 5990f05418 Follow-up https://github.com/prusa3d/PrusaSlicer/commit/cedfc5e3fb2090e6c7a3897346abe3eb694ebd90 - Next code refactoring to avoid inconsistency between AutoColorChangeDetection in Preview and DoubleSlider 2021-10-12 14:18:39 +02:00
YuSanka cedfc5e3fb DoubleSlider: Code refactoring for auto color change 2021-10-12 10:47:21 +02:00
YuSanka b39eb7f222 Gallery: Fixed a naming of the added item with already existing name.
+ Fixed layout after add/delete item to/from Gallery
2021-10-11 11:21:27 +02:00
YuSanka e1104d5f7d Win11 specific: Added workaround for implicit set of the dark mode 2021-10-11 09:54:38 +02:00
YuSanka c921d6f936 ObjectList: Fixed positioning of the object's part/modifiers when it's added
Use load_modifier() for everything without a respect to the type
2021-10-08 12:14:49 +02:00
YuSanka ce397a0c5c ShapeGallery: Added more system shapes 2021-10-08 09:05:03 +02:00
YuSanka c0f3077ce9 Follow-up fb3ed367ad : Fixed flickering of the wxProgressDialog during the model fixing 2021-10-07 14:04:15 +02:00
YuSanka fb3ed367ad Try to fix a focus for Application after closing of the "fix thought NetFab" ProgressBarDialog 2021-10-07 11:53:19 +02:00
YuSanka a2b99db0df MSW specific:Added dark mode for G-CodeViewer 2021-10-07 11:53:19 +02:00
YuSanka 68fd37b300 Added SVG-file for G-CodeViewer logo 2021-10-07 11:53:19 +02:00
YuSanka 1b828ca7f5 Deleted unused PNG-files. Added mirroring_transparent.svg (thanks for @AkiraNorthstar) 2021-10-07 10:14:55 +02:00
YuSanka c15be26bff Check if object's size appears to be zero, when loading the model file. 2021-10-07 09:12:31 +02:00
YuSanka 7340488aaf ObjectList: Fixes
* Fixed update of a warning icon for multi-part object, when some part with errors was deleted
 * Fixed a crash when selecting non-Object and non-Volume item (in get_mesh_errors_info() was missed check of the obj_idx)

+ Follow-up https://github.com/prusa3d/PrusaSlicer/commit/1cc7b4ba971e8d04558b8a49869d9ce1647b8f77 - some code refactoring:
  * fixed RepairedMeshErrors.merge()
  * get_mesh_errors_count() renamed to get_repaired_errors_count()
2021-10-06 17:24:40 +02:00
YuSanka 8d749d2a9e Fix for build 2021-10-06 13:49:03 +02:00
YuSanka 82de61b0aa RichToolTips: Don't set a Timer for Tooltip but dismiss the tooltip when a mouse leave the button 2021-10-06 13:15:21 +02:00
YuSanka 1cc7b4ba97 Save/Load repaired errors from/to a mesh statistics to/from a 3MF 2021-10-06 10:57:28 +02:00
YuSanka 47b54d5ce0 ObjectList: Fixed mouse click on the WarningIcon, when mesh wasn't repaired and isn't manifold. 2021-10-06 10:12:21 +02:00
YuSanka 9e2fa3cd4d Follow-up https://github.com/prusa3d/PrusaSlicer/commit/e2f2ed41720c73170c0e08f8650394d253cae973 and https://github.com/prusa3d/PrusaSlicer/commit/80844ca3374718af3c6bde05363d732221aeaf53 - Allow RichToolTips just under MSW 2021-10-05 16:45:54 +02:00
YuSanka 091f946340 Localization: Updated POT 2021-10-05 16:31:04 +02:00
YuSanka d6222cf8a8 SendSystemInfoDialog: Layout adjustments 2021-10-05 15:09:52 +02:00
YuSanka 80844ca337 RichTooltips for the buttons on a sidebar: Fixed wrong positioning of the tooltip when PrusaSlicer is on secondary display
Show a right triangle tip in the bottom right corner of the tooltip.
2021-10-05 13:36:32 +02:00
YuSanka 3e07d2e853 Changed conditions for the warning icon.
If mesh isn't manifold then always show the red "exclamation" icon
It mesh is manifold but was repaired then show the gray/white "exclamation" icon
2021-10-05 13:21:38 +02:00
YuSanka e2f2ed4172 Fix for #6218 - Button tooltip in the way
Use wxRichTooltip instead of wxTooltip for buttons on the bottom of a sidebar
2021-10-05 11:05:20 +02:00
YuSanka 577632d892 Check unsaved preset changes only if project is dirty and it wasn't saved 2021-10-04 16:20:46 +02:00
YuSanka d214e09400 Fix for #7040 - Missing auto slice after Undo / Redo of deletion of height range modifier 2021-10-04 15:33:32 +02:00
YuSanka 8c89abc9fb Fixed inconsistent modifier context menu in the right panel and in the 3d scene 2021-10-04 14:13:42 +02:00