1
0
forked from cheng/wallet
wallet/display_wallet.h
Cheng 137a78735b
Fixing window switches within the frame
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.
2022-04-03 12:07:41 +10:00

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);
};