diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-13 23:16:50 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-13 23:16:50 +0000 |
commit | f543cbbf4cefeca0e89b346a344d2eaf0747dc57 (patch) | |
tree | 11bd837037ae15f9ea596b9967a46142f5d86508 /amiga/search.h | |
parent | 5737ea10b282fde600a4a6d5772e47bc12c05c77 (diff) | |
download | netsurf-f543cbbf4cefeca0e89b346a344d2eaf0747dc57.tar.gz netsurf-f543cbbf4cefeca0e89b346a344d2eaf0747dc57.tar.bz2 |
First attempt at Amiga text search function based on RISC OS code.
Needs some improvements:
- add case sensitive, show all options
- add search history
- use AmigaOS pattern matching
svn path=/trunk/netsurf/; revision=5902
Diffstat (limited to 'amiga/search.h')
-rwxr-xr-x | amiga/search.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/amiga/search.h b/amiga/search.h new file mode 100755 index 000000000..178ee336e --- /dev/null +++ b/amiga/search.h @@ -0,0 +1,35 @@ +/* + * Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk> + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef AMIGA_SEARCH_H +#define AMIGA_SEARCH_H + +#include "amiga/gui.h" + +struct find_window { + struct Window *win; + Object *objects[OID_LAST]; + struct Gadget *gadgets[GID_LAST]; + struct nsObject *node; + struct gui_window *gwin; + ULONG pad[3]; +}; + +void ami_search_open(struct gui_window *gwin); +BOOL ami_search_event(void); +#endif |