summaryrefslogtreecommitdiff
path: root/src/nautilus-view-frame-private.h
blob: 5216706394c485e058165b68457ce1ab44997bcb (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
/* -*- 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 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.
 *
 *  Author: Elliot Lee <sopwith@redhat.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;

extern POA_Nautilus_ViewFrame__vepv impl_Nautilus_ViewFrame_vepv;
extern POA_Nautilus_ZoomableFrame__vepv impl_Nautilus_ZoomableFrame_vepv;

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

/* ViewFrame */
void          nautilus_view_frame_open_location               (NautilusViewFrame *view,
                                                               const char        *location);
void          nautilus_view_frame_open_location_in_new_window (NautilusViewFrame *view,
                                                               const char        *location,
                                                               GList             *selection);
void          nautilus_view_frame_report_location_change      (NautilusViewFrame *view,
                                                               const char        *location);
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_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 */