Commit Graph

127 Commits

Author SHA1 Message Date
751b04a2c1 Fixed the layout of the painting gizmos after the edit icon for sliders was added. 2021-11-17 11:44:38 +01:00
74e730149b Commented code for different icon for UpdatedItemsInfo Notification. 2021-11-15 13:54:02 +01:00
b35bbc7add Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Fixed imgui slider label 2021-11-12 07:56:47 +01:00
9fcbaa0b25 Imgui now recognizes numpad enter key presses 2021-11-10 15:42:25 +01:00
e1104626de 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
8e76324ad9 Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Changed background color of additional button and its icon 2021-11-08 13:43:53 +01:00
626a4a8883 Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Additional button, added to imgui float slider, using svg icon 2021-11-08 08:29:19 +01:00
2cfcc63c58 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
be11f7613c Obvious fixes to stupid warnings 2021-10-21 09:55:12 +02:00
902b02e189 Fixed unintended space after ImGui::SliderFloat in the hollow and sla supports gizmos. 2021-10-19 12:54:46 +02:00
d27b6b6b57 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
d1614b7469 Small refactoring of showing tooltips in gizmos. 2021-10-18 10:56:50 +02:00
86a9933051 #7056 - Gizmo cut input set to use current locale 2021-10-04 11:12:29 +02:00
0fcbc006cb PrintInfoNotificationLevel with icon 2021-10-01 15:03:40 +02:00
2883c0eb28 Notifications: MMU segmentation icon 2021-08-12 15:29:33 +02:00
7ce1a2dd65 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
c885e5c9bb 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
a22d6e920e Update item info notification with icon 2021-07-29 16:52:08 +02:00
bc8ecff631 Hint notification
Reads data from hints.ini. Has hyperlinks to highlight settings, toolbars and gizmos.
2021-07-29 13:20:50 +02:00
692d0841d5 Set imgui scrollbars' grab color to orange 2021-07-23 13:36:43 +02:00
73ea766b86 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
f387a354ba 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
c9f45f3d61 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
19bf72fdcf Project dirty state manager -> management of gizmos dirty state WIP 2021-04-15 15:19:03 +02:00
9a2b47f5da Print host upload notification with more info and cancel button 2021-03-12 10:32:26 +01:00
f968cfd2d5 Fixing Clang warnings 3 2021-02-08 17:52:29 +01:00
5aa4501d23 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
4461d65b4e 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
5150d80128 Fixed typo 2020-11-20 12:01:59 +01:00
5d2a974886 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
75cd39ac9f Large notification buttons and icons 2020-11-09 15:15:30 +01:00
34ea49cb91 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
9de63936b8 Orange background for imgui buttons 2020-10-02 13:02:56 +02:00
f58ee46687 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
557b51db59 Add Imgui popup for rotation gizmo under SLA 2020-09-10 14:03:30 +02:00
142d3ec325 notifiactions: new icons + deleting old warnings&errors 2020-09-01 15:57:48 +02:00
54c2561bcc GCodeViewer -> Use only white texts in legend 2020-08-19 11:55:18 +02:00
f8360fcaf8 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_viewer 2020-08-18 08:27:30 +02:00
3e3bc1dc12 #4639 - ImGuiWrapper: fixed calls to ImGui::Text() and ImGui::TextColored() 2020-08-18 07:55:53 +02:00
44ce3a2730 GCodeViewer -> Tweaks in legend rendering 2020-08-06 13:36:21 +02:00
40febf0fb1 Fixed conflicts after merge with master 2020-08-04 09:58:19 +02:00
0c38f234d0 Notifications & warning dialog
notifications
dialog with warnings produced by slicing is shown before exporting
2020-08-03 15:49:25 +02:00
a2a64b5577 Fixed conflicts after merge with master 2020-08-03 08:56:58 +02:00
af6c85f114 Use ImGui::TextColored() 2020-08-03 08:28:43 +02:00
c2a78775f1 Revert titles in legend dialog to previous format 2020-07-30 14:15:00 +02:00
2b2091d46c Modal estimated printing time dialog
Fixed conflicts after merge with master
2020-07-27 14:53:17 +02:00
c6066ab459 Added handling of mouse wheel events to ImGuiWrapper 2020-07-27 12:18:21 +02:00
6b14407e6a GCodeViewer -> Added visualization of percentage in estimated printing time dialog 2020-07-20 09:45:49 +02:00
947a58bf61 GCodeViewer -> Reworked layout of imgui dialog for estimated printing times 2020-07-09 15:57:35 +02:00
32e5d73a53 GCodeViewer -> Added imgui dialog for estimated printing times 2020-07-08 13:33:50 +02:00