/[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.3 by flashcode, Mon Oct 13 21:51:35 2003 UTC revision 1.4 by flashcode, Sat Oct 25 14:49:19 2003 UTC
# Line 23  Line 23 
23  #ifndef __WEECHAT_GUI_H  #ifndef __WEECHAT_GUI_H
24  #define __WEECHAT_GUI_H 1  #define __WEECHAT_GUI_H 1
25    
26  #ifdef WEE_CURSES  #include "../common/completion.h"
27  #include <curses.h>  #include "../common/history.h"
 #endif  
 #ifdef WEE_GTK  
 #include <gtk/gtk.h>  
 #endif  
   
 #include "../completion.h"  
 #include "../history.h"  
   
 #ifdef WEE_CURSES  
 #define KEY_ESCAPE 27  
 #endif  
28    
29  #define INPUT_BUFFER_BLOCK_SIZE 256  #define INPUT_BUFFER_BLOCK_SIZE 256
30    
# Line 77  Line 66 
66  #define WIN_IS_PRIVATE(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_PRIVATE))  #define WIN_IS_PRIVATE(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_PRIVATE))
67    
68  #ifdef WEE_CURSES  #ifdef WEE_CURSES
69      #define WIN_HAS_NICKLIST(window) (window->win_nick)      //#define WIN_HAS_NICKLIST(window) (window->win_nick)
70  #endif  #endif
71  #ifdef WEE_GTK  #ifdef WEE_GTK
72      #define WIN_HAS_NICKLIST(window) (window->textbuffer_nicklist)      //#define WIN_HAS_NICKLIST(window) (window->textbuffer_nicklist)
73  #endif  #endif
74    
75  #define MSG_TYPE_TIME  0  #define MSG_TYPE_TIME  0
# Line 152  struct t_gui_window Line 141  struct t_gui_window
141      int win_nick_width;             /* width of chat window                 */      int win_nick_width;             /* width of chat window                 */
142      int win_nick_height;            /* height of chat window                */      int win_nick_height;            /* height of chat window                */
143            
144      /* windows */      /* windows for Curses GUI */
145      #ifdef WEE_CURSES      void *win_title;                /* title window                         */
146      WINDOW *win_title;              /* title window                         */      void *win_chat;                 /* chat window (exemple: channel)       */
147      WINDOW *win_chat;               /* chat window (exemple: channel)       */      void *win_nick;                 /* nick window                          */
148      WINDOW *win_nick;               /* nick window                          */      void *win_status;               /* status window                        */
149      WINDOW *win_status;             /* status window                        */      void *win_input;                /* input window                         */
150      WINDOW *win_input;              /* input window                         */      
151      #endif      /* windows for Curses GUI */
152      #ifdef WEE_GTK      //GtkWidget *textview_chat;           /* textview widget for chat         */
153      GtkWidget *textview_chat;           /* textview widget for chat         */      //GtkTextBuffer *textbuffer_chat;     /* textbuffer widget for chat       */
154      GtkTextBuffer *textbuffer_chat;     /* textbuffer widget for chat       */      //GtkTextTag *texttag_chat;           /* texttag widget for chat          */
155      GtkTextTag *texttag_chat;           /* texttag widget for chat          */      //GtkWidget *textview_nicklist;       /* textview widget for nicklist     */
156      GtkWidget *textview_nicklist;       /* textview widget for nicklist     */      //GtkTextBuffer *textbuffer_nicklist; /* textbuffer widget for nicklist   */
157      GtkTextBuffer *textbuffer_nicklist; /* textbuffer widget for nicklist   */      void *textview_chat;           /* textview widget for chat         */
158      #endif      void *textbuffer_chat;     /* textbuffer widget for chat       */
159      #ifdef WEE_QT      void *texttag_chat;           /* texttag widget for chat          */
160        void *textview_nicklist;       /* textview widget for nicklist     */
161        void *textbuffer_nicklist; /* textbuffer widget for nicklist   */
162        
163        /* windows for Curses GUI */
164      /* TODO: declare Qt window */      /* TODO: declare Qt window */
     #endif  
165            
166      /* chat content (lines, line is composed by many messages) */      /* chat content (lines, line is composed by many messages) */
167      t_gui_line *lines;              /* lines of chat window                 */      t_gui_line *lines;              /* lines of chat window                 */
# Line 222  extern void gui_buffer_insert_string (ch Line 214  extern void gui_buffer_insert_string (ch
214  extern int gui_assign_color (int *, char *);  extern int gui_assign_color (int *, char *);
215  extern int gui_get_color_by_name (char *);  extern int gui_get_color_by_name (char *);
216  extern char *gui_get_color_by_value (int);  extern char *gui_get_color_by_value (int);
217    extern int gui_window_has_nicklist (t_gui_window *);
218  extern void gui_calculate_pos_size (t_gui_window *);  extern void gui_calculate_pos_size (t_gui_window *);
219  extern void gui_draw_window_title (t_gui_window *);  extern void gui_draw_window_title (t_gui_window *);
220  extern void gui_redraw_window_title (t_gui_window *);  extern void gui_redraw_window_title (t_gui_window *);
# Line 240  extern void gui_switch_to_next_window () Line 233  extern void gui_switch_to_next_window ()
233  extern void gui_move_page_up ();  extern void gui_move_page_up ();
234  extern void gui_move_page_down ();  extern void gui_move_page_down ();
235  extern void gui_window_init_subwindows (t_gui_window *);  extern void gui_window_init_subwindows (t_gui_window *);
236  extern void gui_init_colors ();  extern void gui_pre_init (int *, char **[]);
237    //extern void gui_init_colors ();
238  extern void gui_init ();  extern void gui_init ();
239  extern void gui_window_free (t_gui_window *);  extern void gui_window_free (t_gui_window *);
240  extern void gui_end ();  extern void gui_end ();

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

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