mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 21:58:03 -06:00
Move wxFrame definition to a new Slic3r::GUI::MainFrame class
This commit is contained in:
parent
de6291d8f2
commit
93b9116565
3 changed files with 216 additions and 191 deletions
|
@ -360,7 +360,10 @@ sub on_select_preset {
|
|||
|
||||
sub GetFrame {
|
||||
my ($self) = @_;
|
||||
return &Wx::GetTopLevelParent($self);
|
||||
|
||||
my $frame = &Wx::GetTopLevelParent($self);
|
||||
bless $frame, 'Slic3r::GUI::MainFrame'; # Wx returns a generic Wx::Frame object
|
||||
return $frame;
|
||||
}
|
||||
|
||||
sub skeinpanel {
|
||||
|
@ -1251,8 +1254,7 @@ sub selection_changed {
|
|||
}
|
||||
|
||||
# prepagate the event to the frame (a custom Wx event would be cleaner)
|
||||
###$self->GetFrame->on_plater_selection_changed($have_sel);
|
||||
Slic3r::GUI::on_plater_selection_changed($self->GetFrame, $have_sel);
|
||||
$self->GetFrame->on_plater_selection_changed($have_sel);
|
||||
}
|
||||
|
||||
sub select_object {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue