Re: config.h again
I think that just applies to config.h In general though, headers local to the program use "" and system or other installed headers use . I haven't programmed in C for years but the rule at that times was: - you use quoting if the file name is to be searched in the include path - you use "" quoting if the file name is a pathname (absolute or relative, mostly the later one). So, config.h will be found in a usual configure ienv if the "." is part of the include path. Otherwise not. . incze
Re: Adding SQL support
My apologies to those who have asked for the code mentioned below. It is available at ftp://pdx.or.com/pub/dia-with-er.tar.gz This is based on the 1.86 release. The warnings: - This code was, as I mentioned, started by Alfredo Kengi Kojima. I only added what I needed to get the task at hand done. - I've never written a line of GNOME anything before, so I was winging it. - There's lots of debugging output. - Only some SQL types are supported, but they are easily added. - I've gutted the code the reduces 1-to-1 relationships into one table Here is the line in my Makefile to build two pieces of code: schema: prov.dia /home/bennett/work/sqlgen/sqlgen -d -f prov.dia \ -o schema -m methods-dynamic.pl The "prov.dia" file is the dia diagram. The "schema" file is the file generated to create the tables. The "methods-dynamic.pl" file is a set of perl routines to check referential integrity and do adds in MySQL (which doesn't support foreign keys). It's unlikely that I will ever get back to this project, so if someone is willing, feel free to "make it go". I believe Alfredo would agree. The only things changed (that I remember) were adding an "E-R" object and sheet, the rest of the source should be the same old Dia. Good luck. -Erik Erik Bennett[EMAIL PROTECTED] I've got some rudimentary stuff put together. Actually it's based on work done by Alfredo Kengi Kojima [EMAIL PROTECTED]. It has some site specific stuff in it (an implementation of foreign keys for MySQL), but it does work. I'm no longer working on the code, but I do successfully use the code. Let me know if anyone wants it. I don't think Alfredo will mind, but I'll let him comment if he's still on this list. -Erik Erik Bennett[EMAIL PROTECTED] Clifford Meece [EMAIL PROTECTED] writes: Hi, I'm brand new to Dia, so please let me know if I'm treading on ground already covered. I would like to contribute to the dia project by adding data modeling support with an 'export to SQL' option. I may even build in the ability to go straight to the SQL server to create tables. Initially I would like to support MySQL, but eventually add support for other RDBS later. My initial thoughts were to take the existing code for UML support and modify it for an SQL library. Also, I can offer some website space for the Dia project if it is needed. Other areas that I would like to contribute are: 1. Automatic export from an SQL database of network infrastructure data to a Dia network Diagram. This will tie in to an existing project that I am working on. I'm actually working on something like this. The first goal is to make it possible to place table description from databases as objects in Dia. It's MySql I'm working with and the idea is that dia will get the table description from the database in real time. The information to connect to the database will be saved in the file (if desired), enabling Dia to update the table descriptions on loading of the file. I haven't come that far, but I'm pretty confident that something will come out of it. (I made it my assignment in a GUI-programming course. There's no deadline though...) I'm interrested in cooperating with others of course. Other ideas are automatic placement of connectors between primary and foreign keys, editing and creation of tables and use of GNOME-DB to connect to other databases than MySql. -- - MÃ¥rten mail: [EMAIL PROTECTED]*** ICQ: 4356928 mobile: +46 (0)707390385 *** phone: +46 (0)8 16 62 29 -Erik Erik Bennett[EMAIL PROTECTED] -Erik Erik Bennett[EMAIL PROTECTED]
Multiple text fields in a shape?
My officemate suggested allowing multiple object fields in a shape, using TAB to cycle between them. Some objects with multiple pieces of text could also use that. I think it sounds like a good idea, but it'll need some infrastructure (certainly not for the upcoming release). Any problems with this? -Lars -- Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | Hrdgrim of Numenor "I do not agree with a word that you say, but I| Retainer of Sir Kegg will defend to the death your right to say it."| of Westfield --Evelyn Beatrice Hall paraphrasing Voltaire | Chaos Berserker of Khorne
Re: Multiple text fields in a shape?
On jeudi, mars 22, 2001, at 08:25 , Lars Clausen wrote: My officemate suggested allowing multiple object fields in a shape, using TAB to cycle between them. Some objects with multiple pieces of text could also use that. I think it sounds like a good idea, but it'll need some infrastructure (certainly not for the upcoming release). Any problems with this? The same way, I have thought of multiple shapes for an object. For example you could have a "computer" object and a choice of different shapes for different models. Since they are supposed to have the same diagram properties it seems to be logical. Hub
Re: Compiling from CVS source
Ben A. Hetland asked: Are there other required packages? James Henstridge replied: gdk-pixbuf. This information should be added to the INSTALL file. I was having the same problem as Ben. I checked gdk-pixbuf out of the same CVS repository as dia, and installed it. I also had to link /usr/local/share/aclocal/gdk-pixbuf.m4 to /usr/share/aclocal/gdk-pixbuf.m4 as otherwise it was not being found. After that I was able to compile and run no problem. -- ^.-.^ Mark Purtill [EMAIL PROTECTED](425)354-6471 ((")) Software Revolution, 3330 Monte Villa Pkwy #100 Bothel WA 98021
Re: Multiple text fields in a shape?
On Thu, 22 Mar 2001, Hubert Figuiere wrote: On jeudi, mars 22, 2001, at 08:25 , Lars Clausen wrote: My officemate suggested allowing multiple object fields in a shape, using TAB to cycle between them. Some objects with multiple pieces of text could also use that. I think it sounds like a good idea, but it'll need some infrastructure (certainly not for the upcoming release). Any problems with this? The same way, I have thought of multiple shapes for an object. For example you could have a "computer" object and a choice of different shapes for different models. Since they are supposed to have the same diagram properties it seems to be logical. Well, these fields (text fields was what I meant) would all be visible at the same time. He's doing lambda diagrams, where he'd want to do something like _ / \ B-A \ \ / \ / \ / \ A-B Both of these text fields should be a normal text object (the Lambda should be a read-only text object, but we can't get the Symbol font to print correctly) that can be edited seperately. Since we're not using the TAB key for anything, I think this would be useful. Also useful for things like UML Small Package or Component that contains several text fields already, but where you have to open Properties to edit them. Problem is that the object would require to get the keypresses, or somehow tell the system about the multiple text fields. -Lars -- Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause) | Hrdgrim of Numenor "I do not agree with a word that you say, but I| Retainer of Sir Kegg will defend to the death your right to say it."| of Westfield --Evelyn Beatrice Hall paraphrasing Voltaire | Chaos Berserker of Khorne
RE: Multiple text fields in a shape?
Lars Clausen on Friday, 23 March 2001 8:37 wrote On Thu, 22 Mar 2001, Hubert Figuiere wrote: On jeudi, mars 22, 2001, at 08:25 , Lars Clausen wrote: My officemate suggested allowing multiple object fields in a shape, using TAB to cycle between them. Some objects with multiple pieces of text could also use that. I think it sounds like a good idea, but it'll need some infrastructure (certainly not for the upcoming release). Any problems with this? Snip Both of these text fields should be a normal text object (the Lambda should be a read-only text object, but we can't get the Symbol font to print correctly) that can be edited seperately. Since we're not using the TAB key for anything, I think this would be useful. Also useful for things like UML Small Package or Component that contains several text fields already, but where you have to open Properties to edit them. Also very useful for circuit diagrams, or system diagrams with multiple pieces of text per object (Is this what you mean?). What do you envisage happening when one object is moved? Does the whole object move, or can you move the 'main' object with the others following, but moving 'sub' objects moves them relative to the main object? I like the later, because of the circuit diagram drawing. One wishes to move the symbol (e.g. resistor) and have the text objects follow, but one may reposition the text objects around the symbol with out the symbol moving. This is especially useful when rotating the objects. Another point - do you envisage being able to rotate the objects separately? It would be useful! Thanks for your time. Rob. _--_|\ Robert Young, Electronic Engineer / DSTO \Surveillance Systems Division \_.--._/Defence Science Technology Organisation v