home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 3 / CD_Magazyn_EXEC_nr_3.iso / Recent / misc / edu / WhirlDisc.lha / WhirlDisc / Source / search.h < prev    next >
C/C++ Source or Header  |  2000-08-11  |  2KB  |  82 lines

  1. /*
  2.  
  3. File: search.h
  4. Author: Neil Cafferkey
  5. Copyright (C) 2000 Neil Cafferkey
  6.  
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  20. MA 02111-1307, USA.
  21.  
  22. */
  23.  
  24. #ifndef _search_h
  25. #define _search_h
  26.  
  27.  
  28. #include <exec/types.h>
  29. #include <intuition/intuition.h>
  30. #include "sequence.h"
  31. #include <exec/lists.h>
  32. #include "paedia.h"
  33. #include "index_record.h"
  34.  
  35. #define NT_SEARCH NT_USER-1
  36.  
  37. typedef struct
  38.    {
  39.    struct Node node;
  40.    Paedia paedia;
  41.    struct MinList *object_list;
  42.    struct MsgPort *msg_port;
  43.    struct Window *window;
  44.    struct Screen *screen;
  45.    struct TextFont *font;
  46.    struct List *index_list;
  47.    struct Gadget *gadgets;
  48.    struct Gadget *context;
  49.    struct Gadget *keyword_box;
  50.    struct Gadget *search_button;
  51.    struct Gadget *subject_view;
  52.    struct Gadget *article_view;
  53.    APTR visual_info;
  54.    UWORD gadget_left;
  55.    UWORD gadget_top;
  56.    UWORD keyword_box_rel_width;
  57.    UWORD keyword_box_height;
  58.    WORD search_button_rel_left;
  59.    UWORD search_button_width;
  60.    UWORD subject_view_top;
  61.    UWORD subject_view_height;
  62.    WORD gadget_rel_width;
  63.    UWORD article_view_top;
  64.    WORD article_view_rel_height;
  65.    UWORD font_height;
  66.    TEXT *keywords;
  67.    ULONG selected_subject_no;
  68.    ULONG top_subject_no;
  69.    ULONG top_article_no;
  70.    IndexRecord current_subject;
  71.    WORD min_width;
  72.    WORD min_height;
  73.    }
  74.    Search_imp;
  75.  
  76. typedef Search_imp *Search;
  77.  
  78.  
  79. #endif
  80.  
  81.  
  82.