Commit Graph

29 Commits

Author SHA1 Message Date
bubnikv
49c1a4ddbb Improvement in the subtitution information dialog. 2021-08-13 13:49:43 +02:00
YuSanka
6047c41fe7 InfoDialog: Improvements
* Fixed localization
* Substitutions are aligned in table
2021-08-13 13:40:47 +02:00
YuSanka
dad7e8cf9b Substitutions : Implemented InfoDialog 2021-08-13 13:30:50 +02:00
Lukas Matena
dd67e645ae Restored info icon replaced by mistake 2021-08-11 16:17:28 +02:00
YuSanka
0829590309 MSW specific: Fixed a typo caused ignoring ENTER for TextControls in Settings Tabs
+ Added Info icon for MessageDialog
2021-08-10 15:10:37 +02:00
YuSanka
20853d5922 MessageDialog: Set html page size respecting to text size
+ Fixed layout of the unit in "Height ranges" panel
2021-08-06 15:08:11 +02:00
Lukáš Hejl
6d0287874d Fixed compilation on Linux 2021-06-30 08:56:35 +02:00
Oleksandra Yushchenko
a41a214584 MSW specific: Implementation of the own notebook control
* MSW specific: First implementation of the Notebook control to support Dark/Light color modes

* MSW specific: Set mode sizer to the Notebook control.

* MSW specific: Added icons to the Notepad control
 + There is no need to restart application after the changing of the color mode

* Fixed non-MSW build

* Updated color for SavePresetDialog
+ Added wrapper to wxMessageBox for mom-MSW platforms
2021-06-29 16:23:45 +02:00
YuSanka
0f6182d5a6 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
Oleksandra Yushchenko
ffd33d6494 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
a5d6299c20 Fixed old (MSW specific) focus issue:
Description of issue:
When for some parameter set a value which is out of rage or inaccurate and than click to another parameter,
receive a warning message dialog with description of a problem.
After closing of this Dialog any button on settings tab doesn't work for first click.
Looks like after dialog is closed Notebook page loses a focus.
Workaround:
Use self-created WarningDialog (inherited from the wxDialog) instead of wxMessageDialog
2021-02-10 11:25:07 +01:00
Lukas Matena
8a36916256 Use monospace font in placeholder parser error messages (Linux fix)
Previous implementation did not use monospace font on Linux. According to a note
from @wavexx in ba7f39a: "wxSYS_ANSI_FIXED_FONT use the same as DEFAULT in wxGtk".
This commit uses the same workaround by actually loading the font from GUI_App.
2021-01-04 14:21:24 +01:00
Vojtech Bubnik
1b7cbd2c36 Further improvement error reporting with buggy custom G-code sections #1516
1) The macro-processor sanitizes the source code line for invalid UTF-8
   characters. Ideally these invalid characters would be replaced with ?,
   they are just dropped as of now. Better than showing an empty string
   when converting to wxString though.
2) G-code export collects full error message for 1st occurence of an error
   for each custom G-code block.
3) The composite error message now displays the errors collected in 2).
4) The error window is now scaled bigger and the Slicer logo is smaller
   if the text is to be rendered with monospaced font, as the monospaced
   text will not be word wrapped.
2020-12-03 12:50:24 +01:00
Vojtech Bubnik
a3c0d013b2 Improvement of Improve error reporting with buggy custom G-code sections #1516
Errors in the file output templates are reported in mono-spaced font,
so that the arrow character ^ is displayed at the right column
pointing to the offending spot.
2020-12-03 11:03:16 +01:00
Lukas Matena
48006e50d4 Fix of #3775 - wrong background color in ErrorDialog on macOS Sierra 2020-03-05 13:21:26 +01:00
YuSanka
82bb5be1f6 To fix blurred icons under OSX there is implemented PresetBitmapComboBox, derived from wxBitmapComboBox,
which now will be used for preset choosers on sidebar a preset tabs.

+ for BitmapCache class added m_scale used for correct scaling of SVG images on Retina displays

+ some code clearing from unused functions or function's parameters
2020-01-31 16:57:45 +01:00
bubnikv
95041ea550 WIP: Renaming to PrusaSlicer.
Removed the obsolte icons.
2019-05-13 12:13:28 +02:00
YuSanka
b6f2159cbd Fixed app name interpolation for : GUI_App, MainFrame, MsgDialog, Preferences, Tab and UpdateDialogs
+ added edit_tooltip(), wich replaces Slic3r for SLIC3R_APP_KEY
2019-04-26 10:54:18 +02:00
YuSanka
d6ed85b61f Added _fiction_ resizing for correct MainFrame rendering after DPI changed_object
+ Added a calculation of a empty bitmaps inside presets in respect to em_unit (to avoid assert)
 + Added scaling for PrintHostDialogs and MsgDialog
 + some code refactoring
2019-04-23 16:33:06 +02:00
Vojtech Kral
b7a3f8de30 Fix SVG & bitmap scaling on Mac depending on Retina scaling 2019-04-09 15:16:10 +02:00
YuSanka
8dc3dc3d4b Icon updating for all application 2019-04-08 11:10:57 +02:00
YuSanka
270281a601 Some _cosmetic_ fixes :
+ Set wxDEFAULT_DIALOG_STYLE for MsgDialog
+ Changed Msg text before language changing
2019-03-28 16:32:19 +01:00
Vojtech Kral
a11a307bcc MsgDialog: Make resizable 2019-03-14 14:54:12 +01:00
Vojtech Kral
71becb3461 Fix HiDPI in Bonjour Dialog 2019-03-14 14:46:31 +01:00
bubnikv
97ec307b2c Replaced the static text control in error dialog with HTML control,
which supports copying of the text into clipboard.
Removed the "copy to clipboard" button from the error dialog.
2019-02-22 11:13:48 +01:00
YuSanka
369cda4cd3 Added scaling for more some dialogs
+ Set size for mode buttons
2019-02-11 14:14:35 +01:00
Vojtech Kral
377ce3d74c Http & ErrorDialog: Improve error reporting 2018-12-18 18:50:37 +01:00
bubnikv
91ac484405 Removed some obsolete Perl bindings.
Removed libslic3r from the default include paths for all modules but
libslic3r. Now headers from libslic3r need to be included with an
explicit path (libslic3r/libslic3r.h etc)
Split the localization macros into I18N.{cpp,h}
2018-11-26 14:41:58 +01:00
bubnikv
1260b8deb3 WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links
libslic3r only. No wxWidgets are allowed to be used from Perl starting
from now.
2018-09-19 11:02:24 +02:00