[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src/widgets textbox.cpp
From: |
Guillaume Melquiond |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src/widgets textbox.cpp |
Date: |
Sun, 19 Sep 2004 07:20:40 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Guillaume Melquiond <address@hidden> 04/09/19 11:14:20
Modified files:
src/widgets : textbox.cpp
Log message:
Switched to the new logging system
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/widgets/textbox.cpp.diff?tr1=1.54&tr2=1.55&r1=text&r2=text
Patches:
Index: wesnoth/src/widgets/textbox.cpp
diff -u wesnoth/src/widgets/textbox.cpp:1.54
wesnoth/src/widgets/textbox.cpp:1.55
--- wesnoth/src/widgets/textbox.cpp:1.54 Thu Aug 26 11:53:53 2004
+++ wesnoth/src/widgets/textbox.cpp Sun Sep 19 11:14:19 2004
@@ -1,4 +1,4 @@
-/* $Id: textbox.cpp,v 1.54 2004/08/26 11:53:53 isaaccp Exp $ */
+/* $Id: textbox.cpp,v 1.55 2004/09/19 11:14:19 silene Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -13,10 +13,11 @@
#include "textbox.hpp"
#include "../clipboard.hpp"
#include "../font.hpp"
+#include "../language.hpp"
+#include "../log.hpp"
#include "../show_dialog.hpp"
-#include "../video.hpp"
#include "../util.hpp"
-#include "../language.hpp"
+#include "../video.hpp"
#include "SDL.h"
#include <algorithm>
@@ -143,7 +144,7 @@
downarrow_.hide(grip_y == max_grip_y);
src.y = (max_y*(grip_y*100)/max_grip_y)/100;
- std::cerr << "set src.y to " << src.y << "/" <<
max_grip_y << "\n";
+ lg::info(lg::display) << "set src.y to " <<
src.y << "/" << max_grip_y << "\n";
}
uparrow_.set_dirty(true);
@@ -362,7 +363,7 @@
//Sanity check: verify that selection start and end are within text
//boundaries
if(is_selection() && !(size_t(selstart_) <= text_.size() &&
size_t(selend_) <= text_.size())) {
- std::cerr << "Warning: out-of-boundary selection\n";
+ lg::warn(lg::display) << "out-of-boundary selection\n";
selstart_ = selend_ = -1;
}
@@ -487,7 +488,7 @@
if(!(c == SDLK_UP || c == SDLK_DOWN || c == SDLK_LEFT || c ==
SDLK_RIGHT ||
c == SDLK_DELETE || c == SDLK_BACKSPACE || c == SDLK_END || c ==
SDLK_HOME)) {
if(character != 0)
- std::cerr << "Char: " << character << ", c = " << c <<
"\n";
+ lg::info(lg::display) << "Char: " << character << ", c
= " << c << "\n";
if(event.key.keysym.mod & KMOD_CTRL) {
switch(c) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src/widgets textbox.cpp,
Guillaume Melquiond <=