12 #ifndef ED4_SEARCH_HXX
13 #define ED4_SEARCH_HXX
32 #define MAX_MISMATCHES 5
53 return (direction==1) + pattern*2;
62 int start_pos, end_pos;
68 static char *lastShownComment;
95 int containsPos(
int pos)
const {
return start_pos<=pos && end_pos>=pos; }
99 #ifdef TEST_SEARCH_POSITION
119 static int bufferSize;
121 static int initialized;
123 int is_list()
const {
return arraySize==0; }
124 int is_array()
const {
return arraySize>0; }
160 #error ed4_search.hxx included twice
161 #endif // ED4_SEARCH_HXX
ED4_SearchPosition * get_next() const
static void setNewSearch(ED4_SearchPositionType type)
GB_CSTR get_comment() const
ED4_SearchPosition * get_first_at(ED4_SearchPositionType type, int start, int end) const
const int * getMismatches() const
struct Unfixed_cb_parameter * UNFIXED
static HelixNrInfo * start
int containsPos(int pos) const
ED4_SearchPosition * get_first() const
ED4_SearchPosition * insert(ED4_SearchPosition *toAdd)
DECLARE_ASSIGNMENT_OPERATOR(ED4_SearchPosition)
ED4_SearchPosition(int sp, int ep, ED4_SearchPositionType wf, GB_CSTR found_comment, int mismatches[MAX_MISMATCHES])
ED4_SearchPositionType get_whatsFound() const
ED4_SearchPosition * get_first_starting_after(ED4_SearchPositionType type, int pos, int mustBeShown) const
char * buildColorString(const ED4_sequence_terminal *seq_terminal, int start, int end)
void addSearchPosition(ED4_SearchPosition *pos)
int get_start_pos() const
const char * ED4_SearchPositionTypeId[]
void search(const ED4_sequence_terminal *seq_terminal)
ED4_SearchPosition * get_shown_at(int pos) const
int ED4_encodeSearchDescriptor(int direction, ED4_SearchPositionType pattern)
ED4_SearchPosition * get_last_starting_before(ED4_SearchPositionType type, int pos, int mustBeShown) const
static int pattern[maxsites+1]
void ED4_search_cb(UNFIXED, int searchDescriptor, ED4_window *ed4w)
AW_window_menu_modes * aww
void ED4_popup_search_window(AW_window *aww, ED4_SearchPositionType type)
GB_ERROR ED4_repeat_last_search(class ED4_window *ed4w)
void ED4_create_search_awars(AW_root *root)
ED4_SearchPosition * get_next_at(int pos) const