56 lines
2.6 KiB
C
56 lines
2.6 KiB
C
/*
|
|
* moocommand-private.h
|
|
*
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
|
*
|
|
* This file is part of medit. medit is free software; you can
|
|
* redistribute it and/or modify it under the terms of the
|
|
* GNU Lesser General Public License as published by the
|
|
* Free Software Foundation; either version 2.1 of the License,
|
|
* or (at your option) any later version.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef MOO_COMMAND_PRIVATE_H
|
|
#define MOO_COMMAND_PRIVATE_H
|
|
|
|
#include "mooutils/moomarkup.h"
|
|
#include "moocommand.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define KEY_TYPE "type"
|
|
#define KEY_OPTIONS "options"
|
|
#define KEY_CODE "code"
|
|
|
|
void _moo_command_init (void);
|
|
MooCommandData *_moo_command_parse_item (MooMarkupNode *elm,
|
|
const char *name,
|
|
const char *filename,
|
|
MooCommandFactory **factory,
|
|
char **options);
|
|
void _moo_command_write_item (MooFileWriter *writer,
|
|
MooCommandData *data,
|
|
MooCommandFactory *factory,
|
|
char *options);
|
|
MooCommandData *_moo_command_parse_file (const char *filename,
|
|
MooCommandFactory **factory,
|
|
char ***params);
|
|
|
|
GtkWidget *_moo_command_factory_create_widget (MooCommandFactory *factory);
|
|
void _moo_command_factory_load_data (MooCommandFactory *factory,
|
|
GtkWidget *widget,
|
|
MooCommandData *data);
|
|
gboolean _moo_command_factory_save_data (MooCommandFactory *factory,
|
|
GtkWidget *widget,
|
|
MooCommandData *data);
|
|
gboolean _moo_command_factory_data_equal (MooCommandFactory *factory,
|
|
MooCommandData *data1,
|
|
MooCommandData *data2);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* MOO_COMMAND_PRIVATE_H */
|