blob: a6628b6b0e90690ab55e43d5fa6e4c57a1250297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
/**
* @file
* Headers for displaying a find dialog.
*
* @author Jeremy A. Mowery jmowery@tresys.com
* @author Jason Tang jtang@tresys.com
* @author Brandon Whalen bwhalen@tresys.com
* @author Randy Wicks rwicks@tresys.com
*
* Copyright (C) 2005-2007 Tresys Technology, LLC
*
* 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 St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef FIND_DIALOG_H
#define FIND_DIALOG_H
typedef struct find_dialog find_dialog_t;
#include "toplevel.h"
/**
* Create a find dialog object. The dialog will float above the rest
* of sediffx; it allows the user to search for text either forwards
* or backwards in the currently visible text buffer.
*
* @param top Toplevel object that will control the newly opened find
* dialog.
*
* @return An initialized find dialog object, or NULL upon error. The
* caller must call find_dialog_destroy() upon the returned value.
*/
find_dialog_t *find_dialog_create(toplevel_t * top);
/**
* Destroy the find_dialog object. This does nothing if the pointer
* is set to NULL.
*
* @param f Reference to a find dialog object. Afterwards the
* pointer will be set to NULL.
*/
void find_dialog_destroy(find_dialog_t ** f);
/**
* (Re)show the find dialog.
*
* @param f Find dialog to show.
*/
void find_dialog_show(find_dialog_t * f);
#endif
|