ENH: Upgrade page optimization

implemented a click to jump to the browser, added a open in browser button, and skipped this version button,and download button

Jira:STUDIO-4042

Change-Id: I368a7eef0ac72c5b19cf8b03632112e183487c6e
This commit is contained in:
hu.wang 2023-08-18 14:33:18 +08:00 committed by Lane.Wei
parent 2e6a3ea8b7
commit ab7dec0b87
4 changed files with 65 additions and 27 deletions

View file

@ -23,6 +23,7 @@
#include <wx/artprov.h>
#include <wx/wrapsizer.h>
#include <wx/event.h>
#include <wx/hyperlink.h>
#include "AmsMappingPopup.hpp"
#include "GUI_Utils.hpp"
@ -84,7 +85,6 @@ public:
void RunScript(std::string script);
void on_dpi_changed(const wxRect& suggested_rect) override;
void update_version_info(wxString release_note, wxString version);
void alter_choice(wxCommandEvent& event);
std::vector<std::string> splitWithStl(std::string str, std::string pattern);
wxStaticBitmap* m_brand{nullptr};
@ -94,9 +94,12 @@ public:
wxScrolledWindow* m_scrollwindows_release_note{nullptr};
wxBoxSizer * sizer_text_release_note{nullptr};
Label * m_staticText_release_note{nullptr};
wxCheckBox* m_remind_choice;
Button* m_button_ok;
wxStaticBitmap* m_bitmap_open_in_browser;
wxHyperlinkCtrl* m_link_open_in_browser;
Button* m_button_skip_version;
Button* m_button_download;
Button* m_button_cancel;
std::string url_line;
};
class SecondaryCheckDialog : public DPIFrame