Phase 1. DialogWarningHeader care header (was a hand-rolled red icon+text); centered DialogActionFooter (Export + Close) replacing the StyledButtons + two separators; on full success the saved path shows in a copy field with a green check, partial/error render inline; export progress uses LoadingDots. Full i18n: the previously-hardcoded notification + status strings now use TR (8 new export_keys_* keys in en + 8 langs). Added hide() + a modal-export-all-keys sweep surface. Also fixes a latent Begin/EndOverlayDialog imbalance on the 0-address early return. No change to the export RPC logic. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
677 B
C++
37 lines
677 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 exporting all wallet keys to a file
|
|
*
|
|
* Exports all z-address and t-address private keys to a text file
|
|
*/
|
|
class ExportAllKeysDialog {
|
|
public:
|
|
// Show the dialog
|
|
static void show();
|
|
|
|
// Render the dialog (call each frame)
|
|
static void render(App* app);
|
|
|
|
// Check if dialog is open
|
|
static bool isOpen();
|
|
|
|
// Close the dialog (used by the UI sweep teardown)
|
|
static void hide();
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace dragonx
|