2007-08-02 [paul] 2.10.0cvs84
[claws.git] / src / mainwindow.h
index cf862806d0857176e3f1d32b31d3d3b13948662f..268979d11a5cc910754e4b97c0a6951120a380d4 100644 (file)
@@ -4,7 +4,7 @@
  *
  * 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
+ * the Free Software Foundation; either version 3 of the License, or
  * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
@@ -13,8 +13,8 @@
  * 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
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ * 
  */
 
 #ifndef __MAINWINDOW_H__
@@ -57,7 +57,9 @@ typedef enum
        M_CAN_LEARN_SPAM      = 1 << 16,
        M_ACTIONS_EXIST       = 1 << 17,
        M_HAVE_QUEUED_MAILS   = 1 << 18,
-       M_WANT_SYNC           = 1 << 19
+       M_WANT_SYNC           = 1 << 19,
+       M_TAGS_EXIST          = 1 << 20,
+       M_HAVE_PROCESSING     = 1 << 21
 } SensitiveCond;
 
 typedef enum
@@ -65,7 +67,8 @@ typedef enum
        NORMAL_LAYOUT    = 0,
        VERTICAL_LAYOUT  = 1 << 0,
        WIDE_LAYOUT = 1 << 1,
-       WIDE_MSGLIST_LAYOUT = 1 << 2
+       WIDE_MSGLIST_LAYOUT = 1 << 2,
+       SMALL_LAYOUT
 } LayoutType;
 
 typedef enum
@@ -128,10 +131,12 @@ struct _MainWindow
        
        GtkWidget       *colorlabel_menu;
        GtkWidget       *warning_btn;
+       GtkWidget       *tags_menu;
        
 #ifdef HAVE_LIBSM
        gpointer smc_conn;
 #endif
+       gboolean         in_folder;
 };
 
 MainWindow *main_window_create         (void);
@@ -150,6 +155,7 @@ void main_window_reflect_prefs_all_real     (gboolean        pixmap_theme_changed);
 void main_window_reflect_prefs_all     (void);
 void main_window_reflect_prefs_all_now (void);
 void main_window_reflect_prefs_custom_colors(MainWindow        *mainwindow);
+void main_window_reflect_tags_changes(MainWindow       *mainwindow);
 void main_window_set_summary_column    (void);
 void main_window_set_folder_column     (void);
 void main_window_set_account_menu      (GList          *account_list);
@@ -181,9 +187,6 @@ void main_window_show                       (MainWindow     *mainwin);
 void main_window_hide                  (MainWindow     *mainwin);
 void main_window_popup                 (MainWindow     *mainwin);
 
-void main_window_toolbar_set_compose_button    (MainWindow *mainwin, 
-                                                ComposeButtonType compose_btn_type);
-
 SensitiveCond main_window_get_current_state   (MainWindow *mainwin);
 
 void toolbar_set_compose_button               (Toolbar          *toolbar, 
@@ -201,8 +204,19 @@ gboolean mainwindow_key_pressed                  (GtkWidget         *widget,
 MainWindow *mainwindow_get_mainwindow        (void);
 void mainwindow_learn                        (MainWindow *mainwin,
                                               gboolean is_spam);
-void mainwindow_jump_to                              (const gchar       *target);
+void mainwindow_jump_to                              (const gchar       *target,
+                                              gboolean popup);
 void mainwindow_show_error                   (void);
 void mainwindow_clear_error                  (MainWindow *mainwin);
-gboolean mainwindow_is_obscured      (void);
+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__ */