2006-07-13 14:30:44 +00:00
|
|
|
/*
|
2006-08-20 11:54:33 +00:00
|
|
|
* search.h - this file is part of Geany, a fast and lightweight IDE
|
2006-07-13 14:30:44 +00:00
|
|
|
*
|
2007-01-14 17:36:42 +00:00
|
|
|
* Copyright 2006-2007 Enrico Tröger <enrico.troeger@uvena.de>
|
|
|
|
* Copyright 2006-2007 Nick Treleaven <nick.treleaven@btinternet.com>
|
2006-07-13 14:30:44 +00:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-09-20 11:03:33 +00:00
|
|
|
#ifndef GEANY_SEARCH_H
|
|
|
|
#define GEANY_SEARCH_H 1
|
2006-07-28 18:37:32 +00:00
|
|
|
|
2007-07-11 17:44:43 +00:00
|
|
|
// the flags given in the search dialog for "find next", also used by the search bar
|
2006-08-11 21:12:49 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
gchar *text;
|
|
|
|
gint flags;
|
|
|
|
gboolean backwards;
|
2007-07-11 17:44:43 +00:00
|
|
|
// set to TRUE when text was set by a search bar callback to keep track of
|
|
|
|
// search bar background colour
|
|
|
|
gboolean search_bar;
|
2006-08-11 21:12:49 +00:00
|
|
|
} GeanySearchData;
|
|
|
|
|
|
|
|
extern GeanySearchData search_data;
|
|
|
|
|
|
|
|
|
2007-04-15 15:59:57 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
gchar *fif_extra_options;
|
|
|
|
} SearchPrefs;
|
|
|
|
|
|
|
|
extern SearchPrefs search_prefs;
|
|
|
|
|
|
|
|
|
2006-08-11 21:12:49 +00:00
|
|
|
void search_init();
|
|
|
|
|
2006-08-14 15:02:52 +00:00
|
|
|
void search_finalize();
|
2006-08-11 21:12:49 +00:00
|
|
|
|
|
|
|
void search_show_find_dialog();
|
|
|
|
|
|
|
|
void search_show_replace_dialog();
|
|
|
|
|
|
|
|
void search_show_find_in_files_dialog();
|
2006-07-28 18:37:32 +00:00
|
|
|
|
2006-11-01 15:26:41 +00:00
|
|
|
void search_find_usage(const gchar *search_text, gint flags, gboolean in_session);
|
|
|
|
|
2007-01-23 17:51:30 +00:00
|
|
|
void search_find_selection(gint idx, gboolean search_backwards);
|
|
|
|
|
2006-09-20 11:03:33 +00:00
|
|
|
#endif
|