Plan document session prompts

This commit is contained in:
2026-06-05 08:07:54 +02:00
parent 5def47cdcc
commit e5526c6d0a
11 changed files with 316 additions and 26 deletions

View File

@@ -24,6 +24,7 @@ struct AppMessageDialogPlan {
std::string title;
std::string message;
std::string ok_caption = "Ok";
std::string cancel_caption = "Cancel";
bool show_cancel = false;
};
@@ -48,12 +49,15 @@ struct AppInputDialogPlan {
[[nodiscard]] inline AppMessageDialogPlan plan_app_message_dialog(
std::string_view title,
std::string_view message,
bool show_cancel)
bool show_cancel,
std::string_view ok_caption = "Ok",
std::string_view cancel_caption = "Cancel")
{
return {
std::string(title),
std::string(message),
"Ok",
std::string(ok_caption),
std::string(cancel_caption),
show_cancel,
};
}