mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
WIP: OctoPrint
This commit is contained in:
parent
79ee7c9a36
commit
7cfc5204c8
13 changed files with 210 additions and 46 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue