2006-04-07 22:39:13 -07:00
|
|
|
/*
|
|
|
|
* mooedit-script.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MOO_EDIT_SCRIPT_H__
|
|
|
|
#define __MOO_EDIT_SCRIPT_H__
|
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
#include <mooedit/mooedit.h>
|
2006-04-07 22:39:13 -07:00
|
|
|
#include <mooscript/mooscript-context.h>
|
2006-08-15 22:18:16 -07:00
|
|
|
#include <gtk/gtkwindow.h>
|
2006-04-07 22:39:13 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
#define MOO_TYPE_EDIT_SCRIPT_CONTEXT (moo_edit_script_context_get_type ())
|
|
|
|
#define MOO_EDIT_SCRIPT_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_EDIT_SCRIPT_CONTEXT, MooEditScriptContext))
|
|
|
|
#define MOO_EDIT_SCRIPT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_EDIT_SCRIPT_CONTEXT, MooEditScriptContextClass))
|
|
|
|
#define MOO_IS_EDIT_SCRIPT_CONTEXT(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_EDIT_SCRIPT_CONTEXT))
|
|
|
|
#define MOO_IS_EDIT_SCRIPT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_EDIT_SCRIPT_CONTEXT))
|
|
|
|
#define MOO_EDIT_SCRIPT_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_EDIT_SCRIPT_CONTEXT, MooEditScriptContextClass))
|
2006-04-18 12:42:55 -07:00
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
typedef struct _MooEditScriptContext MooEditScriptContext;
|
|
|
|
typedef struct _MooEditScriptContextClass MooEditScriptContextClass;
|
2006-04-07 22:39:13 -07:00
|
|
|
|
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
struct _MooEditScriptContext {
|
|
|
|
MSContext base;
|
|
|
|
GtkTextView *doc;
|
2006-04-07 22:39:13 -07:00
|
|
|
};
|
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
struct _MooEditScriptContextClass {
|
|
|
|
MSContextClass base_class;
|
2006-04-07 22:39:13 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
GType moo_edit_script_context_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2006-08-20 01:49:33 -07:00
|
|
|
MSContext *moo_edit_script_context_new (GtkTextView *doc,
|
|
|
|
GtkWindow *window);
|
|
|
|
|
|
|
|
void moo_edit_script_context_set_doc (MooEditScriptContext *ctx,
|
|
|
|
GtkTextView *doc);
|
2006-04-07 22:39:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MOO_EDIT_SCRIPT_H__ */
|