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
|
|
|
*
|
2006-08-20 11:54:33 +00:00
|
|
|
* Copyright 2006 Enrico Troeger <enrico.troeger@uvena.de>
|
2006-07-13 14:30:44 +00:00
|
|
|
* Copyright 2006 Nick Treleaven <nick.treleaven@btinternet.com>
|
|
|
|
*
|
|
|
|
* 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-07-28 18:37:32 +00:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
FIF_CASE_SENSITIVE = 1 << 0,
|
|
|
|
FIF_USE_EREGEXP = 1 << 1,
|
|
|
|
FIF_INVERT_MATCH = 1 << 2
|
|
|
|
} fif_options;
|
|
|
|
|
2006-08-11 21:41:05 +00:00
|
|
|
// the flags given in the search dialog for "find next"
|
2006-08-11 21:12:49 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
gchar *text;
|
|
|
|
gint flags;
|
|
|
|
gboolean backwards;
|
|
|
|
} GeanySearchData;
|
|
|
|
|
|
|
|
extern GeanySearchData search_data;
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
gboolean search_find_in_files(const gchar *search_text, const gchar *dir, fif_options opts);
|
2006-07-13 14:30:44 +00:00
|
|
|
|