39#include "atari/gemtk/gemtk.h"
40#include "atari/res/netsurf.rsh"
70 NSLOG(netsurf, INFO,
"%p set status: %d\n", p, found);
83 NSLOG(netsurf, INFO,
"active: %d, session: %p", active, p);
102 NSLOG(netsurf, INFO,
"%p add recent: %s\n", p,
string);
118 NSLOG(netsurf, INFO,
"%p: set forward state: %d\n", p,
active);
124 toolbar[TOOLBAR_BT_SEARCH_FWD].ob_state &= ~OS_DISABLED;
126 toolbar[TOOLBAR_BT_SEARCH_FWD].ob_state |= OS_DISABLED;
145 NSLOG(netsurf, INFO,
"%p: set back state: %d\n", p,
active);
152 toolbar[TOOLBAR_BT_SEARCH_BACK].ob_state &= ~OS_DISABLED;
154 toolbar[TOOLBAR_BT_SEARCH_BACK].ob_state |= OS_DISABLED;
169 if ((obj[TOOLBAR_CB_CASESENSE].ob_state & OS_SELECTED) != 0 ) {
172 if ((obj[TOOLBAR_CB_SHOWALL].ob_state & OS_SELECTED) != 0 ) {
176 cstr = gemtk_obj_get_text(obj, TOOLBAR_TB_SRCH);
177 snprintf(s->
text, 32,
"%s", cstr);
190 strncpy(spare,
text, 254);
195 set_string(obj, idx, spare);
202 obj[TOOLBAR_CB_SHOWALL].ob_state |= OS_SELECTED;
204 obj[TOOLBAR_CB_SHOWALL].ob_state &= ~OS_SELECTED;
208 obj[TOOLBAR_CB_CASESENSE].ob_state |= OS_SELECTED;
210 obj[TOOLBAR_CB_CASESENSE].ob_state &= ~OS_SELECTED;
214 obj[TOOLBAR_BT_SEARCH_BACK].ob_state |= OS_DISABLED;
216 obj[TOOLBAR_BT_SEARCH_BACK].ob_state &= ~OS_DISABLED;
219 TEDINFO *t = ((TEDINFO *)get_obspec(obj, TOOLBAR_TB_SRCH));
227 NSLOG(netsurf, INFO,
"session %p", s);
241 assert(s != NULL && obj != NULL);
246 if ((cur.
flags&flags_mask) != (flags_old&flags_mask)) {
251 cstr = gemtk_obj_get_text(obj, TOOLBAR_TB_SRCH);
253 if (strcmp(cstr, (
char*)&s->
state.
text) != 0) {
282 gemtk_obj_get_text(obj, TOOLBAR_TB_SRCH));
void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape)
Change mouse pointer shape.
Browser window creation and manipulation 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 int apply_form(OBJECT *obj, struct s_search_form_state *s)
struct gui_window * input_window
void nsatari_search_perform(struct s_search_form_session *s, OBJECT *obj, search_flags_t f)
struct s_search_form_session * nsatari_search_session_create(OBJECT *obj, struct gui_window *gw)
struct gui_search_table * atari_search_table
static void nsatari_search_set_hourglass(bool active, void *p)
display hourglass while searching
void nsatari_search_session_destroy(struct s_search_form_session *s)
void nsatari_search_set_forward_state(bool active, void *p)
activate search forwards button in gui
static bool search_session_compare(struct s_search_form_session *s, OBJECT *obj)
checks for search parameters changes
static void nsatari_search_set_status(bool found, void *p)
Change the displayed search status.
void nsatari_search_set_back_state(bool active, void *p)
activate search back button in gui
void nsatari_search_restore_form(struct s_search_form_session *s, OBJECT *obj)
static void nsatari_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 struct gui_search_table search_table
static void set_text(OBJECT *obj, short idx, char *text, int len)
struct s_search_form_session * SEARCH_FORM_SESSION
Interface to platform-specific search operations.
#define NSLOG(catname, level, logmsg, args...)
Localised message support (interface).
void window_schedule_redraw_grect(ROOTWIN *rootwin, GRECT *area)
void window_get_grect(ROOTWIN *rootwin, enum browser_area_e which, GRECT *d)
Interface to utility string handling.
function table for page text search.
first entry in window list
struct fbtk_widget_s * toolbar
bool active
Whether the throbber should be active.
struct s_gui_win_root * root
struct s_browser * browser
struct browser_window * bw
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.