home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 3 / CD_Magazyn_EXEC_nr_3.iso / Internet / Strony_WWW / Opus4.x / DOpus414JRsrc.lha / DirectoryOpus4 / Program / view.h < prev   
C/C++ Source or Header  |  2000-01-30  |  3KB  |  134 lines

  1.  #ifndef DOPUS_VIEW_H
  2. #define DOPUS_VIEW_H
  3. /*
  4.  
  5. Directory Opus 4
  6. Original GPL release version 4.12
  7. Copyright 1993-2000 Jonathan Potter
  8.  
  9. This program is free software; you can redistribute it and/or
  10. modify it under the terms of the GNU General Public License
  11. as published by the Free Software Foundation; either version 2
  12. of the License, or (at your option) any later version.
  13.  
  14. This program is distributed in the hope that it will be useful,
  15. but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. GNU General Public License for more details.
  18.  
  19. You should have received a copy of the GNU General Public License
  20. along with this program; if not, write to the Free Software
  21. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  22.  
  23. All users of Directory Opus 4 (including versions distributed
  24. under the GPL) are entitled to upgrade to the latest version of
  25. Directory Opus version 5 at a reduced price. Please see
  26. http://www.gpsoft.com.au for more information.
  27.  
  28. The release of Directory Opus 4 under the GPL in NO WAY affects
  29. the existing commercial status of Directory Opus 5.
  30.  
  31. */
  32.  
  33. struct viewhilite {
  34.     struct viewhilite *next;
  35.     int x,y,x1,y1;
  36. };
  37.  
  38. struct ViewData {
  39.     int view_file_size;
  40.     int view_max_line_length;
  41.     int view_tab_size;
  42.  
  43.     char *view_text_buffer;
  44.     int view_buffer_size;
  45.  
  46.     char *view_file_name;
  47.     char *view_path_name;
  48.  
  49.     int view_line_count;
  50.  
  51.     int view_text_offset;
  52.     int view_old_offset;
  53.     int view_top_buffer_pos;
  54.     int view_bottom_buffer_pos;
  55.  
  56.     int view_lines_per_screen;
  57.     int view_last_line;
  58.     int view_last_charpos;
  59.     char *view_last_char;
  60.  
  61.     int view_scroll;
  62.     int view_scroll_dir;
  63.     int view_scroll_width;
  64.     int view_char_width;
  65.     int view_display_as_hex;
  66.     int view_display_as_ansi;
  67.     int view_status_bar_ypos;
  68.  
  69.     char view_search_string[80];
  70.     int view_search_flags;
  71.     int view_search_offset;
  72.     int view_search_charoffset;
  73.     int view_pick_offset;
  74.     int view_pick_charoffset;
  75.  
  76.     struct Screen *view_screen;
  77.     struct Window *view_window;
  78.     struct RastPort *view_rastport;
  79.     struct Window *view_ansiread_window;
  80.     struct Gadget *view_gadgets;
  81.     struct TextFont *view_font;
  82.  
  83.     int view_display_left;
  84.     int view_display_top;
  85.     int view_display_right;
  86.     int view_display_bottom;
  87.     int view_display_height;
  88.     int view_scroll_bar;
  89.  
  90.     struct viewhilite *view_first_hilite;
  91.     struct viewhilite *view_current_hilite;
  92.  
  93.     struct DOpusRemember *view_memory;
  94.     struct IOStdReq view_console_request;
  95.     struct Requester view_busy_request;
  96.     struct PropInfo view_prop_info;
  97.     struct Image view_prop_image;
  98.  
  99.     char view_port_name[20];
  100.     struct MsgPort *view_port;
  101.  
  102.     short view_colour_table[8];
  103.     struct VisInfo view_vis_info;
  104. };
  105.  
  106. enum {
  107.     VIEW_SCROLLUP,
  108.     VIEW_SCROLLDOWN,
  109.     VIEW_PAGEUP,
  110.     VIEW_PAGEDOWN,
  111.     VIEW_GOTOP,
  112.     VIEW_GOBOTTOM,
  113.     VIEW_SEARCH,
  114.     VIEW_PRINT,
  115.     VIEW_QUIT,
  116.     VIEW_JUMPTOLINE,
  117.     VIEW_JUMPTOPERCENT,
  118.     VIEW_SCROLLGADGET,
  119.  
  120.     VIEW_GADGET_COUNT};
  121.  
  122. enum {
  123.     PEN_BACKGROUND,
  124.     PEN_SHADOW,
  125.     PEN_SHINE,
  126.     PEN_TEXT,
  127.     PEN_TEXTBACKGROUND,
  128.     VIEWPEN_STATUSTEXT,
  129.     VIEWPEN_STATUSBACKGROUND,
  130.     
  131.     VIEWPEN_LAST_COLOUR};
  132. #endif /* DOPUS_VIEW_H */
  133.  
  134.