Thin legacy app dialog shell

This commit is contained in:
2026-06-17 00:14:25 +02:00
parent 371095770d
commit 86e57d47ad
3 changed files with 55 additions and 14 deletions

View File

@@ -3,6 +3,7 @@
#include "app_core/app_dialog.h"
#include <memory>
#include <string>
class App;
class NodeInputBox;
@@ -17,14 +18,31 @@ namespace pp::panopainter {
App& app,
const pp::app::AppProgressDialogPlan& plan);
[[nodiscard]] std::shared_ptr<NodeProgressBar> show_legacy_app_progress_dialog(
App& app,
const std::string& title,
int total);
[[nodiscard]] std::shared_ptr<NodeMessageBox> create_legacy_app_message_dialog(
App& app,
const pp::app::AppMessageDialogPlan& plan);
[[nodiscard]] std::shared_ptr<NodeMessageBox> show_legacy_app_message_dialog(
App& app,
const std::string& title,
const std::string& text,
bool cancel_button);
[[nodiscard]] std::shared_ptr<NodeInputBox> create_legacy_app_input_dialog(
App& app,
const pp::app::AppInputDialogPlan& plan);
[[nodiscard]] std::shared_ptr<NodeInputBox> show_legacy_app_input_dialog(
App& app,
const std::string& title,
const std::string& field_name,
const std::string& ok_caption);
[[nodiscard]] std::shared_ptr<NodeProgressBar> legacy_progress_dialog_node(
const std::shared_ptr<pp::app::AppProgressDialog>& dialog) noexcept;