1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
#ifndef SCREEM_APPLICATION_H
#define SCREEM_APPLICATION_H
#include <config.h>
#include <glib-object.h>
#include <gconf/gconf-client.h>
#include <gtksourceview/gtksourcelanguagesmanager.h>
#include <gtk/gtktreemodel.h>
#include <libgnomevfs/gnome-vfs-monitor.h>
#include "screem-site.h"
#include "screem-helper.h"
#include "screem-editor.h"
#include "screem-dtd-db.h"
#include "screem-session.h"
#define SCREEM_TYPE_APPLICATION (screem_application_get_type ())
#define SCREEM_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SCREEM_TYPE_APPLICATION, ScreemApplication))
#define SCREEM_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SCREEM_TYPE_APPLICATION, ScreemApplicationClass))
#define SCREEM_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SCREEM_TYPE_APPLICATION))
#ifndef SCREEM_WINDOW_DEFINED
#define SCREEM_WINDOW_DEFINED
typedef struct ScreemWindow ScreemWindow;
#endif
#ifndef SCREEM_PLUGIN
#define SCREEM_PLUGIN
typedef struct ScreemPlugin ScreemPlugin;
#endif
typedef struct ScreemApplication ScreemApplication;
typedef struct ScreemApplicationPrivate ScreemApplicationPrivate;
struct ScreemApplication {
GObject parent;
ScreemApplicationPrivate *priv;
GList *plugins;
GList *helpers;
GList *macros;
gboolean offline;
gint offline_notify;
/* UI stuff */
GtkWidget *hint;
GConfClient *client;
};
typedef struct {
GObjectClass parent_class;
} ScreemApplicationClass;
GType screem_application_get_type( void );
ScreemApplication *screem_application_new( void );
void screem_application_startup( ScreemApplication *app,
const gchar *session,
const gchar **files );
void screem_application_close( ScreemApplication *app );
GList *screem_application_get_window_list( ScreemApplication *app );
void screem_application_close_all_windows( ScreemApplication *app );
ScreemWindow *screem_application_create_window( ScreemApplication *app );
GList *screem_application_get_loaded_sites( ScreemApplication *app );
void screem_application_add_site( ScreemApplication *app, ScreemSite *site );
ScreemSite *screem_application_get_site( ScreemApplication *app,
const gchar *uri );
ScreemSite *screem_application_get_site_by_name( ScreemApplication *app,
const gchar *name );
ScreemSite *screem_application_get_default_site( ScreemApplication *app );
void screem_application_close_site( ScreemApplication *app, ScreemSite *site );
void screem_application_close_all_sites( ScreemApplication *app );
gboolean screem_application_save_sites( ScreemApplication *app );
void screem_dtd_fill_combo( ScreemApplication *application, GtkWidget *combo );
void screem_dtd_fill_list( ScreemApplication *application, GtkListStore *store );
void screem_application_register_plugin( ScreemApplication *application,
ScreemPlugin *plugin );
GtkSourceLanguagesManager* screem_application_load_syntax_tables();
void screem_application_add_helper( ScreemApplication *application,
ScreemHelper *helper );
void screem_application_remove_helper( ScreemApplication *application,
ScreemHelper *helper );
void screem_application_add_macro( ScreemApplication *application,
ScreemEditorMacro *macro );
void screem_application_remove_macro( ScreemApplication *application,
ScreemEditorMacro *macro );
ScreemDTDDB *screem_application_get_dtd_db( ScreemApplication *application );
void screem_application_set_cursor( ScreemApplication *app,
GdkCursorType type );
void screem_application_file_op( GnomeVFSMonitorEventType type,
const gchar *uri, gpointer data );
ScreemSession *screem_application_get_session( ScreemApplication *app );
GtkTreeModel *screem_application_get_encodings( ScreemApplication *app );
void screem_application_exec_helpers( ScreemApplication *app,
ScreemPage *page );
#endif
|