Statistics
| Revision:

root / src / folderview.h @ 1029

History | View | Annotate | Download (3.3 kB)

1 1 hiro
/*
2 1 hiro
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3 202 hiro
 * Copyright (C) 1999-2005 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 202 hiro
#include <gtk/gtktreestore.h>
26 202 hiro
#include <gtk/gtktreeview.h>
27 1 hiro
28 1 hiro
#include "folder.h"
29 1 hiro
30 1 hiro
typedef struct _FolderView        FolderView;
31 1 hiro
32 1 hiro
#include "mainwindow.h"
33 1 hiro
#include "summaryview.h"
34 1 hiro
35 1 hiro
struct _FolderView
36 1 hiro
{
37 1 hiro
        GtkWidget *scrolledwin;
38 202 hiro
39 202 hiro
        GtkWidget *treeview;
40 202 hiro
41 202 hiro
        GtkTreeStore *store;
42 202 hiro
        GtkTreeSelection *selection;
43 202 hiro
44 1 hiro
        GtkWidget *mail_popup;
45 1 hiro
        GtkWidget *imap_popup;
46 1 hiro
        GtkWidget *news_popup;
47 1 hiro
48 1 hiro
        GtkItemFactory *mail_factory;
49 1 hiro
        GtkItemFactory *imap_factory;
50 1 hiro
        GtkItemFactory *news_factory;
51 1 hiro
52 202 hiro
        GtkTreeRowReference *selected;
53 202 hiro
        GtkTreeRowReference *opened;
54 366 hiro
        GtkTreeRowReference *prev_selected;
55 1 hiro
56 843 hiro
        gboolean display_folder_unread;
57 843 hiro
58 1 hiro
        gboolean open_folder;
59 1 hiro
60 207 hiro
        guint expand_timeout;
61 207 hiro
        guint scroll_timeout;
62 207 hiro
63 392 hiro
        gboolean selection_locked;
64 392 hiro
65 1 hiro
        GdkColor color_new;
66 1 hiro
        GdkColor color_noselect;
67 1 hiro
68 1 hiro
        MainWindow   *mainwin;
69 1 hiro
        SummaryView  *summaryview;
70 1 hiro
};
71 1 hiro
72 1 hiro
FolderView *folderview_create                (void);
73 1 hiro
void folderview_init                        (FolderView        *folderview);
74 589 hiro
void folderview_reflect_prefs                (FolderView        *folderview);
75 1 hiro
76 202 hiro
FolderView *folderview_get                (void);
77 202 hiro
78 1 hiro
void folderview_set                        (FolderView        *folderview);
79 1 hiro
void folderview_set_all                        (void);
80 1 hiro
81 1 hiro
void folderview_select                        (FolderView        *folderview,
82 1 hiro
                                         FolderItem        *item);
83 1 hiro
void folderview_unselect                (FolderView        *folderview);
84 1 hiro
void folderview_select_next_unread        (FolderView        *folderview);
85 1 hiro
86 1 hiro
FolderItem *folderview_get_selected_item(FolderView        *folderview);
87 1 hiro
88 301 hiro
void folderview_set_opened_item                (FolderView        *folderview,
89 301 hiro
                                         FolderItem        *item);
90 202 hiro
void folderview_update_opened_msg_num        (FolderView        *folderview);
91 1 hiro
92 202 hiro
gboolean folderview_append_item                (FolderView        *folderview,
93 202 hiro
                                         GtkTreeIter        *iter,
94 370 hiro
                                         FolderItem        *item,
95 370 hiro
                                         gboolean         expand_parent);
96 1 hiro
97 958 hiro
gint folderview_check_new                (Folder                *folder);
98 958 hiro
gint folderview_check_new_item                (FolderItem        *item);
99 958 hiro
gint folderview_check_new_all                (void);
100 1 hiro
101 1 hiro
void folderview_update_item                (FolderItem        *item,
102 1 hiro
                                         gboolean         update_summary);
103 1 hiro
void folderview_update_item_foreach        (GHashTable        *table,
104 1 hiro
                                         gboolean         update_summary);
105 1 hiro
void folderview_update_all_updated        (gboolean         update_summary);
106 1 hiro
107 1 hiro
void folderview_new_folder                (FolderView        *folderview);
108 1 hiro
void folderview_rename_folder                (FolderView        *folderview);
109 389 hiro
void folderview_move_folder                (FolderView        *folderview);
110 1 hiro
void folderview_delete_folder                (FolderView        *folderview);
111 1 hiro
112 1 hiro
void folderview_check_new_selected        (FolderView        *folderview);
113 1 hiro
void folderview_remove_mailbox                (FolderView        *folderview);
114 1 hiro
void folderview_rebuild_tree                (FolderView        *folderview);
115 1 hiro
116 1 hiro
#endif /* __FOLDERVIEW_H__ */