Updated Spanish translation
[anjuta-git-plugin.git] / plugins / profiler / gprof-view.h
blob287153329835339b24790b87d6991476b25fb426
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * gprof-view.h
4 * Copyright (C) James Liggett 2006 <jrliggett@cox.net>
5 *
6 * gprof-view.h is free software.
7 *
8 * You may redistribute it and/or modify it under the terms of the
9 * GNU General Public License, as published by the Free Software
10 * Foundation; either version 2, or (at your option) any later version.
12 * plugin.c is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with plugin.c. See the file "COPYING". If not,
19 * write to: The Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef _GPROF_VIEW_H
25 #define _GPROF_VIEW_H
27 #include <glib.h>
28 #include <glib-object.h>
29 #include <gtk/gtk.h>
30 #include <libanjuta/interfaces/ianjuta-symbol-manager.h>
31 #include <libanjuta/interfaces/ianjuta-document-manager.h>
32 #include "gprof-profile-data.h"
34 G_BEGIN_DECLS
36 typedef struct _GProfView GProfView;
37 typedef struct _GProfViewClass GProfViewClass;
38 typedef struct _GProfViewPriv GProfViewPriv;
40 #define GPROF_VIEW_TYPE (gprof_view_get_type ())
41 #define GPROF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPROF_VIEW_TYPE, GProfView))
42 #define GPROF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPROF_VIEW_TYPE, GProfViewClass))
43 #define GPROF_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPROF_VIEW_TYPE, GProfViewClass))
44 #define IS_GPROF_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPROF_VIEW_TYPE))
45 #define IS_GPROF_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPROF_VIEW_TYPE))
47 struct _GProfView
49 GObject parent;
50 GProfViewPriv *priv;
53 struct _GProfViewClass
55 GObjectClass parent_class;
57 /* virtual methods */
59 void (*refresh) (GProfView *self);
60 GtkWidget * (*get_widget) (GProfView *self);
63 GType gprof_view_get_type (void);
65 void gprof_view_set_data (GProfView *self, GProfProfileData *profile_data);
66 void gprof_view_set_symbol_manager (GProfView *self,
67 IAnjutaSymbolManager *symbol_manager);
68 void gprof_view_set_document_manager (GProfView *self,
69 IAnjutaDocumentManager *document_manager);
70 void gprof_view_show_symbol_in_editor (GProfView *self,
71 const gchar *symbol_name);
72 GProfProfileData *gprof_view_get_data (GProfView *self);
74 void gprof_view_refresh (GProfView *self);
75 GtkWidget *gprof_view_get_widget (GProfView *self);
77 G_END_DECLS
79 #endif