Added MessageBoxes for experimenting on OSX

This commit is contained in:
YuSanka 2018-06-07 15:52:35 +02:00
parent ebe5ee3b1f
commit e2a7bd4a14
3 changed files with 8 additions and 0 deletions

View File

@ -179,6 +179,7 @@ sub _init_tabpanel {
my $obj_idx = $event->GetInt;
$self->{plater}->select_object($obj_idx < 0 ? undef: $obj_idx);
Wx::MessageBox("Before item_changed_selection", "Slic3r Info", wxOK | wxICON_INFORMATION, $self);
$self->{plater}->item_changed_selection($obj_idx);
});

View File

@ -1852,6 +1852,8 @@ sub on_config_change {
sub item_changed_selection{
my ($self, $obj_idx) = @_;
Wx::MessageBox("Inside item_changed_selection", "Slic3r Info", wxOK | wxICON_INFORMATION, $self);
$self->{canvas}->Refresh;
if ($self->{canvas3D}){
$self->{canvas3D}->deselect_volumes;
@ -2065,6 +2067,7 @@ sub select_object {
if (defined $obj_idx) {
$self->{objects}->[$obj_idx]->selected(1);
# Select current object in the list on c++ side
Wx::MessageBox("Before select_current_object", "Slic3r Info", wxOK | wxICON_INFORMATION, $self);
Slic3r::GUI::select_current_object($obj_idx);
} else {
# Unselect all objects in the list on c++ side

View File

@ -1128,9 +1128,12 @@ void unselect_objects()
void select_current_object(int idx)
{
wxMessageBox("Inside select_current_object", "Info");
m_objects_ctrl->UnselectAll();
wxMessageBox("UnselectAll", "Info");
if (idx < 0) return;
m_objects_ctrl->Select(m_objects_model->GetItemById(idx));
wxMessageBox("Item is selected", "Info");
if (get_view_mode() == ConfigMenuModeExpert){
if (!m_sizer_object_buttons->IsShown(1))
@ -1138,6 +1141,7 @@ void select_current_object(int idx)
if (!m_collpane_settings->IsShown())
m_collpane_settings->Show(true);
}
wxMessageBox("Updated sizer showing", "Info");
}
void add_expert_mode_part(wxWindow* parent, wxBoxSizer* sizer, int event_object_selection_changed)