Full-node GUI wallet for DragonX cryptocurrency. Built with Dear ImGui, SDL3, and OpenGL3/DX11. Features: - Send/receive shielded and transparent transactions - Autoshield with merged transaction display - Built-in CPU mining (xmrig) - Peer management and network monitoring - Wallet encryption with PIN lock - QR code generation for receive addresses - Transaction history with pagination - Console for direct RPC commands - Cross-platform (Linux, Windows)
46 lines
878 B
C++
46 lines
878 B
C++
// DragonX Wallet - ImGui Edition
|
|
// Copyright 2024-2026 The Hush Developers
|
|
// Released under the GPLv3
|
|
|
|
#pragma once
|
|
|
|
namespace dragonx {
|
|
|
|
class App;
|
|
|
|
namespace ui {
|
|
|
|
/**
|
|
* @brief Address book dialog for managing saved addresses
|
|
*/
|
|
class AddressBookDialog {
|
|
public:
|
|
/**
|
|
* @brief Show the address book dialog
|
|
*/
|
|
static void show();
|
|
|
|
/**
|
|
* @brief Render the dialog (call every frame)
|
|
* @param app Pointer to app instance
|
|
*/
|
|
static void render(App* app);
|
|
|
|
/**
|
|
* @brief Check if dialog is currently open
|
|
*/
|
|
static bool isOpen();
|
|
|
|
private:
|
|
static bool s_open;
|
|
static int s_selected_index;
|
|
static bool s_show_add_dialog;
|
|
static bool s_show_edit_dialog;
|
|
static char s_edit_label[128];
|
|
static char s_edit_address[512];
|
|
static char s_edit_notes[512];
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace dragonx
|