From fd3c0a700cf93d81615e32fbaade138ebf85f12c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 22 Jan 2012 12:21:58 +0000 Subject: Added confirm dialogs for load/save/delete game menu actions. --- src/client/savegamemenu.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'src/client/savegamemenu.h') diff --git a/src/client/savegamemenu.h b/src/client/savegamemenu.h index 2d895d8..d615102 100644 --- a/src/client/savegamemenu.h +++ b/src/client/savegamemenu.h @@ -43,12 +43,30 @@ protected: virtual void show(); + /** + * @brief show file info for the selected savegame + * */ void show_file_info(); + /** + * @brief show confirm save dialog + * */ + void show_save_dialog(); + + /** + * @brief show confirm load dialog + * */ + void show_load_dialog(); + + /** + * @brief show confirm delete dialog + * */ + void show_delete_dialog(); + void refresh(); private: - void get_savegame_info(const std::string & savename, std::string &game_descr, std::string &game_timestamp); + void get_savegame_info(const std::string & savename, std::string &game_descr, std::string &game_info, std::string &game_timestamp); Mode savegamemenu_mode; @@ -57,10 +75,17 @@ private: ui::ListView *savegamemenu_filelistview; ui::IconButton *savegamemenu_deletebutton; + ui::Label *savegamemenu_descrtitle; ui::Label *savegamemenu_descrlabel; ui::InputBox *savegamemenu_descrinput; ui::Button *savegamemenu_savebutton; + ui::Button *savegamemenu_cancelbutton; + + ui::Button *savegamemenu_confirmsavebutton; + ui::Button *savegamemenu_confirmdeletebutton; + + }; // class SaveGameMenu -- cgit v1.2.3