ENH: add a prompt dialog box to prompt

for synchronization of machine information when opening a file
jira:none

Change-Id: I7b3419bb3489a5b6a37a99b5021c7e69ac35a009
(cherry picked from commit 6437437fe0c83f7c14f7ee5b339475d6db559a56)
This commit is contained in:
zhimin.zeng
2024-10-28 18:40:13 +08:00
committed by Noisyfox
parent f20c916e05
commit 6975a68338
3 changed files with 147 additions and 15 deletions

View File

@@ -48,7 +48,7 @@ private:
std::string m_app_key;
public:
TipsDialog(wxWindow *parent, const wxString &title, const wxString &description, std::string app_key = "");
TipsDialog(wxWindow *parent, const wxString &title, const wxString &description, std::string app_key = "", long style = wxOK);
Button *m_confirm{nullptr};
Button *m_cancel{nullptr};
wxPanel *m_top_line{nullptr};
@@ -58,6 +58,7 @@ protected:
void on_dpi_changed(const wxRect &suggested_rect) override;
void on_ok(wxMouseEvent &event);
wxBoxSizer *create_item_checkbox(wxString title, wxWindow *parent, wxString tooltip, std::string param);
Button* add_button(wxWindowID btn_id, const wxString &label, bool set_focus = false);
};
///////////////////////////////////////////////////////////////////////////////