medit/moo/mooutils/moofiltermgr.h

83 lines
3.4 KiB
C
Raw Normal View History

2005-08-25 09:29:01 +00:00
/*
* moofiltermgr.h
*
2007-06-24 12:56:20 -05:00
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
2005-08-25 09:29:01 +00: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.
2005-08-25 09:29:01 +00:00
*
* See COPYING file that comes with this distribution.
*/
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
#include <gtk/gtkfilefilter.h>
#include <gtk/gtkfilechooser.h>
#include <mooutils/moocombo.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);
void moo_filter_mgr_init_filter_combo (MooFilterMgr *mgr,
MooCombo *combo,
const char *user_id);
void moo_filter_mgr_attach (MooFilterMgr *mgr,
GtkFileChooser *filechooser,
2006-12-17 03:23:19 -06:00
GtkWidget *box,
const char *user_id);
2005-08-25 09:29:01 +00:00
GtkFileFilter *moo_filter_mgr_get_filter (MooFilterMgr *mgr,
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,
const char *user_id);
2005-08-25 09:29:01 +00:00
GtkFileFilter *moo_filter_mgr_get_null_filter (MooFilterMgr *mgr);
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,
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 */