1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
/*
* Caja
*
* Copyright (C) 1999, 2000 Red Hat, Inc.
* Copyright (C) 1999, 2000, 2001 Eazel, Inc.
* Copyright (C) 2003 Ximian, Inc.
*
* Caja 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 (at your option) any later version.
*
* Caja is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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 St, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors: Elliot Lee <sopwith@redhat.com>
* Darin Adler <darin@bentspoon.com>
*
*/
/* caja-navigation-window.h: Interface of the navigation window object */
#ifndef CAJA_NAVIGATION_WINDOW_H
#define CAJA_NAVIGATION_WINDOW_H
#include <gtk/gtk.h>
#include "../eel/eel-glib-extensions.h"
#include "../libcaja-private/caja-bookmark.h"
#include "../libcaja-private/caja-sidebar.h"
#include "caja-application.h"
#include "caja-information-panel.h"
#include "caja-side-pane.h"
#include "caja-window.h"
#define CAJA_TYPE_NAVIGATION_WINDOW caja_navigation_window_get_type()
#define CAJA_NAVIGATION_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_TYPE_NAVIGATION_WINDOW, CajaNavigationWindow))
#define CAJA_NAVIGATION_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), CAJA_TYPE_NAVIGATION_WINDOW, CajaNavigationWindowClass))
#define CAJA_IS_NAVIGATION_WINDOW(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAJA_TYPE_NAVIGATION_WINDOW))
#define CAJA_IS_NAVIGATION_WINDOW_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), CAJA_TYPE_NAVIGATION_WINDOW))
#define CAJA_NAVIGATION_WINDOW_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), CAJA_TYPE_NAVIGATION_WINDOW, CajaNavigationWindowClass))
typedef struct _CajaNavigationWindow CajaNavigationWindow;
typedef struct _CajaNavigationWindowClass CajaNavigationWindowClass;
typedef struct _CajaNavigationWindowPrivate CajaNavigationWindowPrivate;
struct _CajaNavigationWindow
{
CajaWindow parent_object;
CajaNavigationWindowPrivate *details;
/** UI stuff **/
CajaSidePane *sidebar;
/* Current views stuff */
GList *sidebar_panels;
};
struct _CajaNavigationWindowClass
{
CajaWindowClass parent_spot;
};
GType caja_navigation_window_get_type (void);
void caja_navigation_window_allow_back (CajaNavigationWindow *window,
gboolean allow);
void caja_navigation_window_allow_forward (CajaNavigationWindow *window,
gboolean allow);
void caja_navigation_window_clear_back_list (CajaNavigationWindow *window);
void caja_navigation_window_clear_forward_list (CajaNavigationWindow *window);
void caja_forget_history (void);
gint caja_navigation_window_get_base_page_index (CajaNavigationWindow *window);
void caja_navigation_window_hide_toolbar (CajaNavigationWindow *window);
void caja_navigation_window_show_toolbar (CajaNavigationWindow *window);
gboolean caja_navigation_window_toolbar_showing (CajaNavigationWindow *window);
void caja_navigation_window_hide_sidebar (CajaNavigationWindow *window);
void caja_navigation_window_show_sidebar (CajaNavigationWindow *window);
gboolean caja_navigation_window_sidebar_showing (CajaNavigationWindow *window);
void caja_navigation_window_add_sidebar_panel (CajaNavigationWindow *window,
CajaSidebar *sidebar_panel);
void caja_navigation_window_remove_sidebar_panel (CajaNavigationWindow *window,
CajaSidebar *sidebar_panel);
void caja_navigation_window_hide_status_bar (CajaNavigationWindow *window);
void caja_navigation_window_show_status_bar (CajaNavigationWindow *window);
gboolean caja_navigation_window_status_bar_showing (CajaNavigationWindow *window);
void caja_navigation_window_back_or_forward (CajaNavigationWindow *window,
gboolean back,
guint distance,
gboolean new_tab);
void caja_navigation_window_show_search (CajaNavigationWindow *window);
void caja_navigation_window_unset_focus_widget (CajaNavigationWindow *window);
void caja_navigation_window_hide_search (CajaNavigationWindow *window);
void caja_navigation_window_set_search_button (CajaNavigationWindow *window,
gboolean state);
void caja_navigation_window_restore_focus_widget (CajaNavigationWindow *window);
void caja_navigation_window_split_view_on (CajaNavigationWindow *window);
void caja_navigation_window_split_view_off (CajaNavigationWindow *window);
gboolean caja_navigation_window_split_view_showing (CajaNavigationWindow *window);
gboolean caja_navigation_window_is_in_temporary_navigation_bar (GtkWidget *widget,
CajaNavigationWindow *window);
gboolean caja_navigation_window_is_in_temporary_search_bar (GtkWidget *widget,
CajaNavigationWindow *window);
#endif
|