1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | /* e-shell-folder-title-bar.h |
---|
3 | * |
---|
4 | * Copyright (C) 2000 Ximian, Inc. |
---|
5 | * |
---|
6 | * This program is free software; you can redistribute it and/or |
---|
7 | * modify it under the terms of version 2 of the GNU General Public |
---|
8 | * License as published by the Free Software Foundation. |
---|
9 | * |
---|
10 | * This program is distributed in the hope that it will be useful, |
---|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
13 | * General Public License for more details. |
---|
14 | * |
---|
15 | * You should have received a copy of the GNU General Public |
---|
16 | * License along with this program; if not, write to the |
---|
17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
18 | * Boston, MA 02111-1307, USA. |
---|
19 | * |
---|
20 | * Author: Ettore Perazzoli |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef __E_SHELL_FOLDER_TITLE_BAR_H__ |
---|
24 | #define __E_SHELL_FOLDER_TITLE_BAR_H__ |
---|
25 | |
---|
26 | #include <gtk/gtkhbox.h> |
---|
27 | #include <gdk-pixbuf/gdk-pixbuf.h> |
---|
28 | |
---|
29 | #ifdef __cplusplus |
---|
30 | extern "C" { |
---|
31 | #pragma } |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | #define E_TYPE_SHELL_FOLDER_TITLE_BAR (e_shell_folder_title_bar_get_type ()) |
---|
35 | #define E_SHELL_FOLDER_TITLE_BAR(obj) (GTK_CHECK_CAST ((obj), E_TYPE_SHELL_FOLDER_TITLE_BAR, EShellFolderTitleBar)) |
---|
36 | #define E_SHELL_FOLDER_TITLE_BAR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_SHELL_FOLDER_TITLE_BAR, EShellFolderTitleBarClass)) |
---|
37 | #define E_IS_SHELL_FOLDER_TITLE_BAR(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_SHELL_FOLDER_TITLE_BAR)) |
---|
38 | #define E_IS_SHELL_FOLDER_TITLE_BAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), E_TYPE_SHELL_FOLDER_TITLE_BAR)) |
---|
39 | |
---|
40 | |
---|
41 | typedef struct _EShellFolderTitleBar EShellFolderTitleBar; |
---|
42 | typedef struct _EShellFolderTitleBarPrivate EShellFolderTitleBarPrivate; |
---|
43 | typedef struct _EShellFolderTitleBarClass EShellFolderTitleBarClass; |
---|
44 | |
---|
45 | struct _EShellFolderTitleBar { |
---|
46 | GtkHBox parent; |
---|
47 | |
---|
48 | EShellFolderTitleBarPrivate *priv; |
---|
49 | }; |
---|
50 | |
---|
51 | struct _EShellFolderTitleBarClass { |
---|
52 | GtkHBoxClass parent_class; |
---|
53 | |
---|
54 | /* Signals. */ |
---|
55 | void (* title_toggled) (EShellFolderTitleBar *folder_title_bar, gboolean pressed); |
---|
56 | void (* back_clicked) (EShellFolderTitleBar *folder_title_bar); |
---|
57 | void (* forward_clicked) (EShellFolderTitleBar *folder_title_bar); |
---|
58 | }; |
---|
59 | |
---|
60 | |
---|
61 | GtkType e_shell_folder_title_bar_get_type (void); |
---|
62 | void e_shell_folder_title_bar_construct (EShellFolderTitleBar *folder_title_bar); |
---|
63 | GtkWidget *e_shell_folder_title_bar_new (void); |
---|
64 | |
---|
65 | void e_shell_folder_title_bar_set_title (EShellFolderTitleBar *folder_title_bar, |
---|
66 | const char *title); |
---|
67 | void e_shell_folder_title_bar_set_folder_bar_label (EShellFolderTitleBar *folder_title_bar, |
---|
68 | const char *folder_bar_label); |
---|
69 | void e_shell_folder_title_bar_set_icon (EShellFolderTitleBar *folder_title_bar, |
---|
70 | GdkPixbuf *icon); |
---|
71 | void e_shell_folder_title_bar_set_toggle_state (EShellFolderTitleBar *folder_title_bar, |
---|
72 | gboolean state); |
---|
73 | void e_shell_folder_title_bar_set_title_clickable (EShellFolderTitleBar *folder_title_bar, |
---|
74 | gboolean clickable); |
---|
75 | |
---|
76 | void e_shell_folder_title_bar_update_navigation_buttons (EShellFolderTitleBar *folder_title_bar, |
---|
77 | gboolean can_go_back, |
---|
78 | gboolean can_go_forward); |
---|
79 | |
---|
80 | #ifdef __cplusplus |
---|
81 | } |
---|
82 | #endif /* __cplusplus */ |
---|
83 | |
---|
84 | #endif /* __E_SHELL_FOLDER_TITLE_BAR_H__ */ |
---|