mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge remote-tracking branch 'remotes/origin/master' into lm_sla_dialog_scaling
This commit is contained in:
		
						commit
						e119480aa3
					
				
					 25 changed files with 78 additions and 74 deletions
				
			
		|  | @ -22,7 +22,7 @@ namespace Slic3r { | |||
| 
 | ||||
| static const std::string VENDOR_PREFIX = "vendor:"; | ||||
| static const std::string MODEL_PREFIX = "model:"; | ||||
| static const std::string VERSION_CHECK_URL = "https://raw.githubusercontent.com/prusa3d/Slic3r-settings/master/live/Slic3rPE.version"; | ||||
| static const std::string VERSION_CHECK_URL = "https://raw.githubusercontent.com/prusa3d/PrusaSlicer-settings/master/live/PrusaSlicer.version"; | ||||
| 
 | ||||
| void AppConfig::reset() | ||||
| { | ||||
|  |  | |||
|  | @ -915,6 +915,11 @@ int GUI_App::extruders_cnt() const | |||
|            preset.config.option<ConfigOptionFloats>("nozzle_diameter")->values.size(); | ||||
| } | ||||
| 
 | ||||
| void GUI_App::open_web_page_localized(const std::string &http_address) | ||||
| { | ||||
|     wxLaunchDefaultBrowser(http_address + "&lng=" + this->current_language_code()); | ||||
| } | ||||
| 
 | ||||
| void GUI_App::window_pos_save(wxTopLevelWindow* window, const std::string &name) | ||||
| { | ||||
|     if (name.empty()) { return; } | ||||
|  |  | |||
|  | @ -171,6 +171,8 @@ public: | |||
| 
 | ||||
|     PrintHostJobQueue& printhost_job_queue() { return *m_printhost_job_queue.get(); } | ||||
| 
 | ||||
|     void            open_web_page_localized(const std::string &http_address); | ||||
| 
 | ||||
| private: | ||||
|     bool            on_init_inner(); | ||||
|     void            window_pos_save(wxTopLevelWindow* window, const std::string &name); | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ namespace Slic3r { | |||
| namespace GUI { | ||||
| 
 | ||||
| MainFrame::MainFrame() : | ||||
| DPIFrame(NULL, wxID_ANY, wxString(SLIC3R_BUILD) + " " + _(L("based on Slic3r")), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mainframe"), | ||||
| DPIFrame(NULL, wxID_ANY, wxString(SLIC3R_APP_NAME) + " " + wxString(SLIC3R_BUILD) + " " + _(L("based on Slic3r")), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, "mainframe"), | ||||
|         m_printhost_queue_dlg(new PrintHostQueueDialog(this)) | ||||
| { | ||||
|     // Fonts were created by the DPIFrame constructor for the monitor, on which the window opened.
 | ||||
|  | @ -545,16 +545,16 @@ void MainFrame::init_menubar() | |||
|     auto helpMenu = new wxMenu(); | ||||
|     { | ||||
|         append_menu_item(helpMenu, wxID_ANY, _(L("Prusa 3D &Drivers")), _(L("Open the Prusa3D drivers download page in your browser")),  | ||||
|             [this](wxCommandEvent&) { wxLaunchDefaultBrowser("http://www.prusa3d.com/drivers/"); }); | ||||
|             [this](wxCommandEvent&) { wxGetApp().open_web_page_localized("https://www.prusa3d.com/downloads"); });  | ||||
|         append_menu_item(helpMenu, wxID_ANY, _(L("Software &Releases")), _(L("Open the software releases page in your browser")),  | ||||
|             [this](wxCommandEvent&) { wxLaunchDefaultBrowser("http://github.com/prusa3d/slic3r/releases"); }); | ||||
|             [this](wxCommandEvent&) { wxLaunchDefaultBrowser("http://github.com/prusa3d/PrusaSlicer/releases"); }); | ||||
| //#        my $versioncheck = $self->_append_menu_item($helpMenu, "Check for &Updates...", "Check for new Slic3r versions", sub{
 | ||||
| //#            wxTheApp->check_version(1);
 | ||||
| //#        });
 | ||||
| //#        $versioncheck->Enable(wxTheApp->have_version_check);
 | ||||
|         append_menu_item(helpMenu, wxID_ANY, wxString::Format(_(L("%s &Website")), SLIC3R_APP_NAME),  | ||||
|                                              wxString::Format(_(L("Open the %s website in your browser")), SLIC3R_APP_NAME), | ||||
|             [this](wxCommandEvent&) { wxLaunchDefaultBrowser("https://www.prusa3d.com/slic3r-prusa-edition/"); }); | ||||
|             [this](wxCommandEvent&) { wxGetApp().open_web_page_localized("https://www.prusa3d.com/slicerweb"); }); | ||||
| //        append_menu_item(helpMenu, wxID_ANY, wxString::Format(_(L("%s &Manual")), SLIC3R_APP_NAME),
 | ||||
| //                                             wxString::Format(_(L("Open the %s manual in your browser")), SLIC3R_APP_NAME),
 | ||||
| //            [this](wxCommandEvent&) { wxLaunchDefaultBrowser("http://manual.slic3r.org/"); });
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv