Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-01-22 12:21:58 +0000
committerStijn Buys <ingar@osirion.org>2012-01-22 12:21:58 +0000
commitfd3c0a700cf93d81615e32fbaade138ebf85f12c (patch)
tree007f784623216db302fbc317e6792aebb53410bf /src/client/savegamemenu.h
parentbe017b17a04254f949bf5feb4523ec7c9b9d0bf5 (diff)
Added confirm dialogs for load/save/delete game menu actions.
Diffstat (limited to 'src/client/savegamemenu.h')
-rw-r--r--src/client/savegamemenu.h27
1 files changed, 26 insertions, 1 deletions
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