ObsidianDragon - DragonX ImGui Wallet
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)
This commit is contained in:
50
src/ui/windows/validate_address_dialog.h
Normal file
50
src/ui/windows/validate_address_dialog.h
Normal file
@@ -0,0 +1,50 @@
|
||||
// DragonX Wallet - ImGui Edition
|
||||
// Copyright 2024-2026 The Hush Developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace dragonx {
|
||||
|
||||
class App;
|
||||
|
||||
namespace ui {
|
||||
|
||||
/**
|
||||
* @brief Dialog for validating cryptocurrency addresses
|
||||
*/
|
||||
class ValidateAddressDialog {
|
||||
public:
|
||||
/**
|
||||
* @brief Show the validate address dialog
|
||||
*/
|
||||
static void show();
|
||||
|
||||
/**
|
||||
* @brief Render the dialog (call every frame)
|
||||
* @param app Pointer to app instance for RPC calls
|
||||
*/
|
||||
static void render(App* app);
|
||||
|
||||
/**
|
||||
* @brief Check if dialog is currently open
|
||||
*/
|
||||
static bool isOpen();
|
||||
|
||||
private:
|
||||
static bool s_open;
|
||||
static bool s_validated;
|
||||
static bool s_validating;
|
||||
static char s_address_input[512];
|
||||
|
||||
// Validation results
|
||||
static bool s_is_valid;
|
||||
static bool s_is_mine;
|
||||
static std::string s_address_type;
|
||||
static std::string s_error_message;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace dragonx
|
||||
Reference in New Issue
Block a user