root / src / folderview.h @ 521
History | View | Annotate | Download (3.1 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 | 1 | hiro | gboolean open_folder; |
| 57 | 1 | hiro | |
| 58 | 207 | hiro | guint expand_timeout; |
| 59 | 207 | hiro | guint scroll_timeout; |
| 60 | 207 | hiro | |
| 61 | 392 | hiro | gboolean selection_locked; |
| 62 | 392 | hiro | |
| 63 | 1 | hiro | GdkColor color_new; |
| 64 | 1 | hiro | GdkColor color_noselect; |
| 65 | 1 | hiro | |
| 66 | 1 | hiro | MainWindow *mainwin; |
| 67 | 1 | hiro | SummaryView *summaryview; |
| 68 | 1 | hiro | }; |
| 69 | 1 | hiro | |
| 70 | 1 | hiro | FolderView *folderview_create (void);
|
| 71 | 1 | hiro | void folderview_init (FolderView *folderview);
|
| 72 | 1 | hiro | |
| 73 | 202 | hiro | FolderView *folderview_get (void);
|
| 74 | 202 | hiro | |
| 75 | 1 | hiro | void folderview_set (FolderView *folderview);
|
| 76 | 1 | hiro | void folderview_set_all (void); |
| 77 | 1 | hiro | |
| 78 | 1 | hiro | void folderview_select (FolderView *folderview,
|
| 79 | 1 | hiro | FolderItem *item); |
| 80 | 1 | hiro | void folderview_unselect (FolderView *folderview);
|
| 81 | 1 | hiro | void folderview_select_next_unread (FolderView *folderview);
|
| 82 | 1 | hiro | |
| 83 | 1 | hiro | FolderItem *folderview_get_selected_item(FolderView *folderview); |
| 84 | 1 | hiro | |
| 85 | 301 | hiro | void folderview_set_opened_item (FolderView *folderview,
|
| 86 | 301 | hiro | FolderItem *item); |
| 87 | 202 | hiro | void folderview_update_opened_msg_num (FolderView *folderview);
|
| 88 | 1 | hiro | |
| 89 | 202 | hiro | gboolean folderview_append_item (FolderView *folderview, |
| 90 | 202 | hiro | GtkTreeIter *iter, |
| 91 | 370 | hiro | FolderItem *item, |
| 92 | 370 | hiro | gboolean expand_parent); |
| 93 | 1 | hiro | |
| 94 | 1 | hiro | void folderview_check_new (Folder *folder);
|
| 95 | 1 | hiro | void folderview_check_new_all (void); |
| 96 | 1 | hiro | |
| 97 | 1 | hiro | void folderview_update_item (FolderItem *item,
|
| 98 | 1 | hiro | gboolean update_summary); |
| 99 | 1 | hiro | void folderview_update_item_foreach (GHashTable *table,
|
| 100 | 1 | hiro | gboolean update_summary); |
| 101 | 1 | hiro | void folderview_update_all_updated (gboolean update_summary);
|
| 102 | 1 | hiro | |
| 103 | 1 | hiro | void folderview_new_folder (FolderView *folderview);
|
| 104 | 1 | hiro | void folderview_rename_folder (FolderView *folderview);
|
| 105 | 389 | hiro | void folderview_move_folder (FolderView *folderview);
|
| 106 | 1 | hiro | void folderview_delete_folder (FolderView *folderview);
|
| 107 | 1 | hiro | |
| 108 | 1 | hiro | void folderview_check_new_selected (FolderView *folderview);
|
| 109 | 1 | hiro | void folderview_remove_mailbox (FolderView *folderview);
|
| 110 | 1 | hiro | void folderview_rebuild_tree (FolderView *folderview);
|
| 111 | 1 | hiro | |
| 112 | 1 | hiro | #endif /* __FOLDERVIEW_H__ */ |