Updated Makefile.am files after make -f git.mk
[anjuta.git] / plugins / document-manager / search-box.h
blobae8ec7bbd862b72c0ff88d6a56d06c22b6d82a88
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta
4 * Copyright (C) Johannes Schmid 2007 <jhs@gnome.org>
5 *
6 * anjuta is free software.
7 *
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2 of the License, or (at your option)
11 * any later version.
13 * anjuta is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with anjuta. If not, write to:
20 * The Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02110-1301, USA.
25 #ifndef _SEARCH_BOX_H_
26 #define _SEARCH_BOX_H_
28 #include <gtk/gtk.h>
29 #include "anjuta-docman.h"
31 G_BEGIN_DECLS
33 #define SEARCH_TYPE_BOX (search_box_get_type ())
34 #define SEARCH_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEARCH_TYPE_BOX, SearchBox))
35 #define SEARCH_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEARCH_TYPE_BOX, SearchBoxClass))
36 #define SEARCH_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEARCH_TYPE_BOX))
37 #define SEARCH_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEARCH_TYPE_BOX))
38 #define SEARCH_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEARCH_TYPE_BOX, SearchBoxClass))
40 typedef struct _SearchBoxClass SearchBoxClass;
41 typedef struct _SearchBox SearchBox;
42 typedef struct _SearchBoxPrivate SearchBoxPrivate;
44 struct _SearchBoxClass
46 GtkBoxClass parent_class;
49 struct _SearchBox
51 GtkBox parent_instance;
53 SearchBoxPrivate* priv;
56 GType search_box_get_type (void);
57 GtkWidget* search_box_new (AnjutaDocman* docman);
59 void search_box_fill_search_focus (SearchBox* search_box, gboolean on_replace);
60 void search_box_grab_line_focus (SearchBox* search_box);
61 void search_box_hide (SearchBox* search_box);
62 void search_box_set_replace (SearchBox* object, gboolean replace);
63 gboolean search_box_incremental_search (SearchBox* search_box,
64 gboolean search_forward,
65 gboolean search_next,
66 gboolean wrap);
67 void search_box_highlight_all (SearchBox * search_box);
69 void search_box_clear_highlight (SearchBox * search_box);
70 void search_box_toggle_highlight (SearchBox * search_box, gboolean status);
71 void search_box_toggle_case_sensitive (SearchBox * search_box, gboolean status);
72 void search_box_toggle_regex (SearchBox * search_box, gboolean status);
74 const gchar* search_box_get_search_string (SearchBox* search_box);
75 void search_box_set_search_string (SearchBox* search_box, const gchar* search);
76 const gchar* search_box_get_replace_string (SearchBox* search_box);
77 void search_box_set_replace_string (SearchBox* search_box, const gchar* replace);
79 void search_box_session_load (SearchBox* search_box, AnjutaSession* session);
80 void search_box_session_save (SearchBox* search_box, AnjutaSession* session);
82 G_END_DECLS
84 #endif /* _SEARCH_BOX_H_ */