Re: [adg-devel] Suggestion and Question
A canvas library for generating technical drawings
Status: Beta
Brought to you by:
ntd
From: Nicola F. <nt...@en...> - 2010-01-20 20:09:27
|
Il giorno Wed, 20 Jan 2010 14:00:15 -0300 Matias De la Puente <mfp...@gm...> ha scritto: > Hello, > > First of all, great tool! Hi Matias, thanks for the encouragement. > And also, I want to make a suggestion and also a question about adg. > > The suggestion: > > I see that this library is developed in C using an object-oriented > approach (through GObject), and the applications based on it are > expected to be developed using higher-level languages. > > I don't know if you know about Vala [0], it's a high programming > language that convert a C#-like syntax into C language using GObject > as an object model. I think that language fit to your library. I > invite you to read more in [0]. > > Also it's easy to add bindings to that language ;) . Yes, I'm well aware of vala since its beginning (a couple of years ago, if I remember correctly). The most important thing I'm actually missing (for my purposes, I do not expect everyone shares my needs) is a way to quickly: 0. define a model 1. customize the rendering 2. check the result 3. go to 0 In other words, I'm missing adg bindings for an interpreted language. The last time I checked valac was generating C, hence it was not a suitable choice. I'm certainly not saying I'm not planning to develop or accept vala bindings: one of the first design decision was to use GObject exactly to have a great platform for bindings. Only I had to choose what was more urgent. Also, I'm not an expert in 20 different languages, so I prefer to leave the binding job opened to contribution from anyone better skilled than me on a particular language. I'm just trying to quickly reach the beta release (adg-0.7.0) to have a stable API. > The question I have is, it's posible to use adg to draw another type > of technical draw like electronic or electric schematics? Yes, you can think to the adg as a (programmable) CAD system without user interface, so you can theorically do whatever you can do with a CAD. Personally, I'd subclass the AdgAlignment class to provide a base class for symbols, defining the common stuff such as name, value, note... metadata in general, and build your own library of blocks (AutoCAD™ term) for electrical drawings. This is anyway a job outside the scope of adg itsself, but where the adg canvas can be used as base camp, similarly to what GTK+ is in reference to custom widget libraries based on it. Ciao. -- Nicola |