diff --git a/dependencies/subprojects/animationwindow/include/AnimationWindow.h b/dependencies/subprojects/animationwindow/include/AnimationWindow.h index de1941431b66a3bf410897e02ebea4a3b36b61bc..e2543ab3d5b62deb34c3cc8abadb911ab59ef4de 100644 --- a/dependencies/subprojects/animationwindow/include/AnimationWindow.h +++ b/dependencies/subprojects/animationwindow/include/AnimationWindow.h @@ -117,14 +117,11 @@ class AnimationWindow { // Add a GUI widget to the window such that it becomes visible and the user can interact with it void add(TDT4102::Widget& widgetToAdd); - // Different dialogs provided by the operating system - void show_message(std::string title, std::string message, TDT4102::MessageType type = TDT4102::MessageType::INFO) const; - bool show_yesno_dialog(std::string title, std::string message, TDT4102::MessageType type = TDT4102::MessageType::QUESTION) const; - void show_notification(std::string title, std::string message, TDT4102::MessageType type = TDT4102::MessageType::INFO) const; - std::filesystem::path show_open_file_dialog(std::string title, std::filesystem::path initialDirectory = std::filesystem::current_path()) const; - std::filesystem::path show_select_directory_dialog(std::string title, std::filesystem::path initialDirectory = std::filesystem::current_path()) const; - std::filesystem::path show_save_file_dialog(std::string title, std::filesystem::path initialDirectory = std::filesystem::current_path()) const; - + // Show an information dialog message to the user + void show_info_dialog(const std::string& message) const; + // Show an alert message to the user + void show_error_dialog(const std::string& message) const; + // Getters for the window dimensions int width() const; int height() const;