home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.7z / ftp.whtech.com / emulators / v9t9 / linux / sources / V9t9 / source / gtkloop.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-19  |  1.4 KB  |  84 lines

  1. #include "centry.h"
  2. #include "log.h"
  3.  
  4. /*
  5.  *    Helper for sanity checks
  6.  */
  7. #define VALID_WINDOW(w)    ((w) && GTK_IS_OBJECT(w) && !GTK_OBJECT_DESTROYED(w))
  8.  
  9. /*    Global data  */
  10.  
  11. /*    Window holding V9t9 and command buttons */
  12. extern GtkWidget    *v9t9_window;
  13.  
  14. /*    Drawing area for v9t9 screen */
  15. extern GtkWidget    *v9t9_drawing_area;
  16.  
  17. /*    Command center window */
  18. extern GtkWidget    *command_center;
  19.  
  20. /*    Command log text entry widget */
  21. extern GtkWidget    *v9t9_command_log;
  22.  
  23.  
  24. /*    
  25.  *    Send a command to V9t9
  26.  */
  27. void
  28. GTK_send_command(const gchar *text);
  29.  
  30. /*
  31.  *    Append text to command log
  32.  */
  33. void
  34. GTK_append_log(const gchar *text, GdkColor *color, GdkFont *font);
  35.  
  36. /*
  37.  *    Get log font
  38.  */
  39. GdkFont *
  40. GTK_get_log_font(void);
  41.  
  42. /*
  43.  *    Change font used to display log text
  44.  */
  45. void
  46. GTK_change_log_font(char *fontname /*GdkFont *font*/);
  47.  
  48. /*
  49.  *    Delete all text in the log
  50.  */
  51. void
  52. GTK_flush_log(void);
  53.  
  54. /*
  55.  *    Call to keyboard_gtk.c module to set a key from a
  56.  *    key press/release event
  57.  */
  58. void       
  59. GTK_keyboard_set_key(guint key, int onoff);
  60.  
  61. /*
  62.  *    Passed from system_report_status to debugger frontend
  63.  */
  64. void
  65. debugger_report_status(status_item item, va_list va);
  66.  
  67. void
  68. GTK_system_report_status(status_item item, va_list va);
  69.  
  70. /*
  71.  *    Debugger was enabled or disabled... react
  72.  */
  73. void
  74. GTK_system_debugger_enabled(bool enabled);
  75.  
  76. /*
  77.  *    Execution was paused or unpaused... react 
  78.  */
  79. void
  80. GTK_system_execution_paused(bool paused);
  81.  
  82. #include "cexit.h"
  83.  
  84.