gschem

x_log.c File Reference

#include <config.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "gschem.h"
Include dependency graph for x_log.c:

Go to the source code of this file.

Functions

static void x_log_callback_response (GtkDialog *dialog, gint arg1, gpointer user_data)
 Log window callback function.
static void log_message (Log *log, const gchar *message, const gchar *style)
 Add a message to the log window.
static void log_class_init (LogClass *klass)
 Log class initialization function.
static void log_init (Log *log)
 Log class instance initialization function.
void x_log_open ()
 Open the Log window.
void x_log_close ()
 Close the Log window.
void x_log_message (const gchar *log_domain, GLogLevelFlags log_level, const gchar *message)
 Add a message to the Log window.
GType log_get_type ()
 Get the Log class type.

Variables

static GtkWidget * log_dialog = NULL

Function Documentation

static void x_log_callback_response ( GtkDialog *  dialog,
gint  arg1,
gpointer  user_data 
) [static]
Function Description
Callback function for the Log window. Only used to close the window.

Definition at line 163 of file x_log.c.

Here is the call graph for this function:

static void log_message ( Log log,
const gchar *  message,
const gchar *  style 
) [static]
Function Description
Parameters:
[in]logThe log instance
[in]messageThe message to be logged
[in]styleThe style to use in the text rendering

Definition at line 187 of file x_log.c.

static void log_class_init ( LogClass klass) [static]
Function Description

Class initialization function for the Log class. Currently does nothing.

Definition at line 261 of file x_log.c.

static void log_init ( Log log) [static]
Function Description

Instance initialization for the Log class. Sets up the log parameters, creates a scrollable text view with highlighting and a Close button.

Parameters:
logthe instance of the class to initialize

Definition at line 277 of file x_log.c.

void x_log_open ( )
Function Description
If the log dialog instance doesn't exist, create it, and read the current log file contents (if they exist) and insert them into the log dialog.

If the log dialog instance does exist, present it to the user.

Definition at line 72 of file x_log.c.

Here is the call graph for this function:

void x_log_close ( )
Function Description
If the log window exists, destroy it.

Definition at line 120 of file x_log.c.

void x_log_message ( const gchar *  log_domain,
GLogLevelFlags  log_level,
const gchar *  message 
)
Function Description
Add a message to the Log window. Calls log_message() to do the actual logging.
Parameters:
[in]log_domain
[in]log_levelThe severity of the message
[in]messageThe message to be displayed

Definition at line 140 of file x_log.c.

Here is the call graph for this function:

GType log_get_type ( void  )
Function Description

On first call, registers the Log class with the GType dynamic type system. On subsequent calls, returns the saved value from first execution.

Returns:
the type identifier for the Log class

Definition at line 228 of file x_log.c.

Here is the call graph for this function:


Variable Documentation

GtkWidget* log_dialog = NULL [static]

Definition at line 60 of file x_log.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines