~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to src/viewer/text/search.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Gervai
  • Date: 2004-01-21 22:13:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040121221345-ju33hai1yhhqt6kn
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: search.h,v 1.15 2003/12/26 23:16:42 miciah Exp $ */
 
2
 
 
3
#ifndef EL__VIEWER_TEXT_SEARCH_H
 
4
#define EL__VIEWER_TEXT_SEARCH_H
 
5
 
 
6
#include "document/view.h"
 
7
 
 
8
struct session;
 
9
struct terminal;
 
10
 
 
11
void draw_searched(struct terminal *term, struct document_view *doc_view);
 
12
 
 
13
void search_for(struct session *, unsigned char *);
 
14
void search_for_back(struct session *, unsigned char *);
 
15
void find_next(struct session *, struct document_view *doc_view, int);
 
16
void find_next_back(struct session *, struct document_view *doc_view, int);
 
17
 
 
18
enum typeahead_code {
 
19
        TYPEAHEAD_MATCHED,
 
20
        TYPEAHEAD_STOP,
 
21
        TYPEAHEAD_ESCAPE,
 
22
};
 
23
 
 
24
enum typeahead_code
 
25
do_typeahead(struct session *ses, struct document_view *doc_view,
 
26
             unsigned char *typeahead, struct term_event *event);
 
27
 
 
28
void search_dlg(struct session *ses, struct document_view *doc_view, int a);
 
29
void search_back_dlg(struct session *ses, struct document_view *doc_view, int a);
 
30
void search_typeahead(struct session *ses, struct document_view *doc_view, int a);
 
31
 
 
32
void init_search_history(void);
 
33
void done_search_history(void);
 
34
 
 
35
static inline int has_search_word(struct document_view *doc_view)
 
36
{
 
37
        return (doc_view->search_word
 
38
                && *doc_view->search_word
 
39
                && (*doc_view->search_word)[0]);
 
40
}
 
41
 
 
42
#endif