Statistics
| Revision:

root / src / folderview.h @ 135

History | View | Annotate | Download (2.7 kB)

1 1 hiro
/*
2 1 hiro
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 1 hiro
 * Copyright (C) 1999-2004 Hiroyuki Yamamoto
4 1 hiro
 *
5 1 hiro
 * This program is free software; you can redistribute it and/or modify
6 1 hiro
 * it under the terms of the GNU General Public License as published by
7 1 hiro
 * the Free Software Foundation; either version 2 of the License, or
8 1 hiro
 * (at your option) any later version.
9 1 hiro
 *
10 1 hiro
 * This program is distributed in the hope that it will be useful,
11 1 hiro
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 1 hiro
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 1 hiro
 * GNU General Public License for more details.
14 1 hiro
 *
15 1 hiro
 * You should have received a copy of the GNU General Public License
16 1 hiro
 * along with this program; if not, write to the Free Software
17 1 hiro
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 1 hiro
 */
19 1 hiro
20 1 hiro
#ifndef __FOLDERVIEW_H__
21 1 hiro
#define __FOLDERVIEW_H__
22 1 hiro
23 1 hiro
#include <glib.h>
24 1 hiro
#include <gtk/gtkwidget.h>
25 1 hiro
#include <gtk/gtkctree.h>
26 1 hiro
27 1 hiro
#include "folder.h"
28 1 hiro
29 1 hiro
typedef struct _FolderView        FolderView;
30 1 hiro
31 1 hiro
#include "mainwindow.h"
32 1 hiro
#include "summaryview.h"
33 1 hiro
34 1 hiro
struct _FolderView
35 1 hiro
{
36 1 hiro
        GtkWidget *scrolledwin;
37 1 hiro
        GtkWidget *ctree;
38 1 hiro
        GtkWidget *mail_popup;
39 1 hiro
        GtkWidget *imap_popup;
40 1 hiro
        GtkWidget *news_popup;
41 1 hiro
42 1 hiro
        GtkItemFactory *mail_factory;
43 1 hiro
        GtkItemFactory *imap_factory;
44 1 hiro
        GtkItemFactory *news_factory;
45 1 hiro
46 1 hiro
        GtkCTreeNode *selected;
47 1 hiro
        GtkCTreeNode *opened;
48 1 hiro
49 1 hiro
        GtkCTreeNode *spring_node;
50 1 hiro
        guint spring_timer;
51 1 hiro
52 1 hiro
        gboolean open_folder;
53 1 hiro
54 1 hiro
        GdkColor color_new;
55 1 hiro
        GdkColor color_noselect;
56 1 hiro
57 1 hiro
        MainWindow   *mainwin;
58 1 hiro
        SummaryView  *summaryview;
59 1 hiro
};
60 1 hiro
61 1 hiro
FolderView *folderview_create                (void);
62 1 hiro
void folderview_init                        (FolderView        *folderview);
63 1 hiro
64 1 hiro
void folderview_set                        (FolderView        *folderview);
65 1 hiro
void folderview_set_all                        (void);
66 1 hiro
67 1 hiro
void folderview_select                        (FolderView        *folderview,
68 1 hiro
                                         FolderItem        *item);
69 1 hiro
void folderview_unselect                (FolderView        *folderview);
70 1 hiro
void folderview_select_next_unread        (FolderView        *folderview);
71 1 hiro
72 1 hiro
FolderItem *folderview_get_selected_item(FolderView        *folderview);
73 1 hiro
74 1 hiro
void folderview_update_msg_num                (FolderView        *folderview,
75 1 hiro
                                         GtkCTreeNode        *row);
76 1 hiro
77 1 hiro
void folderview_append_item                (FolderItem        *item);
78 1 hiro
79 1 hiro
void folderview_check_new                (Folder                *folder);
80 1 hiro
void folderview_check_new_all                (void);
81 1 hiro
82 1 hiro
void folderview_update_item                (FolderItem        *item,
83 1 hiro
                                         gboolean         update_summary);
84 1 hiro
void folderview_update_item_foreach        (GHashTable        *table,
85 1 hiro
                                         gboolean         update_summary);
86 1 hiro
void folderview_update_all_updated        (gboolean         update_summary);
87 1 hiro
88 1 hiro
void folderview_new_folder                (FolderView        *folderview);
89 1 hiro
void folderview_rename_folder                (FolderView        *folderview);
90 1 hiro
void folderview_delete_folder                (FolderView        *folderview);
91 1 hiro
92 1 hiro
void folderview_check_new_selected        (FolderView        *folderview);
93 1 hiro
void folderview_remove_mailbox                (FolderView        *folderview);
94 1 hiro
void folderview_rebuild_tree                (FolderView        *folderview);
95 1 hiro
96 1 hiro
#endif /* __FOLDERVIEW_H__ */