1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-12 08:14:26 +00:00
Commit Graph

5051 Commits

Author SHA1 Message Date
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
Lukas Matena 78a3d8b63e Fixed ASCII folding for non-foldable non-ASCII characters
Problem: Add an object, name it using cyrilic, Slice, click Export: the proposed name is mangled. Affects all platforms, 2.2.0 was fine.

Cause: It is mangled during ASCII folding, which was broken with 28c0880 when it was generalized to be used from the fuzzy matcher.
    fold_to_ascii(wchar_t c, char *out) relies on narrowing char = wchar_t assignment, the old one used std::back_insert_iterator<std::wstring>.
    It is thus unable to leave a character alone even when it should (it should, right?).

Solution:
    1. Typed the fold_to_ascii function so it works on wchar_t only, which should mimic the old behaviour.
    2. Changed the respective call in fts_fuzzy_match.h. That function also works with wide char C-strings.

Cleanup:
    1. Removed the unused fold_utf8_to_ascii(const char *src) overload to avoid code duplication.
    2. Untemplated the fold_to_ascii(wchar_t c, std::back_insert_iterator<std::wstring>& out) function, it was never called with a different type.
    3. The function is now static in ASCIIFolding.cpp, nobody else needs to know.
2020-12-21 10:31:37 +01:00
Lukas Matena 1f5ac7d2f7 Fix of a crash on startup when creating physical printer profiles from 2.2 configs (#5513, #5074)
The issue is that opening the wxMessageDialog in GUI_App::check_printer_presets  fires wxEVT_IDLE event (on Linux at least).
At that point it is already bound to our lambda which will in turn call post_init prematurely.
The solution is to move the Bind at the very end of the initialization. The post_init that it calls assumes that init has been finished anyway.
2020-12-21 10:27:35 +01:00
David Kocik 593c397b19 Missing init() call at notification render 2020-12-19 09:22:40 +01:00
David Kocik b5de1456a0 Keyboard shortcut at notification hover - eject sd 2020-12-18 15:48:59 +01:00
Lukas Matena b0115dca60 Fixed encoding issue in ConfigWizard on Windows (#5422) 2020-12-18 15:35:30 +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
enricoturri1966 d791720b5e Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-12-18 09:03:45 +01:00
enricoturri1966 156019d9d0 Fixed color of shells in preview 2020-12-18 09:03:18 +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
Lukas Matena 5bd1a57650 Bumped up version number to 2.3.0-rc1 2020-12-17 18:07:35 +01:00
YuSanka b22a38d1d1 Fix of "cut off text for filament type" (Related to #5444) 2020-12-17 16:51:51 +01:00
enricoturri1966 ce32d68368 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-12-17 11:41:54 +01:00
enricoturri1966 b8fc1d3173 GCodeViewer - Fixed visualization of time estimates for silent mode 2020-12-17 11:41:41 +01:00
david kocik b1095adc18 follow up of commit c9da06e44a 2020-12-17 09:51:45 +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
David Kocik 99747f8f25 Changed requested time of rendering for timed notification to full duration. Commented unused code. 2020-12-16 17:43:51 +01:00
Lukas Matena 20aa8d65bf Fix through Netfabb notification - remove 'undo' hypertext for now and
refuse to fix when a gizmo is opened (because of missing updates)
This is a follow-up of 1249fdb
2020-12-16 17:33:55 +01:00
YuSanka 8b980d4b77 Localization: Updated PrusaSlicer.pot and CZ dictionary
+ Fixed some phrases.
2020-12-16 17:29:38 +01:00
Vojtech Bubnik 1dae057f15 Some refactoring of the fade out of notifications:
1) Use different wxWidgets call to get current time on Windows vs Unix
   for efficiency reasons.
2) Don't call this function multiple times in a single function, it is
   both expensive and not correct: One shall work with the same timestamp.
3) Added missing unbind of the new timer.
2020-12-16 16:15:58 +01:00
Vojtech Bubnik 08c4f674f7 Disabled "error" outputs
1) they should have been trace and
2) likely they should have been only enabled in debug mode and only
   through conditional compilation
2020-12-16 14:40:56 +01:00
David Kocik 3ae40139b3 render timer 2020-12-16 14:15:12 +01:00
David Kocik 0592d15c50 render timer draft 2020-12-16 14:15:12 +01:00
Vojtech Bubnik 4d459f37de Merge branch 'lm_230beta3_fixes' 2020-12-16 13:51:09 +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
enricoturri1966 52e0e5b8cc #5481 - Legend keeps last time estimator mode selected 2020-12-16 12:14:57 +01:00
Vojtech Bubnik 8f04d0e0e2 Reverted escaping of ampersand where the escaping was not needed
/ lead to errors.
2020-12-16 11:46:27 +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
Vojtech Bubnik 0ad3a63a3b Merge branch 'master' of https://github.com/Prusa3D/PrusaSlicer 2020-12-15 15:15:46 +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
Vojtech Bubnik 20f5b7a7cd When activating the PrusaSlicer main window, focus the Plater 3D view
or G-code preview if it is marked as Active.
Fixes 3Dconnexion not work directly after importing stl (focus problem ?) #5141
Keep your fingers crossed that it will not break something else.
2020-12-15 15:14:59 +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
Vojtech Bubnik aa8f97fce2 Fix of 3DConnexion 3D SpaceMouse Jumpy Pan moves on Linux #5233
Also improved error reporting on Linux about the 3DConnexion device
access issues.
2020-12-15 14:27:07 +01:00
YuSanka 62c23313be Suppress to change "inches" flag after conversion to the inches. 2020-12-15 13:57:30 +01:00
Vojtech Bubnik a13b35ce92 Support for HiDPI in OpenGL on Linux / GTK3.
wxGTK3 HiDPI support seems to emulate what OSX does quite closely,
thus the changes are relatively minimal.

Also fixed an ugly rounding issue when populating the ImGUI font map
with image thumbnails.

Fixes Gtk3 issue on 4k+ screens #4135
Fixes HiDPI screens with Wayland on Fedora 30 cause Plater view to be too small. #3245
2020-12-15 12:14:38 +01:00
enricoturri1966 82fe571cdc Give focus to 3D scene when activating any gizmo to allow related imgui dialogs to receive keyboard input 2020-12-15 10:57:16 +01:00
enricoturri1966 3f44f8177d Disable [Perform cut] button in Cut Gizmo dialog when the value of Z is not valid 2020-12-15 10:44:51 +01:00
YuSanka 8627c35057 Fix of #5472 - UI bug: profile edit controls hidden by scroll bars 2020-12-15 09:38:18 +01:00
enricoturri1966 4911b36bfd #5470 - Fixed switching camera views with alphanumeric row on a czech keyboard 2020-12-15 09:21:09 +01:00
Lukas Matena acb7d66577 Linux locales detection: reject unexpected formatting 2020-12-14 22:59:11 +01:00
Vojtech Bubnik b9bdfd26e3 Linux locales detection: A little refactoring 2020-12-14 22:59:02 +01:00
Lukas Matena 1249fdb71d Remove custom supports/seams after mesh repair
The repair can remove some of the triangles, so the custom data would make no sense.
This will hopefully fix #5458

Also, show a notification with a hyperlink to undo just before the repair.
2020-12-14 22:59:02 +01:00
David Kocik 159dde511e Changed condition for showing Open new instance item in dock icon menu (mac). Fix of #5463. 2020-12-14 19:26:25 +01:00
Vojtěch Bubník cbb306c86a Merge pull request #5466 from wavexx/include_atomic
Include <atomic> for std::atomic where needed
2020-12-14 18:29:13 +01:00
Vojtech Bubnik fef729b75a Follow-up to c34b683970
Fix of Slic3r::GUI::format/format_wxstr() for wxString&&
2020-12-14 12:23:29 +01:00
Vojtech Bubnik c34b683970 Fix of Slic3r::GUI::format/format_wxstr() for non-const wxString references.
Vojtech seemingly does not understand perfect forwarding:
Why Slic3r::internal::format::cook(T&& arg) is taken for non-const wxString reference?
2020-12-14 12:06:39 +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