nautilus/libnautilus/nautilus-view-component.idl
Mike Engber 96835d3143 Changed desktop menu to offer close desktop instead of quit nautilus.
* libnautilus/nautilus-view-component.idl:
	* libnautilus/nautilus-view.c:
	* libnautilus/nautilus-view.h:
	* src/file-manager/fm-desktop-icon-view.c:
	(fm_desktop_icon_view_close_desktop_menu_item_callback),
	(fm_desktop_icon_view_create_background_context_menu_items):
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_close_desktop):
	* src/file-manager/fm-directory-view.h:
	* src/nautilus-application.c: (nautilus_application_windows),
	(nautilus_application_startup),
	(nautilus_application_destroy_desktop_window),
	(nautilus_application_create_desktop_window),
	(nautilus_application_open_desktop),
	(nautilus_application_close_desktop),
	(nautilus_application_destroy_window),
	(nautilus_application_create_window):
	* src/nautilus-application.h:
	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
	* src/nautilus-shell.c: (corba_manage_desktop):
	* src/nautilus-view-frame-corba.c:
	(impl_Nautilus_ViewFrame_set_title):
	* src/nautilus-view-frame-private.h:
	* src/nautilus-view-frame.c:
	(nautilus_view_frame_initialize_class),
	(nautilus_view_frame_set_title):
	* src/nautilus-view-frame.h:
	* src/nautilus-window-manage-views.c: (open_location):
	* src/nautilus-window.c: (nautilus_window_connect_view):
	Changed desktop menu to offer close desktop instead of
	quit nautilus. Also, changed the menu item's action to
	use a direct fn call instead of CORBA.
2000-07-13 18:55:12 +00:00

154 lines
5.1 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: 8; c-basic-offset: 8 -*- */
#ifndef NAUTILUS_VIEW_COMPONENT_IDL
#define NAUTILUS_VIEW_COMPONENT_IDL
#include <Bonobo.idl>
module Nautilus {
/* URIs are just plain strings, but we use a typedef to make
* the interface definitions clearer.
*/
typedef string URI;
typedef sequence<URI> URIList;
/* The View interface is used by the Nautilus shell to control
* the view. The view is always a Bonobo::Control, but can
* choose to implement the View interface for additional finer
* control by Nautilus.
*/
interface View : ::Bonobo::Unknown {
/* Called to tell the view about location changes.
* Called again with the same parameter to request a
* reload. Not called on the view that reported a
* location change with report_location_change, but is
* called on all other views, and on all views if
* open_location or open_location_in_new_window is
* used.
*/
oneway void load_location (in URI location);
oneway void stop_loading ();
/* Called to tell the view about selection changes.
* Like load, it's called on all views except the one
* that calls report_selection_change. If you call
* set_selection instead, it's called on all views,
* even the requesting one.
*/
oneway void selection_changed (in URIList selection);
};
/* The ViewFrame interface is used by the view to communicate
* with the Nautilus shell. It's implemented as an interface
* on the Bonobo::ControlFrame for the view.
*/
interface ViewFrame : ::Bonobo::Unknown {
/* Called by the view component to change the location
* shown in the window or to open a new window. The
* report version is used when the view has already
* changed its location and would confused by an
* additional load call. It is deprecated, and you
* should use it only if absolutely necessary.
*/
oneway void open_location (in URI location);
oneway void open_location_in_new_window (in URI location);
oneway void report_location_change (in URI location);
/* Called by a view component to announce a change in the
* selection. This selection change will be reported back
* to the original view along with the others.
*/
oneway void report_selection_change (in URIList selection);
/* Called by a view component to change the contents
* of the status bar.
*/
oneway void report_status (in string status);
/* Called by a view component to give an update about
* progress loading the view for the current
* location. Calling underway repeatedly tells the
* shell that the view is making progress. For views
* that know how far along they are, calling
* report_load_progress (instead of
* report_load_underway) with a number from 0.0 to 1.0
* expresses how much of the total is done. When the
* load is complete or has failed, either
* report_load_failed or report_load_complete
* indicates that.
*/
oneway void report_load_underway ();
oneway void report_load_progress (in double fraction_done);
oneway void report_load_complete ();
oneway void report_load_failed ();
/* Called by a view component to change the title. */
oneway void set_title (in string new_title);
};
typedef double ZoomLevel;
typedef sequence<ZoomLevel> ZoomLevelList;
/* The interface for something zoomable. Nautilus looks for
* this interface on Bonobo controls that it uses as views. If
* the interface is present, it shows a control in the toolbar
* for zooming. It's still the component's job to save the
* zoom level.
*/
interface Zoomable : ::Bonobo::Unknown {
/* Set this attribute to make the thing zoom. */
attribute double zoom_level;
/* Information about the type of zooming that's supported. */
readonly attribute double min_zoom_level;
readonly attribute double max_zoom_level;
readonly attribute boolean is_continuous;
readonly attribute ZoomLevelList preferred_zoom_levels;
/* High level operations.
* These can cause a change in the zoom level.
* The zoomable itself must decide what the concepts
* "one level in", "one level out", and "to fit" mean.
*/
oneway void zoom_in ();
oneway void zoom_out ();
oneway void zoom_to_fit ();
};
/* A zoomable has the responsibility to look for this
* interface on its Bonobo control frame and call
* zoom_level_changed whenever it changes the zoom level (on
* its own or due to calls from the zoomable interface).
*/
interface ZoomableFrame : ::Bonobo::Unknown {
oneway void report_zoom_level_changed (in double zoom_level);
};
/* The specifications for a history list item. The structure
* contains the title of the item, and the location it's for.
*/
struct HistoryItem {
string title;
URI location;
};
typedef sequence<HistoryItem> HistoryList;
struct History {
HistoryList list;
long position; /* 0 = end of list */
};
/* An interface that a component can use to get at the history
* list stored in Nautilus.
*/
interface HistoryFrame : ::Bonobo::Unknown {
/* Called by a view component to get the Nautilus
* history list.
*/
History get_history_list ();
};
};
#endif /* NAUTILUS_VIEW_COMPONENT_IDL */