1
0
forked from cheng/wallet
wallet/src/display_wallet.h
Cheng c65f2fbf6e
Cleaned up the add name on the dry prinicple
fixed bug in the position of the inserted
name that happened with names identical
except for capitalization.
2023-11-12 14:53:23 +10:00

25 lines
642 B
C++

#pragma once
class display_wallet : public wxPanel
{
public:
display_wallet(wxWindow*, wxFileName&);
~display_wallet();
private:
struct cleanup;
typedef MenuLink<display_wallet> MenuLink;
ro::dbconnect m_db;
sql_read_from_misc m_read_from_misc;
ro::sql m_read_names_and_keys;
sql_insert_name m_insert_name;
ro::sql m_find_position;
ristretto255::CMasterSecret m_MasterSecret;
wxBoxSizer* m_lSizer;
wxBoxSizer* m_rSizer;
void close_menu_event_handler(wxCommandEvent&);
void add_name_event_handler(wxCommandEvent&);
void OnClose(wxCloseEvent& event);
wxMenuTracker m_DisplayWalletEditMenu;
void refresh_from_database();
};