Commit Graph

113 Commits

Author SHA1 Message Date
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
YuSanka
bef0e5007c Search: 1.Select first item in the search list by default
2. Show "Search in English" checkbox only, when Slicer is localized
3. Suppress search window hiding when leave the 3D-scene
2020-05-07 21:53:17 +02:00
YuSanka
ba71189925 Added missed include for the OSX build 2020-05-06 21:29:51 +02:00
YuSanka
f5bb831c7b Search:
1. To the imGui Dialog added icons instead of settings type
2. Fixed a search trough the options with # symbol in opt_key
3. Deleted "Type" checkbox from the Search Windows and added "Search in English" checkbox (but without implementation for this moment)

Layouts:
1. Fixed a visibility of the "Switch to Settings" toolbar icon for the old layout mode
2020-05-06 20:51:50 +02:00
YuSanka
a0ef2a3cdb Implemented workaround for the mouse wheel in Search Window and Undo/Redo lists on the Plater
Workaround is used because of ImGui::GetIO().MouseWheel returns zero always!
2020-04-27 16:00:54 +02:00
YuSanka
4674cec006 Search: Code cleaning
+ Reverted "Plater" tab to the Settings Notepad
2020-04-24 11:01:14 +02:00
YuSanka
2d7f3fa6ba Search: Implemented SearchDialog.
Search window on Plater: set flag SelectAll for search line
2020-04-22 15:46:23 +02:00
YuSanka
2b3b8e85d9 Search: Implemented "Option type" checkbox for imGui window on Plater
+ code refactoring
2020-04-20 21:54:46 +02:00
YuSanka
372dcb582b Search: Implemented cursor movement inside SearchWindow on Plater 2020-04-20 17:37:03 +02:00
YuSanka
5996e3a0ec Implemented cursor movement inside SearchComboPopup
+ Added checkboxes for editing of the option's name (include "Group"/"Category" or not)
+ some code refactoring
2020-04-14 17:54:15 +02:00
YuSanka
5fbc5e6c5a Search: Set focus on search line in popup control on Plater 2020-04-08 21:03:58 +02:00
YuSanka
e294eac44b Added code for deactivating of search toolbar item
+ invalidated its unused callbacks.

 + ImGui::Selectable function is copied to InGuiWrapper.cpp and a little beat modified to change a label text, when item is hovered
2020-04-01 15:28:07 +02:00
YuSanka
8b0ae2ce18 Implemented Search on Plater, usint imGui 2020-03-28 19:39:24 +01:00