From 430524810e67d3c223a2ab819f45b882b419c45d Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 14 Jun 2005 12:29:40 +0000 Subject: Incorporated the use of the Info object everywhere... also using the log functionality. --- src/info_gui.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/info_gui.cc') diff --git a/src/info_gui.cc b/src/info_gui.cc index 2559402..0d7d701 100644 --- a/src/info_gui.cc +++ b/src/info_gui.cc @@ -38,8 +38,6 @@ #include "info_gui.h" -#include "miav_config.h" - #include #include @@ -59,9 +57,10 @@ bool InfoEventHandler::eventFilter( QObject *o, QEvent *e ) } } -InfoGui::InfoGui(QApplication *a, QWidget *p): Info() +InfoGui::InfoGui(QApplication *a, QWidget *p, MiavConfig *c): Info() { - log_filename = *config->readString("client_log_file"); + this->config = c; + log_filename = *(this->config->readString("client_log_file")); qapp = a; parent = p; @@ -118,6 +117,8 @@ void InfoGui::error(char *fmt, ...) va_end(argp); showmsg(buf, TXT_ERROR_TITLE, ICON_ERROR); + + log("Error: %s", buf); } void InfoGui::warn(char *fmt, ...) @@ -130,6 +131,8 @@ void InfoGui::warn(char *fmt, ...) va_end(argp); showmsg(buf, TXT_WARNING_TITLE, ICON_WARNING); + + log("Warning: %s", buf); } void InfoGui::info(char *fmt, ...) @@ -142,6 +145,8 @@ void InfoGui::info(char *fmt, ...) va_end(argp); showmsg(buf, TXT_INFO_TITLE, ICON_INFO); + + log("Info: %s", buf); } -- cgit v1.2.3