medit/moo/mooutils/moofiltermgr.h

83 lines
3.4 KiB
C
Raw Normal View History

2005-08-25 02:29:01 -07:00
/*
* moofiltermgr.h
*
* Copyright (C) 2004-2005 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* See COPYING file that comes with this distribution.
*/
#ifndef __MOO_FILTER_MGR__
#define __MOO_FILTER_MGR__
#include <gtk/gtkfilefilter.h>
#include <gtk/gtkfilechooser.h>
#include <mooutils/moocombo.h>
2005-08-25 02:29:01 -07: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,
const char *user_id);
2005-08-25 02:29:01 -07:00
GtkFileFilter *moo_filter_mgr_get_filter (MooFilterMgr *mgr,
GtkTreeIter *iter,
2005-09-04 23:30:18 -07:00
const char *user_id);
void moo_filter_mgr_set_last_filter (MooFilterMgr *mgr,
GtkTreeIter *iter,
const char *user_id);
2005-08-25 02:29:01 -07: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 02:29:01 -07: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 02:29:01 -07:00
G_END_DECLS
#endif /* __MOO_FILTER_MGR__ */