mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Added icons for 3D and preview menu items
This commit is contained in:
		
							parent
							
								
									e0545852f5
								
							
						
					
					
						commit
						e1debd3a4c
					
				
					 3 changed files with 70 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -414,9 +414,9 @@ void MainFrame::init_menubar()
 | 
			
		|||
        if (m_plater) {
 | 
			
		||||
            windowMenu->AppendSeparator();
 | 
			
		||||
            wxMenuItem* item_3d = append_menu_item(windowMenu, wxID_HIGHEST + 5, _(L("3&D")) + "\tCtrl+5", _(L("Show the 3D editing view")),
 | 
			
		||||
                [this](wxCommandEvent&) { m_plater->select_view_3D("3D"); }, "");
 | 
			
		||||
                [this](wxCommandEvent&) { m_plater->select_view_3D("3D"); }, "editor_menu");
 | 
			
		||||
            wxMenuItem* item_preview = append_menu_item(windowMenu, wxID_HIGHEST + 6, _(L("Pre&view")) + "\tCtrl+6", _(L("Show the 3D slices preview")),
 | 
			
		||||
                [this](wxCommandEvent&) { m_plater->select_view_3D("Preview"); }, "");
 | 
			
		||||
                [this](wxCommandEvent&) { m_plater->select_view_3D("Preview"); }, "preview_menu");
 | 
			
		||||
 | 
			
		||||
            Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& evt) { evt.Enable(can_change_view()); }, item_3d->GetId());
 | 
			
		||||
            Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& evt) { evt.Enable(can_change_view()); }, item_preview->GetId());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue