Author: mordante
Date: Sun Mar 13 11:18:48 2011
New Revision: 48881
URL: http://svn.gna.org/viewcvs/wesnoth?rev=48881&view=rev
Log:
Change teditor_new_map to use register_xxx.
Modified:
trunk/src/gui/dialogs/editor_new_map.cpp
trunk/src/gui/dialogs/editor_new_map.hpp
Modified: trunk/src/gui/dialogs/editor_new_map.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/editor_new_map.cpp?rev=48881&r1=48880&r2=48881&view=diff
==============================================================================
--- trunk/src/gui/dialogs/editor_new_map.cpp (original)
+++ trunk/src/gui/dialogs/editor_new_map.cpp Sun Mar 13 11:18:48 2011
@@ -15,9 +15,8 @@
#define GETTEXT_DOMAIN "wesnoth-editor"
#include "gui/dialogs/editor_new_map.hpp"
-#include "gui/widgets/integer_selector.hpp"
+
#include "gui/widgets/settings.hpp"
-#include "gui/dialogs/field.hpp"
namespace gui2 {
@@ -43,9 +42,9 @@
REGISTER_DIALOG(editor_new_map)
teditor_new_map::teditor_new_map(int& width, int& height)
- : map_width_(register_integer("width", false, width))
- , map_height_(register_integer("height", false, height))
{
+ register_integer("width", false, width);
+ register_integer("height", false, height);
}
} // namespace gui2
Modified: trunk/src/gui/dialogs/editor_new_map.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/editor_new_map.hpp?rev=48881&r1=48880&r2=48881&view=diff
==============================================================================
--- trunk/src/gui/dialogs/editor_new_map.hpp (original)
+++ trunk/src/gui/dialogs/editor_new_map.hpp Sun Mar 13 11:18:48 2011
@@ -43,12 +43,6 @@
}
private:
- /**
- * NOTE the map sizes are stored in a text variable since there is no
- * integer edit widget yet.
- */
- tfield_integer* map_width_;
- tfield_integer* map_height_;
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
virtual const std::string& window_id() const;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits