2006-07-27 14:39:53 -05:00
|
|
|
/*
|
|
|
|
* mooeditfiltersettings.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2006-07-27 14:39:53 -05:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* 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.
|
2006-07-27 14:39:53 -05:00
|
|
|
*
|
2008-09-05 17:20:50 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
|
2006-07-27 14:39:53 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOOEDIT_COMPILATION
|
|
|
|
#error "This file may not be used"
|
|
|
|
#endif
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_EDIT_FILTER_SETTINGS_H
|
|
|
|
#define MOO_EDIT_FILTER_SETTINGS_H
|
2006-07-27 14:39:53 -05:00
|
|
|
|
2007-09-02 15:42:17 -05:00
|
|
|
#include <mooedit/mooedit.h>
|
2006-07-27 14:39:53 -05:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2010-12-12 02:29:20 -08:00
|
|
|
typedef struct MooEditFilter MooEditFilter;
|
2006-07-27 14:39:53 -05:00
|
|
|
|
2007-09-02 15:42:17 -05:00
|
|
|
MooEditFilter *_moo_edit_filter_new (const char *string);
|
|
|
|
MooEditFilter *_moo_edit_filter_new_langs (const char *string);
|
|
|
|
MooEditFilter *_moo_edit_filter_new_regex (const char *string);
|
|
|
|
MooEditFilter *_moo_edit_filter_new_globs (const char *string);
|
|
|
|
void _moo_edit_filter_free (MooEditFilter *filter);
|
|
|
|
gboolean _moo_edit_filter_match (MooEditFilter *filter,
|
|
|
|
MooEdit *doc);
|
2006-07-27 14:39:53 -05:00
|
|
|
|
2007-09-02 15:42:17 -05:00
|
|
|
void _moo_edit_filter_settings_load (void);
|
|
|
|
|
|
|
|
GSList *_moo_edit_filter_settings_get_strings (void);
|
|
|
|
void _moo_edit_filter_settings_set_strings (GSList *strings);
|
|
|
|
|
2010-09-21 23:41:52 -07:00
|
|
|
char *_moo_edit_filter_settings_get_for_doc (MooEdit *doc);
|
2006-07-27 14:39:53 -05:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_EDIT_FILTER_SETTINGS_H */
|