Files
ObsidianDragon/src/ui/windows/request_payment_dialog.h
T
DanSandClaude Opus 4.8 21be39c725 test(sweep): add capture surfaces for the Wave-1 standalone modals
Register sweep surfaces so the redesigned Wave-1 modals get captured for visual
review: modal-qr-popup, modal-request-payment, modal-validate-address,
modal-address-label, modal-daemon-prompt, and modal-antivirus (the last renders
only on Windows, where its #ifdef body compiles). Each is driven through the
dialog's public show()/flag; teardown closes it. Adds a static hide() to
RequestPaymentDialog / ValidateAddressDialog / AddressLabelDialog for clean sweep
teardown (they had no public close). The contact add/edit and explorer block-detail
modals are tab-embedded and not yet surfaced.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 17:15:24 -05:00

38 lines
744 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 generating payment requests with QR codes
*/
class RequestPaymentDialog {
public:
/**
* @brief Show the request payment dialog
* @param address Pre-fill with this address (optional)
*/
static void show(const std::string& address = "");
/**
* @brief Render the dialog (call each frame)
*/
static void render(App* app);
/**
* @brief Close the dialog + free its QR texture (used by the UI sweep teardown)
*/
static void hide();
};
} // namespace ui
} // namespace dragonx