* plugins/cvs-plugin/Makefile.am,
[anjuta-git-plugin.git] / plugins / search / search-replace.h
bloba8be08a13a42af6c9e4d0101fd16e5eb45e14e07
1 #ifndef _SEARCH_REPLACE_H
2 #define _SEARCH_REPLACE_H
4 #ifdef __cplusplus
5 extern "C"
7 #endif
9 #include <glib.h>
10 #include <glade/glade.h>
12 typedef enum _GUIElementType
14 GE_NONE,
15 GE_BUTTON,
16 GE_COMBO_ENTRY,
17 GE_TEXT,
18 GE_BOOLEAN,
19 GE_COMBO
20 } GUIElementType;
22 typedef struct _GladeWidget
24 GUIElementType type;
25 char *name;
26 gpointer extra;
27 GtkWidget *widget;
28 } GladeWidget;
30 #define GLADE_FILE "anjuta.glade"
31 #define SEARCH_REPLACE_DIALOG "dialog.search.replace"
33 /* Enum for all useful glade widget */
34 typedef enum _GladeWidgetId
36 CLOSE_BUTTON,
37 STOP_BUTTON,
38 SEARCH_BUTTON,
39 JUMP_BUTTON,
40 SEARCH_NOTEBOOK,
42 /* Frames */
43 SEARCH_EXPR_FRAME,
44 SEARCH_TARGET_FRAME,
45 SEARCH_VAR_FRAME,
46 FILE_FILTER_FRAME,
47 FRAME_SEARCH_BASIC,
49 /* Labels */
50 LABEL_REPLACE,
52 /* Entries */
53 SEARCH_STRING,
54 SEARCH_VAR,
55 MATCH_FILES,
56 UNMATCH_FILES,
57 MATCH_DIRS,
58 UNMATCH_DIRS,
59 REPLACE_STRING,
60 ACTIONS_MAX,
61 SETTING_PREF_ENTRY,
63 /* Checkboxes */
64 SEARCH_REGEX,
65 GREEDY,
66 IGNORE_CASE,
67 WHOLE_WORD,
68 WORD_START,
69 WHOLE_LINE,
70 IGNORE_HIDDEN_FILES,
71 IGNORE_BINARY_FILES,
72 IGNORE_HIDDEN_DIRS,
73 SEARCH_RECURSIVE,
74 REPLACE_REGEX,
75 ACTIONS_NO_LIMIT,
76 SEARCH_FULL_BUFFER,
77 SEARCH_FORWARD,
78 SEARCH_BACKWARD,
79 SEARCH_BASIC,
81 /* Combo boxes */
82 SEARCH_STRING_COMBO,
83 SEARCH_TARGET_COMBO,
84 SEARCH_ACTION_COMBO,
85 SEARCH_VAR_COMBO,
86 MATCH_FILES_COMBO,
87 UNMATCH_FILES_COMBO,
88 MATCH_DIRS_COMBO,
89 UNMATCH_DIRS_COMBO,
90 REPLACE_STRING_COMBO,
91 SEARCH_DIRECTION_COMBO,
93 /* Treeview */
94 SETTING_PREF_TREEVIEW
95 } GladeWidgetId;
97 void search_and_replace_init (IAnjutaDocumentManager* dm);
98 void search_and_replace (void);
99 void search_replace_next(void);
100 void search_replace_previous(void);
101 void search_replace_find_usage(const gchar *symbol);
102 void anjuta_search_replace_activate (gboolean replace, gboolean project);
103 GladeWidget *sr_get_gladewidget(GladeWidgetId id);
104 void search_replace_populate(void);
105 void search_update_dialog(void);
107 void search_toolbar_set_text(gchar *search_text);
109 #ifdef __cplusplus
111 #endif
113 #endif /* _SEARCH_REPLACE_H */