mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Removed ObjectPreviewDialog not used anymore
This commit is contained in:
		
							parent
							
								
									4c7d9dfef5
								
							
						
					
					
						commit
						0a62d658d9
					
				
					 2 changed files with 0 additions and 36 deletions
				
			
		| 
						 | 
				
			
			@ -17,7 +17,6 @@ use Slic3r::GUI::Plater::2DToolpaths;
 | 
			
		|||
use Slic3r::GUI::Plater::3D;
 | 
			
		||||
use Slic3r::GUI::Plater::ObjectPartsPanel;
 | 
			
		||||
use Slic3r::GUI::Plater::ObjectCutDialog;
 | 
			
		||||
use Slic3r::GUI::Plater::ObjectPreviewDialog;
 | 
			
		||||
use Slic3r::GUI::Plater::ObjectSettingsDialog;
 | 
			
		||||
use Slic3r::GUI::Plater::OverrideSettingsPanel;
 | 
			
		||||
use Slic3r::GUI::Preferences;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,35 +0,0 @@
 | 
			
		|||
package Slic3r::GUI::Plater::ObjectPreviewDialog;
 | 
			
		||||
use strict;
 | 
			
		||||
use warnings;
 | 
			
		||||
use utf8;
 | 
			
		||||
 | 
			
		||||
use Wx qw(:dialog :id :misc :sizer :systemsettings :notebook wxTAB_TRAVERSAL);
 | 
			
		||||
use Wx::Event qw(EVT_CLOSE);
 | 
			
		||||
use base 'Wx::Dialog';
 | 
			
		||||
 | 
			
		||||
sub new {
 | 
			
		||||
    my $class = shift;
 | 
			
		||||
    my ($parent, %params) = @_;
 | 
			
		||||
    my $self = $class->SUPER::new($parent, -1, $params{object}->name, wxDefaultPosition, [500,500], wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
 | 
			
		||||
    $self->{model_object} = $params{model_object};
 | 
			
		||||
    
 | 
			
		||||
    my $canvas = Slic3r::GUI::PreviewCanvas->new($self);
 | 
			
		||||
    $canvas->load_object($self->{model_object});
 | 
			
		||||
    $canvas->set_bounding_box($self->{model_object}->bounding_box);
 | 
			
		||||
    $canvas->set_auto_bed_shape;
 | 
			
		||||
    
 | 
			
		||||
    my $sizer = Wx::BoxSizer->new(wxVERTICAL);
 | 
			
		||||
    $sizer->Add($canvas, 1, wxEXPAND, 0);
 | 
			
		||||
    $self->SetSizer($sizer);
 | 
			
		||||
    $self->SetMinSize($self->GetSize);
 | 
			
		||||
    
 | 
			
		||||
    # needed to actually free memory
 | 
			
		||||
    EVT_CLOSE($self, sub {
 | 
			
		||||
        $self->EndModal(wxID_OK);
 | 
			
		||||
        $self->Destroy;
 | 
			
		||||
    });
 | 
			
		||||
    
 | 
			
		||||
    return $self;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
1;
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue