2005-11-14 03:08:24 +00:00
|
|
|
/*
|
|
|
|
* mootextfind.h
|
|
|
|
*
|
2010-12-21 20:15:45 -08:00
|
|
|
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@users.sourceforge.net>
|
2005-11-14 03:08:24 +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-11-14 03:08:24 +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-11-14 03:08:24 +00:00
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_TEXT_FIND_H
|
|
|
|
#define MOO_TEXT_FIND_H
|
2005-11-14 03:08:24 +00:00
|
|
|
|
2016-10-22 23:45:39 -07:00
|
|
|
#ifdef MOO_USE_SCI
|
|
|
|
#error "This header must not be used"
|
|
|
|
#endif
|
|
|
|
|
2011-09-26 00:41:51 -07:00
|
|
|
#include <gtk/gtk.h>
|
2009-11-01 12:44:46 -08:00
|
|
|
#include <mooedit/mooedit-enums.h>
|
|
|
|
#include <mooutils/moohistorylist.h>
|
2015-12-25 18:07:33 -08:00
|
|
|
#include <mooglib/moo-glib.h>
|
2005-11-14 03:08:24 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_TYPE_FIND (moo_find_get_type ())
|
|
|
|
#define MOO_FIND(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_FIND, MooFind))
|
|
|
|
#define MOO_FIND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_FIND, MooFindClass))
|
|
|
|
#define MOO_IS_FIND(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_FIND))
|
|
|
|
#define MOO_IS_FIND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_FIND))
|
|
|
|
#define MOO_FIND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_FIND, MooFindClass))
|
|
|
|
|
|
|
|
|
2010-12-12 02:29:20 -08:00
|
|
|
typedef struct MooFind MooFind;
|
|
|
|
typedef struct MooFindClass MooFindClass;
|
2005-11-14 03:08:24 +00:00
|
|
|
|
2010-12-12 02:29:20 -08:00
|
|
|
struct MooFind
|
2005-11-14 03:08:24 +00:00
|
|
|
{
|
|
|
|
GtkDialog base;
|
2008-08-24 04:06:24 -05:00
|
|
|
struct MooFindBoxXml *xml;
|
2007-12-01 00:16:55 -06:00
|
|
|
struct MooRegex *regex;
|
2005-11-14 03:08:24 +00:00
|
|
|
guint replace : 1;
|
|
|
|
};
|
|
|
|
|
2010-12-12 02:29:20 -08:00
|
|
|
struct MooFindClass
|
2005-11-14 03:08:24 +00:00
|
|
|
{
|
|
|
|
GtkDialogClass base_class;
|
|
|
|
};
|
|
|
|
|
2006-04-09 21:58:21 -05:00
|
|
|
typedef void (*MooFindMsgFunc) (const char *msg,
|
|
|
|
gpointer data);
|
|
|
|
|
2005-11-14 03:08:24 +00:00
|
|
|
|
|
|
|
GType moo_find_get_type (void) G_GNUC_CONST;
|
|
|
|
|
2006-04-09 21:58:21 -05:00
|
|
|
void moo_text_view_run_find (GtkTextView *view,
|
|
|
|
MooFindMsgFunc msg_func,
|
|
|
|
gpointer data);
|
2006-06-11 02:12:28 -05:00
|
|
|
void moo_text_view_run_find_current_word
|
|
|
|
(GtkTextView *view,
|
2006-06-10 04:10:43 -05:00
|
|
|
gboolean forward,
|
|
|
|
MooFindMsgFunc msg_func,
|
|
|
|
gpointer data);
|
2006-04-09 21:58:21 -05:00
|
|
|
void moo_text_view_run_replace (GtkTextView *view,
|
|
|
|
MooFindMsgFunc msg_func,
|
|
|
|
gpointer data);
|
|
|
|
void moo_text_view_run_find_next (GtkTextView *view,
|
|
|
|
MooFindMsgFunc msg_func,
|
|
|
|
gpointer data);
|
|
|
|
void moo_text_view_run_find_prev (GtkTextView *view,
|
|
|
|
MooFindMsgFunc msg_func,
|
|
|
|
gpointer data);
|
2005-11-14 03:08:24 +00:00
|
|
|
void moo_text_view_run_goto_line (GtkTextView *view);
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_TEXT_FIND_H */
|