Author: jhinrichs
Date: Tue Apr 21 21:21:49 2009
New Revision: 35100
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35100&view=rev
Log:
Savegame reorganization Step 1: Providing a simpler interface to saving and
loading.
Rename interactive_ to show_confirmation_, thus better describing its task.
Modified:
trunk/src/savegame.cpp
trunk/src/savegame.hpp
Modified: trunk/src/savegame.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/savegame.cpp?rev=35100&r1=35099&r2=35100&view=diff
==============================================================================
--- trunk/src/savegame.cpp (original)
+++ trunk/src/savegame.cpp Tue Apr 21 21:21:49 2009
@@ -461,7 +461,7 @@
, filename_()
, title_(title)
, error_message_(_("The game could not be saved"))
- , interactive_(false)
+ , show_confirmation_(false)
, compress_saves_(compress_saves)
{}
@@ -469,7 +469,7 @@
gui::DIALOG_TYPE dialog_type, const bool has_exit_button,
const
bool ask_for_filename)
{
- interactive_ = ask_for_filename;
+ show_confirmation_ = ask_for_filename;
create_filename();
const int res = dialogs::get_save_name(gui, message, _("Name: "),
&filename_, dialog_type, title_, has_exit_button, ask_for_filename);
@@ -499,7 +499,7 @@
before_save();
save_game_internal(filename_);
- if (gui != NULL && interactive_)
+ if (gui != NULL && show_confirmation_)
gui::message_dialog(*gui,_("Saved"),_("The game has
been saved")).show();
} catch(game::save_game_failed&) {
if (gui != NULL){
Modified: trunk/src/savegame.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/savegame.hpp?rev=35100&r1=35099&r2=35100&view=diff
==============================================================================
--- trunk/src/savegame.hpp (original)
+++ trunk/src/savegame.hpp Tue Apr 21 21:21:49 2009
@@ -174,10 +174,8 @@
std::string error_message_; /** Error message to be displayed if the
savefile could not be generated. */
- /** Determines if the save is done interactively or not. This controls
if a filename is
- generated automatically (interactive = false) and if a message
is displayed that the
- game was successfully saved (interactive = true). */
- bool interactive_;
+ /** Determines if a confirmation of successful saving the game is
shown. */
+ bool show_confirmation_;
/** Determines, if compression is used for the savegame file */
bool compress_saves_;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits