1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
---|
2 | |
---|
3 | /* |
---|
4 | * Nautilus |
---|
5 | * |
---|
6 | * Copyright (C) 2000 Eazel, Inc. |
---|
7 | * |
---|
8 | * Nautilus is free software; you can redistribute it and/or |
---|
9 | * modify it under the terms of the GNU General Public License as |
---|
10 | * published by the Free Software Foundation; either version 2 of the |
---|
11 | * License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * Nautilus is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | * General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU General Public |
---|
19 | * License along with this program; see the file COPYING. If not, |
---|
20 | * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
21 | * Boston, MA 02111-1307, USA. |
---|
22 | * |
---|
23 | * Author: Maciej Stachowiak <mjs@eazel.com> |
---|
24 | */ |
---|
25 | |
---|
26 | /* nautilus-switchable-navigation-bar.h - Navigation bar for Nautilus |
---|
27 | * that allows switching between the location bar and the search bar |
---|
28 | */ |
---|
29 | |
---|
30 | #ifndef NAUTILUS_SWITCHABLE_NAVIGATION_BAR_H |
---|
31 | #define NAUTILUS_SWITCHABLE_NAVIGATION_BAR_H |
---|
32 | |
---|
33 | #include "nautilus-navigation-bar.h" |
---|
34 | #include <gtk/gtkhbox.h> |
---|
35 | #include "nautilus-location-bar.h" |
---|
36 | #include "nautilus-search-bar.h" |
---|
37 | |
---|
38 | #define NAUTILUS_TYPE_SWITCHABLE_NAVIGATION_BAR (nautilus_switchable_navigation_bar_get_type ()) |
---|
39 | #define NAUTILUS_SWITCHABLE_NAVIGATION_BAR(obj) \ |
---|
40 | GTK_CHECK_CAST (obj, NAUTILUS_TYPE_SWITCHABLE_NAVIGATION_BAR, NautilusSwitchableNavigationBar) |
---|
41 | #define NAUTILUS_SWITCHABLE_NAVIGATION_BAR_CLASS(klass) \ |
---|
42 | GTK_CHECK_CLASS_CAST (klass, NAUTILUS_TYPE_SWITCHABLE_NAVIGATION_BAR, NautilusSwitchableNavigationBarClass) |
---|
43 | #define NAUTILUS_IS_SWITCHABLE_NAVIGATION_BAR(obj) \ |
---|
44 | GTK_CHECK_TYPE (obj, NAUTILUS_TYPE_SWITCHABLE_NAVIGATION_BAR) |
---|
45 | |
---|
46 | typedef struct NautilusSwitchableNavigationBarDetails NautilusSwitchableNavigationBarDetails; |
---|
47 | |
---|
48 | typedef enum { |
---|
49 | NAUTILUS_SWITCHABLE_NAVIGATION_BAR_MODE_LOCATION, |
---|
50 | NAUTILUS_SWITCHABLE_NAVIGATION_BAR_MODE_SEARCH |
---|
51 | } NautilusSwitchableNavigationBarMode; |
---|
52 | |
---|
53 | |
---|
54 | typedef struct NautilusSwitchableNavigationBar { |
---|
55 | NautilusNavigationBar parent; |
---|
56 | NautilusSwitchableNavigationBarDetails *details; |
---|
57 | } NautilusSwitchableNavigationBar; |
---|
58 | |
---|
59 | typedef struct { |
---|
60 | NautilusNavigationBarClass parent_class; |
---|
61 | |
---|
62 | void (*mode_changed) (NautilusSwitchableNavigationBar *switchable_navigation_bar, |
---|
63 | NautilusSwitchableNavigationBarMode mode); |
---|
64 | } NautilusSwitchableNavigationBarClass; |
---|
65 | |
---|
66 | GtkType nautilus_switchable_navigation_bar_get_type (void); |
---|
67 | GtkWidget* nautilus_switchable_navigation_bar_new (NautilusWindow *window); |
---|
68 | NautilusSwitchableNavigationBarMode nautilus_switchable_navigation_bar_get_mode (NautilusSwitchableNavigationBar *switchable_navigation_bar); |
---|
69 | void nautilus_switchable_navigation_bar_set_mode (NautilusSwitchableNavigationBar *switchable_navigation_bar, |
---|
70 | NautilusSwitchableNavigationBarMode mode); |
---|
71 | void nautilus_switchable_navigation_bar_activate (NautilusSwitchableNavigationBar *switchable_navigation_bar); |
---|
72 | |
---|
73 | #endif /* NAUTILUS_SWITCHABLE_NAVIGATION_BAR_H */ |
---|