/[weechat]/weechat/src/gui/gui.h
ViewVC logotype

Diff of /weechat/src/gui/gui.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by flashcode, Sun Oct 12 14:13:48 2003 UTC revision 1.3 by flashcode, Mon Oct 13 21:51:35 2003 UTC
# Line 76  Line 76 
76  #define WIN_IS_CHANNEL(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_CHANNEL))  #define WIN_IS_CHANNEL(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_CHANNEL))
77  #define WIN_IS_PRIVATE(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_PRIVATE))  #define WIN_IS_PRIVATE(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_PRIVATE))
78    
79    #ifdef WEE_CURSES
80        #define WIN_HAS_NICKLIST(window) (window->win_nick)
81    #endif
82    #ifdef WEE_GTK
83        #define WIN_HAS_NICKLIST(window) (window->textbuffer_nicklist)
84    #endif
85    
86  #define MSG_TYPE_TIME  0  #define MSG_TYPE_TIME  0
87  #define MSG_TYPE_NICK  1  #define MSG_TYPE_NICK  1
88  #define MSG_TYPE_INFO  2  #define MSG_TYPE_INFO  2
# Line 123  typedef struct t_gui_window t_gui_window Line 130  typedef struct t_gui_window t_gui_window
130    
131  struct t_gui_window  struct t_gui_window
132  {  {
133        int is_displayed;               /* = 1 if window is displayed           */
134        
135      /* server/channel */      /* server/channel */
136      void *server;                   /* window's server                      */      void *server;                   /* window's server                      */
137      void *channel;                  /* window's channel                     */      void *channel;                  /* window's channel                     */
# Line 152  struct t_gui_window Line 161  struct t_gui_window
161      WINDOW *win_input;              /* input window                         */      WINDOW *win_input;              /* input window                         */
162      #endif      #endif
163      #ifdef WEE_GTK      #ifdef WEE_GTK
164      GtkWidget *win_title;           /* title window                         */      GtkWidget *textview_chat;           /* textview widget for chat         */
165      GtkWidget *win_chat;            /* chat window (exemple: channel)       */      GtkTextBuffer *textbuffer_chat;     /* textbuffer widget for chat       */
166      GtkWidget *win_nick;            /* nick window                          */      GtkTextTag *texttag_chat;           /* texttag widget for chat          */
167      GtkWidget *win_status;          /* status window                        */      GtkWidget *textview_nicklist;       /* textview widget for nicklist     */
168      GtkWidget *win_input;           /* input window                         */      GtkTextBuffer *textbuffer_nicklist; /* textbuffer widget for nicklist   */
169      #endif      #endif
170      #ifdef WEE_QT      #ifdef WEE_QT
171      /* TODO: declare Qt window */      /* TODO: declare Qt window */
# Line 198  extern t_gui_window *gui_current_window; Line 207  extern t_gui_window *gui_current_window;
207    
208  /* prototypes */  /* prototypes */
209    
210    /* GUI independent functions */
211    extern t_gui_window *gui_window_new (void *, void * /*int, int, int, int*/); /* TODO: add coordinates and size */
212    extern void gui_window_clear (t_gui_window *);
213    extern void gui_window_clear_all ();
214    extern t_gui_line *gui_new_line (t_gui_window *);
215    extern t_gui_message *gui_new_message (t_gui_window *);
216    extern void gui_optimize_input_buffer_size (t_gui_window *);
217    extern void gui_delete_previous_word ();
218    extern void gui_move_previous_word ();
219    extern void gui_move_next_word ();
220    extern void gui_buffer_insert_string (char *, int);
221    /* GUI dependant functions */
222  extern int gui_assign_color (int *, char *);  extern int gui_assign_color (int *, char *);
223  extern int gui_get_color_by_name (char *);  extern int gui_get_color_by_name (char *);
224  extern char *gui_get_color_by_value (int);  extern char *gui_get_color_by_value (int);
   
225  extern void gui_calculate_pos_size (t_gui_window *);  extern void gui_calculate_pos_size (t_gui_window *);
   
226  extern void gui_draw_window_title (t_gui_window *);  extern void gui_draw_window_title (t_gui_window *);
227  extern void gui_redraw_window_title (t_gui_window *);  extern void gui_redraw_window_title (t_gui_window *);
228  extern void gui_draw_window_chat (t_gui_window *);  extern void gui_draw_window_chat (t_gui_window *);
# Line 215  extern void gui_redraw_window_status (t_ Line 234  extern void gui_redraw_window_status (t_
234  extern void gui_draw_window_input (t_gui_window *);  extern void gui_draw_window_input (t_gui_window *);
235  extern void gui_redraw_window_input (t_gui_window *);  extern void gui_redraw_window_input (t_gui_window *);
236  extern void gui_redraw_window (t_gui_window *);  extern void gui_redraw_window (t_gui_window *);
   
 extern t_gui_window *gui_window_new (void *, void *);  
 extern void gui_window_clear (t_gui_window *);  
 extern void gui_window_clear_all ();  
   
237  extern void gui_switch_to_window (t_gui_window *);  extern void gui_switch_to_window (t_gui_window *);
238  extern void gui_switch_to_previous_window ();  extern void gui_switch_to_previous_window ();
239  extern void gui_switch_to_next_window ();  extern void gui_switch_to_next_window ();
   
240  extern void gui_move_page_up ();  extern void gui_move_page_up ();
241  extern void gui_move_page_down ();  extern void gui_move_page_down ();
242    extern void gui_window_init_subwindows (t_gui_window *);
243    extern void gui_init_colors ();
244  extern void gui_init ();  extern void gui_init ();
 /* TODO: add coordinates and size */  
 extern t_gui_window *gui_window_new (void *, void * /*int, int, int, int*/);  
245  extern void gui_window_free (t_gui_window *);  extern void gui_window_free (t_gui_window *);
246  extern void gui_end ();  extern void gui_end ();
   
 extern t_gui_line *gui_new_line (t_gui_window *);  
 extern t_gui_message *gui_new_message (t_gui_window *);  
247  extern void gui_printf_color_type (t_gui_window *, int, int, char *, ...);  extern void gui_printf_color_type (t_gui_window *, int, int, char *, ...);
   
 extern void gui_optimize_input_buffer_size (t_gui_window *);  
 extern void gui_delete_previous_word ();  
 extern void gui_move_previous_word ();  
 extern void gui_move_next_word ();  
 extern void gui_buffer_insert_string (char *, int);  
   
248  extern void gui_main_loop ();  extern void gui_main_loop ();
249    
250  #endif /* gui.h */  #endif /* gui.h */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26