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