Commit Graph

519 Commits

Author SHA1 Message Date
Vojtech Bubnik
1fb9e1f70c wxEVT_CREATE and wxEVT_ACTIVATE is not being called on the main frame
on application start-up, at least not on Windows.
wxEVT_CREATE was called for some control deep in the Plater, however
the event was delivered to the main frame and only for slicer, not
for G-code viewer. Thus the callbacks for 3D Mouse were not registered
for and the 3D mouse did not work on Windows.

Fixed by calling the callback registration from the first execution
of the Idle function.
2020-10-14 12:55:07 +02:00
David Kocik
cc7b1b773a switching from slicer to gcode viewer - unlocking lock file 2020-10-14 08:48:38 +02:00
David Kocik
fe618b04e3 starting prusaslicer from gcode viewer and vice versa, by menus or by stl drop on icon. Bring gcode viewer forward after start. 2020-10-12 15:26:19 +02:00
enricoturri1966
9c48a5de5d Tech ENABLE_GCODE_APP_CONFIG as default 2020-10-12 12:38:34 +02:00
enricoturri1966
8c3403ddc6 Fixed build when tech ENABLE_GCODE_VIEWER is disabled 2020-10-12 11:47:11 +02:00
enricoturri1966
dbd2a61b73 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-10-12 08:39:51 +02:00
enricoturri1966
69be5bfb7a Added menu command Configuration/Language to standalone gcode viewer 2020-10-12 08:39:40 +02:00
lukasmatena
c12f0db22c Merge pull request #4747 from wavexx/monospaced_gcode
Use monospaced fonts in gcode sections
2020-10-10 14:01:48 +02:00
enricoturri1966
72de654b80 On Windows associate .gcode files to gcode viewer application 2020-10-08 08:32:51 +02:00
Klaus Naumann
64e29fb541 Update language to be more clear 2020-10-07 18:08:16 +02:00
enricoturri1966
286f3208fe Do not load ssl certificate when starting standalone gcode viewer 2020-10-07 11:04:06 +02:00
YuSanka
9ef12cc001 SplashScreen : Scale all font from default font 2020-10-06 19:38:46 +02:00
Vojtech Bubnik
57ae13b5e7 OSX: Clean-up of opening as G-codeviewer on startup. 2020-10-06 15:43:21 +02:00
test
309c068d10 Fix of previous commit 2020-10-06 15:13:04 +02:00
enricoturri1966
6920992799 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-10-06 15:11:22 +02:00
enricoturri1966
8b6c599d45 Added Preference dialog to standalone gcode viewer 2020-10-06 15:11:08 +02:00
Vojtech Bubnik
9b55a4a0c9 OSX specific: Switching to a G-code viewer if the Finder opens Slicer
with a G-code file argument.
2020-10-06 15:09:38 +02:00
test
ca81c9b335 OSX specific: Trying to detect opening of files through Finder at the application start to switch to G-code viewer 2020-10-06 14:23:17 +02:00
YuSanka
8f67cc29e0 Added info message about successfully save of the preset(s) modifications
+ more warnings fixes
2020-10-06 12:32:28 +02:00
test
ecc93fe38e Fix of an OSX build 2020-10-06 11:18:56 +02:00
YuSanka
ef5a2822db Fixed non_MSW build
+ fixed some warnings
2020-10-06 11:15:50 +02:00
Vojtech Bubnik
8541bb9292 WIP: Opening a G-code in PrusaSlicer at Drag & Drop onto
the application icon in Finder.
2020-10-06 11:07:49 +02:00
YuSanka
1e92de48a8 SplashScreen: Fixed font scaling 2020-10-06 10:33:27 +02:00
test
13c47bb24f WIP: Drag and drop of G-codes on OSX onto Docker icon 2020-10-06 09:56:36 +02:00
YuSanka
0ef3c67089 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
enricoturri1966
10a5c9ece4 Fixed crash when starting gcode viewer on Linux 2020-10-05 16:06:14 +02:00
enricoturri1966
ac0b160612 AppConfig modified to generate a separate config file for the standalone gcodeviewer 2020-10-05 15:42:35 +02:00
YuSanka
5f60e6e1fe Merge remote-tracking branch 'origin/ys_splashscreen_on_mac' 2020-10-03 03:18:01 +02:00
YuSanka
6b0131e0b4 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
b2fb9064f5 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
enricoturri1966
ce6aed9691 New image for gcode viewer splash screen 2020-10-02 13:20:48 +02:00
YuSanka
db754ce870 Deleted use of TaskTimer in OnInit
+ code cleaning in MainFrame
2020-10-02 12:11:27 +02:00
YuSanka
081330f0fd use wxYield on mac to show the splashscreen 2020-10-02 08:32:44 +02:00
Vojtech Bubnik
75bc8f6d2c Merge branch 'vb_optgroup_refact' 2020-10-01 20:05:31 +02:00
enricoturri1966
78b9272503 Fixed splash screen info label 2020-09-30 13:35:19 +02:00
YuSanka
c69d6e4b01 OSX specific: Set SplashScreen as TopWindow 2020-09-29 08:39:57 +02:00
YuSanka
e340463eaf 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
925bdb2c16 Updated SplashScreen
+ Increased gap_size for main and undo/redo toolbars
2020-09-25 11:02:54 +02:00
YuSanka
247e9825a4 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
bb1ba1575a Merge remote-tracking branch 'origin/master' into ys_optgroup_refact 2020-09-23 08:38:21 +02:00
YuSanka
7126ab37b2 Fixed non-MSW builds 2020-09-23 08:33:16 +02:00
YuSanka
dfaf3c5c97 Fixed scaling on MSW for new OptionsGroup 2020-09-22 16:16:35 +02:00
YuSanka
9b1ae700e8 Code refactoring of the OptionsGroup class:
Controls are created only for the active page now
2020-09-22 11:17:43 +02:00
YuSanka
9e645c880c 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
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
Yuri D'Elia
b8272f9854 Introduce GUI_App::code_font() 2020-09-13 02:17:19 +02:00
enricoturri1966
aad733f8d2 Fixed conflicts after merge with master 2020-09-11 08:18:41 +02:00
enricoturri1966
fb1c75d898 Updated Sys Info dialog, About dialog, Keyboard shortcuts dialog for gcode viewer 2020-09-11 08:03:13 +02:00
YuSanka
c4f2560205 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
enricoturri1966
b56b719575 Updated titlebar and splash screen + hidden statusbar for gcode viewer 2020-09-10 14:33:55 +02:00