Commit Graph

126 Commits

Author SHA1 Message Date
059e4f8cf1 Commented code for different icon for UpdatedItemsInfo Notification. 2021-11-15 13:54:02 +01:00
b3992ab35d Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Fixed imgui slider label 2021-11-12 07:56:47 +01:00
954538fdf0 Imgui now recognizes numpad enter key presses 2021-11-10 15:42:25 +01:00
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
869276aedb Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Changed background color of additional button and its icon 2021-11-08 13:43:53 +01:00
9752fb5810 Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Additional button, added to imgui float slider, using svg icon 2021-11-08 08:29:19 +01:00
f7662682c8 Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Modified ImGuiWrapper::slider_float() to create a compound widget where an additional button can be used to set the keyboard focus into the slider to allow the user to type in the desired value 2021-11-05 14:46:44 +01:00
5f19539df5 Obvious fixes to stupid warnings 2021-10-21 09:55:12 +02:00
5a1809579e Fixed unintended space after ImGui::SliderFloat in the hollow and sla supports gizmos. 2021-10-19 12:54:46 +02:00
6f3baf9262 Added tooltips to the support painting gizmo. Used multi-line text for the label "Highlight overhang by angle". 2021-10-18 10:57:57 +02:00
b2fc50c9d9 Small refactoring of showing tooltips in gizmos. 2021-10-18 10:56:50 +02:00
4103086a6e #7056 - Gizmo cut input set to use current locale 2021-10-04 11:12:29 +02:00
29aab3a426 PrintInfoNotificationLevel with icon 2021-10-01 15:03:40 +02:00
117485c562 Notifications: MMU segmentation icon 2021-08-12 15:29:33 +02:00
d735dbe147 Updated Items Info notification
Showing only when new object is added (typically loading projects).
All info in 1 notification.
2021-08-11 09:24:14 +02:00
b43f225ac8 Hint notification fixes and improvements
Hint notification bold (diff color) headline on multiple lines
Hint notification: Documentation link button.
Hints.ini header
hints logo - clippy 
disabled a preffered modes and techs for hints notifications
Empty hints array check. Fix of #6774.
2021-08-09 17:10:39 +02:00
aa17d54eda Update item info notification with icon 2021-07-29 16:52:08 +02:00
0d74502aeb Hint notification
Reads data from hints.ini. Has hyperlinks to highlight settings, toolbars and gizmos.
2021-07-29 13:20:50 +02:00
c732deeb91 Set imgui scrollbars' grab color to orange 2021-07-23 13:36:43 +02:00
e93c5d4f20 ImGui sliders clamping:
ImGuiWrapper::slider_float now clamps the value returned by imgui by default. Bare ImGui::SliderFloat
allows entering off-scale values when entered by keyboard, which is not nice. The protection can
be turned off by the last optional parameter.
2021-07-22 15:50:48 +02:00
7acaf58c15 Fix of asserting ImGui:
ImGui does not want the io flags to change in between NewFrame and EndFrame.
We did that - e.g. after a key down-key up combination with no render in between,
or when key down and mouse move event were processed with no render in between.
An assert was added in imgui to detect this between 1.75 and 1.83, which
made the issue visible.
Solution: only call the new_frame function in update_key_data/update_mouse_data
when imgui actually consumes the input. This forces immediate render so
EndFrame will be called.
2021-07-21 14:14:16 +02:00
9244e2ae32 Changes forced by imgui upgrade, updated imgui readme and
updated ImGuiWrapper::selectable function (It was a copy of ImGui::Selectable
with slight changes. The function was changed a lot in ImGui 1.83, I copied
the new version and reapplied the changes.)
2021-07-15 13:17:48 +02:00
8c3d098ff6 Project dirty state manager -> management of gizmos dirty state WIP 2021-04-15 15:19:03 +02:00
62c2095fe8 Print host upload notification with more info and cancel button 2021-03-12 10:32:26 +01:00
1834ebe981 Fixing Clang warnings 3 2021-02-08 17:52:29 +01:00
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
9d34d350a5 Localization: Update POT
+ Fixed translation for the "Extruder n" category on the Printer Settings Tab
 + Fixed a crash, when scrolling inside Search imGui with some localization (e.t. Russion)
2020-12-01 16:44:53 +01:00
cf42e9fc6e Fixed typo 2020-11-20 12:01:59 +01:00
d962d431c0 Localization:
* added missed phrases
* fixed some phrases
* updated POT-file and PO/MO-files for the CZ-translation
2020-11-12 21:35:39 +01:00
870aba8d15 Large notification buttons and icons 2020-11-09 15:15:30 +01:00
3ca3a544a8 New Export Finished notification showing path and opening containing folder. Fix of #4917. Fixed wrongly grayed eject button in File menu. Hopefully fix of ctrl shortcut of tooltips at sidebar. 2020-11-04 09:29:08 +01:00
1f4010ba4e Orange background for imgui buttons 2020-10-02 13:02:56 +02:00
067cde85f1 WIP Refactoring of exceptions:
1) All slicer's exceptions are now derived from Slic3r::Exception.
2) New exceptions are defined for slicing errors.
3) Exceptions are propagated to the Plater to show.
It remains to modify the slicing back-end to throw the new SlicingError
exceptions instead of std::runtime_error and to show the other exceptions
by a message dialog instead of a notification.
2020-09-14 18:03:22 +02:00
9f3e7617d8 Add Imgui popup for rotation gizmo under SLA 2020-09-10 14:03:30 +02:00
2455df4017 notifiactions: new icons + deleting old warnings&errors 2020-09-01 15:57:48 +02:00
41579db708 GCodeViewer -> Use only white texts in legend 2020-08-19 11:55:18 +02:00
cd45b78c48 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_viewer 2020-08-18 08:27:30 +02:00
1172dfcb40 #4639 - ImGuiWrapper: fixed calls to ImGui::Text() and ImGui::TextColored() 2020-08-18 07:55:53 +02:00
0c6f66eca6 GCodeViewer -> Tweaks in legend rendering 2020-08-06 13:36:21 +02:00
25c3552555 Fixed conflicts after merge with master 2020-08-04 09:58:19 +02:00
b3f8ae5ca7 Notifications & warning dialog
notifications
dialog with warnings produced by slicing is shown before exporting
2020-08-03 15:49:25 +02:00
69a0a1c96e Fixed conflicts after merge with master 2020-08-03 08:56:58 +02:00
a29b00a0b4 Use ImGui::TextColored() 2020-08-03 08:28:43 +02:00
2dee3abea0 Revert titles in legend dialog to previous format 2020-07-30 14:15:00 +02:00
48ae8dc9a2 Modal estimated printing time dialog
Fixed conflicts after merge with master
2020-07-27 14:53:17 +02:00
18594261d2 Added handling of mouse wheel events to ImGuiWrapper 2020-07-27 12:18:21 +02:00
51f0fd8912 GCodeViewer -> Added visualization of percentage in estimated printing time dialog 2020-07-20 09:45:49 +02:00
431cfcc671 GCodeViewer -> Reworked layout of imgui dialog for estimated printing times 2020-07-09 15:57:35 +02:00
73b885fc37 GCodeViewer -> Added imgui dialog for estimated printing times 2020-07-08 13:33:50 +02:00
4348b177d6 Added processing of a wxEVT_SYS_COLOUR_CHANGED event.
Deleted scale from ImGuiWrapper::load_svg(), because it's no needed and it makes icons bad scaled on Retina displays
2020-05-21 14:18:57 +02:00