[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src dialogs.cpp dialogs.hpp
From: |
Philippe Plantier |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src dialogs.cpp dialogs.hpp |
Date: |
Wed, 03 Nov 2004 17:26:02 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Philippe Plantier <address@hidden> 04/11/03 22:20:27
Modified files:
src : dialogs.cpp dialogs.hpp
Log message:
Fixed the profile button now working.
Fixed by renaming "process" to process_event in the unit preview pane,
whether
this is the right thing to do should be reviewed.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/dialogs.cpp.diff?tr1=1.64&tr2=1.65&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/dialogs.hpp.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
Patches:
Index: wesnoth/src/dialogs.cpp
diff -u wesnoth/src/dialogs.cpp:1.64 wesnoth/src/dialogs.cpp:1.65
--- wesnoth/src/dialogs.cpp:1.64 Tue Nov 2 20:50:55 2004
+++ wesnoth/src/dialogs.cpp Wed Nov 3 22:20:27 2004
@@ -1,4 +1,4 @@
-/* $Id: dialogs.cpp,v 1.64 2004/11/02 20:50:55 silene Exp $ */
+/* $Id: dialogs.cpp,v 1.65 2004/11/03 22:20:27 gruikya Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -592,6 +592,12 @@
}
}
+void unit_preview_pane::set_location(SDL_Rect const &rect)
+{
+ widget::set_location(rect);
+ register_rectangle(rect);
+}
+
void unit_preview_pane::draw_contents()
{
if(index_ < 0 || index_ >= int(units_->size())) {
@@ -725,7 +731,7 @@
}
}
-void unit_preview_pane::process()
+void unit_preview_pane::process_event()
{
if(map_ != NULL && details_button_.pressed() && index_ >= 0 && index_ <
int(units_->size())) {
Index: wesnoth/src/dialogs.hpp
diff -u wesnoth/src/dialogs.hpp:1.25 wesnoth/src/dialogs.hpp:1.26
--- wesnoth/src/dialogs.hpp:1.25 Tue Nov 2 20:50:55 2004
+++ wesnoth/src/dialogs.hpp Wed Nov 3 22:20:27 2004
@@ -1,4 +1,4 @@
-/* $Id: dialogs.hpp,v 1.25 2004/11/02 20:50:55 silene Exp $ */
+/* $Id: dialogs.hpp,v 1.26 2004/11/03 22:20:27 gruikya Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -72,10 +72,12 @@
bool show_above() const;
bool left_side() const;
void set_selection(int index);
+ void set_location(SDL_Rect const &);
+ using gui::preview_pane::set_location;
private:
void draw_contents();
- void process();
+ void process_event();
gui::button details_button_;
const gamemap* map_;