mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-10 01:59:03 +08:00
Adapt the zoom code to the new menu methods
This commit is contained in:
parent
9499122d58
commit
1826517b04
@ -182,8 +182,10 @@ sub _init_menubar {
|
||||
wxTheApp->append_menu_item($self->{plater_menu}, "Select Prev Object\tCtrl+Left", 'Select Previous Object in the plater', sub {
|
||||
$plater->select_prev;
|
||||
}, undef, 'arrow_left.png');
|
||||
$self->_append_menu_item($self->{plater_menu}, "Zoom In\tCtrl+up" , 'Zoom In' , sub { $self->{plater}->zoom('in' ); });
|
||||
$self->_append_menu_item($self->{plater_menu}, "Zoom Out\tCtrl+down" , 'Zoom Out' , sub { $self->{plater}->zoom('out' ); });
|
||||
wxTheApp->append_menu_item($self->{plater_menu}, "Zoom In\tCtrl+up", 'Zoom In',
|
||||
sub { $self->{plater}->zoom('in') }, undef, 'zoom_in.png');
|
||||
wxTheApp->append_menu_item($self->{plater_menu}, "Zoom Out\tCtrl+down", 'Zoom Out',
|
||||
sub { $self->{plater}->zoom('out') }, undef, 'zoom_out.png');
|
||||
$self->{plater_menu}->AppendSeparator();
|
||||
wxTheApp->append_menu_item($self->{plater_menu}, "Export G-code...", 'Export current plate as G-code', sub {
|
||||
$plater->export_gcode;
|
||||
|
BIN
var/zoom_in.png
Executable file
BIN
var/zoom_in.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 725 B |
BIN
var/zoom_out.png
Executable file
BIN
var/zoom_out.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 708 B |
Loading…
x
Reference in New Issue
Block a user