GnomeDbCanvasDbRelations

GnomeDbCanvasDbRelations — Graphical representation of the relations (foreign key constreints) in the database.

Synopsis




            GnomeDbCanvasDbRelations;
            GnomeDbCanvasDbRelationsClass;
            GnomeDbCanvasDbRelationsPrivate;
GtkWidget*  gnome_db_canvas_db_relations_new
                                            (GdaDict *dict,
                                             GdaGraph *graph);

Object Hierarchy


  GObject
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkLayout
                           +----GnomeCanvas
                                 +----GnomeDbCanvas
                                       +----GnomeDbCanvasDbRelations

Implemented Interfaces

GnomeDbCanvasDbRelations implements AtkImplementorIface.

Description

This object uses a GdaGraph object to be able to tell which table is displayed, and where on the canvas.

Details

GnomeDbCanvasDbRelations

typedef struct _GnomeDbCanvasDbRelations GnomeDbCanvasDbRelations;


GnomeDbCanvasDbRelationsClass

typedef struct {
	GnomeDbCanvasClass                  parent_class;
} GnomeDbCanvasDbRelationsClass;


GnomeDbCanvasDbRelationsPrivate

typedef struct _GnomeDbCanvasDbRelationsPrivate GnomeDbCanvasDbRelationsPrivate;


gnome_db_canvas_db_relations_new ()

GtkWidget*  gnome_db_canvas_db_relations_new
                                            (GdaDict *dict,
                                             GdaGraph *graph);

Creates a new canvas widget to display the relations between the database's tables. The database is the one managed by the GdaDict object which graph refers.

graph contains all the table's graphical representations and their respective locations on the canvas, or can be NULL (in which case nothing is displayed)

dict : a GdaDict object
graph : a GdaGraph object, or NULL
Returns : a new GnomeDbCanvasDbRelations widget