1 /* 2 * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com> 4 * 5 * This program is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU General Public License 7 * as published by the Free Software Foundation; either version 2 8 * of the License, or (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 21 #ifndef __SCHEMA_BROWSER_PERSPECTIVE_H_ 22 #define __SCHEMA_BROWSER_PERSPECTIVE_H_ 23 24 #include <glib-object.h> 25 #include "../browser-perspective.h" 26 27 G_BEGIN_DECLS 28 29 #define TYPE_SCHEMA_BROWSER_PERSPECTIVE (schema_browser_perspective_get_type()) 30 #define SCHEMA_BROWSER_PERSPECTIVE(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, schema_browser_perspective_get_type(), SchemaBrowserPerspective) 31 #define SCHEMA_BROWSER_PERSPECTIVE_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, schema_browser_perspective_get_type (), SchemaBrowserPerspectiveClass) 32 #define IS_SCHEMA_BROWSER_PERSPECTIVE(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, schema_browser_perspective_get_type ()) 33 34 typedef struct _SchemaBrowserPerspective SchemaBrowserPerspective; 35 typedef struct _SchemaBrowserPerspectiveClass SchemaBrowserPerspectiveClass; 36 typedef struct _SchemaBrowserPerspectivePrivate SchemaBrowserPerspectivePrivate; 37 38 /* struct for the object's data */ 39 struct _SchemaBrowserPerspective 40 { 41 GtkBox object; 42 SchemaBrowserPerspectivePrivate *priv; 43 }; 44 45 /* struct for the object's class */ 46 struct _SchemaBrowserPerspectiveClass 47 { 48 GtkBoxClass parent_class; 49 }; 50 51 /** 52 * SECTION:schema-browser-perspective 53 * @short_description: Perspective to analyse the database's schema 54 * @title: Schema Browser perspective 55 * @stability: Stable 56 * @see_also: 57 */ 58 59 GType schema_browser_perspective_get_type (void) G_GNUC_CONST; 60 BrowserPerspective *schema_browser_perspective_new (BrowserWindow *bwin); 61 void schema_browser_perspective_display_table_info (SchemaBrowserPerspective *bpers, 62 const gchar *table_schema, 63 const gchar *table_name, 64 const gchar *table_short_name); 65 void schema_browser_perspective_display_diagram (SchemaBrowserPerspective *bpers, 66 gint fav_id); 67 68 G_END_DECLS 69 70 #endif 71