nautilus/libnautilus/nautilus-zoomable.h
Darin Adler 2d38a2d7fc My apologies to all who read the cvs commits list that have
suffered from my "spam" in the past (due to my use of emacs cvs
	mode to commit).  I will never use emacs cvs mode again so you
	will see each of my commits only once!

	* src/file-manager/fm-error-reporting.c:
	(rename_callback_data_free), (rename_callback),
	(cancel_rename_callback), (fm_rename_file):
	Finished the 1/2 done code for renaming.

	* src/nautilus-main.c: (main): Removed the call to bonobo_shutdown
	since Michael decided he won't do it this way any more.

	* src/nautilus-window.c: (nautilus_window_destroy): Added code
	to unref the UI handler to fix a leak.

	* components/hardware/nautilus-hardware-view.h:
	* components/loser/content/nautilus-content-loser.h:
	* components/loser/sidebar/nautilus-sidebar-loser.h:
	* components/mozilla/nautilus-mozilla-content-view.h:
	* components/music/nautilus-music-view.h:
	* components/rpmview/nautilus-rpm-view.h:
	* components/services/install/lib/eazel-install-corba-callback.h:
	* components/services/install/lib/eazel-install-public.h:
	* components/services/install/nautilus-view/nautilus-service-install-view.h:
	* components/services/inventory/nautilus-view/nautilus-inventory-view.h:
	* components/services/login/nautilus-view/nautilus-login-view.h:
	* components/services/startup/nautilus-view/nautilus-service-startup-view.h:
	* components/services/summary/nautilus-view/nautilus-summary-view.h:
	* components/services/time/nautilus-view/trilobite-eazel-time-view.h:
	* components/services/time/service/trilobite-eazel-time-service-public.h:
	* components/services/trilobite/libtrilobite/trilobite-root-helper.h:
	* components/services/trilobite/libtrilobite/trilobite-service-passwordquery-public.h:
	* components/services/trilobite/libtrilobite/trilobite-service-public.h:
	* components/services/trilobite/sample/lib/sample-service-public.h:
	* components/tree/nautilus-tree-view.h:
	* libnautilus/nautilus-view.h:
	* libnautilus/nautilus-zoomable.h:
	* src/file-manager/fm-desktop-icon-view.h:
	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.h:
	* src/file-manager/fm-list-view.h:
	* src/nautilus-application.h:
	* src/nautilus-shell.h:
	* src/nautilus-view-frame.h:
	Fixed a copied and pasted typo.
2000-07-13 16:45:44 +00:00

100 lines
3.8 KiB
C

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: 8; c-basic-offset: 8 -*- */
/*
* libnautilus: A library for nautilus view implementations.
*
* Copyright (C) 2000 Eazel, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Author: Maciej Stachowiak <mjs@eazel.com>
*
*/
/* nautilus-zoomable.h: Object for implementing the Zoomable CORBA interface. */
#ifndef NAUTILUS_ZOOMABLE_H
#define NAUTILUS_ZOOMABLE_H
#include <libnautilus/nautilus-view-component.h>
#include <bonobo/bonobo-control.h>
#include <gtk/gtkwidget.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define NAUTILUS_TYPE_ZOOMABLE (nautilus_zoomable_get_type ())
#define NAUTILUS_ZOOMABLE(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_ZOOMABLE, NautilusZoomable))
#define NAUTILUS_ZOOMABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_ZOOMABLE, NautilusZoomableClass))
#define NAUTILUS_IS_ZOOMABLE(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_ZOOMABLE))
#define NAUTILUS_IS_ZOOMABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_ZOOMABLE))
typedef struct NautilusZoomable NautilusZoomable;
typedef struct NautilusZoomableClass NautilusZoomableClass;
struct NautilusZoomableClass
{
BonoboObjectClass parent_spot;
void (*set_zoom_level) (NautilusZoomable *view,
gdouble zoom_level);
void (*zoom_in) (NautilusZoomable *view);
void (*zoom_out) (NautilusZoomable *view);
void (*zoom_to_level) (NautilusZoomable *view,
gint zoom_level);
void (*zoom_default) (NautilusZoomable *view);
void (*zoom_to_fit) (NautilusZoomable *view);
gpointer servant_init_func, servant_destroy_func, vepv;
};
typedef struct NautilusZoomableDetails NautilusZoomableDetails;
struct NautilusZoomable
{
BonoboObject parent;
NautilusZoomableDetails *details;
};
GtkType nautilus_zoomable_get_type (void);
NautilusZoomable *nautilus_zoomable_new (GtkWidget *widget,
double min_zoom_level,
double max_zoom_level,
gboolean is_continuous,
double *preferred_zoom_levels,
int num_preferred_zoom_levels);
NautilusZoomable *nautilus_zoomable_new_from_bonobo_control (BonoboControl *bonobo_control,
double min_zoom_level,
double max_zoom_level,
gboolean is_continuous,
double *preferred_zoom_levels,
int num_preferred_zoom_levels);
void nautilus_zoomable_set_parameters (NautilusZoomable *view,
double zoom_level,
double min_zoom_level,
double max_zoom_level);
void nautilus_zoomable_set_zoom_level (NautilusZoomable *view,
double zoom_level);
BonoboControl *nautilus_zoomable_get_bonobo_control (NautilusZoomable *view);
GList *nautilus_g_list_from_ZoomLevelList (const Nautilus_ZoomLevelList *zoom_level_list);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif