-
Notifications
You must be signed in to change notification settings - Fork 4
/
gtk_findreplace.h
53 lines (45 loc) · 2.1 KB
/
gtk_findreplace.h
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
#ifndef _gtk_findreplace_h_
#define _gtk_findreplace_h_ 1
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h> /* for GDK key values */
#ifdef WGTKSOURCEVIEW2
// #include <gtksourceview/gtksourceview.h>
// #include <gtksourceview/gtksourcelanguagemanager.h>
#include <gtksourceview/gtksourceiter.h>
#elif defined WGTKSOURCEVIEW3
#include <gtksourceview/gtksource.h>
#endif
#include "gtk_appdata.h"
#include "gtk_common_dlg.h"
#define DLGFIND 1
#define DLGREPL 2
/* general functions */
GtkWidget *create_find_dlg (kwinst *app);
GtkWidget *create_replace_dlg (kwinst *app);
void dlg_replace_replace (GtkWidget *widget, gpointer *data);
void chk_realloc_ent (kwinst *app);
void dumpopts (kwinst *app);
void chk_existing_selection (kwinst *app);
void find (kwinst *app, const gchar *text);
void buffer_replace_selection (kwinst *app, const gchar *replacetext);
// void find (kwinst *app, const gchar *text, GtkTextIter *iter);
/* dialog callbacks */
void on_window_show (GtkWidget *widget, kwinst *app);
void entry_set_find_sensitive (GtkWidget *widget, kwinst *app);
void entry_set_repl_sensitive (GtkWidget *widget, kwinst *app);
void entry_find_activate (GtkWidget *widget, kwinst *app);
void entry_replace_activate (GtkWidget *widget, kwinst *app);
void chkregex_toggled (GtkWidget *widget, kwinst *app);
void chkplace_toggled (GtkWidget *widget, kwinst *app);
void chkcase_toggled (GtkWidget *widget, kwinst *app);
void chkwhole_toggled (GtkWidget *widget, kwinst *app);
void chkfrom_toggled (GtkWidget *widget, kwinst *app);
void chkback_toggled (GtkWidget *widget, kwinst *app);
void chkselect_toggled (GtkWidget *widget, kwinst *app);
void chkprompt_toggled (GtkWidget *widget, kwinst *app);
void btnregex_activate (GtkWidget *widget, kwinst *app);
void btnplace_activate (GtkWidget *widget, kwinst *app);
void btnfind_activate (GtkWidget *widget, kwinst *app);
void btnreplace_activate (GtkWidget *widget, kwinst *app);
void btnclose_activate (GtkWidget *widget, kwinst *app);
#endif