157 Commits

Author SHA1 Message Date
YuSanka
6ea3dc6c27 ImguiDoubleSlider: WIP: All data, related to Slider are in ImGuiControl now
+ code cleaning to avoid of use wxWidgets to render DoubleSlider
2024-04-24 10:54:12 +02:00
YuSanka
d06ef37df9 ImguiDoubleSlider: WIP: Set scale in respect to Retina displays
+ request one more frame for redraw, if value was changed with mouse wheel
 + some code cleaning
2024-04-24 10:54:12 +02:00
YuSanka
8e749734ff ImguiDoubleSlider: WIP: For vertical slider are added :
* actions buttons and theirs process
 * rendering of ticks and theirs info buttons
 * show label with estimated time on mouse moving

+ ImGuiWrapper::image_button is extended for highlight_on_hover parameter to enable/disable highlighting on the hover
+ Show and process some icon/buttons in respect to the application mode (if is Editor or Viewer)
2024-04-24 10:54:12 +02:00
YuSanka
ab9923eee6 ImguiDoubleSlider: WIP: Implemented "pure" ImGuiControl
+ For ImGuiControl implemented adding of callbacks for get_label and draw_scroll_line
2024-04-24 10:54:12 +02:00
YuSanka
a26d17d689 ImguiDoubleSliser: WIP: Some of code is ported from BambuStudio (state of 96707fc4b4b40c30b7e5610d2489ef283fe952a4)
* Code improvements :
    + added render_button()
    + added draw_hexagon()
2024-04-24 10:54:12 +02:00
YuSanka
a5322ef970 DoubleSlider: ImGui rendering (WIP) 2024-04-24 10:54:12 +02:00
YuSanka
3042b6d456 Fix for #10419 - Layer change colour dialog opens off screen in 2.6 2023-12-21 16:03:13 +01:00
ps_copyright
f32859c302 final copyright headers 2023-09-01 14:49:07 +02:00
YuSanka
096d10ef62 Fix for #10941 - Prusa 2.6.0 freezes when trying to change color 2023-08-07 15:30:44 +02:00
YuSanka
3c1008f226 Localization: Localization of units used for time and used filament estimation (part of #10568)
+ Added "ExtrusionRole.cpp" to localization/list.txt to revert localization for the extrusion roles
 + Updated POT
2023-05-26 12:44:36 +02:00
YuSanka
f9de995f9e Remove '_utf8' makro.
(Initially, it was used because of using of boost::format for localized lines. But now It's better to use format and formal_wxstr functions)

+ Fixed missed marks for localization
+ Added missed filed to localization to the list.txt
2023-03-23 22:55:38 +01:00
Vojtech Bubnik
fcb00680ab Follow-up to f342bfae4e3d09a2c6dbd873e0ed7c821988a897: 2022-11-07 16:09:45 +01:00
Vojtech Bubnik
acbc60f3e3 Better const correctness 2022-10-19 16:27:15 +02:00
YuSanka
066b567714 Using of wxWidgets 3.1.6 WIP:
* Create Cache of wxBitmapBundles instead of wxBitmaps
* Use wxBitmapBundles instead of wxBitmap for most of Widgets
* Use empty bitmabundles instead of wxNullBitmap for wxBitmapComboBoxes.
* Updated wxWidgets.cmake
* OSX specific: Discard BitmapComboBox overrides
+ some code cleaning
2022-07-29 11:21:54 +02:00
tamasmeszaros
fed317f27b Change std::nan("") to proper nan constants 2022-05-11 10:35:12 +02:00
Lukas Matena
09fe421fe8 Merge branch 'stable' (no conflicts fixed) 2022-04-27 22:24:13 +02:00
YuSanka
8a8d2d15b0 Fix for #8156 - Automatic color change for logo crashes PrusaSlicer with second object of 0.2mm height 2022-04-04 11:42:10 +02:00
Lukas Matena
aa2a8178f8 Fixed some compiler warnings 2022-03-31 16:42:15 +02:00
YuSanka
3505e5a290 Fix of leaking GDI resources on Win7 #8002:
- Code refactoring for draw_focus_rect.
- Use one PaintDC for rendering
- DoubleSlider::Control::Ruler refactoring
- Suppress to update ruler for horizontal slider
2022-03-04 09:27:29 +01:00
Oleksandra Yushchenko
e709840977
DoubleSlider: Fixed draw of the ruler for sequential print (#7854)
+ Fixed a condition for detection of sequential print (may caused a crash from #7263)
+ suppress to show ruler ticks when step was not detected
2022-02-02 13:22: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
enricoturri1966
6201dad245 Tech ENABLE_COLOR_CLASSES set as default 2022-01-14 08:19:00 +01:00
enricoturri1966
cd4094743e Tech ENABLE_COLOR_CLASSES - 1st installment -> Introduction of classes ColorRGB and ColorRGBA to unify color data definition and manipulation 2021-12-22 10:45:35 +01:00
YuSanka
27883caa08 Follow-up b3074ad2cc
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
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
enricoturri1966
b164271e10 #7368 - Limit count of gcode lines shown into vertical slider tooltip to prevent flickering of the tooltip 2021-11-29 09:12:44 +01:00
YuSanka
b3074ad2cc DoubleSlider: Added calculation of the new color for "ColorChange" 2021-11-18 14:28:58 +01:00
tamasmeszaros
5f19539df5 Obvious fixes to stupid warnings 2021-10-21 09:55:12 +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 cedfc5e3fb - 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
9f62aeabab DoubleSlider: Fixed a bug related to the unexpected mouse capture end
Steps to repro:
 1.Use left mouse button to move thumb of the DoubleSlider
 2.Click by right mouse button
 3.Thumb is moving even if you move the mouse out of the DoubleSlider
2021-09-23 16:54:40 +02:00
enricoturri1966
d52ee52098 Tech ENABLE_FIX_IMPORTING_COLOR_PRINT_VIEW_INTO_GCODEVIEWER set as default 2021-09-14 15:05:33 +02:00
enricoturri1966
d7eca05206 Removed 'Set auto color changes' menu item from GCodeViewer 2021-08-20 15:48:27 +02:00
YuSanka
37ba18a8c3 DoubleSlider: Init extruder sequence in respect to the extruders count 2021-08-12 12:40:14 +02:00
YuSanka
d6370a16fa DoubleSlider: Fix for #6756 - Cannot Color Change (M600) at height when MMU Painting
+ Fixed update for the ruler when "No sparce layer" option is enabled
2021-08-09 17:30:51 +02:00
YuSanka
1f131d130f DoubleSlider with MM-printer preset: When Object has "Paint-on segmentation", DoubleSlider has same behavior as with modifiers
+ MSW specific: Use BitmapComboBox instead of wxBitmapComboBox to DarkMode for extruder selectors
2021-08-09 13:38:48 +02:00
YuSanka
0bb5c2ef88 Auto color change: Fixed some cases:
* first layer is a little bit less than all another (like for elephant foot compensation)
* ignore small changes of the layer area
2021-07-30 11:16:30 +02:00
enricoturri1966
86da45eb66 Horizontal slider in preview to show always (and only) gcode lines indices 2021-07-29 13:28:07 +02:00
enricoturri1966
8ebb2e2a29 Fixed import of color print view from gcode files into GCodeViewer 2021-07-23 11:27:07 +02:00
enricoturri1966
5faac3c105 Tech ENABLE_VALIDATE_CUSTOM_GCODE set as default 2021-07-22 09:13:12 +02:00
enricoturri1966
b80fb40fcd Tech ENABLE_GCODE_LINES_ID_IN_H_SLIDER set as default 2021-07-22 08:35:21 +02:00
YuSanka
1378d2084a Fix of #6650 - show estimated print time on ruler is not working
+ Parent center of the MessageDialogs
2021-06-24 13:59:48 +02:00
YuSanka
4e59fd504e DoubleSlider: Fixed out of range assert 2021-06-21 14:30:28 +02:00
Oleksandra Yushchenko
fd071421cb
DarkMode for MSW (#6632)
* MSW specific: Dark Mode: First implementation

* Use menu instead of NoteBook

* Implemented MessageDialog
+ Fixed DarkMode for all dialogs and ColorPicker

* MSW DarkMode: Added missed updates for the switching between modes

* MSW DarkMode: Updated all existed context menus after switching of the mode
+ Added markers for the menu item witch is related to the selected tab

* Used wxFrame instead of wxDialog for SettingsDialog
(this change allow us to use menu bar in SettingsDialog)

+ fix for #6548 - Prusa Slicer 2.3.1 not activating non-modal settings window if settings window is minimized

* Implemented "Always use Dark mode colors" preference option

* Fixes for non_MSW build

* Next fixes for non-MSW builds

* Preferences: Fixed selection of the Settings Layout for non-MSW platforms
+ Updated DarkMode for colorpickers

* Windows DarkMode next fixes

* MSWDarkMode: Suppress to use system color to the PrusaSlicer
Select "Preferences -> Use Dark color mode (experimental)" to allow dark mode for the application

* Fixed MSW build

* MSWDarkMode: Upadteed color mode for ExtruderSequenceDialog and for dialogs related to the DoubleSlider

* Implemented Auto recreation of the PrusaSlicer when color mode is changed.

* Preferences: Added option "Set settings tabs as menu items (experimental)"
2021-06-18 19:46:04 +02:00
YuSanka
0b5ea8f429 Random extruder sequence for MMU.
Related to https://github.com/prusa3d/PrusaSlicer/issues/1866
2021-06-15 12:38:05 +02:00
Lukas Matena
4960b125c5 Fixed incorrect locales handling in the UI (Field, ObjectManipulation, etc) 2021-05-24 12:23:39 +02:00
YuSanka
6c47b15834 Follow-up of a5d5ceb30dfa0233c847c001c49a439057e3ffed - Fixed run on Windows 2021-05-18 12:32:37 +02:00
YuSanka
a5d5ceb30d DoubleSlider: Fixed ruler for sequential print of the object with different heights 2021-05-17 21:12:19 +02:00