Commit Graph
100 Commits
Author SHA1 Message Date
YuSanka 8448d1a1dc OSX specific : Set top border for the mode buttons, when settings pages has new layouts
(when tabs bar is hidden)

+ Code cleaning for OG_CustomCtrl (delete unused input parameter from the draw_blinking_bmp())
2020-11-06 16:24:03 +01:00
YuSanka 1492bc9cd5 Localization : Next phrases corrections and update for PrusaSlicer.pot 2020-11-06 12:14:19 +01:00
YuSanka a131217ada Added missed parent for the SysInfoDialog
see https://github.com/prusa3d/PrusaSlicer/commit/f0a339758b157d4c8a13f38e1bbb27c4dc28c460
2020-11-05 22:19:48 +01:00
YuSanka ed2f03ec79 Localization:
Some phrases are corrected in the code
The POT-file is updated
2020-11-05 22:17:49 +01:00
YuSanka f0a339758b Fixed a Dialog position under OSX
Always set parent for the Dialog, if we want to see the Dialog in the same display as a parent.
Dialog will be shown in the primary monitor otherwise.

+ fixed a draw of the canvas legend when we move application between Retina and non-Retina displays
2020-11-05 11:53:16 -08:00
YuSanka ea5fdcd7b1 Removed cog icon from the horizontal slider.
+ Shortcut "Shift+G" works from the Preview canvas now (not just from the focused slider as before)
2020-11-04 07:30:33 -08:00
YuSanka 11ee0cc2cc Hot-fix for my last commit (https://github.com/prusa3d/PrusaSlicer/commit/d576c029bdbbe1adbefb1f34f14adab8020aee32) 2020-11-04 13:14:57 +01:00
YuSanka d576c029bd CustomCtrl : fixed correction of the CustomCtrl's line height in respect to the height of the inside controls (fields or widgets)
Issue was appeared on the Ubuntu 20.04
2020-11-04 10:17:32 +01:00
YuSanka 4d7b5d4451 "Sequential slider applied only to top layer" parameter from the Preferences is applied just for the horizontal slider now 2020-11-03 15:45:23 +01:00
YuSanka 1c1b1bc019 Custom control : Fixed un-hovering for labels, which work as a hyperlinks 2020-11-03 13:40:49 +01:00
YuSanka 0a3109030e PhysicalPrinterDialog : fixed layout in update() 2020-11-02 22:04:40 +01:00
YuSanka 186d408cf4 Big code cleaning
Deleted all unused code
2020-11-02 06:48:30 -08:00
YuSanka a87ec980a7 Hot fit for last commit : use "en" language marker, when "translation_language" wasn't saved to the AppConfig 2020-11-02 06:48:30 -08:00
YuSanka b2700a8ac6 Custom control : Bug fixing
* OG_CustomCtrl is inherited from the wxPanel instead of the wxControl now.
  As a result, Tab-key is working now for the fields inside the custom control
* Open localized web-page if any exist for labels

+ Fixed update of icons inside the PresetComboBoxes after switching between Dark/Light modes
2020-11-02 06:48:30 -08:00
YuSanka 32b8be600c Custom control: Fixed bitmaps layout under OSX
+ Implemented hyperlinks for parameters labels to the help page
2020-11-02 06:48:30 -08:00
YuSanka 4dc78a424e Custom controls : OSX-specific fix. Get bitmap height in respect to the scaling on Retina 2020-11-02 06:48:30 -08:00
YuSanka e05080c53b Fixed update of the field related to the "extruders_count" parameter after printer preset change 2020-11-02 06:48:30 -08:00
YuSanka 1c22d788aa Custom control : Implemented blinking icon 2020-11-02 06:48:30 -08:00
YuSanka 4f5efc99fb Custom control : Action buttons are "alive" now
- show tooltips for buttons
- LBtnClick invokes revert functions for the field
2020-11-02 06:48:30 -08:00
YuSanka e93e80166b Custom control : fixed re-scaling for MSW 2020-11-02 06:48:30 -08:00
YuSanka 1b3c288b35 Custom control : Implemented update items visibility in respect to the mode 2020-11-02 06:48:30 -08:00
YuSanka 534a2f5d33 Custom control : Fixed color of the colored label, associated with option, which doesn't have a corresponded field 2020-11-02 06:48:30 -08:00
YuSanka 7022fb0891 Fixed position for all controls from the settings tabs 2020-11-02 06:48:30 -08:00
YuSanka f1a74367ed Choice field: Use wxComboBox instead of wxBitmapComboBox for non-OSX platforms 2020-11-02 06:48:30 -08:00
YuSanka 74d6aea4d4 Custom control: first implementation 2020-11-02 06:48:30 -08:00
YuSanka d29a82e944 Fixed https://github.com/prusa3d/PrusaSlicer/commit/493cdbd0692bea01bbe4257b262ac1c63a550d43
Instead of "sep" should be used "\t" to the "Shift"-part will not be spoiled
2020-10-26 09:18:04 +01:00
YuSanka 493cdbd069 Added shortcut ("Shift+Tab") for the menu item "Collapse sidebar" 2020-10-25 15:10:51 +01:00
YuSanka 0f9faeda98 Fixed conversion from/to imperial units for objects with parts/modifiers 2020-10-22 15:45:17 +02:00
YuSanka ffd09892f9 DoubleSlider : Fixed motion of the upper thumb, when no one thumb is active 2020-10-21 13:17:07 +02:00
YuSanka a4962b4fe6 Fixed a build 2020-10-20 17:23:57 +02:00
YuSanka 981feebc94 Behavior of the "cog" icon is changed to avoid misunderstandings appear in issue #4891:
"Cog" icon is enabled now every time, but it will had next behavior:
1. Add physical printer, if logical printer is selected
2. Edit physical printer, if it is selected.

 + PresetComboBox: Fixed the black rectangle instead of icon for the "Add/Remove presets" item
2020-10-20 16:38:13 +02:00
YuSanka 36cb544e5b Fix of #4909
Deleted redundant control of the mode update. We should update DoubleSlider's mode every time
2020-10-20 11:17:51 +02:00
YuSanka 0f8f412e90 Fixed #4918
Added missed "Add/Remove filaments" item for the filament preset combobox
2020-10-19 15:10:14 +02:00
YuSanka 11b6d4bcf5 Localization: Updated POT and List.txt
+ SavePresetDialog class is extracted from the PresetComboBoxes.cpp the the separate files
2020-10-19 14:18:02 +02:00
YuSanka 9fdaa1bdbe Fixed typo in https://github.com/prusa3d/PrusaSlicer/commit/8a1eba5a098d827b40c9c674b2c4b671c1c06006 2020-10-19 10:08:21 +02:00
YuSanka a61d0a9532 Suppress edit of items of UnsavedChangesDialog, fixed update of the information line
+ added white version for icons "exit" and "switch_presets"
2020-10-18 13:44:15 +02:00
YuSanka bc2088eb78 Add info for the removed "Print host upload" group 2020-10-16 16:30:46 +02:00
YuSanka 0f85777a79 UnsavedChangesDialog: Updated icons on "Discard" buttons
+ Put "exit" icon on "Quit" menu item
2020-10-16 13:21:23 +02:00
YuSanka 899d8fc361 Show "Merge" item of the context menu for multiple selection only for objects or instances 2020-10-16 11:01:27 +02:00
YuSanka 772b0b760e UnsavedChangesDialog
* Fixed a crash on preset changing and press Cancel button in SavePresetDialog
* Added Cancel button for MessageDialog after check "Remember my choice"

SplashScreen
* Set Version string in respect to the height of a Title string
2020-10-15 22:47:42 +02:00
YuSanka 00a7799341 UnsavedChangesDialog : improvements
* Added "Remember my choice" checkbox
* Center on the screen and set position in respect to the position of mainframe or settings dialog

Preferences : Added checkboxes for enable/suppress showing of the UnsavedChangeDialog

SearchImGui : close after parameter selection_is_changed_according_to_physical_printers

PhysicalPrinterDialog, SavePresetDialog : Center on the screen
2020-10-15 16:53:14 +02:00
YuSanka bcc23428fa UnsavedChangesDialog : added correct icons for the categories
+ fixed a crash when try to save changes for the SLA printer preset
2020-10-08 09:25:14 +02:00
YuSanka bab808941e Fixed redundant call of Tab::select_active_page(),
when printer technologist is changed

 + Some code cleaning:The code commented as experimental and unused is deleted
2020-10-07 11:52:51 +02:00
YuSanka e613eeed48 Fixed an Linux crash after switching between printer technologies 2020-10-07 09:56:48 +02:00
YuSanka d4309d9fa7 SplashScreen : Scale all font from default font 2020-10-06 19:38:46 +02:00
YuSanka 764565dbc3 Added info message about successfully save of the preset(s) modifications
+ more warnings fixes
2020-10-06 12:32:28 +02:00
YuSanka 19c267e890 Fixed non_MSW build
+ fixed some warnings
2020-10-06 11:15:50 +02:00
YuSanka e16fe96cc6 SplashScreen: Fixed font scaling 2020-10-06 10:33:27 +02:00
YuSanka f47ad1fd94 The scale of a splash screen is rewrote.
But now there is a problem with font scaling.
Function font.Scaled(val) return scaled system font from primary monitor.
That is why application's name and version has so strange scale.
2020-10-05 19:56:23 +02:00
YuSanka 52557b4263 Merge remote-tracking branch 'origin/ys_splashscreen_on_mac' 2020-10-03 03:18:01 +02:00
YuSanka 6255792181 UnsavedChangesDialog improvements:
* Changed some labels on buttons. The Dialog name shows a purpose now
 * SaveDialog is called, when UnsavedChangesDialog is shown.
 * Added prototype for the "exit" icon

+ Fixed layout for the "Machine limits" page
2020-10-03 03:15:54 +02:00
YuSanka 48f775decb A part of code related to loads after App::OnInit() call is moved from PrusaSlicer.cpp to GUI_App.cpp
Splash Screen under OSX requires a call of wxYeild() for update.
But wxYield() furthers a case, when CallAfter() in CLI::run() was called at the wrong time, before some of the GUI was created.
So, there is workaround:
Parameters needed for later loads are encapsulated to GUI_App::AFTER_INIT_LOADS structure
and are used in GUI_App::AFTER_INIT_LOADS::on_loads which is called just ones after wxEVT_IDLE
2020-10-02 22:27:20 +02:00
YuSanka 8459d77959 Deleted use of TaskTimer in OnInit
+ code cleaning in MainFrame
2020-10-02 12:11:27 +02:00
YuSanka 3ec462e8f5 Fixed a crash when preset with "modified"suffix is selected 2020-10-02 09:02:16 +02:00
YuSanka 1fb400a091 use wxYield on mac to show the splashscreen 2020-10-02 08:32:44 +02:00
YuSanka 2bba0e3131 Physical printers: Implemented import/export to/from the ConfigBundle.
+ fixed a bug : Case sensitivity of printer's name wasn't check during the adding of a new printer,
as a result in printers list was appeared both of printers (ex. "YuSanka" and "yusanka"), but related file was just one.
2020-10-01 22:48:57 +02:00
YuSanka 13dcc3e7a0 OSX specific: Set SplashScreen as TopWindow 2020-09-29 08:39:57 +02:00
YuSanka b82de22caa SplashScreen improvements:
* Added MakeBitmap() to create a bitmap from input version image
 * Editor/Viewer logo is added now in SplashScreen::Decorate()
2020-09-28 20:41:51 +02:00
YuSanka 11a410b4e7 Updated SplashScreen
+ Increased gap_size for main and undo/redo toolbars
2020-09-25 11:02:54 +02:00
YuSanka 5243d3e53c Fixed crash on BedShapeDialog creation 2020-09-25 10:44:22 +02:00
YuSanka d5bd76776f Page class is used as a container of option groups
and doesn't inherited from wxScrolledWindow now
2020-09-24 18:54:54 +02:00
YuSanka 8fb3a44a4e Fixed highlighting of the searched option
+ Create controls only on the shown and active tab
+ Line class : deleted unused sizer
+ In GUI_Utils added TaskTimer class for the print a time of some task duration
+ BedShapeDialog:: activated options_groups
+ commented some unused code
2020-09-24 15:41:48 +02:00
YuSanka 52e6050698 Fixed msw_scale() for Infill field 2020-09-23 09:35:30 +02:00
YuSanka fc3aa61dc4 Merge remote-tracking branch 'origin/master' into ys_optgroup_refact 2020-09-23 08:38:21 +02:00
YuSanka 9377013824 Fixed non-MSW builds 2020-09-23 08:33:16 +02:00
YuSanka 35d225d673 Fixed scaling on MSW for new OptionsGroup 2020-09-22 16:16:35 +02:00
YuSanka 398ff9053d Code refactoring of the OptionsGroup class:
Controls are created only for the active page now
2020-09-22 11:17:43 +02:00
YuSanka acdd5716bd SplashScreen: Fixed message text
UnsavedChangesDialog: Disabled "Move changes to selected preset" button, when printer technology is changed
PresetComboBox: Fixed color of the filament, if it is modified
2020-09-17 15:40:27 +02:00
YuSanka 6ac1935932 Updated "undo/redo" and "search' icons for the toolbar
* added "settings" and "search_blink" icons
 * suppress the icons scaling update when Plater is in the Preview mode
 * switched "layers_height" and "search" buttons in the toolbar
2020-09-14 17:25:47 +02:00
YuSanka a57fe34a76 Updated icons for the top bar
+ Added icon for "Seam editing"
2020-09-11 12:18:03 +02:00
YuSanka f1f9785a8a SplashScreen:
* Show it on the display same as an Application
 * Code refactoring : All related functions moved to the SplashScreen class
 * Add a possibility o hide/show splash scree in Preferences
2020-09-10 18:54:29 +02:00
YuSanka 6f0ace52c6 Merge remote-tracking branch 'origin/ys_splash_screen' 2020-09-08 16:13:54 +02:00
YuSanka 3c14d883a1 PhysicalPrinterDialog: Fixed memory leak 2020-09-08 16:11:01 +02:00
YuSanka 07499ff9d0 Fixed Scale on Linux 2020-09-08 15:20:12 +02:00
YuSanka 9ce3086f02 Splash screen : Try to fix scaling on Linux 2020-09-08 13:40:14 +02:00
YuSanka 1418b71541 Linux: Try to fix warning "Na handler for image type 15" 2020-09-08 09:12:40 +02:00
YuSanka 6dbc1ccf21 Added missed image for splash screen 2020-09-08 08:19:06 +02:00
YuSanka 5618293a28 Splash screen : implemented smart splash screen 2020-09-07 21:21:13 +02:00
YuSanka 902de849c0 Implemented class SplashScreen for using of text 2020-09-04 20:25:27 +02:00
YuSanka 9d786b5f88 Fixed non-MSW builds 2020-09-04 16:21:36 +02:00
YuSanka 486c07702c Added SplashScreen 2020-09-04 13:42:44 +02:00
YuSanka c8133b91b7 Code cleaning.
+ Use default DPIfont for wxHtmlWindows
2020-09-04 13:01:02 +02:00
YuSanka ba87a4fd9a Fixed rescale of the MainFrame/SettingsDialog after switching between settings layouts on the 2 monitors with different DPI 2020-09-04 10:08:54 +02:00
YuSanka c49221c621 Fix of Settings scaling when they are placed in non-modal Dialog 2020-09-03 15:40:14 +02:00
YuSanka 0f0c9a0726 OSX specific: UnsavedChangesDialog: Fixed strange ellipsis for items in DataViewCtrl 2020-09-03 10:44:54 +02:00
YuSanka cbe93815b2 Fixed layout after switching mode of settings layout 2020-09-03 09:27:53 +02:00
YuSanka 29f2ac3ad4 Merge remote-tracking branch 'origin/ys_unsaved_changes' 2020-09-02 09:44:31 +02:00
YuSanka 4d053cc4ee Merge remote-tracking branch 'origin/master' into ys_unsaved_changes 2020-09-02 09:15:11 +02:00
YuSanka d8487b1458 Unsaved Changes: bug fix and improvements
- changed width of the "Save dialog"
- SavePresetDialog: added info for Print/Filament user presets incompatible with selected printer_technology
- fixed missed "modified" suffix when options are moved to the another preset
- "move selected options" button is added for dependent presets
2020-09-02 09:06:42 +02:00
YuSanka 15545bbd90 Merge remote-tracking branch 'origin/master' into ys_unsaved_changes 2020-08-19 15:44:24 +02:00
YuSanka 8af49d7d87 Code refactoring for last commit 2020-08-19 15:35:58 +02:00
YuSanka 15285a68a0 BedShape is extracted to the separate structure 2020-08-19 13:04:51 +02:00
YuSanka 4641d44544 UnsavedChangesDialog : improvements
* Processed changes in options with nullable values
* Processed changes on the extruders count
2020-08-18 16:49:06 +02:00
YuSanka e050fb68bf Fixed UI changing update for "Ramming" parameter 2020-08-17 15:13:18 +02:00
YuSanka 618f04717f Unsaved Changes : improvement for the GUI_App::check_unsaved_changes()
Added use of UnsavedChangesDialog
2020-08-14 18:17:16 +02:00
YuSanka 8f15efbf9a Merge remote-tracking branch 'origin/master' into ys_unsaved_changes 2020-08-13 15:46:17 +02:00
YuSanka d7176c64bd Unsaved Changes : implemented "move" and improved "save"
UnsavedChangesDialog : some code refactoring

SavePresetDialog : processed empty name for the preset
2020-08-13 15:45:16 +02:00
YuSanka 830d89576c Added description line for the disabling of "Object elevation"
Deleted mirrored parameter "pad_around_object" from "Support" category
2020-08-13 13:04:46 +02:00
YuSanka 491e7b16f9 Fixed build under GTK 2020-08-13 08:20:22 +02:00
YuSanka 79ba488d5d Merge remote-tracking branch 'origin/master' into ys_unsaved_changes 2020-08-12 17:36:04 +02:00