After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 397688 - new database table relation shapes
new database table relation shapes
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: shapes
0.96-pre1
Other Linux
: Normal normal
: 0.97
Assigned To: Alan Horkan
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-17 17:27 UTC by Petr Novotnik
Modified: 2007-10-20 15:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
apply this patch against the current svn version (32.37 KB, patch)
2007-01-17 17:28 UTC, Petr Novotnik
committed Details | Review

Description Petr Novotnik 2007-01-17 17:27:30 UTC
Hello Dia developers,

I've attached a patch (created against the current svn version) which
adds a new sheet called 'Database' with some new objects/shapes to Dia.
It is ment for drawing database table relation diagrams. Here's a short
description of the new objects/shapes:

- Table:
A table is very similar to an UML class. Indeed I used the code of the
UML class implementation to create the table object. In addition to some
properties like line-color, line-width etc. the table object has a
variable length list of attributes.

- Reference:
Is a simple orthogonal connection with an description at the beginning
and end point. Only the end point can have an arrow drawn. Of course, it
is ment to display a foreign key reference.

- Compound:

To be able to create foreign key reference which are composed of
multiple table attributes I created the compound object. The component
is quite general and can be used for other purposes, too. It is like a
spider. There is one connection point and many arms starting at the
connection point. Currently, there is a very simple algorithm to place
the initial position of the arms.
Comment 1 Petr Novotnik 2007-01-17 17:28:32 UTC
Created attachment 80524 [details] [review]
apply this patch against the current svn version
Comment 2 Lars Clausen 2007-01-18 16:47:53 UTC
Not adding new features to version 0.96, setting milestone to 0.97.
Comment 3 Hans Breuer 2007-10-20 15:35:04 UTC
2007-10-20  Hans Breuer  <hans@breuer.org>

	* configure.in lib/libdia.def objects/Database 
	  objects/Database/compound.c objects/Database/database.c
	  objects/Database/database.h objects/Database/Makefile.am
	  objects/Database/pixmaps/compound.xpm
	  objects/Database/pixmaps/reference.xpm
	  objects/Database/pixmaps/table.xpm
	  objects/Database/reference.c objects/Database/table.c
	  objects/Database/table_dialog.c objects/Makefile.am
	  objects/makefile.msc po/POTFILES.in sheets/Database.sheet.in
	  sheets/Makefile.am : new database table relation shapes by
	Petr Novotnik - bug #397688 - slightly modified to work with current
	SVN and build on windoze. Although derived from the UML class object
	the 'Table' object looks like a much better playground for a generic
	property list widget.