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.
18 lines
463 B
C++
18 lines
463 B
C++
#pragma once
|
|
class display_wallet : public wxPanel
|
|
{
|
|
public:
|
|
display_wallet(wxWindow*, wxFileName&);
|
|
~display_wallet();
|
|
private:
|
|
typedef MenuLink<display_wallet> MenuLink;
|
|
std::unique_ptr<ISqlite3> m_db;
|
|
ristretto255::CMasterSecret m_MasterSecret;
|
|
wxBoxSizer* m_lSizer;
|
|
wxBoxSizer* m_rSizer;
|
|
void close_menu_event_handler(wxCommandEvent&);
|
|
// MenuLink m_close(display_wallet::close);
|
|
MenuLink m_menuitem_close;
|
|
void OnClose(wxCloseEvent& event);
|
|
};
|