2005-08-25 09:29:01 +00:00
|
|
|
/*
|
|
|
|
* moofiltermgr.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2005-08-25 09:29:01 +00: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.
|
2005-08-25 09:29:01 +00: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/>.
|
2005-08-25 09:29:01 +00:00
|
|
|
*/
|
|
|
|
|
2007-04-12 12:48:16 -05:00
|
|
|
#ifndef MOO_FILTER_MGR_H
|
|
|
|
#define MOO_FILTER_MGR_H
|
2005-08-25 09:29:01 +00:00
|
|
|
|
2008-02-04 05:41:20 -06:00
|
|
|
#include <gtk/gtk.h>
|
2005-08-25 09:29:01 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_FILTER_MGR (moo_filter_mgr_get_type ())
|
|
|
|
#define MOO_FILTER_MGR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_FILTER_MGR, MooFilterMgr))
|
|
|
|
#define MOO_FILTER_MGR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_FILTER_MGR, MooFilterMgrClass))
|
|
|
|
#define MOO_IS_FILTER_MGR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_FILTER_MGR))
|
|
|
|
#define MOO_IS_FILTER_MGR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_FILTER_MGR))
|
|
|
|
#define MOO_FILTER_MGR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_FILTER_MGR, MooFilterMgrClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _MooFilterMgr MooFilterMgr;
|
|
|
|
typedef struct _MooFilterMgrPrivate MooFilterMgrPrivate;
|
|
|
|
typedef struct _MooFilterMgrClass MooFilterMgrClass;
|
|
|
|
|
|
|
|
struct _MooFilterMgr
|
|
|
|
{
|
|
|
|
GObject parent;
|
|
|
|
|
|
|
|
MooFilterMgrPrivate *priv;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _MooFilterMgrClass
|
|
|
|
{
|
|
|
|
GObjectClass parent_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType moo_filter_mgr_get_type (void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
MooFilterMgr *moo_filter_mgr_new (void);
|
2008-08-26 13:35:55 -05:00
|
|
|
MooFilterMgr *moo_filter_mgr_default (void);
|
2005-08-25 09:29:01 +00:00
|
|
|
|
|
|
|
void moo_filter_mgr_init_filter_combo (MooFilterMgr *mgr,
|
2008-02-04 05:41:20 -06:00
|
|
|
GtkComboBox *combo,
|
2005-09-03 06:25:43 +00:00
|
|
|
const char *user_id);
|
|
|
|
void moo_filter_mgr_attach (MooFilterMgr *mgr,
|
|
|
|
GtkFileChooser *filechooser,
|
2006-12-17 03:23:19 -06:00
|
|
|
GtkWidget *box,
|
2005-09-03 06:25:43 +00:00
|
|
|
const char *user_id);
|
|
|
|
|
2005-08-25 09:29:01 +00:00
|
|
|
GtkFileFilter *moo_filter_mgr_get_filter (MooFilterMgr *mgr,
|
2005-09-03 06:25:43 +00:00
|
|
|
GtkTreeIter *iter,
|
2005-09-05 06:30:18 +00:00
|
|
|
const char *user_id);
|
|
|
|
void moo_filter_mgr_set_last_filter (MooFilterMgr *mgr,
|
|
|
|
GtkTreeIter *iter,
|
2005-09-03 06:25:43 +00:00
|
|
|
const char *user_id);
|
|
|
|
|
2005-08-25 09:29:01 +00:00
|
|
|
GtkFileFilter *moo_filter_mgr_get_null_filter (MooFilterMgr *mgr);
|
2005-09-03 06:25:43 +00:00
|
|
|
GtkFileFilter *moo_filter_mgr_get_last_filter (MooFilterMgr *mgr,
|
|
|
|
const char *user_id);
|
2005-08-25 09:29:01 +00:00
|
|
|
GtkFileFilter *moo_filter_mgr_new_user_filter (MooFilterMgr *mgr,
|
2005-09-03 06:25:43 +00:00
|
|
|
const char *glob,
|
|
|
|
const char *user_id);
|
|
|
|
GtkFileFilter *moo_filter_mgr_new_builtin_filter (MooFilterMgr *mgr,
|
|
|
|
const char *description,
|
|
|
|
const char *glob,
|
|
|
|
const char *user_id,
|
|
|
|
int position);
|
2005-08-25 09:29:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-04-12 12:48:16 -05:00
|
|
|
#endif /* MOO_FILTER_MGR_H */
|