2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2001 Hiroyuki Yamamoto
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef __MAINWINDOW_H__
21 #define __MAINWINDOW_H__
25 typedef struct _MainWindow MainWindow;
27 #include "folderview.h"
28 #include "summaryview.h"
29 #include "headerview.h"
30 #include "messageview.h"
31 #include "headerwindow.h"
32 #include "logwindow.h"
37 SEPARATE_FOLDER = 1 << 0,
38 SEPARATE_MESSAGE = 1 << 1,
39 SEPARATE_BOTH = (SEPARATE_FOLDER | SEPARATE_MESSAGE)
71 GtkWidget *messagewin;
76 GtkWidget *messagewin;
88 GtkWidget *getall_btn;
90 /* compose button stuff */
91 GtkWidget *compose_mail_btn; /* a la Leandro */
92 GtkWidget *compose_news_btn; /* a la Leandro */
93 GtkWidget *compose_mail_btn_plain; /* plain (text/icon only) */
94 GtkWidget *compose_news_btn_plain; /* plain (text/icon only) */
95 ComposeButtonType compose_btn_type;
97 /* for the reply buttons */
99 GtkWidget *reply_btn_plain;
100 GtkWidget *reply_quote_btn;
101 GtkWidget *reply_quote_btn_plain;
102 GtkWidget *reply_popup_btn;
103 GtkWidget *reply_popup;
104 GtkWidget *replyall_btn;
105 GtkWidget *replyall_btn_plain;
106 GtkWidget *replyall_quote_btn;
107 GtkWidget *replyall_quote_btn_plain;
108 GtkWidget *replyall_popup_btn;
109 GtkWidget *replyall_popup;
110 GtkWidget *replysender_btn;
111 GtkWidget *replysender_btn_plain;
112 GtkWidget *replysender_quote_btn;
113 GtkWidget *replysender_quote_btn_plain;
114 GtkWidget *replysender_popup_btn;
115 GtkWidget *replysender_popup;
119 GtkWidget *prefs_btn;
120 GtkWidget *account_btn;
123 GtkWidget *delete_btn;
127 GtkWidget *vbox_body;
128 GtkWidget *hbox_stat;
129 GtkWidget *statusbar;
130 GtkWidget *progressbar;
131 GtkWidget *statuslabel;
132 GtkWidget *ac_button;
136 /* context IDs for status bar */
139 gint summaryview_cid;
141 ToolbarStyle toolbar_style;
146 FolderView *folderview;
147 SummaryView *summaryview;
148 MessageView *messageview;
149 HeaderWindow *headerwin;
153 MainWindow *main_window_create (SeparateType type);
155 void main_window_cursor_wait (MainWindow *mainwin);
156 void main_window_cursor_normal (MainWindow *mainwin);
158 void main_window_lock (MainWindow *mainwin);
159 void main_window_unlock (MainWindow *mainwin);
161 void main_window_reflect_prefs_all (void);
162 void main_window_set_summary_column (void);
163 void main_window_set_account_menu (GList *account_list);
164 void main_window_separation_change (MainWindow *mainwin,
167 void main_window_get_size (MainWindow *mainwin);
168 void main_window_get_position (MainWindow *mainwin);
170 void main_window_empty_trash (MainWindow *mainwin,
172 void main_window_add_mailbox (MainWindow *mainwin);
174 void main_window_set_toolbar_sensitive (MainWindow *mainwin);
175 void main_window_set_menu_sensitive (MainWindow *mainwin);
178 void main_window_popup (MainWindow *mainwin);
180 void main_window_toolbar_set_compose_button
181 (MainWindow *mainwin,
182 ComposeButtonType compose_btn_type);
184 #endif /* __MAINWINDOW_H__ */