1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * Copyright (C) 2001-2002 CodeFactory AB
4 * Copyright (C) 2001-2002 Mikael Hallendal <micke@imendio.com>
5 * Copyright (C) 2005 Massimo CorĂ <maxcvs@email.it>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 #ifndef __AN_SYMBOL_SEARCH__
24 #define __AN_SYMBOL_SEARCH__
26 #include <glib-object.h>
27 #include <gtk/gtkwidget.h>
28 #include "an_symbol_view.h"
32 #define ANJUTA_TYPE_SYMBOL_SEARCH (anjuta_symbol_search_get_type ())
33 #define ANJUTA_SYMBOL_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ANJUTA_TYPE_SYMBOL_SEARCH, AnjutaSymbolSearch))
34 #define ANJUTA_SYMBOL_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ANJUTA_TYPE_SYMBOL_SEARCH, AnjutaSymbolSearchClass))
35 #define ANJUTA_SYMBOL_IS_SEARCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ANJUTA_TYPE_SYMBOL_SEARCH))
36 #define ANJUTA_SYMBOL_IS_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ANJUTA_TYPE_SYMBOL_SEARCH))
38 typedef struct _AnjutaSymbolSearchPriv AnjutaSymbolSearchPriv
;
39 typedef struct _AnjutaSymbolSearch AnjutaSymbolSearch
;
40 typedef struct _AnjutaSymbolSearchClass AnjutaSymbolSearchClass
;
42 struct _AnjutaSymbolSearch
{
45 AnjutaSymbolSearchPriv
*priv
;
48 struct _AnjutaSymbolSearchClass
{
49 GtkVBoxClass parent_class
;
52 void (*symbol_selected
) (AnjutaSymbolSearch
*search
, AnjutaSymbolInfo
*sym
);
55 GType
anjuta_symbol_search_get_type (void);
56 GtkWidget
* anjuta_symbol_search_new (AnjutaSymbolView
*symbol_view
);
58 void anjuta_symbol_search_set_search_string (AnjutaSymbolSearch
*search
, const gchar
*str
);
59 void anjuta_symbol_search_grab_focus (AnjutaSymbolSearch
*search
);
60 void anjuta_symbol_search_clear (AnjutaSymbolSearch
*search
);
64 #endif /* __AN_SYMBOL_SEARCH__H__ */