Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

mlview-app.c File Reference

the mlview application class definition. More...

#include <stdio.h>
#include <gnome.h>
#include "mlview-editor.h"
#include "mlview-app.h"
#include "mlview-app-context.h"
#include "mlview-global-settings.h"
#include "config.h"

Go to the source code of this file.

Functions

void mlview_app_build_set_global_settings (MlViewAppContext *a_app_context)
 Stores the application global constants in the application instance of MlViewAppContext.

void mlview_app_set_icon (GnomeApp *a_app)
 Sets the icon of the current instance of GnomeApp to the MlView's icon.

GnomeApp * mlview_app_new (gchar *a_appname)
 Builds the mlview application.

MlViewEditormlview_app_get_editor (GnomeApp *a_app)
 Getter of the instance of MlViewEditor associated to the current instance of GnomeApp.


Detailed Description

the mlview application class definition.

It instanciates mlview's instance of GnomeApp, fills it with an instance of MlViewEditor, builds the application menus and toolbars and creates an instance of MlViewAppContext.

Definition in file mlview-app.c.


Function Documentation

void mlview_app_build_set_global_settings MlViewAppContext   a_app_context
 

Stores the application global constants in the application instance of MlViewAppContext.

Parameters:
a_app_context  the main instance of MlViewAppContext.

Definition at line 567 of file mlview-app.c.

References mlview_app_context_set_settings_value(), and MLVIEW_IS_APP_CONTEXT.

Referenced by mlview_app_new().

MlViewEditor* mlview_app_get_editor GnomeApp *    a_app
 

Getter of the instance of MlViewEditor associated to the current instance of GnomeApp.

Parameters:
a_app  the instance of GnomeApp to consider.
Returns:
the instance of MlViewEditor associated to a_app or NULL if nothing is associated.

Definition at line 684 of file mlview-app.c.

References mlview_app_context_get_element().

Referenced by main().

GnomeApp* mlview_app_new gchar *    a_appname
 

Builds the mlview application.

Parameters:
a_appname  the name of the mlview application.
Returns:
the instance of GnomeApp that holds mlview.

Definition at line 620 of file mlview-app.c.

References mlview_app_build_set_global_settings(), MLVIEW_APP_CONTEXT, mlview_app_context_get_instance(), mlview_app_context_sbar_set_default_message(), mlview_app_context_set_element(), MLVIEW_EDITOR, mlview_editor_new(), and mlview_editor_set_app_context().

Referenced by main().

void mlview_app_set_icon GnomeApp *    a_app
 

Sets the icon of the current instance of GnomeApp to the MlView's icon.

Parameters:
a_app  instance of GnomeApp to consider.

Definition at line 596 of file mlview-app.c.

References mlview_app_context_set_window_icon(), and MLVIEW_IS_APP_CONTEXT.

Referenced by main().


Generated on Sat Jul 6 09:57:38 2002 for Gnome-MlView by doxygen1.2.16