Re: hyperlinks

Hey Hans I just had a chat w/ our coders and they are going to meet next
Thursday to see if they take this on. If they do not, I will do this myself
in my spare time as it'll certainly be useful. I think you are absolutely
right, it would be better to put it in as a regular property for all objects
I'll take a look at prop_dict.c. My only fear with putting as a standard
property is many of my objects would have multiple links to the outside (and
ideally they may be embedded multiple links) so basically right now when I
click a particular thingy I currently have the following show up:

Below the standard dialogue box (line width and so forth)

Gene Symbols [ comma separated list of strings ]
Gene IDs [ comma separated list of integers ]
Exp Value [ comma separated list of reals ]

What I want to add is the ability to hack it so it looks like this:

Gene Symbols [ comma separated list of strings ]
Gene IDs [ comma separated list of integers ]
Exp Value [ comma separated list of reals ]
NCBI Info [ comma separated list of URLs ]
KEGG Info [ URL ]
Internal Database 1 [ comma separated list of URLs ]

I can auto fill in the what those urls actually are from the gene symbol

So there need to be more than one URL per object.. Would the standard
dialogue still let me do this or would each object only have one link?

Incidentally if ext_att is depreciated what is the new notation? Will there
be a way to convert over? I think I am just using whatever dia generated at
some point and that file just gets edited by perl scripts..


On 6/26/09 12:03 PM, "Hans Breuer" <hans breuer org> wrote:

At 25.06.2009 19:37, avijit ghosh wrote:
I was thinking of making it more general so any custom shape can have this
property when you click the shape ..
For my current idea this is not generic enough ;) At least I would like to
have it as generic property for all objects. See lib/prop_dict.c for first
traces of that idea.

What I was hoping was to add an
ext_attribute flag which allows people to add the URL link to any custom
shape: To pick a probably totally wrong notation:

 <ext_attribute name="NCBIURL" description="NCBI Info"

These ext_attributes stuff should be considered deprecated. It has at least
one unsolveable design flaw - see warning when compiling objects/custom.

If you guys come up w/ a syntax you don't object to, let me know and I'll
try and get this done..

The proposed data handling already is available. The only thing missing is
an interface to edit the meta info dictionary - probably to be put in an
additional tab of the standard properties dialog.

Additionally I was thinking of some entry in the context menu to follow
links, maybe also implement internal links target ...

Patches accepted ;)

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to
get along without it.                -- Dilbert
dia-list mailing list
dia-list gnome org
FAQ at
Main page at

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]