nautilus-view-frame.h 3.28 KB
Newer Older
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 2 -*- */

/*
 *  libnautilus: A library for nautilus clients.
 *
 *  Copyright (C) 1999 Red Hat, 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: Elliot Lee <sopwith@redhat.com>
 *
 */
/* ntl-view-client.h: Interface for object that represents a nautilus client. */

Elliot Lee's avatar
Elliot Lee committed
27 28 29
#ifndef NTL_VIEW_CLIENT_H
#define NTL_VIEW_CLIENT_H

Elliot Lee's avatar
Elliot Lee committed
30
#include <gtk/gtk.h>
Elliot Lee's avatar
Elliot Lee committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define NAUTILUS_TYPE_VIEW_CLIENT			(nautilus_view_client_get_type ())
#define NAUTILUS_VIEW_CLIENT(obj)			(GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_VIEW_CLIENT, NautilusViewClient))
#define NAUTILUS_VIEW_CLIENT_CLASS(klass)		(GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_VIEW_CLIENT, NautilusViewClientClass))
#define NAUTILUS_IS_VIEW_CLIENT(obj)			(GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_VIEW_CLIENT))
#define NAUTILUS_IS_VIEW_CLIENT_CLASS(klass)		(GTK_CHECK_CLASS_TYPE ((obj), NAUTILUS_TYPE_VIEW_CLIENT))

typedef struct _NautilusViewClient       NautilusViewClient;
typedef struct _NautilusViewClientClass  NautilusViewClientClass;

struct _NautilusViewClientClass
{
  GtkBinClass parent_spot;

  void (*notify_location_change)	(NautilusViewClient *view,
					 Nautilus_NavigationInfo *nav_context);
  void (*notify_selection_change)	(NautilusViewClient *view,
					 Nautilus_SelectionInfo *nav_context);
Elliot Lee's avatar
Elliot Lee committed
53 54 55
  void (*load_state)                    (NautilusViewClient *view, const char *config_path);
  void (*save_state)                    (NautilusViewClient *view, const char *config_path);
  void (*show_properties)               (NautilusViewClient *view);
Elliot Lee's avatar
Elliot Lee committed
56 57

  GtkBinClass *parent_class;
Elliot Lee's avatar
Elliot Lee committed
58

59
  gpointer servant_init_func, servant_destroy_func, vepv;
Elliot Lee's avatar
Elliot Lee committed
60

Elliot Lee's avatar
Elliot Lee committed
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
  guint view_client_signals[5];
};

struct _NautilusViewClient
{
  GtkBin parent;

  GtkWidget *main_window;
 
  GnomeObject *control, *view_client;
  Nautilus_ViewFrame view_frame;
};

GtkType nautilus_view_client_get_type                (void);
void    nautilus_view_client_request_location_change (NautilusViewClient         *view,
						      Nautilus_NavigationRequestInfo *loc);
void    nautilus_view_client_request_selection_change (NautilusViewClient        *view,
						       Nautilus_SelectionRequestInfo *loc);
Elliot Lee's avatar
Elliot Lee committed
79 80
void    nautilus_view_client_request_status_change    (NautilusViewClient        *view,
						       Nautilus_StatusRequestInfo *loc);
81 82
void    nautilus_view_client_request_progress_change  (NautilusViewClient        *view,
						       Nautilus_ProgressRequestInfo *loc);
Elliot Lee's avatar
Elliot Lee committed
83
GnomeObject *nautilus_view_client_get_gnome_object    (NautilusViewClient        *view);
Elliot Lee's avatar
Elliot Lee committed
84 85 86 87 88 89

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif