messages.cpp revision dbb33756bd786e9432e18ec7be93f8c416e1b492
/**
* @file
* Messages dialog - implementation.
*/
/* Authors:
* Bob Jamison
* Other dudes from The Inkscape Organization
*
* Copyright (C) 2004, 2005 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "messages.h"
#include "verbs.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
//#########################################################################
//## E V E N T S
//#########################################################################
/**
* Also a public method. Remove all text from the dialog
*/
{
}
//#########################################################################
//## C O N S T R U C T O R / D E S T R U C T O R
//#########################################################################
/**
* Constructor
*/
{
//## Add a menu for clear()
//### Set up the text widget
messageText.set_editable(false);
// sick of this thing shrinking too much
message(_("Ready."));
message(_("Enable log display by setting dialogs.debug 'redirect' attribute to 1 in preferences.xml"));
handlerDefault = 0;
handlerGlibmm = 0;
handlerAtkmm = 0;
handlerPangomm = 0;
handlerGdkmm = 0;
handlerGtkmm = 0;
}
{
}
//#########################################################################
//## M E T H O D S
//#########################################################################
{
uMsg += '\n';
}
// dialogLoggingCallback is already used in debug.cpp
GLogLevelFlags /*log_level*/,
const gchar *messageText,
{
}
void Messages::captureLogMessages()
{
/*
This might likely need more code, to capture Gtkmm
*/
if ( !handlerDefault ) {
dialogLoggingCallback, (gpointer)this);
}
if ( !handlerGlibmm ) {
dialogLoggingCallback, (gpointer)this);
}
if ( !handlerAtkmm ) {
dialogLoggingCallback, (gpointer)this);
}
if ( !handlerPangomm ) {
dialogLoggingCallback, (gpointer)this);
}
if ( !handlerGdkmm ) {
dialogLoggingCallback, (gpointer)this);
}
if ( !handlerGtkmm ) {
dialogLoggingCallback, (gpointer)this);
}
message((char*)"log capture started");
}
void Messages::releaseLogMessages()
{
if ( handlerDefault ) {
handlerDefault = 0;
}
if ( handlerGlibmm ) {
handlerGlibmm = 0;
}
if ( handlerAtkmm ) {
handlerAtkmm = 0;
}
if ( handlerPangomm ) {
handlerPangomm = 0;
}
if ( handlerGdkmm ) {
handlerGdkmm = 0;
}
if ( handlerGtkmm ) {
handlerGtkmm = 0;
}
message((char*)"log capture discontinued");
}
} //namespace Dialog
} //namespace UI
} //namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :