Phase 1 (first modal). Bring the CSV export dialog onto the key-import reference:
- Struct-form OverlayDialogSpec / BlurFloat (was the legacy positional overload).
- material::DialogActionFooter (centered TactileButton pair) replacing the
StyledButtons + the two ImGui::Separators.
- Full i18n: TR("close") and the success/error status now via TR (were hardcoded
English); on success the saved path shows in a widgets::AddressCopyField with a
green check.
- Add ExportTransactionsDialog::hide() + a modal-export-transactions sweep surface
so the dialog is captured (it wasn't before).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
35 lines
605 B
C++
35 lines
605 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 transactions to CSV
|
|
*/
|
|
class ExportTransactionsDialog {
|
|
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
|