WIP: OctoPrint

This commit is contained in:
Vojtech Kral 2018-02-07 11:37:15 +01:00
parent 79ee7c9a36
commit 7cfc5204c8
13 changed files with 210 additions and 46 deletions

View file

@ -409,7 +409,15 @@ sub _init_menubar {
wxTheApp->about;
});
}
my $hokusMenu = Wx::Menu->new; # XXX: tmp
{
$self->_append_menu_item($hokusMenu, "Pokus", "Pokus", sub {
# Slic3r::Http::download();
Slic3r::OctoPrint::send_gcode("10.0.0.46", "70E4CFD0E0D7423CB6B1CF055DBAEFA5", "/home/vojta/prog/tisk/jesterka/jesterka.gcode");
});
}
# menubar
# assign menubar to frame after appending items, otherwise special items
# will not be handled correctly
@ -424,6 +432,8 @@ sub _init_menubar {
# (Select application language from the list of installed languages)
Slic3r::GUI::add_debug_menu($menubar, $self->{lang_ch_event});
$menubar->Append($helpMenu, L("&Help"));
$menubar->Append($hokusMenu, "Hoku&s");
# Add an optional debug menu. In production code, the add_debug_menu() call should do nothing.
$self->SetMenuBar($menubar);
}
}