claws-mail/src/summaryview.h

310 lines
9.6 KiB
C
Raw Normal View History

2001-04-19 14:21:46 +02:00
/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
2007-01-03 [paul] 2.6.1cvs96 * src/account.c * src/account.h * src/action.c * src/action.h * src/adbookbase.h * src/addr_compl.c * src/addr_compl.h * src/addrbook.c * src/addrcache.c * src/addrcache.h * src/addrcindex.c * src/addrcindex.h * src/addrclip.c * src/addrclip.h * src/addrdefs.h * src/addressadd.c * src/addressadd.h * src/addressbook.c * src/addressbook.h * src/addressbook_foldersel.c * src/addressbook_foldersel.h * src/addrgather.c * src/addrgather.h * src/addrharvest.c * src/addrharvest.h * src/addrindex.c * src/addrindex.h * src/addritem.c * src/addritem.h * src/addrquery.c * src/addrquery.h * src/addrselect.c * src/addrselect.h * src/alertpanel.c * src/alertpanel.h * src/browseldap.c * src/browseldap.h * src/codeconv.c * src/codeconv.h * src/compose.c * src/compose.h * src/customheader.c * src/customheader.h * src/displayheader.c * src/displayheader.h * src/editaddress.c * src/editaddress.h * src/editbook.c * src/editbook.h * src/editgroup.c * src/editgroup.h * src/editjpilot.c * src/editjpilot.h * src/editldap.c * src/editldap.h * src/editldap_basedn.c * src/editldap_basedn.h * src/editvcard.c * src/editvcard.h * src/exphtmldlg.c * src/exphtmldlg.h * src/expldifdlg.c * src/expldifdlg.h * src/export.c * src/export.h * src/exporthtml.c * src/exporthtml.h * src/exportldif.c * src/exportldif.h * src/filtering.c * src/filtering.h * src/folder.c * src/folder.h * src/folder_item_prefs.c * src/folder_item_prefs.h * src/foldersel.c * src/foldersel.h * src/folderutils.c * src/folderutils.h * src/folderview.c * src/folderview.h * src/grouplistdialog.c * src/grouplistdialog.h * src/headerview.c * src/html.c * src/html.h * src/image_viewer.c * src/image_viewer.h * src/imap.c * src/imap.h * src/imap_gtk.c * src/imap_gtk.h * src/import.c * src/import.h * src/importldif.c * src/importldif.h * src/importmutt.c * src/importmutt.h * src/importpine.c * src/importpine.h * src/inc.c * src/inc.h * src/jpilot.c * src/jpilot.h * src/ldapctrl.c * src/ldapctrl.h * src/ldaplocate.c * src/ldaplocate.h * src/ldapquery.c * src/ldapquery.h * src/ldapserver.c * src/ldapserver.h * src/ldaputil.c * src/ldaputil.h * src/ldif.c * src/ldif.h * src/main.c * src/main.h * src/mainwindow.c * src/mainwindow.h * src/manual.c * src/manual.h * src/mbox.c * src/message_search.c * src/message_search.h * src/messageview.c * src/messageview.h * src/mh.c * src/mh.h * src/mh_gtk.c * src/mh_gtk.h * src/mimeview.c * src/mimeview.h * src/msgcache.c * src/msgcache.h * src/mutt.c * src/mutt.h * src/news.c * src/news.h * src/news_gtk.c * src/news_gtk.h * src/partial_download.c * src/partial_download.h * src/pine.c * src/pine.h * src/pop.c * src/pop.h * src/prefs_account.c * src/prefs_account.h * src/prefs_actions.c * src/prefs_actions.h * src/prefs_common.c * src/prefs_common.h * src/prefs_compose_writing.c * src/prefs_compose_writing.h * src/prefs_customheader.c * src/prefs_customheader.h * src/prefs_display_header.c * src/prefs_display_header.h * src/prefs_filtering.c * src/prefs_filtering.h * src/prefs_filtering_action.c * src/prefs_filtering_action.h * src/prefs_folder_column.c * src/prefs_folder_column.h * src/prefs_folder_item.c * src/prefs_folder_item.h * src/prefs_fonts.c * src/prefs_fonts.h * src/prefs_gtk.c * src/prefs_gtk.h * src/prefs_image_viewer.c * src/prefs_image_viewer.h * src/prefs_matcher.c * src/prefs_matcher.h * src/prefs_message.c * src/prefs_msg_colors.c * src/prefs_msg_colors.h * src/prefs_other.c * src/prefs_quote.c * src/prefs_receive.c * src/prefs_send.c * src/prefs_spelling.c * src/prefs_spelling.h * src/prefs_summaries.c * src/prefs_summaries.h * src/prefs_summary_column.c * src/prefs_summary_column.h * src/prefs_template.c * src/prefs_template.h * src/prefs_themes.c * src/prefs_themes.h * src/prefs_toolbar.c * src/prefs_toolbar.h * src/prefs_wrapping.c * src/prefs_wrapping.h * src/privacy.c * src/privacy.h * src/procheader.c * src/procheader.h * src/procmime.c * src/procmime.h * src/procmsg.c * src/procmsg.h * src/quote_fmt.c * src/quote_fmt_parse.y * src/recv.c * src/recv.h * src/remotefolder.c * src/remotefolder.h * src/send_message.c * src/send_message.h * src/setup.c * src/setup.h * src/sourcewindow.c * src/sourcewindow.h * src/ssl_manager.c * src/ssl_manager.h * src/statusbar.c * src/statusbar.h * src/stock_pixmap.c * src/stock_pixmap.h * src/summary_search.c * src/summary_search.h * src/summaryview.c * src/summaryview.h * src/textview.c * src/textview.h * src/toolbar.c * src/toolbar.h * src/undo.c * src/undo.h * src/unmime.c * src/unmime.h * src/vcard.c * src/vcard.h * src/wizard.c * src/wizard.h * src/common/base64.c * src/common/base64.h * src/common/defs.h * src/common/hooks.c * src/common/hooks.h * src/common/log.c * src/common/log.h * src/common/mgutils.c * src/common/mgutils.h * src/common/nntp.c * src/common/nntp.h * src/common/passcrypt.c * src/common/passcrypt.h.in * src/common/plugin.c * src/common/plugin.h * src/common/prefs.c * src/common/prefs.h * src/common/progressindicator.c * src/common/progressindicator.h * src/common/quoted-printable.c * src/common/quoted-printable.h * src/common/session.c * src/common/session.h * src/common/smtp.c * src/common/smtp.h * src/common/socket.c * src/common/socket.h * src/common/ssl.c * src/common/ssl.h * src/common/ssl_certificate.c * src/common/ssl_certificate.h * src/common/stringtable.c * src/common/stringtable.h * src/common/template.c * src/common/template.h * src/common/timing.h * src/common/utils.c * src/common/utils.h * src/common/version.h.in * src/common/xml.c * src/common/xml.h * src/common/xmlprops.c * src/common/xmlprops.h * src/gtk/about.c * src/gtk/colorlabel.c * src/gtk/colorsel.c * src/gtk/colorsel.h * src/gtk/combobox.c * src/gtk/combobox.h * src/gtk/description_window.c * src/gtk/description_window.h * src/gtk/filesel.c * src/gtk/filesel.h * src/gtk/foldersort.c * src/gtk/foldersort.h * src/gtk/gtksctree.c * src/gtk/gtkutils.c * src/gtk/gtkutils.h * src/gtk/inputdialog.c * src/gtk/inputdialog.h * src/gtk/logwindow.c * src/gtk/logwindow.h * src/gtk/manage_window.c * src/gtk/manage_window.h * src/gtk/menu.c * src/gtk/menu.h * src/gtk/pluginwindow.c * src/gtk/pluginwindow.h * src/gtk/prefswindow.c * src/gtk/prefswindow.h * src/gtk/progressdialog.c * src/gtk/progressdialog.h * src/gtk/sslcertwindow.c * src/gtk/sslcertwindow.h * src/plugins/bogofilter/bogofilter.c * src/plugins/bogofilter/bogofilter.h * src/plugins/bogofilter/bogofilter_gtk.c * src/plugins/clamav/clamav_plugin.c * src/plugins/clamav/clamav_plugin.h * src/plugins/clamav/clamav_plugin_gtk.c * src/plugins/demo/demo.c * src/plugins/dillo_viewer/dillo_prefs.c * src/plugins/dillo_viewer/dillo_prefs.h * src/plugins/dillo_viewer/dillo_viewer.c * src/plugins/pgpcore/passphrase.c * src/plugins/pgpcore/passphrase.h * src/plugins/pgpcore/pgp_viewer.c * src/plugins/pgpcore/pgp_viewer.h * src/plugins/pgpcore/plugin.c * src/plugins/pgpcore/select-keys.c * src/plugins/pgpcore/select-keys.h * src/plugins/pgpcore/sgpgme.c * src/plugins/pgpcore/sgpgme.h * src/plugins/pgpinline/pgpinline.c * src/plugins/pgpinline/pgpinline.h * src/plugins/pgpinline/plugin.c * src/plugins/pgpmime/pgpmime.c * src/plugins/pgpmime/pgpmime.h * src/plugins/pgpmime/plugin.c * src/plugins/spamassassin/spamassassin.c * src/plugins/spamassassin/spamassassin.h * src/plugins/spamassassin/spamassassin_gtk.c * src/plugins/trayicon/trayicon.c it's 2007, update the year in the copyright headers
2007-01-03 06:42:43 +01:00
* Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
2001-04-19 14:21:46 +02:00
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
2005-09-21 [paul] 1.9.14cvs47 * README * README.jp * configure.ac * config/config.rpath * doc/manual/en/sylpheed-20.html * doc/manual/es/sylpheed-20.html * po/bg.po * po/ca.po * po/de.po * po/es.po * po/fr.po * po/it.po * po/pt_BR.po * po/sk.po * po/zh_TW.po * src/account.c * src/account.h * src/action.c * src/action.h * src/adbookbase.h * src/addr_compl.c * src/addr_compl.h * src/addrbook.c * src/addrbook.h * src/addrcache.c * src/addrcache.h * src/addrcindex.c * src/addrcindex.h * src/addrclip.c * src/addrclip.h * src/addrdefs.h * src/addressadd.c * src/addressadd.h * src/addressbook.c * src/addressbook.h * src/addressitem.h * src/addrgather.c * src/addrgather.h * src/addrharvest.c * src/addrharvest.h * src/addrindex.c * src/addrindex.h * src/addritem.c * src/addritem.h * src/addrquery.c * src/addrquery.h * src/addrselect.c * src/addrselect.h * src/alertpanel.c * src/alertpanel.h * src/browseldap.c * src/browseldap.h * src/codeconv.c * src/codeconv.h * src/compose.c * src/compose.h * src/crash.c * src/crash.h * src/customheader.c * src/customheader.h * src/displayheader.c * src/displayheader.h * src/editaddress.c * src/editaddress.h * src/editbook.c * src/editbook.h * src/editgroup.c * src/editgroup.h * src/editjpilot.c * src/editjpilot.h * src/editldap.c * src/editldap.h * src/editldap_basedn.c * src/editldap_basedn.h * src/editvcard.c * src/editvcard.h * src/enriched.c * src/enriched.h * src/exphtmldlg.c * src/exphtmldlg.h * src/expldifdlg.c * src/expldifdlg.h * src/export.c * src/export.h * src/exporthtml.c * src/exporthtml.h * src/exportldif.c * src/exportldif.h * src/filtering.c * src/filtering.h * src/folder.c * src/folder.h * src/folder_item_prefs.c * src/folder_item_prefs.h * src/foldersel.c * src/foldersel.h * src/folderutils.c * src/folderutils.h * src/folderview.c * src/folderview.h * src/grouplistdialog.c * src/grouplistdialog.h * src/headerview.c * src/headerview.h * src/html.c * src/html.h * src/image_viewer.c * src/image_viewer.h * src/imap.c * src/imap.h * src/imap_gtk.c * src/imap_gtk.h * src/import.c * src/import.h * src/importldif.c * src/importldif.h * src/importmutt.c * src/importmutt.h * src/importpine.c * src/importpine.h * src/inc.c * src/inc.h * src/jpilot.c * src/jpilot.h * src/ldapctrl.c * src/ldapctrl.h * src/ldaplocate.c * src/ldaplocate.h * src/ldapquery.c * src/ldapquery.h * src/ldapserver.c * src/ldapserver.h * src/ldaputil.c * src/ldaputil.h * src/ldif.c * src/ldif.h * src/localfolder.c * src/localfolder.h * src/main.c * src/main.h * src/mainwindow.c * src/mainwindow.h * src/manual.c * src/manual.h * src/matcher.c * src/matcher.h * src/matcher_parser.h * src/matcher_parser_lex.l * src/matcher_parser_parse.y * src/mbox.c * src/mbox.h * src/message_search.c * src/message_search.h * src/messageview.c * src/messageview.h * src/mh.c * src/mh.h * src/mh_gtk.c * src/mh_gtk.h * src/mimeview.c * src/mimeview.h * src/msgcache.c * src/msgcache.h * src/mutt.c * src/mutt.h * src/news.c * src/news.h * src/news_gtk.c * src/news_gtk.h * src/noticeview.c * src/noticeview.h * src/partial_download.c * src/partial_download.h * src/pine.c * src/pine.h * src/pop.c * src/pop.h * src/prefs_account.c * src/prefs_account.h * src/prefs_actions.c * src/prefs_actions.h * src/prefs_common.c * src/prefs_common.h * src/prefs_compose_writing.c * src/prefs_compose_writing.h * src/prefs_customheader.c * src/prefs_customheader.h * src/prefs_display_header.c * src/prefs_display_header.h * src/prefs_ext_prog.c * src/prefs_ext_prog.h * src/prefs_filtering.c * src/prefs_filtering.h * src/prefs_filtering_action.c * src/prefs_filtering_action.h * src/prefs_folder_column.c * src/prefs_folder_column.h * src/prefs_folder_item.c * src/prefs_folder_item.h * src/prefs_fonts.c * src/prefs_fonts.h * src/prefs_gtk.c * src/prefs_gtk.h * src/prefs_image_viewer.c * src/prefs_image_viewer.h * src/prefs_matcher.c * src/prefs_matcher.h * src/prefs_message.c * src/prefs_message.h * src/prefs_msg_colors.c * src/prefs_msg_colors.h * src/prefs_other.c * src/prefs_other.h * src/prefs_quote.c * src/prefs_quote.h * src/prefs_receive.c * src/prefs_receive.h * src/prefs_send.c * src/prefs_send.h * src/prefs_spelling.c * src/prefs_spelling.h * src/prefs_summaries.c * src/prefs_summaries.h * src/prefs_summary_column.c * src/prefs_summary_column.h * src/prefs_template.c * src/prefs_template.h * src/prefs_themes.c * src/prefs_themes.h * src/prefs_toolbar.c * src/prefs_toolbar.h * src/prefs_wrapping.c * src/prefs_wrapping.h * src/privacy.c * src/privacy.h * src/procheader.c * src/procheader.h * src/procmime.c * src/procmime.h * src/procmsg.c * src/procmsg.h * src/quote_fmt.c * src/quote_fmt_parse.y * src/recv.c * src/recv.h * src/remotefolder.c * src/remotefolder.h * src/send_message.c * src/send_message.h * src/setup.c * src/setup.h * src/simple-gettext.c * src/sourcewindow.c * src/sourcewindow.h * src/ssl_manager.c * src/ssl_manager.h * src/statusbar.c * src/statusbar.h * src/stock_pixmap.c * src/stock_pixmap.h * src/summary_search.c * src/summary_search.h * src/summaryview.c * src/summaryview.h * src/syldap.c * src/syldap.h * src/textview.c * src/textview.h * src/toolbar.c * src/toolbar.h * src/undo.c * src/undo.h * src/unmime.c * src/unmime.h * src/vcard.c * src/vcard.h * src/wizard.c * src/wizard.h * src/common/base64.c * src/common/base64.h * src/common/defs.h * src/common/hooks.c * src/common/hooks.h * src/common/log.c * src/common/log.h * src/common/md5.c * src/common/md5.h * src/common/mgutils.c * src/common/mgutils.h * src/common/nntp.c * src/common/nntp.h * src/common/passcrypt.c * src/common/passcrypt.h.in * src/common/plugin.c * src/common/plugin.h * src/common/prefs.c * src/common/prefs.h * src/common/progressindicator.c * src/common/progressindicator.h * src/common/quoted-printable.c * src/common/quoted-printable.h * src/common/session.c * src/common/session.h * src/common/smtp.c * src/common/smtp.h * src/common/socket.c * src/common/socket.h * src/common/ssl.c * src/common/ssl.h * src/common/ssl_certificate.c * src/common/ssl_certificate.h * src/common/string_match.c * src/common/string_match.h * src/common/stringtable.c * src/common/sylpheed.c * src/common/sylpheed.h * src/common/template.c * src/common/template.h * src/common/timing.h * src/common/utils.c * src/common/utils.h * src/common/uuencode.c * src/common/uuencode.h * src/common/version.h.in * src/common/xml.c * src/common/xml.h * src/common/xmlprops.c * src/common/xmlprops.h * src/gtk/about.c * src/gtk/about.h * src/gtk/colorlabel.c * src/gtk/colorlabel.h * src/gtk/colorsel.c * src/gtk/colorsel.h * src/gtk/description_window.c * src/gtk/description_window.h * src/gtk/filesel.c * src/gtk/filesel.h * src/gtk/foldersort.c * src/gtk/foldersort.h * src/gtk/gtkutils.c * src/gtk/gtkutils.h * src/gtk/inputdialog.c * src/gtk/inputdialog.h * src/gtk/logwindow.c * src/gtk/logwindow.h * src/gtk/manage_window.c * src/gtk/manage_window.h * src/gtk/menu.c * src/gtk/menu.h * src/gtk/pluginwindow.c * src/gtk/pluginwindow.h * src/gtk/prefswindow.c * src/gtk/prefswindow.h * src/gtk/progressdialog.c * src/gtk/progressdialog.h * src/gtk/quicksearch.c * src/gtk/quicksearch.h * src/gtk/sslcertwindow.c * src/gtk/sslcertwindow.h * src/plugins/clamav/clamav_plugin.c * src/plugins/clamav/clamav_plugin.h * src/plugins/clamav/clamav_plugin_gtk.c * src/plugins/demo/demo.c * src/plugins/dillo_viewer/dillo_prefs.c * src/plugins/dillo_viewer/dillo_prefs.h * src/plugins/dillo_viewer/dillo_viewer.c * src/plugins/mathml_viewer/mathml_viewer.c * src/plugins/pgpcore/passphrase.c * src/plugins/pgpcore/passphrase.h * src/plugins/pgpcore/plugin.c * src/plugins/pgpcore/prefs_gpg.c * src/plugins/pgpcore/prefs_gpg.h * src/plugins/pgpcore/select-keys.c * src/plugins/pgpcore/select-keys.h * src/plugins/pgpcore/sgpgme.c * src/plugins/pgpcore/sgpgme.h * src/plugins/pgpinline/pgpinline.c * src/plugins/pgpinline/pgpinline.h * src/plugins/pgpinline/plugin.c * src/plugins/pgpmime/pgpmime.c * src/plugins/pgpmime/pgpmime.h * src/plugins/pgpmime/plugin.c * src/plugins/spamassassin/spamassassin.c * src/plugins/spamassassin/spamassassin.h * src/plugins/spamassassin/spamassassin_gtk.c * src/plugins/trayicon/trayicon.c * tools/OOo2sylpheed.pl * tools/acroread2sylpheed.pl * tools/asus_mailled.sh * tools/filter_conv.pl * tools/freshmeat_search.pl * tools/google_search.pl * tools/kmail2sylpheed.pl * tools/kmail2sylpheed_v2.pl * tools/maildir2sylpheed.pl * tools/multiwebsearch.pl * tools/newscache_clean.pl * tools/outlook2sylpheed.pl * tools/sylpheed-switcher * tools/update-po * tools/vcard2xml.py * tools/kdeservicemenu/sylpheed-kdeservicemenu.pl update FSF address
2005-09-21 20:22:51 +02:00
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2001-04-19 14:21:46 +02:00
*/
#ifndef __SUMMARY_H__
#define __SUMMARY_H__
2004-05-22 09:27:30 +02:00
#include <sys/types.h>
#include <regex.h>
2001-04-19 14:21:46 +02:00
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtkitemfactory.h>
#include <gtk/gtkctree.h>
#include <gtk/gtkdnd.h>
2001-10-12 12:23:58 +02:00
typedef struct _SummaryView SummaryView;
typedef struct _SummaryColumnState SummaryColumnState;
2001-04-19 14:21:46 +02:00
#define MAIL_MANUAL_FILTERING_HOOKLIST "mail_manual_filtering_hooklist"
2001-04-19 14:21:46 +02:00
typedef enum
{
2001-10-12 12:23:58 +02:00
S_COL_MARK,
2003-01-26 13:56:56 +01:00
S_COL_STATUS,
2001-10-12 12:23:58 +02:00
S_COL_MIME,
S_COL_SUBJECT,
2001-10-22 10:42:36 +02:00
S_COL_FROM,
S_COL_TO,
2001-10-22 10:42:36 +02:00
S_COL_DATE,
S_COL_SIZE,
S_COL_NUMBER,
S_COL_SCORE,
S_COL_LOCKED
2001-10-12 12:23:58 +02:00
} SummaryColumnType;
2001-04-19 14:21:46 +02:00
#define N_SUMMARY_COLS 11
2001-04-19 14:21:46 +02:00
typedef enum
{
SUMMARY_NONE,
SUMMARY_SELECTED_NONE,
SUMMARY_SELECTED_SINGLE,
SUMMARY_SELECTED_MULTIPLE
} SummarySelection;
typedef enum
{
TARGET_MAIL_URI_LIST,
TARGET_DUMMY
} TargetInfo;
#include "mainwindow.h"
#include "folderview.h"
#include "headerview.h"
#include "messageview.h"
#include "compose.h"
#include "folder.h"
#include "gtksctree.h"
#include "prefs_filtering.h"
2004-06-25 10:05:09 +02:00
#include "quicksearch.h"
extern GtkTargetEntry summary_drag_types[2];
2001-04-19 14:21:46 +02:00
2001-10-12 12:23:58 +02:00
struct _SummaryColumnState
{
SummaryColumnType type;
gboolean visible;
};
2001-04-19 14:21:46 +02:00
struct _SummaryView
{
GtkWidget *vbox;
GtkWidget *scrolledwin;
GtkWidget *ctree;
GtkWidget *hbox;
2002-04-02 10:02:57 +02:00
GtkWidget *hbox_l;
GtkWidget *hbox_spc;
GtkWidget *stat_box;
GtkWidget *stat_box2;
2002-02-11 20:46:04 +01:00
GtkWidget *folder_pixmap;
2001-04-19 14:21:46 +02:00
GtkWidget *statlabel_folder;
GtkWidget *statlabel_select;
GtkWidget *statlabel_msgs;
GtkWidget *toggle_eventbox;
GtkWidget *toggle_arrow;
GtkWidget *toggle_search;
GtkWidget *quick_search_pixmap;
2001-04-19 14:21:46 +02:00
GtkWidget *popupmenu;
2001-08-27 13:07:43 +02:00
GtkWidget *colorlabel_menu;
2001-04-19 14:21:46 +02:00
GtkItemFactory *popupfactory;
GtkWidget *window;
GtkCTreeNode *selected;
GtkCTreeNode *displayed;
GtkCTreeNode *last_displayed;
2001-04-19 14:21:46 +02:00
gboolean display_msg;
GdkColor color_important;
2001-10-12 12:23:58 +02:00
SummaryColumnState col_state[N_SUMMARY_COLS];
gint col_pos[N_SUMMARY_COLS];
2001-04-19 14:21:46 +02:00
GdkColor color_marked;
GdkColor color_dim;
2001-10-02 10:34:49 +02:00
guint lock_count;
2001-04-19 14:21:46 +02:00
MainWindow *mainwin;
FolderView *folderview;
HeaderView *headerview;
MessageView *messageview;
2004-06-25 10:05:09 +02:00
QuickSearch *quicksearch;
2001-04-19 14:21:46 +02:00
FolderItem *folder_item;
/* summaryview prefs */
gint important_score;
FolderSortKey sort_key;
FolderSortType sort_type;
guint threaded;
guint thread_collapsed;
/* Extra data for summaryview */
regex_t *simplify_subject_preg;
2001-04-19 14:21:46 +02:00
/* current message status */
gint unreadmarked;
2001-04-19 14:21:46 +02:00
off_t total_size;
gint deleted;
gint moved;
gint copied;
/*
private:
*/
/* table for looking up message-id */
GHashTable *msgid_table;
GHashTable *subject_table;
2001-04-19 14:21:46 +02:00
/* list for moving/deleting messages */
GSList *mlist;
int msginfo_update_callback_id;
/* update folder label when renaming */
gint folder_item_update_callback_id;
GtkTargetList *target_list; /* DnD */
2001-04-19 14:21:46 +02:00
};
SummaryView *summary_create(void);
void summary_init (SummaryView *summaryview);
gboolean summary_show (SummaryView *summaryview,
FolderItem *fitem);
2001-04-19 14:21:46 +02:00
void summary_clear_list (SummaryView *summaryview);
void summary_clear_all (SummaryView *summaryview);
2001-10-02 10:34:49 +02:00
void summary_lock (SummaryView *summaryview);
void summary_unlock (SummaryView *summaryview);
void summary_freeze (SummaryView *summaryview);
void summary_thaw (SummaryView *summaryview);
void summary_grab_focus (SummaryView *summaryview);
GtkWidget *summary_get_main_widget(SummaryView *summaryview);
2001-10-02 10:34:49 +02:00
gboolean summary_is_locked (SummaryView *summaryview);
2001-08-22 12:58:38 +02:00
SummarySelection summary_get_selection_type (SummaryView *summaryview);
2004-05-10 12:22:28 +02:00
MsgInfo *summary_get_selected_msg (SummaryView *summaryview);
2003-04-22 15:53:19 +02:00
GSList *summary_get_selected_msg_list (SummaryView *summaryview);
2001-08-22 12:58:38 +02:00
2001-09-13 15:38:32 +02:00
void summary_select_prev_unread (SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
void summary_select_next_unread (SummaryView *summaryview);
2002-06-25 11:20:06 +02:00
void summary_select_prev_new (SummaryView *summaryview);
void summary_select_next_new (SummaryView *summaryview);
2001-09-13 15:38:32 +02:00
void summary_select_prev_marked (SummaryView *summaryview);
void summary_select_next_marked (SummaryView *summaryview);
void summary_select_prev_labeled (SummaryView *summaryview);
void summary_select_next_labeled (SummaryView *summaryview);
void summary_select_last_read (SummaryView *summaryview);
void summary_select_parent (SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
void summary_select_by_msgnum (SummaryView *summaryview,
guint msgnum);
guint summary_get_current_msgnum (SummaryView *summaryview);
2001-09-24 10:15:52 +02:00
void summary_select_node (SummaryView *summaryview,
GtkCTreeNode *node,
2002-02-15 10:26:31 +01:00
gboolean display_msg,
gboolean do_refresh);
2001-10-22 10:42:36 +02:00
2001-10-17 11:25:12 +02:00
void summary_thread_build (SummaryView *summaryview);
2001-10-22 10:42:36 +02:00
2002-05-18 17:22:17 +02:00
void summary_expand_threads (SummaryView *summaryview);
void summary_collapse_threads (SummaryView *summaryview);
void summary_toggle_ignore_thread (SummaryView *summaryview);
2002-05-18 17:22:17 +02:00
2004-05-10 12:22:28 +02:00
void summary_filter (SummaryView *summaryview,
gboolean selected_only);
2004-01-12 22:28:31 +01:00
void summary_filter_open (SummaryView *summaryview,
PrefsFilterType type,
gint processing_rule);
void summary_msginfo_filter_open (FolderItem * item, MsgInfo *msginfo,
PrefsFilterType type, gint processing_rule);
2002-01-31 12:15:55 +01:00
2001-04-19 14:21:46 +02:00
void summary_sort (SummaryView *summaryview,
2002-06-05 08:25:18 +02:00
FolderSortKey sort_key,
FolderSortType sort_type);
2001-04-19 14:21:46 +02:00
void summary_delete (SummaryView *summaryview);
void summary_delete_trash (SummaryView *summaryview);
2001-10-22 10:42:36 +02:00
void summary_cancel (SummaryView *summaryview);
2001-10-02 10:34:49 +02:00
gboolean summary_execute (SummaryView *summaryview);
2001-10-22 10:42:36 +02:00
2001-04-19 14:21:46 +02:00
void summary_attract_by_subject (SummaryView *summaryview);
2001-10-22 10:42:36 +02:00
2001-04-19 14:21:46 +02:00
gint summary_write_cache (SummaryView *summaryview);
2001-10-22 10:42:36 +02:00
gboolean summary_pass_key_press_event (SummaryView *summaryview,
2001-04-19 14:21:46 +02:00
GdkEventKey *event);
2001-10-22 10:42:36 +02:00
2002-02-05 14:27:32 +01:00
void summary_display_msg_selected (SummaryView *summaryview,
2002-02-04 10:56:44 +01:00
gboolean all_headers);
2002-02-05 14:27:32 +01:00
void summary_redisplay_msg (SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
void summary_open_msg (SummaryView *summaryview);
void summary_view_source (SummaryView *summaryview);
void summary_reedit (SummaryView *summaryview);
2005-03-30 [paul] 1.9.6cvs12 partial sync with main: * src/action.c create_io_dialog(): use user-defined text font (thanks to Alfons), and modified its appearance. * src/addrgather.c * src/addrharvest.c * src/browseldap.c replace old code * src/compose.c don't join (presumably) itemized lines on line-wrapping fixed wrapping of quote when auto-wrapping is enabled compose_destroy(): destroy paned only if it's not attached to window. Fixed memory leak of popup menu. * src/exphtmldlg.c * src/expldifdlg.c replace old code * src/html.c * src/html.h * src/importmutt.c * src/importpine.c replace old code * src/main.c removed redundant code * src/mainwindow.c changed 'Code set' (which is rather incorrect) in the menu to 'Character encoding' main_window_set_widgets(): request size first to prevent window size becoming wrong fixed remembering of the state of the visibility of MessageView * src/messageview.c changed 'Code set' (which is rather incorrect) in the menu to 'Character encoding' * src/prefs_common.c * src/prefs_common.h added an option whether to render HTML as text or not added separators to outgoing encoding menu * src/procheader.c procheader_scan_date_string(): support header like: "[Tue,] 01 Feb 2005 09:57[:00]" * src/summaryview.c * src/summaryview.h minor code cleanup * src/textview.c textview_show_html(): force output of newline added an option whether to render HTML as text or not * src/common/utils.c strncpy2(): optimized based on Alfons' code * src/gtk/gtkutils.c * src/gtk/gtkutils.h removed non-used code * src/plugins/pgpmime/passphrase.c partially fixed grab input of passphrase dialog Confine pointer to window
2005-03-30 14:01:26 +02:00
gboolean summary_step (SummaryView *summaryview,
2001-04-19 14:21:46 +02:00
GtkScrollType type);
void summary_toggle_view (SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
void summary_set_marks_selected (SummaryView *summaryview);
guint summary_get_msgnum (SummaryView *summaryview,
GtkCTreeNode *node);
2001-04-19 14:21:46 +02:00
void summary_move_selected_to (SummaryView *summaryview,
FolderItem *to_folder);
void summary_move_to (SummaryView *summaryview);
void summary_copy_selected_to (SummaryView *summaryview,
FolderItem *to_folder);
2003-03-03 20:03:23 +01:00
GSList *summary_get_selection (SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
void summary_copy_to (SummaryView *summaryview);
void summary_save_as (SummaryView *summaryview);
void summary_print (SummaryView *summaryview);
void summary_mark (SummaryView *summaryview);
void summary_unmark (SummaryView *summaryview);
void summary_mark_as_unread (SummaryView *summaryview);
void summary_mark_as_read (SummaryView *summaryview);
void summary_msgs_lock (SummaryView *summaryview);
void summary_msgs_unlock (SummaryView *summaryview);
2001-09-13 15:38:32 +02:00
void summary_mark_all_read (SummaryView *summaryview);
void summary_mark_as_spam (SummaryView *summaryview,
guint action,
GtkWidget *widget);
void summary_ignore_thread (SummaryView *summaryview);
void summary_unignore_thread (SummaryView *summaryview);
2001-09-13 15:38:32 +02:00
void summary_add_address (SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
void summary_select_all (SummaryView *summaryview);
void summary_unselect_all (SummaryView *summaryview);
void summary_select_thread (SummaryView *summaryview,
gboolean delete_thread);
2002-09-21 00:22:19 +02:00
2001-08-27 13:07:43 +02:00
void summary_set_colorlabel (SummaryView *summaryview,
guint labelcolor,
GtkWidget *widget);
void summary_set_colorlabel_color (GtkCTree *ctree,
GtkCTreeNode *node,
guint labelcolor);
2001-04-19 14:21:46 +02:00
2001-10-22 10:42:36 +02:00
void summary_set_column_order (SummaryView *summaryview);
void summary_toggle_show_read_messages
(SummaryView *summaryview);
2001-12-11 16:06:46 +01:00
void summary_toggle_view_real (SummaryView *summaryview);
void summary_reflect_prefs_pixmap_theme
(SummaryView *summaryview);
void summary_reflect_prefs_custom_colors(SummaryView *summaryview);
void summary_harvest_address (SummaryView *summaryview);
void summary_set_prefs_from_folderitem
(SummaryView *summaryview, FolderItem *item);
void summary_save_prefs_to_folderitem
(SummaryView *summaryview, FolderItem *item);
gint summaryview_export_mbox_list (SummaryView *summaryview);
void summaryview_lock(SummaryView *summaryview, FolderItem *item);
void summaryview_unlock(SummaryView *summaryview, FolderItem *item);
void summary_reflect_prefs(void);
void summaryview_activate_quicksearch(SummaryView *summaryview, gboolean show);
void summary_set_menu_sensitive (SummaryView *summaryview);
void summary_relayout(SummaryView *summaryview);
2001-04-19 14:21:46 +02:00
#endif /* __SUMMARY_H__ */