online, offline and quicksearch pixmaps follow theme changes
[claws.git] / src / mainwindow.h
index 31cb2438be6bad0a015b79c086ce167befab414d..7bc9e890790a235ef1c6a75a025d8842ef3e7b99 100644 (file)
@@ -23,6 +23,7 @@
 #include <glib.h>
 
 typedef struct _MainWindow  MainWindow;
+typedef struct _MainToolbar MainToolbar;
 
 #include "folderview.h"
 #include "summaryview.h"
@@ -40,13 +41,15 @@ typedef enum
        M_EXEC                = 1 << 4,
        M_ALLOW_REEDIT        = 1 << 5,
        M_HAVE_ACCOUNT        = 1 << 6,
-       M_THREADED          = 1 << 7,
-       M_UNTHREADED        = 1 << 8,
-       M_ALLOW_DELETE      = 1 << 9,
-       M_INC_ACTIVE        = 1 << 10,
+       M_THREADED            = 1 << 7,
+       M_UNTHREADED          = 1 << 8,
+       M_ALLOW_DELETE        = 1 << 9,
+       M_INC_ACTIVE          = 1 << 10,
        M_NEWS                = 1 << 11,
        M_HAVE_NEWS_ACCOUNT   = 1 << 12,
-       M_HIDE_READ_MSG     = 1 << 13
+       M_HIDE_READ_MSG       = 1 << 13,
+       M_DELAY_EXEC          = 1 << 14,
+       M_NOT_NEWS            = 1 << 15,
 } SensitiveCond;
 
 typedef enum
@@ -111,6 +114,8 @@ struct _MainWindow
        GtkWidget *ac_menu;
        GtkWidget *online_switch;
        GtkWidget *offline_switch;
+       GtkWidget *online_pixmap;
+       GtkWidget *offline_pixmap;
 
        /* context IDs for status bar */
        gint mainwin_cid;
@@ -128,6 +133,53 @@ struct _MainWindow
        MessageView     *messageview;
        LogWindow       *logwin;
 };
+typedef enum 
+{
+       COMPOSEBUTTON_MAIL,
+       COMPOSEBUTTON_NEWS
+} ComposeButtonType;
+
+struct _MainToolbar {
+
+       GtkWidget *toolbar;
+
+       GtkWidget *get_btn;
+       GtkWidget *getall_btn;
+       GtkWidget *sel_down;
+       GtkWidget *sel_down_all;
+       GtkWidget *sel_down_cur;
+       GtkWidget *send_btn;
+
+       GtkWidget *compose_mail_btn;
+       GtkWidget *compose_news_btn;
+
+       GtkWidget *reply_btn;
+       GtkWidget *replysender_btn;
+       GtkWidget *replyall_btn;
+       GtkWidget *replylist_btn;
+
+       GtkWidget *fwd_btn;
+
+       GtkWidget *delete_btn;
+       GtkWidget *next_btn;
+       GtkWidget *exec_btn;
+
+       GtkWidget *separator;
+
+       /* for the reply buttons */
+       GtkWidget *reply_popup;
+       GtkWidget *replyall_popup;
+       GtkWidget *replylist_popup;
+       GtkWidget *replysender_popup;
+       
+       /* the forward button similar to the reply buttons*/
+       GtkWidget *fwd_popup;
+
+       ComposeButtonType compose_btn_type;
+
+       GSList    *t_action_list;
+       GSList    *t_item_list;
+};
 
 MainWindow *main_window_create         (SeparateType    type);
 
@@ -159,36 +211,13 @@ void main_window_set_menu_sensitive       (MainWindow     *mainwin);
 void main_window_popup                 (MainWindow     *mainwin);
 
 void main_window_toolbar_set_compose_button    (MainWindow *mainwin, 
-                                        ComposeButtonType compose_btn_type);
+                                                ComposeButtonType compose_btn_type);
 
 SensitiveCond main_window_get_current_state   (MainWindow *mainwin);
 
-void reply_cb                            (MainWindow   *mainwin,
-                                        guint           action,
-                                        GtkWidget      *widget);
-
-void inc_mail_cb                                 (MainWindow   *mainwin,
-                                        guint           action,
-                                        GtkWidget      *widget);
-
-void inc_all_account_mail_cb             (MainWindow   *mainwin,
-                                        guint           action,
-                                        GtkWidget      *widget);
-
-void send_queue_cb                       (MainWindow   *mainwin,
-                                        guint           action,
-                                        GtkWidget      *widget);
-
-void compose_mail_cb                          (MainWindow       *mainwin, 
-                                        guint action,
-                                          GtkWidget         *widget);
-
-void compose_news_cb                          (MainWindow       *mainwin, 
-                                        guint action,
-                                          GtkWidget         *widget);
-
-void next_unread_cb                       (MainWindow  *mainwin,
-                                         guint          action,
-                                         GtkWidget     *widget);
+void toolbar_set_sensitive                    (MainWindow *mainwin);
 
+void toolbar_set_compose_button               (MainToolbar        *toolbar, 
+                                              ComposeButtonType  compose_btn_type);
+void main_window_destroy_all                  (void);
 #endif /* __MAINWINDOW_H__ */