1 /* Copyright (c) 1994,1995,1996 FUJITSU LIMITED */
2 /* All Rights Reserved */
5 * $XConsortium: SearchResultsAgentMotif.hh /main/4 1996/11/18 16:31:10 cde-hal $
7 * Copyright (c) 1993 HAL Computer Systems International, Ltd.
8 * All rights reserved. Unpublished -- rights reserved under
9 * the Copyright Laws of the United States. USE OF A COPYRIGHT
10 * NOTICE IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
13 * THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE
14 * SECRETS OF HAL COMPUTER SYSTEMS INTERNATIONAL, LTD. USE,
15 * DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE
16 * PRIOR EXPRESS WRITTEN PERMISSION OF HAL COMPUTER SYSTEMS
19 * RESTRICTED RIGHTS LEGEND
20 * Use, duplication, or disclosure by the Government is subject
21 * to the restrictions as set forth in subparagraph (c)(l)(ii)
22 * of the Rights in Technical Data and Computer Software clause
23 * at DFARS 252.227-7013.
25 * HAL COMPUTER SYSTEMS INTERNATIONAL, LTD.
38 class WXmToggleButton;
40 class SearchResultsAgent : public NodeListAgent
46 XmString form_result_string (UAS_Pointer<UAS_SearchResultsEntry>);
47 void display (ResultID *results);
48 void select_item (WCallback *wcb);
49 void view_activate (WCallback *);
50 void retain_changed (WCallback *wcb);
51 void set_agent_list_entry (AgentListEntry *my_ale)
52 { f_my_ale = my_ale; }
59 static Boolean fill_list_wp (XtPointer client_data);
60 Boolean fill_list(UAS_List<UAS_SearchResultsEntry> &);
62 protected: // functions
63 virtual void create_window();
64 virtual void close_window (WCallback *wcb);
65 void set_retain_default ();
66 void modify_verify (WCallback *wcb);
71 static void resizeCB(Widget, XtPointer, XEvent*, Boolean*);
72 void compose_header();
74 protected: // variables
75 AgentListEntry *f_my_ale;
79 WXmToggleButton *f_retain_toggle;
80 WXmText *f_query_text;
81 WXmLabel *f_hits_label;
82 WXmLabel *f_scope_label;
84 unsigned int f_docs_to_display ;
85 unsigned int f_count ;
87 XtWorkProcId f_work_proc_id;
89 Dimension f_header_indent;
95 SearchResultsAgent::SearchResultsAgent()
96 : f_work_proc_id (0), f_popped_up(FALSE)