Added work offline availability.
[claws.git] / src / mainwindow.h
index aaeb94080e07c53e4b02d6d2e19a3df17d840a44..4e379fce374dfc3278f7db16ba07ead7450589a6 100644 (file)
@@ -28,7 +28,6 @@ typedef struct _MainWindow    MainWindow;
 #include "summaryview.h"
 #include "headerview.h"
 #include "messageview.h"
-#include "headerwindow.h"
 #include "logwindow.h"
 
 typedef enum
@@ -81,23 +80,29 @@ struct _MainWindow
        GtkWidget *vbox;
        GtkWidget *menubar;
 
-       /* tool bar */
+       /* toolbar */
        GtkWidget *handlebox;
        GtkWidget *toolbar;
        GtkWidget *get_btn;
        GtkWidget *getall_btn;
 
        /* compose button stuff */
-       GtkWidget *compose_mail_btn;            /* a la Leandro */
-       GtkWidget *compose_news_btn;            /* a la Leandro */
-       GtkWidget *compose_mail_btn_plain;      /* plain (text/icon only) */
-       GtkWidget *compose_news_btn_plain;      /* plain (text/icon only) */
+       GtkWidget *compose_mail_btn;
+       GtkWidget *compose_news_btn;
        ComposeButtonType compose_btn_type;
        
+       /* for the reply buttons */
        GtkWidget *reply_btn;
+       GtkWidget *reply_popup;
        GtkWidget *replyall_btn;
+       GtkWidget *replyall_popup;
        GtkWidget *replysender_btn;
+       GtkWidget *replysender_popup;
+       
+       /* the forward button similar to the reply buttons*/
        GtkWidget *fwd_btn;
+       GtkWidget *fwd_popup;
+       
        GtkWidget *send_btn;
        /*
        GtkWidget *prefs_btn;
@@ -111,9 +116,13 @@ struct _MainWindow
        GtkWidget *vbox_body;
        GtkWidget *hbox_stat;
        GtkWidget *statusbar;
+       GtkWidget *progressbar;
+       GtkWidget *statuslabel;
        GtkWidget *ac_button;
        GtkWidget *ac_label;
        GtkWidget *ac_menu;
+       GtkWidget *online_switch;
+       GtkWidget *offline_switch;
 
        /* context IDs for status bar */
        gint mainwin_cid;
@@ -122,33 +131,46 @@ struct _MainWindow
 
        ToolbarStyle toolbar_style;
 
+       guint lock_count;
+       guint menu_lock_count;
        guint cursor_count;
 
        FolderView      *folderview;
        SummaryView     *summaryview;
        MessageView     *messageview;
-       HeaderWindow    *headerwin;
        LogWindow       *logwin;
 };
 
 MainWindow *main_window_create         (SeparateType    type);
+
 void main_window_cursor_wait           (MainWindow     *mainwin);
 void main_window_cursor_normal         (MainWindow     *mainwin);
+
+void main_window_lock                  (MainWindow     *mainwin);
+void main_window_unlock                        (MainWindow     *mainwin);
+
+void main_window_reflect_prefs_all_real                (gboolean pixmap_theme_changed);
 void main_window_reflect_prefs_all     (void);
+void main_window_set_summary_column    (void);
 void main_window_set_account_menu      (GList          *account_list);
 void main_window_separation_change     (MainWindow     *mainwin,
                                         SeparateType    type);
+
 void main_window_get_size              (MainWindow     *mainwin);
 void main_window_get_position          (MainWindow     *mainwin);
+
 void main_window_empty_trash           (MainWindow     *mainwin,
                                         gboolean        confirm);
 void main_window_add_mailbox           (MainWindow     *mainwin);
 
-void main_window_set_toolbar_sensitive (MainWindow     *mainwin,
-                                        gboolean        sensitive);
-void main_window_set_menu_sensitive    (MainWindow     *mainwin,
-                                        gint            selection);
+void main_window_set_toolbar_sensitive (MainWindow     *mainwin);
+void main_window_set_menu_sensitive    (MainWindow     *mainwin);
+
+
 void main_window_popup                 (MainWindow     *mainwin);
-/*void main_window_set_thread_option      (MainWindow *mainwin);*/
+
+void main_window_toolbar_set_compose_button    
+                                       (MainWindow *mainwin, 
+                                        ComposeButtonType compose_btn_type);
 
 #endif /* __MAINWINDOW_H__ */