Commit Graph

125 Commits

Author SHA1 Message Date
enricoturri1966
b35bbc7add Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Fixed imgui slider label 2021-11-12 07:56:47 +01:00
enricoturri1966
9fcbaa0b25 Imgui now recognizes numpad enter key presses 2021-11-10 15:42:25 +01:00
YuSanka
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
enricoturri1966
8e76324ad9 Tech ENABLE_ENHANCED_IMGUI_SLIDER_FLOAT - Changed background color of additional button and its icon 2021-11-08 13:43:53 +01:00
enricoturri1966
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
enricoturri1966
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
tamasmeszaros
be11f7613c Obvious fixes to stupid warnings 2021-10-21 09:55:12 +02:00
Lukáš Hejl
902b02e189 Fixed unintended space after ImGui::SliderFloat in the hollow and sla supports gizmos. 2021-10-19 12:54:46 +02:00
Lukáš Hejl
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
Lukáš Hejl
d1614b7469 Small refactoring of showing tooltips in gizmos. 2021-10-18 10:56:50 +02:00
enricoturri1966
86a9933051 #7056 - Gizmo cut input set to use current locale 2021-10-04 11:12:29 +02:00
David Kocik
0fcbc006cb PrintInfoNotificationLevel with icon 2021-10-01 15:03:40 +02:00
David Kocik
2883c0eb28 Notifications: MMU segmentation icon 2021-08-12 15:29:33 +02:00
David Kocik
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
David Kocik
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
David Kocik
a22d6e920e Update item info notification with icon 2021-07-29 16:52:08 +02:00
David Kocik
bc8ecff631 Hint notification
Reads data from hints.ini. Has hyperlinks to highlight settings, toolbars and gizmos.
2021-07-29 13:20:50 +02:00
enricoturri1966
692d0841d5 Set imgui scrollbars' grab color to orange 2021-07-23 13:36:43 +02:00
Lukas Matena
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
Lukas Matena
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
Lukas Matena
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
enricoturri1966
19bf72fdcf Project dirty state manager -> management of gizmos dirty state WIP 2021-04-15 15:19:03 +02:00
David Kocik
9a2b47f5da Print host upload notification with more info and cancel button 2021-03-12 10:32:26 +01:00
Lukas Matena
f968cfd2d5 Fixing Clang warnings 3 2021-02-08 17:52:29 +01:00
Vojtech Bubnik
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
YuSanka
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
Enrico Turri
5150d80128 Fixed typo 2020-11-20 12:01:59 +01:00
YuSanka
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
David Kocik
75cd39ac9f Large notification buttons and icons 2020-11-09 15:15:30 +01:00
David Kocik
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
enricoturri1966
9de63936b8 Orange background for imgui buttons 2020-10-02 13:02:56 +02:00
Vojtech Bubnik
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
tamasmeszaros
557b51db59 Add Imgui popup for rotation gizmo under SLA 2020-09-10 14:03:30 +02:00
David Kocik
142d3ec325 notifiactions: new icons + deleting old warnings&errors 2020-09-01 15:57:48 +02:00
enricoturri1966
54c2561bcc GCodeViewer -> Use only white texts in legend 2020-08-19 11:55:18 +02:00
enricoturri1966
f8360fcaf8 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_gcode_viewer 2020-08-18 08:27:30 +02:00
enricoturri1966
3e3bc1dc12 #4639 - ImGuiWrapper: fixed calls to ImGui::Text() and ImGui::TextColored() 2020-08-18 07:55:53 +02:00
enricoturri1966
44ce3a2730 GCodeViewer -> Tweaks in legend rendering 2020-08-06 13:36:21 +02:00
enricoturri1966
40febf0fb1 Fixed conflicts after merge with master 2020-08-04 09:58:19 +02:00
David Kocik
0c38f234d0 Notifications & warning dialog
notifications
dialog with warnings produced by slicing is shown before exporting
2020-08-03 15:49:25 +02:00
enricoturri1966
a2a64b5577 Fixed conflicts after merge with master 2020-08-03 08:56:58 +02:00
enricoturri1966
af6c85f114 Use ImGui::TextColored() 2020-08-03 08:28:43 +02:00
enricoturri1966
c2a78775f1 Revert titles in legend dialog to previous format 2020-07-30 14:15:00 +02:00
enricoturri1966
2b2091d46c Modal estimated printing time dialog
Fixed conflicts after merge with master
2020-07-27 14:53:17 +02:00
enricoturri1966
c6066ab459 Added handling of mouse wheel events to ImGuiWrapper 2020-07-27 12:18:21 +02:00
enricoturri1966
6b14407e6a GCodeViewer -> Added visualization of percentage in estimated printing time dialog 2020-07-20 09:45:49 +02:00
enricoturri1966
947a58bf61 GCodeViewer -> Reworked layout of imgui dialog for estimated printing times 2020-07-09 15:57:35 +02:00
enricoturri1966
32e5d73a53 GCodeViewer -> Added imgui dialog for estimated printing times 2020-07-08 13:33:50 +02:00
YuSanka
7df6be1e45 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
YuSanka
9170ab7d6e Search: Use wxDataViewCtrl instead of wxListBox.
Added icons as a markers of settings type
For slDlg settings layout mode added process of "Ctrl+F" shortcut
2020-05-15 15:47:15 +02:00