diff options
author | 2008-06-15 13:42:03 -0400 | |
---|---|---|
committer | 2008-06-15 13:42:03 -0400 | |
commit | e56e9f1c1a635bd205bfde9ff8120ad2e81274c0 (patch) | |
tree | bce6dea11c3947ac681234ac4167c436ecb34fde /src/find_replace.c | |
parent | 0e1787a267d9a9ecf38e7eb88e01f1b585821185 (diff) | |
download | textadept-e56e9f1c1a635bd205bfde9ff8120ad2e81274c0.tar.gz textadept-e56e9f1c1a635bd205bfde9ff8120ad2e81274c0.zip |
Added doxygen documentation to source files.
Diffstat (limited to 'src/find_replace.c')
-rw-r--r-- | src/find_replace.c | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/src/find_replace.c b/src/find_replace.c index 54c3f9e1..8564ff75 100644 --- a/src/find_replace.c +++ b/src/find_replace.c @@ -21,6 +21,9 @@ static bool static void button_clicked(GtkWidget *button, gpointer); +/** + * Creates the Find/Replace text frame. + */ GtkWidget* find_create_ui() { findbox = gtk_table_new(2, 6, false); @@ -81,6 +84,10 @@ GtkWidget* find_create_ui() { return findbox; } +/** + * Toggles the focus between the Find/Replace frame and the current Scintilla + * window. + */ void find_toggle_focus() { if (!GTK_WIDGET_HAS_FOCUS(findbox)) { gtk_widget_show(findbox); @@ -91,6 +98,10 @@ void find_toggle_focus() { } } +/** + * Builds the integer flags for a Find/Replace depending on the options that are + * checked. + */ static int get_flags() { int flags = 0; if (toggled(match_case_opt)) flags |= SCFIND_MATCHCASE; // 2 @@ -99,8 +110,10 @@ static int get_flags() { return flags; } -/** Find entry key event. - * Enter - Find next or previous. +/** + * Signal for a Find entry keypress. + * Currently handled keypresses: + * - Enter - Find next or previous. */ static bool fe_keypress(GtkWidget *, GdkEventKey *event, gpointer) { // TODO: if incremental, call l_find() @@ -110,8 +123,10 @@ static bool fe_keypress(GtkWidget *, GdkEventKey *event, gpointer) { } else return false; } -/** Replace entry key event. - * Enter - Find next or previous. +/** + * Signal for a Replace entry keypress. + * Currently handled keypresses: + * - Enter - Find next or previous. */ static bool re_keypress(GtkWidget *, GdkEventKey *event, gpointer) { if (event->keyval == 0xff0d) { @@ -120,6 +135,10 @@ static bool re_keypress(GtkWidget *, GdkEventKey *event, gpointer) { } else return false; } +/** + * Signal for a button click. + * Performs the appropriate action depending on the button clicked. + */ static void button_clicked(GtkWidget *button, gpointer) { if (button == ra_button) l_find_replace_all(find_text, repl_text, get_flags()); |