home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / screen / intui110 / t_proto.h < prev    next >
Encoding:
Text File  |  1991-10-27  |  6.5 KB  |  135 lines

  1. /****************************************************************************/
  2. /* Prototype File                                Fri Oct 04 21:59:43 1991   */
  3. /****************************************************************************/
  4.  
  5. /*------------------------- Prototypes for T_BASE.C ------------------------*/
  6. base_at_cr( TUI *tuip, int inx, int col, int row);
  7. void free_base( TUI *tuip, int inx );
  8. void realloc_base( TUI *tuip, int n_alloc );
  9. add_base( TUI *tuip, int inx );
  10. del_base( TUI *tuip, int inx );
  11. free_tui( TUI *tuip );
  12.  
  13. /*------------------------- Prototypes for T_DLG.C  ------------------------*/
  14. void clear_area( WINDOW *wnp, int x, int y, int width, int height );
  15. void draw_shadow( WINDOW *wnp, TUI_BASE *basep );
  16. void draw_box( WINDOW *wnp, TUI_BASE *basep );
  17. void draw_square_text( WINDOW *wnp, TUI_BASE *basep, int len, uchar *text );
  18. void draw_button( WINDOW *wnp, TUI_BASE *basep );
  19. void draw_check( WINDOW *wnp, TUI_BASE *basep );
  20. void draw_input( WINDOW *wnp, TUI_BASE *basep );
  21. void draw_slider( WINDOW *wnp, TUI_BASE *basep );
  22. void draw_icon( WINDOW *wnp, TUI_BASE *basep );
  23. void draw_base( WINDOW *wnp, TUI_BASE *basep );
  24. draw_item( TUI *tuip, int inx );
  25. void refresh_base( WINDOW *wnp, TUI_BASE *basep );
  26. void refresh_dialog( TUI *tuip, int inx );
  27. draw_dialog( TUI *tuip, int inx );
  28. erase_dialog( TUI *tuip, int inx );
  29. void center_dialog( TUI *tuip, int inx );
  30. void position_dialog( TUI *tuip, int inx, int col, int row );
  31. void desel_radios( WINDOW *wnp, TUI_BASE *cmpp, TUI_BASE *basep, int cnt );
  32. process_input( WINDOW *wnp, TUI_BASE *basep, int mode, int *proc_mouse, int *proc_key );
  33. void validate_slider( TUI_SLIDER *sldrp );
  34. process_slider( WINDOW *wnp, TUI_BASE *basep );
  35. process_btnchk( TUI_BASE *basep, WINDOW *wnp, TUI_BASE *dlgp, int num_in_dlg);
  36. void wait_for_release();
  37. advance_tabs(TUI *tuip, int inx, WINDOW *wnp, int num_in_dlg, int num_with_tab,
  38.                          int key, int *tab_inx);
  39. do_dialog( TUI *tuip, int inx, int mode );
  40.  
  41. /*------------------------- Prototypes for T_FSEL.C ------------------------*/
  42. getdisk();
  43. setdisk(int drive);
  44. long datetol( FILE_DATE *date );
  45. void get_curr_path( char *path );
  46. remove_lastdir(char *d);
  47. int cmp_dir_name( const void *p1, const void *p2 );
  48. int cmp_dir_ext( const void *p1, const void *p2 );
  49. int cmp_dir_size( const void *p1, const void *p2 );
  50. int cmp_dir_datetime( const void *p1, const void *p2 );
  51. void sort_directory(DIR *dir_array, int num, int sort_type);
  52. void split_fn_ext( char *n, char *f, char *s);
  53. void merge_fn_ext( char *n, char *f, char *s);
  54. directory_read(char *path, char *wildcard, DIR *dir_array, int *num );
  55. void make_path_plus( char *dest, char *path, char *name );
  56. void split_path( char *path_plus, char *path, char *wildcard );
  57. void make_filesel_strs( int num, DIR *dir_array, char *str_buffer );
  58. file_selected( char *wildcard, char *path, char *filename, char *fullname );
  59. void validate_offset( int csr, int h, int *offset );
  60. ffirst( char *p, FBLK *fblk, int mode );
  61. fnext( FBLK *fblk );
  62.  
  63. /*------------------------- Prototypes for T_UTIL.C ------------------------*/
  64. void set_slider( TUI *tuip, int inx, long position, long page_amt, long total );
  65. void set_base_btn_text( TUI_BASE *basep, char *new_text );
  66. void set_base_check_text( TUI_BASE *basep, char *new_text );
  67. void set_base_input_strs( TUI_BASE *basep, char *text, char *mask, char *template );
  68.  
  69. /*------------------------- Prototypes for T_HELP.C ------------------------*/
  70. tui_help( int sx, int sy, int ex, int ey, char *fname, char *search_str, int mode );
  71. int browse( TUI_HELP *help );
  72. void cleanup( TUI_HELP *help );
  73. void remove_commands(char *s, char *d);
  74. char *itoa4( int val );
  75. get_line(int fid, uchar *d, int max_len);
  76. find_color(char *s);
  77. char *get_token( char *s, char *d, char delim, int mode );
  78. int find_word( char *word, int curr_col, int *col, char *lines[], int num_lines, int dir, int mode );
  79. int fast_find( char *word, char *lines[], int num_lines, int skip_line );
  80. char *mystrstr( char *s, char *w, int mode, int skip );
  81. void mystrupr( char *s, char *d );
  82. cvt_tabs_to_spaces( char *s, int *text_len, int tab_size );
  83. void init_help_video();
  84. get_screen_text(char *buffer, int max_len);
  85. get_font( char *fname, int block );
  86. int auto_repeat(ulong tm);
  87.  
  88. /*------------------------- Prototypes for T_INIT.C ------------------------*/
  89. void default_font( int block );
  90. init_tui_fonts( TUI *tuip );
  91. init_tui( TUI *tuip );
  92. void end_tui( TUI *tuip );
  93.  
  94. /*------------------------- Prototypes for T_ADD.C  ------------------------*/
  95. void set_base_parms( TUI_BASE *basep, int type, int hot_key, int flags,
  96.          int transfer, int x_off, int y_off, int width, int height, int style );
  97. add_dialog( TUI *tuip, uint flags, int x_off, int y_off, int width, int height,
  98.                         int att, int bdr_att, int style );
  99. add_box( TUI *tuip, int hot_key, uint flags, int transfer, int x_off,
  100.                  int y_off, int width, int height, int att, int style );
  101. add_button( TUI *tuip, int hot_key, uint flags, int transfer, int x_off,
  102.                         int y_off, int width, int height, int style, int norm_att,
  103.                         int norm_f_att, int sel_att, int sel_f_att, int tab_color,
  104.                         int first_pos, char *text );
  105. add_check( TUI *tuip, int hot_key, uint flags, int transfer, int x_off,
  106.                      int y_off, int width, int height, int style, int norm_att,
  107.                      int norm_f_att, int tab_color, int mark_pos, uchar mark_char,
  108.                      int first_pos, char *text );
  109. add_input( TUI *tuip, int hot_key, uint flags, int transfer, int x_off,
  110.                      int y_off, int width, int height, int style, int norm_att,
  111.                      int tab_color, uchar input_flags, char *text, char *mask,
  112.                      char *template );
  113. add_slider( TUI *tuip, uint flags, int transfer, int x_off, int y_off,
  114.                         int width, int height, int style, int arrow_att, int track_att,
  115.                         int grab_att, uchar *slider_chars );
  116. add_icon( TUI *tuip, int hot_key, uint flags, int transfer, int x_off,
  117.                     int y_off, int width, int height, int style, int norm_att,
  118.                     int sel_att, int tab_color, uchar *images );
  119. void set_tui_parenting( TUI *tuip );
  120. set_base_parent( TUI *tuip, int inx );
  121.  
  122. /*------------------------- Prototypes for T_SAVE.C ------------------------*/
  123. save_tui( TUI *tuip, char *fname );
  124.  
  125. /*------------------------- Prototypes for T_LOAD.C ------------------------*/
  126. load_tui( TUI *tuip, char *fname );
  127.  
  128. /*------------------------- Prototypes for T_FSELT.C ------------------------*/
  129. void register_fsel_tui( TUI *tuip );
  130.  
  131. /*------------------------- Prototypes for T_HELPT.C ------------------------*/
  132. void register_help_tui( TUI *tuip );
  133.  
  134. /**** END OF FILE ****/
  135.