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:
54
src/ui/windows/qr_popup_dialog.h
Normal file
54
src/ui/windows/qr_popup_dialog.h
Normal file
@@ -0,0 +1,54 @@
|
||||
// DragonX Wallet - ImGui Edition
|
||||
// Copyright 2024-2026 The Hush Developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
|
||||
namespace dragonx {
|
||||
|
||||
class App;
|
||||
|
||||
namespace ui {
|
||||
|
||||
/**
|
||||
* @brief Dialog showing a large QR code for an address
|
||||
*/
|
||||
class QRPopupDialog {
|
||||
public:
|
||||
/**
|
||||
* @brief Show the dialog for an address
|
||||
* @param address The address to display as QR
|
||||
* @param label Optional label for the address
|
||||
*/
|
||||
static void show(const std::string& address, const std::string& label = "");
|
||||
|
||||
/**
|
||||
* @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();
|
||||
|
||||
/**
|
||||
* @brief Close the dialog and cleanup
|
||||
*/
|
||||
static void close();
|
||||
|
||||
private:
|
||||
static bool s_open;
|
||||
static std::string s_address;
|
||||
static std::string s_label;
|
||||
static uintptr_t s_qr_texture;
|
||||
static int s_qr_width;
|
||||
static int s_qr_height;
|
||||
};
|
||||
|
||||
} // namespace ui
|
||||
} // namespace dragonx
|
||||
Reference in New Issue
Block a user