mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	OpenGL to c++ 1st installment - WIP
This commit is contained in:
		
							parent
							
								
									8eb9ddc2eb
								
							
						
					
					
						commit
						5024fc4be7
					
				
					 14 changed files with 1015 additions and 56 deletions
				
			
		| 
						 | 
				
			
			@ -144,6 +144,9 @@ sub new {
 | 
			
		|||
        # Note that the window was already closed, so a pending update will not be executed.
 | 
			
		||||
        $self->{already_closed} = 1;
 | 
			
		||||
        $self->EndModal(wxID_OK);
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
        $self->{canvas}->Destroy;
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
        $self->Destroy();
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -151,6 +154,9 @@ sub new {
 | 
			
		|||
        # Note that the window was already closed, so a pending update will not be executed.
 | 
			
		||||
        $self->{already_closed} = 1;
 | 
			
		||||
        $self->EndModal(wxID_CANCEL);
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
        $self->{canvas}->Destroy;
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
        $self->Destroy();
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -511,6 +511,13 @@ sub CanClose {
 | 
			
		|||
    return ! Slic3r::GUI::catch_error($self);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
sub Destroy {
 | 
			
		||||
    my ($self) = @_;
 | 
			
		||||
    $self->{canvas}->Destroy if ($self->{canvas});
 | 
			
		||||
}
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
 | 
			
		||||
sub PartsChanged {
 | 
			
		||||
    my ($self) = @_;
 | 
			
		||||
    return $self->{parts_changed};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -36,6 +36,9 @@ sub new {
 | 
			
		|||
        wxTheApp->save_window_pos($self, "object_settings");
 | 
			
		||||
        
 | 
			
		||||
        $self->EndModal(wxID_OK);
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
        $self->{parts}->Destroy;
 | 
			
		||||
#=============================================================================================================================        
 | 
			
		||||
        $self->Destroy;
 | 
			
		||||
    });
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue