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)
65 GtkWidget *messagewin;
70 GtkWidget *messagewin;
82 GtkWidget *getall_btn;
83 GtkWidget *compose_btn;
85 GtkWidget *replyall_btn;
89 GtkWidget *account_btn;
91 GtkWidget *delete_btn;
102 /* context IDs for status bar */
105 gint summaryview_cid;
107 ToolbarStyle toolbar_style;
111 FolderView *folderview;
112 SummaryView *summaryview;
113 MessageView *messageview;
114 HeaderWindow *headerwin;
118 MainWindow *main_window_create (SeparateType type);
119 void main_window_cursor_wait (MainWindow *mainwin);
120 void main_window_cursor_normal (MainWindow *mainwin);
121 void main_window_reflect_prefs_all (void);
122 void main_window_set_account_menu (GList *account_list);
123 void main_window_separation_change (MainWindow *mainwin,
125 void main_window_get_size (MainWindow *mainwin);
126 void main_window_get_position (MainWindow *mainwin);
127 void main_window_empty_trash (MainWindow *mainwin,
129 void main_window_add_mailbox (MainWindow *mainwin);
131 void main_window_set_toolbar_sensitive (MainWindow *mainwin,
133 void main_window_set_menu_sensitive (MainWindow *mainwin,
135 void main_window_popup (MainWindow *mainwin);
136 void main_window_set_thread_option (MainWindow *mainwin);
138 #endif /* __MAINWINDOW_H__ */