Statistics
| Revision:

root / src / folderview.h @ 1

History | View | Annotate | Download (2.72 KB)

1
/*
2
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3
 * Copyright (C) 1999-2004 Hiroyuki Yamamoto
4
 *
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.
9
 *
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.
14
 *
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.
18
 */
19

    
20
#ifndef __FOLDERVIEW_H__
21
#define __FOLDERVIEW_H__
22

    
23
#include <glib.h>
24
#include <gtk/gtkwidget.h>
25
#include <gtk/gtkctree.h>
26

    
27
#include "folder.h"
28

    
29
typedef struct _FolderView        FolderView;
30

    
31
#include "mainwindow.h"
32
#include "summaryview.h"
33

    
34
struct _FolderView
35
{
36
        GtkWidget *scrolledwin;
37
        GtkWidget *ctree;
38
        GtkWidget *mail_popup;
39
        GtkWidget *imap_popup;
40
        GtkWidget *news_popup;
41

    
42
        GtkItemFactory *mail_factory;
43
        GtkItemFactory *imap_factory;
44
        GtkItemFactory *news_factory;
45

    
46
        GtkCTreeNode *selected;
47
        GtkCTreeNode *opened;
48

    
49
        GtkCTreeNode *spring_node;
50
        guint spring_timer;
51

    
52
        gboolean open_folder;
53

    
54
        GdkColor color_new;
55
        GdkColor color_noselect;
56

    
57
        MainWindow   *mainwin;
58
        SummaryView  *summaryview;
59
};
60

    
61
FolderView *folderview_create                (void);
62
void folderview_init                        (FolderView        *folderview);
63

    
64
void folderview_set                        (FolderView        *folderview);
65
void folderview_set_all                        (void);
66

    
67
void folderview_select                        (FolderView        *folderview,
68
                                         FolderItem        *item);
69
void folderview_unselect                (FolderView        *folderview);
70
void folderview_select_next_unread        (FolderView        *folderview);
71

    
72
FolderItem *folderview_get_selected_item(FolderView        *folderview);
73

    
74
void folderview_update_msg_num                (FolderView        *folderview,
75
                                         GtkCTreeNode        *row);
76

    
77
void folderview_append_item                (FolderItem        *item);
78

    
79
void folderview_check_new                (Folder                *folder);
80
void folderview_check_new_all                (void);
81

    
82
void folderview_update_item                (FolderItem        *item,
83
                                         gboolean         update_summary);
84
void folderview_update_item_foreach        (GHashTable        *table,
85
                                         gboolean         update_summary);
86
void folderview_update_all_updated        (gboolean         update_summary);
87

    
88
void folderview_new_folder                (FolderView        *folderview);
89
void folderview_rename_folder                (FolderView        *folderview);
90
void folderview_delete_folder                (FolderView        *folderview);
91

    
92
void folderview_check_new_selected        (FolderView        *folderview);
93
void folderview_remove_mailbox                (FolderView        *folderview);
94
void folderview_rebuild_tree                (FolderView        *folderview);
95

    
96
#endif /* __FOLDERVIEW_H__ */