Update Romanian translation
[evolution.git] / src / shell / e-shell-window-private.h
blob8dbad3a5e2ba10c9ab1a08e326c37ea82874ffd6
1 /*
2 * e-shell-window-private.h
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
21 #ifndef E_SHELL_WINDOW_PRIVATE_H
22 #define E_SHELL_WINDOW_PRIVATE_H
24 #include "e-shell-window.h"
26 #include <string.h>
27 #include <glib/gi18n.h>
29 #include <libebackend/libebackend.h>
31 #include "shell/e-shell.h"
32 #include "shell/e-shell-content.h"
33 #include "shell/e-shell-view.h"
34 #include "shell/e-shell-searchbar.h"
35 #include "shell/e-shell-switcher.h"
36 #include "shell/e-shell-window-actions.h"
37 #include "shell/e-shell-utils.h"
39 #define E_SHELL_WINDOW_GET_PRIVATE(obj) \
40 (G_TYPE_INSTANCE_GET_PRIVATE \
41 ((obj), E_TYPE_SHELL_WINDOW, EShellWindowPrivate))
43 /* Shorthand, requires a variable named "shell_window". */
44 #define ACTION(name) \
45 (E_SHELL_WINDOW_ACTION_##name (shell_window))
46 #define ACTION_GROUP(name) \
47 (E_SHELL_WINDOW_ACTION_GROUP_##name (shell_window))
49 /* Format for switcher action names.
50 * The last part is the shell view name.
51 * (e.g. switch-to-mail, switch-to-calendar) */
52 #define E_SHELL_SWITCHER_FORMAT "switch-to-%s"
53 #define E_SHELL_NEW_WINDOW_FORMAT "new-%s-window"
55 G_BEGIN_DECLS
57 struct _EShellWindowPrivate {
59 gpointer shell; /* weak pointer */
61 /*** UI Management ***/
63 EFocusTracker *focus_tracker;
64 GtkUIManager *ui_manager;
65 guint custom_rule_merge_id;
66 guint gal_view_merge_id;
68 /*** Shell Views ***/
70 GHashTable *loaded_views;
71 const gchar *active_view;
73 /*** Widgetry ***/
75 GtkWidget *alert_bar;
76 GtkWidget *content_pane;
77 GtkWidget *content_notebook;
78 GtkWidget *sidebar_notebook;
79 GtkWidget *switcher;
80 GtkWidget *tooltip_label;
81 GtkWidget *status_notebook;
83 /* Miscellaneous */
84 GtkWidget *menubar_box;
86 /* Shell signal handlers. */
87 GArray *signal_handler_ids;
89 gchar *geometry;
91 guint destroyed : 1; /* XXX Do we still need this? */
92 guint safe_mode : 1;
93 guint menubar_visible : 1;
94 guint sidebar_visible : 1;
95 guint switcher_visible : 1;
96 guint taskbar_visible : 1;
97 guint toolbar_visible : 1;
98 guint is_main_instance : 1;
100 gulong delayed_menubar_show_id;
101 gulong delayed_menubar_hide_id;
103 GSList *postponed_alerts; /* EAlert * */
106 void e_shell_window_private_init (EShellWindow *shell_window);
107 void e_shell_window_private_constructed
108 (EShellWindow *shell_window);
109 void e_shell_window_private_dispose (EShellWindow *shell_window);
110 void e_shell_window_private_finalize (EShellWindow *shell_window);
112 /* Private Utilities */
114 void e_shell_window_actions_init (EShellWindow *shell_window);
115 void e_shell_window_switch_to_view (EShellWindow *shell_window,
116 const gchar *view_name);
117 GtkWidget * e_shell_window_create_new_menu (EShellWindow *shell_window);
118 void e_shell_window_create_switcher_actions
119 (EShellWindow *shell_window);
120 void e_shell_window_update_gal_view (EShellWindow *shell_window);
121 void e_shell_window_update_icon (EShellWindow *shell_window);
122 void e_shell_window_update_title (EShellWindow *shell_window);
123 void e_shell_window_update_new_menu (EShellWindow *shell_window);
124 void e_shell_window_update_view_menu (EShellWindow *shell_window);
125 void e_shell_window_update_search_menu
126 (EShellWindow *shell_window);
128 G_END_DECLS
130 #endif /* E_SHELL_WINDOW_PRIVATE_H */