forked from cheng/wallet
137a78735b
Painfully discovered that wxWidgets does not like it if you do not handle the close event. Default handling is broken, perhaps unavoidably because the base object does not know about the derived object.
27 lines
690 B
C++
27 lines
690 B
C++
#pragma once
|
|
|
|
class Frame;
|
|
class welcome_to_rhocoin : public wxPanel
|
|
{
|
|
public:
|
|
static inline welcome_to_rhocoin* singletonWelcome{ nullptr };
|
|
welcome_to_rhocoin(wxWindow*);
|
|
~welcome_to_rhocoin();
|
|
wxButton* AddButton(wxString, void(Frame::*)(wxCommandEvent&));
|
|
wxButton* AddButton(const char sz[], void(Frame::*)(wxCommandEvent&));
|
|
private:
|
|
void OnClose(wxCloseEvent& event);
|
|
};
|
|
|
|
extern welcome_to_rhocoin* singletonWelcome;
|
|
|
|
class new_wallet_new_secret : public wxPanel
|
|
{
|
|
public:
|
|
new_wallet_new_secret(wxWindow*);
|
|
~new_wallet_new_secret();
|
|
wxButton* AddButton(const wxString&, void(Frame::*)(wxCommandEvent&));
|
|
|
|
};
|
|
|
|
extern new_wallet_new_secret* singleton_new_wallet_new_secret; |