2006-04-20 03:57:05 -05:00
|
|
|
/*
|
2006-08-19 00:59:53 -05:00
|
|
|
* mooeditaction.h
|
2006-04-20 03:57:05 -05:00
|
|
|
*
|
2007-06-24 12:56:20 -05:00
|
|
|
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2006-04-20 03:57:05 -05:00
|
|
|
*
|
2007-06-24 12:56:20 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
2007-09-23 11:47:28 -05:00
|
|
|
* License version 2.1 as published by the Free Software Foundation.
|
2006-04-20 03:57:05 -05:00
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_EDIT_ACTION_H
|
|
|
|
#define MOO_EDIT_ACTION_H
|
2006-04-20 03:57:05 -05:00
|
|
|
|
2006-08-15 02:12:41 -05:00
|
|
|
#include <mooutils/mooaction.h>
|
2006-04-20 03:57:05 -05:00
|
|
|
#include <mooedit/mooedit.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_EDIT_ACTION (moo_edit_action_get_type ())
|
|
|
|
#define MOO_EDIT_ACTION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_EDIT_ACTION, MooEditAction))
|
|
|
|
#define MOO_EDIT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_EDIT_ACTION, MooEditActionClass))
|
|
|
|
#define MOO_IS_EDIT_ACTION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_EDIT_ACTION))
|
|
|
|
#define MOO_IS_EDIT_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_EDIT_ACTION))
|
|
|
|
#define MOO_EDIT_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_EDIT_ACTION, MooEditActionClass))
|
|
|
|
|
|
|
|
typedef struct _MooEditAction MooEditAction;
|
|
|
|
typedef struct _MooEditActionPrivate MooEditActionPrivate;
|
|
|
|
typedef struct _MooEditActionClass MooEditActionClass;
|
|
|
|
|
|
|
|
struct _MooEditAction
|
|
|
|
{
|
2006-08-15 02:12:41 -05:00
|
|
|
MooAction parent;
|
2006-08-19 00:59:53 -05:00
|
|
|
MooEditActionPrivate *priv;
|
2006-04-20 03:57:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _MooEditActionClass
|
|
|
|
{
|
2006-08-15 02:12:41 -05:00
|
|
|
MooActionClass parent_class;
|
2006-04-29 04:39:25 -05:00
|
|
|
|
2006-08-22 23:21:14 -05:00
|
|
|
void (*check_state) (MooEditAction *action);
|
|
|
|
|
|
|
|
gboolean (*check_visible) (MooEditAction *action);
|
|
|
|
gboolean (*check_sensitive) (MooEditAction *action);
|
2006-04-20 03:57:05 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType moo_edit_action_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2006-08-19 00:59:53 -05:00
|
|
|
MooEdit *moo_edit_action_get_doc (MooEditAction *action);
|
2006-04-20 03:57:05 -05:00
|
|
|
|
2006-08-16 00:18:16 -05:00
|
|
|
/* defined in mooeditwindow.c */
|
2006-08-19 00:59:53 -05:00
|
|
|
GSList *_moo_edit_parse_langs (const char *string);
|
2006-04-29 04:39:25 -05:00
|
|
|
|
2006-04-20 03:57:05 -05:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_EDIT_ACTION_H */
|