NEW:add dont show again button on msgdialog

Change-Id: Id532ba9c10f01863dbe0f0319e9c9fd509a818fe
This commit is contained in:
tao wang 2022-10-31 15:52:07 +08:00 committed by Lane.Wei
parent 1c4ed26b81
commit b685cbf37c
2 changed files with 40 additions and 2 deletions

View file

@ -13,6 +13,7 @@
#include <wx/textctrl.h>
#include <wx/statline.h>
#include "Widgets/Button.hpp"
#include "Widgets/CheckBox.hpp"
#include "BBLStatusBar.hpp"
#include "BBLStatusBarSend.hpp"
@ -59,7 +60,9 @@ struct MsgDialog : DPIDialog
MsgDialog &operator=(const MsgDialog &) = delete;
virtual ~MsgDialog();
virtual void on_dpi_changed(const wxRect &suggested_rect);
void show_dsa_button();
bool get_checkbox_state();
virtual void on_dpi_changed(const wxRect& suggested_rect);
void SetButtonLabel(wxWindowID btn_id, const wxString& label, bool set_focus = false);
protected:
@ -84,10 +87,12 @@ protected:
wxFont boldfont;
wxBoxSizer *content_sizer;
wxBoxSizer *btn_sizer;
wxBoxSizer *m_dsa_sizer;
wxStaticBitmap *logo;
MsgButtonsHash m_buttons;
CheckBox* m_checkbox_dsa{nullptr};
};
wxDECLARE_EVENT(EVT_CHECKBOX_CHANGE, wxCommandEvent);
// Generic error dialog, used for displaying exceptions
class ErrorDialog : public MsgDialog