32#include <proto/intuition.h>
33#include <proto/exec.h>
34#include <proto/window.h>
35#include <proto/layout.h>
36#include <proto/string.h>
37#include <proto/button.h>
38#include <proto/label.h>
39#include <proto/checkbox.h>
40#include <classes/window.h>
41#include <gadgets/layout.h>
42#include <gadgets/string.h>
43#include <gadgets/button.h>
44#include <gadgets/checkbox.h>
45#include <images/label.h>
46#include <reaction/reaction_macros.h>
67#define NOF_ELEMENTS(array) (sizeof(array)/sizeof(*(array)))
168 WA_DepthGadget, TRUE,
170 WA_CloseGadget, TRUE,
174 WINDOW_UserData,
fwin,
175 WINDOW_IconifyGadget, FALSE,
176 WINDOW_LockHeight, TRUE,
177 WINDOW_Position, WPOS_CENTERSCREEN,
184 CHILD_WeightedHeight, 0,
207 CHILD_WeightedHeight, 0,
216 CHILD_WeightedHeight,0,
253 switch(
result & WMHI_CLASSMASK)
256 switch(
result & WMHI_GADGETMASK)
286 flags = ~SEARCH_FLAG_FORWARDS &
297 case WMHI_CLOSEWINDOW:
365 GA_Disabled, active ? FALSE : TRUE, TAG_DONE);
379 GA_Disabled, active ? FALSE : TRUE, TAG_DONE);
388 ULONG case_sensitive, showall;
struct Window * ami_gui_get_window(struct gui_window *gw)
Get window from gui_window.
void ami_gui_set_find_window(struct gui_window *gw, struct find_window *fw)
Set search window in gui_window.
struct Screen * ami_gui_get_screen(void)
Get a pointer to the screen NetSurf is running on.
nserror ami_gui_win_list_add(void *win, int type, const struct ami_win_event_table *table)
Add a window to the NetSurf window list (to enable event processing)
STRPTR ami_gui_get_screen_title(void)
Get the string for NetSurf's screen titlebar.
void ami_gui_win_list_remove(void *win)
Remove a window from the NetSurf window list.
struct browser_window * ami_gui_get_browser_window(struct gui_window *gw)
Get browser window from gui_window.
struct MsgPort * ami_gui_get_shared_msgport(void)
Get shared message port.
void ami_update_pointer(struct Window *win, gui_pointer_shape shape)
Browser window creation and manipulation interface.
Content handling interface.
void browser_window_search(struct browser_window *bw, void *context, search_flags_t flags, const char *string)
Starts or continues an existing search.
void browser_window_search_clear(struct browser_window *bw)
Clear up a search.
Browseing window text search interface.
@ SEARCH_FLAG_CASE_SENSITIVE
static void ami_search_set_back_state(bool active, void *p)
activate search forwards button in gui
static struct find_window * fwin
search_flags_t ami_search_flags(void)
retrieve state of 'case sensitive', 'show all' checks in gui
static void ami_search_set_hourglass(bool active, void *p)
display hourglass while searching
static BOOL ami_search_event(void *w)
void ami_search_open(struct gui_window *gwin)
Change the displayed search status.
static void ami_search_add_recent(const char *string, void *p)
add search string to recent searches list front is at liberty how to implement the bare notification ...
static const struct ami_win_event_table ami_search_table
static void ami_search_set_forward_state(bool active, void *p)
activate search forwards button in gui
static bool search_insert
static void ami_search_set_status(bool found, void *p)
Change the displayed search status.
struct gui_window * ami_search_get_gwin(struct find_window *fw)
Obtain gui window associated with find window.
struct gui_search_table * amiga_search_table
char * ami_search_string(void)
retrieve string being searched for from gui
void ami_search_close(void)
Close search.
static struct gui_search_table search_table
void ami_utf8_free(char *ptr)
char * ami_utf8_easy(const char *string)
Core mouse and pointer states.
Interface to platform-specific search operations.
Interface to platform-specific graphical user interface window operations.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
ULONG RefreshSetGadgetAttrs(struct Gadget *g, struct Window *w, struct Requester *r, Tag tag1,...)
Minimal compatibility header for AmigaOS 3.
Interface to utility string handling.
Object * objects[GID_S_LAST]
struct ami_generic_window w
char * message[SSTR_LAST]
function table for page text search.
first entry in window list
Interface to a number of general purpose functionality.
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.