2 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 * Copyright (C) 1999-2002 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 __FOLDERVIEW_H__
21 #define __FOLDERVIEW_H__
24 #include <gtk/gtkwidget.h>
25 #include <gtk/gtkctree.h>
29 typedef struct _FolderView FolderView;
31 #include "mainwindow.h"
32 #include "summaryview.h"
36 GtkWidget *scrolledwin;
38 GtkWidget *mail_popup;
39 GtkWidget *imap_popup;
40 GtkWidget *news_popup;
41 GtkWidget *mbox_popup;
43 GtkItemFactory *mail_factory;
44 GtkItemFactory *imap_factory;
45 GtkItemFactory *news_factory;
46 GtkItemFactory *mbox_factory;
48 GtkCTreeNode *selected;
57 SummaryView *summaryview;
60 FolderView *folderview_create (void);
61 void folderview_init (FolderView *folderview);
62 void folderview_set (FolderView *folderview);
63 void folderview_set_all (void);
64 void folderview_select (FolderView *folderview,
66 void folderview_unselect (FolderView *folderview);
67 void folderview_select_next_unread (FolderView *folderview);
68 void folderview_update_msg_num (FolderView *folderview,
70 void folderview_rescan_tree (Folder *folder);
71 void folderview_rescan_all (void);
72 void folderview_check_new (Folder *folder);
73 void folderview_check_new_all (void);
75 void folderview_update_item (FolderItem *item,
76 gboolean update_summary);
77 void folderview_update_items_when_required
78 (gboolean update_summary);
79 void folderview_update_item_foreach (GHashTable *table,
80 gboolean update_summary);
82 void folderview_new_folder (FolderView *folderview);
83 void folderview_rename_folder (FolderView *folderview);
84 void folderview_delete_folder (FolderView *folderview);
86 void folderview_set_target_folder_color (gint color_op);
88 void folderview_reflect_prefs_pixmap_theme (FolderView *folderview);
89 #endif /* __FOLDERVIEW_H__ */