1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 * Copyright (C) 2005 Red Hat, Inc.
5 * Nautilus is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * Nautilus is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; see the file COPYING. If not,
17 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
20 * Author: Alexander Larsson <alexl@redhat.com>
24 #ifndef NAUTILUS_QUERY_EDITOR_H
25 #define NAUTILUS_QUERY_EDITOR_H
27 #include <gtk/gtkvbox.h>
28 #include <gtk/gtkentry.h>
29 #include <libnautilus-private/nautilus-query.h>
30 #include <nautilus-search-bar.h>
32 #define NAUTILUS_TYPE_QUERY_EDITOR (nautilus_query_editor_get_type ())
33 #define NAUTILUS_QUERY_EDITOR(obj) GTK_CHECK_CAST (obj, NAUTILUS_TYPE_QUERY_EDITOR, NautilusQueryEditor)
34 #define NAUTILUS_QUERY_EDITOR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, NAUTILUS_TYPE_QUERY_EDITOR, NautilusQueryEditorClass)
35 #define NAUTILUS_IS_QUERY_EDITOR(obj) GTK_CHECK_TYPE (obj, NAUTILUS_TYPE_QUERY_EDITOR)
37 typedef struct NautilusQueryEditorDetails NautilusQueryEditorDetails
;
39 typedef struct NautilusQueryEditor
{
41 NautilusQueryEditorDetails
*details
;
42 } NautilusQueryEditor
;
45 GtkVBoxClass parent_class
;
47 void (* changed
) (NautilusQueryEditor
*editor
,
50 void (* cancel
) (NautilusQueryEditor
*editor
);
51 } NautilusQueryEditorClass
;
53 GType
nautilus_query_editor_get_type (void);
54 GtkWidget
* nautilus_query_editor_new (gboolean start_hidden
,
56 GtkWidget
* nautilus_query_editor_new_with_bar (gboolean start_hidden
,
58 NautilusSearchBar
*bar
);
59 void nautilus_query_editor_set_default_query (NautilusQueryEditor
*editor
);
61 void nautilus_query_editor_grab_focus (NautilusQueryEditor
*editor
);
62 void nautilus_query_editor_clear_query (NautilusQueryEditor
*editor
);
64 NautilusQuery
*nautilus_query_editor_get_query (NautilusQueryEditor
*editor
);
65 void nautilus_query_editor_set_query (NautilusQueryEditor
*editor
,
66 NautilusQuery
*query
);
67 void nautilus_query_editor_set_visible (NautilusQueryEditor
*editor
,
70 #endif /* NAUTILUS_QUERY_EDITOR_H */