Files
ObsidianDragon/src/ui/windows/shield_dialog.h
DanS 3aee55b49c 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)
2026-02-27 00:26:01 -06:00

48 lines
997 B
C++

// 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 shielding coinbase rewards and merging funds
*/
class ShieldDialog {
public:
enum class Mode {
ShieldCoinbase, // Shield mining rewards (t-addr coinbase -> z-addr)
MergeToAddress // Merge multiple inputs to single z-addr
};
/**
* @brief Show the shield dialog
* @param mode Operating mode
*/
static void show(Mode mode = Mode::ShieldCoinbase);
/**
* @brief Show shield coinbase dialog for specific address
*/
static void showShieldCoinbase(const std::string& fromAddress = "*");
/**
* @brief Show merge to address dialog
*/
static void showMerge();
/**
* @brief Render the dialog (call each frame)
*/
static void render(App* app);
};
} // namespace ui
} // namespace dragonx