Commit Graph
100 Commits
Author SHA1 Message Date
YuSanka 45ac53efa1 Code refactoring to reduce switch statements on ConfigOptionEnum<> templates 2021-03-26 19:01:10 +01:00
YuSanka 2c23e25497 DoubleSlider: fix for 1c2d264570 2021-03-26 13:34:37 +01:00
YuSanka 3a5360651d Added "Printable" menu item for multiple selection 2021-03-24 20:26:31 +01:00
YuSanka 8bc23c90fc Suppress to show Search window on the Plater using Ctrl+F shortcut, when we are at Preview mode 2021-03-24 11:32:33 +01:00
Oleksandra Yushchenko 4496e2a8ce Follow-up of 908c48ae6a -> Fixed update after switching tab after editing custom g-code in settings tabs (#6258) 2021-03-24 11:20:57 +01:00
YuSanka 991fa67fd1 OptionsSearcher improvements: Fixed a key for option() and groups_and_categories.
It contains "preset_type;opt_key" now. This key helps to avoid a collisions by using a same options key from different type presets.
Example: Option "elefant_foot_compensation" is in Print presets and SLA_printer presets
2021-03-24 11:14:07 +01:00
YuSanka 1c2d264570 Fix for https://github.com/prusa3d/PrusaSlicer/commit/f5d3866847b6a292709a0c6fba9d05b09fc4eaa4 2021-03-22 15:46:02 +01:00
YuSanka f5d3866847 Follow-up https://github.com/prusa3d/PrusaSlicer/commit/995512f2807d1e026533c814f6fabf655a7610ab DoubleSlider improvements:
Fixed a case when wipe tower is used to the end of print and there is one layer which is not marked in layers_times statistics
2021-03-22 11:47:05 +01:00
YuSanka 4602f40813 Next auto color change improvements 2021-03-19 11:11:46 +01:00
YuSanka 995512f280 Fix of #6232 - Layer preview number scale and print time problem.
Problem description:
When "Print Settings -> Multiple Extruders -> No sparse layer" is enabled, then "Smart" Wipe Tower is used for wiping.
As a result, each layer with tool changes is splited for min 3 parts: first tool, wiping, second tool ...
But vertical slider wasn't respect to this case.
2021-03-18 18:53:49 +01:00
YuSanka eda19a7e56 Fixed a crash after switch from Filament Settings Tab to some another, when "Custom G-code" category is active. 2021-03-18 18:53:49 +01:00
YuSanka a6cf840540 Auto color change improvements: Show info notification just ones, if there is new print 2021-03-17 17:11:03 +01:00
YuSanka 80b9a3c62b Fix of #6212 - Cannot select "New Project" after deleting models in saved project, continuing overwrites old project 2021-03-16 10:32:15 +01:00
Oleksandra Yushchenko e002f0066f Ys code refactoring (#6227)
* GUI_ObjectList code refactoring:
The MenuFactory structure contains functions related to the context menu and bitmaps used to different volume types.
The SettingsFactory structure contains functions to getting overridden options, its bundles and bitmaps used to setting categories.

Fixed bugs/crashes:
1. Add object -> Add Settings from 3D scene -> Right click on object => Part's Settings list instead of object's
   (Same behavior if something else but Object is selected in ObjectList)
2. Add settings to the part -> Change part type to the "Support Blocker/Enforcer" -> Settings disappears (it's OK) but =>
   Save Project -> Open project => Support Blocker/Enforcer has a settings
3. Add part for object -> Change type of part -> Change monitor DPI -> old type icon appears
4. Select all instances in ObjectList -> Context menu in 3D scene -> Add Settings -> Select some category -> Crash

* ObjectLayers: Fixed a crash on re-scaling, when some layer range is selected

* Fixed OSX build

* Added menu item "Split to Objects" for multipart objects

+ Fixed bug: Add 2 parts,
             Add some settings for one part
             Delete part without settings => Single part object without settings, but settings are applied for the object.

+ Next refactoring: use same menu for Plater and ObjectList
2021-03-15 10:04:45 +01:00
YuSanka 1569dad5de Auto color change: Fixed show/hide for the notification. 2021-03-15 09:54:24 +01:00
YuSanka 5f6253390f Implemented suggestion of the auto color change, if model looks like sign 2021-03-12 16:35:07 +01:00
YuSanka 7cb3e729ee Fixed #6182 - First line custom gcode not aligned left in the tool tip 2021-03-08 14:19:58 +01:00
YuSanka 28b92215c3 Follow-up https://github.com/prusa3d/PrusaSlicer/commit/409849d238718b75cf0c5ef264ce1df0cedc5c6e:
Added check for visibility for all loaded presets.
Added notification about this action.
 + PresetComboBox: Fixed update() function for physical printers, when some of related presets are invisible.
2021-03-02 12:19:49 +01:00
YuSanka 409849d238 Fixed loading of the project file with filament which is not installed for the selected printers
If loaded filaments are invisible/non-instaled, set them as visible
2021-03-01 16:36:05 +01:00
YuSanka 70fc0c232c Linux specific issue: DiffViewCtrl: Fixed scaling of the columns width 2021-03-01 16:01:53 +01:00
YuSanka 55c62887cc Fix of #5503 - Physical printer disappears from Slicer upon close of application 2021-02-25 20:36:23 +01:00
YuSanka 21b044b556 Fix of #5152 assert ""HasFlag(0x0020)"" failed in GetSelection(): must be single selection listbox
This assert was invoked by list_printer->GetSelection() because of list_printer was created with wxLB_MULTIPLE flag.
2021-02-25 04:03:26 -08:00
YuSanka 89f065b57e Fix of #5510: ctrlsub.cpp(231): assert "IsValid(n)" failed in GetClientData(): Invalid index passed to GetClientData()
BitmapComboBox: Use virtual OnSelect() on wxEVT_COMBO event
Don't save information about preset combobox type to the evt.SetInt(). This information can be received from BitmapComboBox::get_type() now.
2021-02-25 12:55:28 +01:00
YuSanka 88bd189047 Some code refactoring follow-up https://github.com/prusa3d/PrusaSlicer/commit/33aa6be7b7f3d8b81d6b948f9bd6841db10b61cf and https://github.com/prusa3d/PrusaSlicer/commit/92b1302a082b76de6693799ccdb7922617f21c50 2021-02-24 15:50:18 +01:00
YuSanka 18ac892ed6 OSX specific: Fix of https://github.com/prusa3d/PrusaSlicer/commit/f11e81517df6e0a796f0b0c08c6eca9ac6a64436 2021-02-24 15:03:34 +01:00
YuSanka d209c92c80 Merge remote-tracking branch 'origin/ys_auto_cp' 2021-02-24 14:33:31 +01:00
YuSanka ad55756257 Implemented Auto Color Print 2021-02-23 18:46:05 +01:00
YuSanka 671efb02c9 Fix of #6110 - Preview: View Menu/List placement incorrect
Use wxComboBox with wxCB_READONLY flag instead of wxChoice
2021-02-23 10:04:43 +01:00
YuSanka 03dee86071 ObjectList: After deleting volumes from the object, update the extruder color for the object from the last and only volume 2021-02-22 18:50:38 +01:00
YuSanka 204714d566 Fix a crash on printer presets switching between MM and SM printers:
1. DoubleSlider::Control : Update extruder colors before another updates for layers slider
2. GCodeViewer : Control count of extruders during the legend updating
2021-02-22 17:08:03 +01:00
YuSanka f11e81517d PresetComboBox: Fixed thin/wide_space_icon_width scale
+ Added border for the color_extruder bitmaps
2021-02-22 17:08:03 +01:00
YuSanka 791c191ea7 Fix of #6094 - Slicer crashes in MMU2S mode 2021-02-22 09:56:23 +01:00
YuSanka 349ce7fd50 Fix of #6056 - Purging Volumes dialog doesn't save pasted values 2021-02-17 14:37:25 +01:00
YuSanka 23b6a597a8 Fixed a bug with erase of the multiple instance selection in 3D-scene
+ Try to fix accidentally crash on Copy/Paste
2021-02-16 21:20:06 +01:00
YuSanka b166bd7845 Follow-up 6effa30322 : Fixed a crash of stand-along GcodeViewer
when open/close Preferences
2021-02-15 15:57:31 +01:00
YuSanka 2228c5e0bf Fixed localization for the message text 2021-02-12 14:29:22 +01:00
YuSanka e664100bf6 SPE-1103 Added menu items for the conversation of the volumes from/to meters
Related to #4521
2021-02-10 20:34:05 +01:00
YuSanka 3c37aed2f8 Fixed old (MSW specific) focus issue:
Description of issue:
When for some parameter set a value which is out of rage or inaccurate and than click to another parameter,
receive a warning message dialog with description of a problem.
After closing of this Dialog any button on settings tab doesn't work for first click.
Looks like after dialog is closed Notebook page loses a focus.
Workaround:
Use self-created WarningDialog (inherited from the wxDialog) instead of wxMessageDialog
2021-02-10 11:25:07 +01:00
YuSanka a86e7107a5 Added check for loaded STL file if it was saved in meters. Related to #4521 (Some files are imported in the wrong size) 2021-02-09 17:04:32 +01:00
YuSanka a1e49e7f8c Implemented #4931 - Added colored background for the Manipulation panel, if
option "Use colors for axes values in Manipulation panel" is enabled in Preferences -> GUI
+ Fix one more compilation warning in UnsavedChangesDialog.cpp
2021-02-09 16:04:03 +01:00
YuSanka e833e63c42 Fixed a crash on language changing
(DiffPresetDialog should get mainframe as a parent explicitly)
2021-02-09 09:56:19 +01:00
YuSanka ba479066b2 Fixed layout of the TreeCtrl for the Printer Settings Tab 2021-02-08 17:30:47 +01:00
YuSanka 76291936d7 UnsavedChangesDialog: Fixed warnings 2021-02-08 13:16:06 +01:00
YuSanka e7544ed0c4 Fix of #5888 - Pause Print M117 message not saved after reloading .3mf project 2021-02-05 19:39:28 +01:00
YuSanka f9451eaf81 Follow-up https://github.com/prusa3d/PrusaSlicer/commit/1fff5a624ceaa80bfb278fea9015618366f3d79b: Respect border color to the dark/light mode
+ Fixed issue with tooltips for PresetComboBoxes on Windows 2004
2021-02-05 13:26:23 +01:00
YuSanka d415c8ae8c MSW specific: GUI_ManipulatinPanel: Fixed rescaling of the system coordinate ComboBox 2021-02-04 10:17:22 +01:00
YuSanka 0baa92fab8 Localization: Added plural form for some phrases, updated POT 2021-02-03 21:30:38 +01:00
YuSanka 6846ba0b59 Localization: Fixed localization of some 3d-Scene notifications
+ Move a call of the load_language() before SplashScreen creation
2021-02-03 17:30:32 +01:00
YuSanka 65766c24f6 Localization: Updated UK dictionary
+ small fixes for RU dictionary
2021-02-03 17:30:32 +01:00
YuSanka 67500f13b1 Fix of #5202 - Fuzzy Search engine is too fuzzy
* changed evaluation coefficients inside fuzzy_match_recursive
 * don't add markers to the labels before it's used in fuzzy_match_recursive
 + follow-up https://github.com/prusa3d/PrusaSlicer/commit/78a3d8b63eb024f66a21274b828e5891b68f779c - added missed fix for one more line (use std::towlower instead of std::tolower for wchar_t) Problem was appearance on Cyrillic languages
2021-01-26 21:33:22 +01:00
YuSanka d9448c9f2a Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/ab3468a42057f75079f71345deb669c6ac22277d : Added missed icon for the DarkMode 2021-01-24 14:54:44 +01:00
YuSanka ab3468a420 Added missed icons for the DarkMode 2021-01-22 21:48:10 +01:00
YuSanka 79b7ccbb79 OSX specific, related to the wxWidgets 3.1.4: Fixed wrong UI-scaling
(wxWidgets 3.1.4 can binding of wxEVT_DPI_CHANGED now, so it was called msw_rescale() for most of the controls redundantly)

+ Fixed update of the DoubleSlider after changing of the system color
2021-01-22 21:44:15 +01:00
YuSanka 59017a7dae wxBitmapComboBox under OSX and wxComboBox under other platforms is used on Manipulation panel for coordinate space choice now.
+ Fix of warning on wxBitmap.SetWidth(): deleted meaningless from wxWidgets 3.0 code
2021-01-20 17:34:54 +01:00
YuSanka 1efa129b67 Fix of #5619 - Copying Item with Printable Property 2021-01-18 15:19:02 +01:00
YuSanka bcd920e639 Updated MO-file for RU dictionary 2021-01-14 10:27:19 +01:00
YuSanka 5b138cf04d Merge remote-tracking branch 'origin/dev' 2021-01-13 14:21:58 +01:00
YuSanka af6ef2cb8a Merge remote-tracking branch 'origin/master' into dev 2021-01-13 14:18:55 +01:00
YuSanka 0369caa9e1 Fix of #5163 and #5505 - Vertical cutting of the preset comboboxes on a sidebar 2021-01-12 14:54:58 +01:00
YuSanka 7a1574a853 Fix of #5720 - SL1 Printer Settings->Notes is not updated when switching tab 2021-01-11 13:11:35 +01:00
YuSanka 8e7958da12 Fix of #5698 - When editing presets, list items are always green even if values have changed compared to preset or defaults 2021-01-07 12:26:16 +01:00
YuSanka efd3002ea9 Fix of #5568 - Unselecting more than 10 copies stops at copy 10
But really bug was: incorrectly interrupted DnD.
2021-01-07 09:56:43 +01:00
YuSanka 3070e66aae Fixed black rects for extruder colors, when we load 3mf project with MM-printer profile and extruder colors is set to the filament colors
+ Fixed a bug with updating colors in extruder editors in ObjectList, when we use filaments colors for extruders and some filament profile is switched
2021-01-07 08:52:45 +01:00
YuSanka 939d08af19 Fix of #4532 - "Send G-Code to printer host" dialog box blanks out text on Linux 2021-01-06 12:24:00 +01:00
YuSanka 746729e4fa Update language PT-BR for PrusaSlicer 2.3.0-rc2 - Manually merged from https://github.com/prusa3d/PrusaSlicer/pull/5502/commits/0d7949653848fa9fa2c1e810491117bba21f3aa2
Thanks for @guipatriota
2021-01-06 10:56:22 +01:00
YuSanka 48c7673cc6 Fix of #5584 - Information text on startup logo 2021-01-05 14:26:10 +01:00
YuSanka f119b80341 Fix of #5672 - Dubious grammar when closing Physical Printer dialog 2021-01-04 19:03:34 +01:00
YuSanka c3f88db392 Fix of #5638 2021-01-04 18:05:20 +01:00
YuSanka 5845957c7d Fix of second part of #5531
From the Win 2004 preset combobox lose a focus after change the preset selection and that is why the up/down arrow doesn't work properly.
So, set the focus to the combobox explicitly.
2021-01-04 16:51:29 +01:00
YuSanka ad2adad434 localization: Updated dictionaries CZ, DE, ES, FR, IT, NL, PL 2021-01-04 10:48:05 +01:00
YuSanka c747502db9 Fix of #5517 "Unsupported Selection" error when copy pasting objects with modifiers... 2020-12-30 12:44:07 +01:00
YuSanka 6effa30322 Move text color selection from ButtonsDescription to Preferences dialog (related to #5489) 2020-12-30 12:04:59 +01:00
YuSanka 0331bcefd9 ObjectList: Smart update of the min height in respect to the items count.
Min 7 items and max 15 items
2020-12-30 11:00:02 +01:00
YuSanka 40fb39f5e1 Change the y_step for sidebar slider to fix strange layout of the sidebar 2020-12-29 19:04:38 +01:00
YuSanka e193a0e921 localization: Fixed one phrase 2020-12-22 17:24:29 +01:00
YuSanka 034ca8ef57 Fixed a checking of the description lines existence before setting new value for them 2020-12-22 16:23:53 +01:00
YuSanka 6c399052c6 Fixed a crash on copy/paste, when ObjectList has no selection. Related to #5517 2020-12-22 10:42:47 +01:00
YuSanka 738c115ec1 Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/9d34d350a52c94ad5ae9ff3e08cf8f523e18e748: Missed one more translation for category, when checking selection on the left panel
+ Fixed a typo in CS and ES dictionaries
2020-12-21 14:28:50 +01:00
YuSanka a19b5f2f3a Localization: Updated dictionaries CZ, DE, ES, FR, IT, NL, PL 2020-12-19 13:34:03 +01:00
YuSanka 22acf3602c localization: Updated PrusaSlicer.pot 2020-12-18 13:59:53 +01:00
YuSanka d49f85572b Added a missing translation macro 2020-12-18 13:28:24 +01:00
YuSanka 8849aa77dc Decrease min height for ObjectList (related to #5462) 2020-12-18 11:31:14 +01:00
YuSanka 240dc8b697 Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/19b52da2603a20562dcb147e7a94a750b055d4e0: Fixed scale for view toolbar on HDPI (GTK3 specific) 2020-12-18 11:27:28 +01:00
YuSanka 19b52da260 Fix of #5501 - 3D Editor / Layer View widget DPI regression (Linux GTK3 specific) 2020-12-18 08:40:17 +01:00
YuSanka b22a38d1d1 Fix of "cut off text for filament type" (Related to #5444) 2020-12-17 16:51:51 +01:00
YuSanka ddef084184 Localization: Updated CZ, DE, ES, FR, IT and PL dictionaries 2020-12-17 09:09:14 +01:00
YuSanka 19b7827511 Fix of #5103 and #4861 - ConfigWizard layout issues 2020-12-16 23:44:40 -08:00
YuSanka 64e68f418b Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/3eb63c93e1626348876dee23cab570d0e6964f1d:
If value for "Extrusion Multiplier" is out of range, and "NO" is selected in warning message dialog, then set previous value instead of max limit value
2020-12-16 20:14:47 +01:00
YuSanka 8b980d4b77 Localization: Updated PrusaSlicer.pot and CZ dictionary
+ Fixed some phrases.
2020-12-16 17:29:38 +01:00
YuSanka 3eb63c93e1 Follow-up to https://github.com/prusa3d/PrusaSlicer/commit/f37b9c4d515d7f50e91ea499be59315231e90cb4:
Fix for issues:
Issue 1:
1. Change "Extrusion multiplier" parameter,
2. Save edited preset.
3. Change "Extrusion multiplier" parameter -> preset wasn't marked as "modified"

Issue 2:
1. Change "Extrusion multiplier" parameter with out of range value
2. Push ENTER for the message dialog
3. Answer "Yes"
4. Same message dialog appears again
2020-12-16 13:11:07 +01:00
YuSanka f37b9c4d51 Set limits to the "extrusion_multiplier" value and show warning message, if out of range value was inputted 2020-12-15 21:21:09 +01:00
YuSanka c9da06e44a Fix for text color for the mode buttons under Linux with GTK2 (related to #5444) 2020-12-15 16:03:32 +01:00
YuSanka 8d4d6b6c89 UnsavedChangesDialog: Fixed default text color in respect to the system text color (Related to #5444) 2020-12-15 14:58:34 +01:00
YuSanka 62c23313be Suppress to change "inches" flag after conversion to the inches. 2020-12-15 13:57:30 +01:00
YuSanka 43581059ff Fix of #5450 - Wrong printer preset after loading 3mf project file when having multiple presets for one physical printer 2020-12-15 12:11:20 +01:00
YuSanka 8627c35057 Fix of #5472 - UI bug: profile edit controls hidden by scroll bars 2020-12-15 09:38:18 +01:00
YuSanka 0f11ff8525 Follow-up on https://github.com/prusa3d/PrusaSlicer/commit/fbf297819094958af2da1839dbdc8d59e6f4f795: Refresh Cut gizmo immediately,
when state of "inches" checkbox is changed.
+ Fixed update of Z value, when Cut gizmo is in mm
2020-12-14 09:06:19 +01:00
YuSanka 8bfb2a4eef Fix of #5315 - Height Slider heights are too squished
+ some code refactoring
2020-12-11 15:58:10 +01:00
YuSanka aaaa85c1f8 Fix of #5007 - "Reload from disk" causes objects converted to inches to revert to mm 2020-12-11 13:57:58 +01:00
YuSanka fbf2978190 Fix of #5008 - Cut tool uses mm when object is converted to inches
+ Localization: Updated MO for PT_BR
2020-12-10 08:31:24 +01:00