mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Adjusted main shortcuts
This commit is contained in:
		
							parent
							
								
									37b5cb9a4d
								
							
						
					
					
						commit
						302b37dcd1
					
				
					 2 changed files with 12 additions and 14 deletions
				
			
		|  | @ -534,14 +534,14 @@ void GUI_App::add_config_menu(wxMenuBar *menu) | |||
|     local_menu->Append(config_id_base + ConfigMenuTakeSnapshot, _(L("Take Configuration Snapshot")), _(L("Capture a configuration snapshot"))); | ||||
|     // 	local_menu->Append(config_id_base + ConfigMenuUpdate, 		_(L("Check for updates")), 					_(L("Check for configuration updates")));
 | ||||
|     local_menu->AppendSeparator(); | ||||
|     local_menu->Append(config_id_base + ConfigMenuPreferences, _(L("Preferences")) + dots + "\tCtrl+,", _(L("Application preferences"))); | ||||
|     local_menu->Append(config_id_base + ConfigMenuPreferences, _(L("Preferences")) + dots + "\tCtrl+P", _(L("Application preferences"))); | ||||
|     local_menu->AppendSeparator(); | ||||
|     auto mode_menu = new wxMenu(); | ||||
|     mode_menu->AppendRadioItem(config_id_base + ConfigMenuModeSimple, _(L("&Simple")), _(L("Simple View Mode"))); | ||||
|     mode_menu->AppendRadioItem(config_id_base + ConfigMenuModeAdvanced, _(L("&Advanced")), _(L("Advanced View Mode"))); | ||||
|     mode_menu->AppendRadioItem(config_id_base + ConfigMenuModeExpert, _(L("&Expert")), _(L("Expert View Mode"))); | ||||
|     mode_menu->AppendRadioItem(config_id_base + ConfigMenuModeSimple, _(L("Simple")), _(L("Simple View Mode"))); | ||||
|     mode_menu->AppendRadioItem(config_id_base + ConfigMenuModeAdvanced, _(L("Advanced")), _(L("Advanced View Mode"))); | ||||
|     mode_menu->AppendRadioItem(config_id_base + ConfigMenuModeExpert, _(L("Expert")), _(L("Expert View Mode"))); | ||||
|     mode_menu->Check(config_id_base + get_view_mode(), true); | ||||
|     local_menu->AppendSubMenu(mode_menu, _(L("&Mode")), _(L("Slic3r View Mode"))); | ||||
|     local_menu->AppendSubMenu(mode_menu, _(L("Mode")), _(L("Slic3r View Mode"))); | ||||
|     local_menu->AppendSeparator(); | ||||
|     local_menu->Append(config_id_base + ConfigMenuLanguage, _(L("Change Application Language"))); | ||||
|     local_menu->AppendSeparator(); | ||||
|  |  | |||
|  | @ -232,7 +232,7 @@ void MainFrame::init_menubar() | |||
|         append_submenu(fileMenu, import_menu, wxID_ANY, _(L("Import")), _(L(""))); | ||||
| 
 | ||||
|         wxMenu* export_menu = new wxMenu(); | ||||
|         wxMenuItem* item_export_gcode = append_menu_item(export_menu, wxID_ANY, _(L("Export G-code…")), _(L("Export current plate as G-code")), | ||||
|         wxMenuItem* item_export_gcode = append_menu_item(export_menu, wxID_ANY, _(L("Export G-code…\tCtrl+G")), _(L("Export current plate as G-code")), | ||||
|             [this](wxCommandEvent&) { if (m_plater) m_plater->export_gcode(); }, "cog_go.png"); | ||||
|         export_menu->AppendSeparator(); | ||||
|         wxMenuItem* item_export_stl = append_menu_item(export_menu, wxID_ANY, _(L("Export plate as STL…")), _(L("Export current plate as STL")), | ||||
|  | @ -262,35 +262,33 @@ void MainFrame::init_menubar() | |||
| #endif // ENABLE_NEW_MENU_LAYOUT
 | ||||
| 
 | ||||
|         m_menu_item_repeat = nullptr; | ||||
|         append_menu_item(fileMenu, wxID_ANY, _(L("Q&uick Slice…\tCtrl+U")), _(L("Slice a file into a G-code")), | ||||
|         append_menu_item(fileMenu, wxID_ANY, _(L("Quick Slice…\tCtrl+U")), _(L("Slice a file into a G-code")), | ||||
|             [this](wxCommandEvent&) { | ||||
|                 wxTheApp->CallAfter([this]() { | ||||
|                     quick_slice(); | ||||
|                     m_menu_item_repeat->Enable(is_last_input_file()); | ||||
|                 }); }, "cog_go.png"); | ||||
|         append_menu_item(fileMenu, wxID_ANY, _(L("Quick Slice and Save &As…\tCtrl+Alt+U")), _(L("Slice a file into a G-code, save as")), | ||||
|         append_menu_item(fileMenu, wxID_ANY, _(L("Quick Slice and Save As…\tCtrl+Alt+U")), _(L("Slice a file into a G-code, save as")), | ||||
|             [this](wxCommandEvent&) { | ||||
|             wxTheApp->CallAfter([this]() { | ||||
|                     quick_slice(qsSaveAs); | ||||
|                     m_menu_item_repeat->Enable(is_last_input_file()); | ||||
|                 }); }, "cog_go.png"); | ||||
|         m_menu_item_repeat = append_menu_item(fileMenu, wxID_ANY, _(L("&Repeat Last Quick Slice\tCtrl+Shift+U")), _(L("Repeat last quick slice")), | ||||
|         m_menu_item_repeat = append_menu_item(fileMenu, wxID_ANY, _(L("Repeat Last Quick Slice\tCtrl+Shift+U")), _(L("Repeat last quick slice")), | ||||
|             [this](wxCommandEvent&) { | ||||
|             wxTheApp->CallAfter([this]() { | ||||
|                 quick_slice(qsReslice); | ||||
|             }); }, "cog_go.png"); | ||||
|         m_menu_item_repeat->Enable(false); | ||||
|         fileMenu->AppendSeparator(); | ||||
|         append_menu_item(fileMenu, wxID_ANY, _(L("Slice to SV&G…\tCtrl+G")), _(L("Slice file to a multi-layer SVG")), | ||||
|             [this](wxCommandEvent&) { quick_slice(qsSaveAs | qsExportSVG); }, "shape_handles.png"); | ||||
|         m_menu_item_reslice_now = append_menu_item(fileMenu, wxID_ANY, _(L("(&Re)Slice Now\tCtrl+S")), _(L("Start new slicing process")), | ||||
|         m_menu_item_reslice_now = append_menu_item(fileMenu, wxID_ANY, _(L("(Re)Slice Now\tCtrl+R")), _(L("Start new slicing process")), | ||||
|             [this](wxCommandEvent&) { reslice_now(); }, "shape_handles.png"); | ||||
|         fileMenu->AppendSeparator(); | ||||
|         append_menu_item(fileMenu, wxID_ANY, _(L("Repair STL file…")), _(L("Automatically repair an STL file")), | ||||
|             [this](wxCommandEvent&) { repair_stl(); }, "wrench.png"); | ||||
|         fileMenu->AppendSeparator(); | ||||
|         append_menu_item(fileMenu, wxID_EXIT, _(L("&Quit")), _(L("Quit Slic3r")), | ||||
|             [this](wxCommandEvent&) { Close(false); } ); | ||||
|         append_menu_item(fileMenu, wxID_EXIT, _(L("Quit")), _(L("Quit Slic3r")), | ||||
|             [this](wxCommandEvent&) { Close(false); }); | ||||
| 
 | ||||
| #if ENABLE_NEW_MENU_LAYOUT | ||||
|         Bind(wxEVT_UPDATE_UI, [this](wxUpdateUIEvent& evt) { evt.Enable(m_plater != nullptr); }, item_open->GetId()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri