ekg2
 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje Grupay Strony
main.h
Idź do dokumentacji tego pliku.
1 #include <gtk/gtkwidget.h>
2 #include <gtk/gtkcontainer.h>
3 #include <gtk/gtksignal.h>
4 
5 #include <ekg/plugins.h>
6 
7 extern int ui_quit;
8 
9 extern plugin_t gtk_plugin;
10 
11 typedef struct {
12  GtkWidget
13  *xtext, *vscrollbar, *window, /* toplevel */
14  *topic_entry, *note_book, *main_table, *user_tree, /* GtkTreeView */
15  *user_box, /* userlist box */
16  *dialogbutton_box, *topicbutton_box,
17  *topic_bar, *hpane_left, *hpane_right, *vpane_left, *vpane_right, *menu, *bar, /* connecting progress bar */
18  *nick_box, /* contains label to the left of input_box */
19  *nick_label, *op_xpm, /* icon to the left of nickname */
20  *namelistinfo, /* label above userlist */
21  *input_box;
22 
23 #define MENU_ID_NUM 12
24  GtkWidget *menu_item[MENU_ID_NUM + 1]; /* some items we may change state of */
25 
26  void *chanview; /* chanview.h */
27 
28  int pane_left_size; /*last position of the pane */
30 
31  guint16 is_tab; /* is tab or toplevel? */
32  guint16 ul_hidden; /* userlist hidden? */
34 
35 typedef struct {
37 
38  void *tab; /* (chan *) */
39 
40  /* information stored when this tab isn't front-most */
41  void *user_model; /* for filling the GtkTreeView */
42  void *buffer; /* xtext_Buffer */
43  gfloat old_ul_value; /* old userlist value (for adj) */
44 } gtk_window_t;
45 
46 
47 /* config */
48 extern int mainwindow_width_config;
49 extern int mainwindow_height_config;
50 extern int gui_pane_left_size_config;
51 extern int gui_tweaks_config;
52 extern int tab_small_config;
53 extern int tab_pos_config;
54 extern int max_auto_indent_config;
55 extern int thin_separator_config;
56 
57 extern int show_marker_config;
58 extern int tint_red_config;
59 extern int tint_green_config;
60 extern int tint_blue_config;
61 extern int transparent_config;
62 extern int wordwrap_config;
63 extern int indent_nicks_config;
64 extern int show_separator_config;
65 extern char *font_normal_config;
66 extern int transparent_config;
67 
68 extern int gui_ulist_pos_config;
69 extern int tab_pos_config;
70 
71 extern int tab_layout_config;
72 extern int contacts_config;
73 extern int backlog_size_config;
74 
77 
78 extern int new_window_in_tab_config;
79 
80 #define hidemenu_config 0
81 #define topicbar_config 1
82 
83 #define mainwindow_left_config 0
84 #define mainwindow_top_config 0
85 #define newtabstofront_config 2
86 
87 #define gtk_private_ui(w) (((gtk_window_t*) w->priv_data)->gui)
88 #define gtk_private(w) ((gtk_window_t*) w->priv_data)
89 
90 #define gui_win_state_config 0
91 
92 #define truncchans_config 20
93 #define tab_sort_config 1
94 #define style_namelistgad_config 0
95 
96 #define chanmodebuttons_config -1
97 #define gui_quit_dialog_config -1
98 
99 #define FOCUS_NEW_ALL 1
100 #define FOCUS_NEW_ONLY_ASKED 2
101 
102 #define paned_userlist_config 0 /* XXX xchat def: 1 */
103 #define style_inputbox_config 0 /* XXX xchat commented def: 1 */
104 
105 extern int gtk_ui_window_switch_lock;