summaryrefslogtreecommitdiff
path: root/src/nautilus-view-frame-private.h
blob: eebfe88a340ca7bd6631b6be1015c86a20751d90 (plain)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */

/*
 *  Nautilus
 *
 *  Copyright (C) 1999, 2000 Red Hat, Inc.
 *  Copyright (C) 1999, 2000, 2001 Eazel, Inc.
 *
 *  Nautilus 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.
 *
 *  Nautilus 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., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *  Authors: Elliot Lee <sopwith@redhat.com>
 *           Darin Adler <darin@eazel.com>
 *
 */

/* nautilus-view-frame-private.h: Internals of the view proxy that are shared between different implementation files */

#ifndef NAUTILUS_VIEW_FRAME_PRIVATE_H
#define NAUTILUS_VIEW_FRAME_PRIVATE_H

#include "nautilus-view-frame.h"

typedef struct {
        POA_Nautilus_ViewFrame servant;
        gpointer bonobo_object;
        
        NautilusViewFrame *view;
} impl_POA_Nautilus_ViewFrame;

typedef void (* NautilusViewFrameFunction) (NautilusViewFrame *view_frame,
                                            gpointer callback_data);

extern POA_Nautilus_ViewFrame__vepv impl_Nautilus_ViewFrame_vepv;

void          nautilus_view_frame_queue_incoming_call                  (PortableServer_Servant     servant,
                                                                        NautilusViewFrameFunction  call,
                                                                        gpointer                   callback_data,
                                                                        GDestroyNotify             destroy_callback_data);

BonoboObject *impl_Nautilus_ViewFrame__create                          (NautilusViewFrame         *view,
                                                                        CORBA_Environment         *ev);

/* ViewFrame */
void          nautilus_view_frame_open_location_in_this_window         (NautilusViewFrame         *view,
                                                                        const char                *location);
void          nautilus_view_frame_open_location_prefer_existing_window (NautilusViewFrame         *view,
                                                                        const char                *location);
void          nautilus_view_frame_open_location_force_new_window       (NautilusViewFrame         *view,
                                                                        const char                *location,
                                                                        GList                     *selection);
void          nautilus_view_frame_report_location_change               (NautilusViewFrame         *view,
                                                                        const char                *location,
                                                                        GList                     *selection,
                                                                        const char                *title);
void          nautilus_view_frame_report_redirect                      (NautilusViewFrame         *view,
                                                                        const char                *from_location,
                                                                        const char                *to_location,
                                                                        GList                     *selection,
                                                                        const char                *title);
void          nautilus_view_frame_report_selection_change              (NautilusViewFrame         *view,
                                                                        GList                     *selection);
void          nautilus_view_frame_report_status                        (NautilusViewFrame         *view,
                                                                        const char                *status);
void          nautilus_view_frame_report_load_underway                 (NautilusViewFrame         *view);
void          nautilus_view_frame_report_load_progress                 (NautilusViewFrame         *view,
                                                                        double                     fraction_done);
void          nautilus_view_frame_report_load_complete                 (NautilusViewFrame         *view);
void          nautilus_view_frame_report_load_failed                   (NautilusViewFrame         *view);
void          nautilus_view_frame_set_title                            (NautilusViewFrame         *view,
                                                                        const char                *title);
void          nautilus_view_frame_go_back                              (NautilusViewFrame         *view);
void          nautilus_view_frame_quit_nautilus                        (NautilusViewFrame         *view);
void          nautilus_view_frame_close_desktop                        (NautilusViewFrame         *view);

/* Zoomable */
void          nautilus_view_frame_zoom_level_changed                   (NautilusViewFrame         *view,
                                                                        double                     zoom_level);
void          nautilus_view_frame_zoom_parameters_changed              (NautilusViewFrame         *view,
                                                                        double                     zoom_level,
                                                                        double                     min_zoom_level,
                                                                        double                     max_zoom_level);

#endif /* NAUTILUS_VIEW_FRAME_PRIVATE_H */