/*
* Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2006 Hiroyuki Yamamoto and the Sylpheed-Claws team
+ * Copyright (C) 1999-2007 Hiroyuki Yamamoto and the Claws Mail team
*
* 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
#include "logwindow.h"
#include "toolbar.h"
+#define OFFLINE_SWITCH_HOOKLIST "offline_switch"
+#define ACCOUNT_LIST_CHANGED_HOOKLIST "account_list_changed"
+#define MAIN_WINDOW_CLOSE "mainwindow_close"
+#define MAIN_WINDOW_GOT_ICONIFIED "mainwindow_iconified"
+
typedef enum
{
M_UNLOCKED = 1 << 0,
M_NOT_NEWS = 1 << 15,
M_CAN_LEARN_SPAM = 1 << 16,
M_ACTIONS_EXIST = 1 << 17,
- M_HAVE_QUEUED_MAILS = 1 << 18
+ M_HAVE_QUEUED_MAILS = 1 << 18,
+ M_WANT_SYNC = 1 << 19
} SensitiveCond;
typedef enum
{
- SEPARATE_NONE = 0,
- SEPARATE_FOLDER = 1 << 0,
- SEPARATE_MESSAGE = 1 << 1,
- SEPARATE_BOTH = (SEPARATE_FOLDER | SEPARATE_MESSAGE)
-} SeparateType;
+ NORMAL_LAYOUT = 0,
+ VERTICAL_LAYOUT = 1 << 0,
+ WIDE_LAYOUT = 1 << 1,
+ WIDE_MSGLIST_LAYOUT = 1 << 2,
+ LITTLE_LAYOUT
+} LayoutType;
typedef enum
-{
+{
TOOLBAR_NONE = 0,
TOOLBAR_ICON = 1,
TOOLBAR_TEXT = 2,
struct _MainWindow
{
- SeparateType type;
-
- union CompositeWin {
- struct
- {
- GtkWidget *hpaned;
- GtkWidget *vpaned;
- } sep_none;
- struct {
- GtkWidget *folderwin;
- GtkWidget *vpaned;
- } sep_folder;
- struct {
- GtkWidget *messagewin;
- GtkWidget *hpaned;
- } sep_message;
- struct {
- GtkWidget *folderwin;
- GtkWidget *messagewin;
- } sep_both;
- } win;
+ GtkWidget *hpaned;
+ GtkWidget *vpaned;
GtkWidget *window;
GtkWidget *vbox;
SummaryView *summaryview;
MessageView *messageview;
LogWindow *logwin;
+ LogWindow *filtering_debugwin;
gint progressindicator_hook;
GtkWidget *colorlabel_menu;
GtkWidget *warning_btn;
+
+#ifdef HAVE_LIBSM
+ gpointer smc_conn;
+#endif
+ gboolean in_folder;
};
-MainWindow *main_window_create (SeparateType type);
+MainWindow *main_window_create (void);
void main_window_destroy (MainWindow *mainwin);
void main_window_set_account_menu (GList *account_list);
void main_window_set_account_menu_only_toolbar (GList *account_list);
-GtkWidget *main_window_get_folder_window (MainWindow *mainwin);
-GtkWidget *main_window_get_message_window (MainWindow *mainwin);
-
/* Mailing list support */
void main_create_mailing_list_menu (MainWindow *mainwin, MsgInfo *msginfo);
gint mailing_list_get_list_post_mailto (gchar **url, gchar *mailto, gint maxlen);
-void main_window_separation_change (MainWindow *mainwin,
- SeparateType type);
-
void main_window_toggle_message_view (MainWindow *mainwin);
void main_window_get_size (MainWindow *mainwin);
void mainwindow_learn (MainWindow *mainwin,
gboolean is_spam);
void mainwindow_jump_to (const gchar *target);
+void mainwindow_show_error (void);
+void mainwindow_clear_error (MainWindow *mainwin);
+gboolean mainwindow_is_obscured (void);
+void mainwindow_exit_folder (MainWindow *mainwin);
+void mainwindow_enter_folder (MainWindow *mainwin);
+void mainwindow_reset_paned (GtkPaned *paned);
+
+#ifdef MAEMO
+gboolean maemo_mainwindow_is_fullscreen (GtkWidget *widget);
+void maemo_window_full_screen_if_needed (GtkWindow *window);
+void maemo_connect_key_press_to_mainwindow (GtkWindow *window);
+#endif
+
#endif /* __MAINWINDOW_H__ */