- El Pensadero de Canek - https://aztlan.fciencias.unam.mx/~canek/pensadero -

Glade

Teniendo la funcionalidad mínima del canvas que necesito, y un prototipo funcionando, me puse a hacer la interfaz del programa de geometría. No me termina de quedar claro exactamente cómo la quiero, pero una primera idea es esto (que ya está funcionando):

Interfaz de Geom [1]

Interface de Geom

Tampoco es permanente el nombre de “Geom”; pero la verdad me está gustando.

La idea hasta ahora es simple: si se selecciona la “herramienta” de puntos, uno puede poner puntos a lo bestia. Si se selecciona la de recta (por ejemplo), una de dos: o están seleccionados dos puntos (y automáticamente se crea la recta), o el usuario pone el punto o puntos necesarios para que se cree. Etc.

La flecha es para seleccionar puntos libres y moverlos. Por ahora ni me cruza por la cabeza el mover construcciones no libres… y tampoco me queda 100% claro qué sea libre.

La interfaz la hice en Glade3, que nunca había usado (sólo había usado Glade2). Está bien bonito; y quitaron la generación de código automática, lo que me forzó a utilizar libglade. Pero jaló de pelos, si bien el programa para hacer las interfaces tiene sus problemas… por decir lo menos: tuve que editar varias veces el archivo XML a pie. Pero no me quejo; me está gustando cómo va quedando esto.

Falta mucho; pero hay progreso.

3 Comments (Open | Close)

3 Comments To "Glade"

#1 Comment By Abel Cheung On enero 6, 2007 @ 10:32 AM

Sorry to write in English, since I don’t know any Spanish.

While I agree it’s tons of fun to write software from scratch and learn in the process, it’s quite sad to see everybody end up rewriting everything and can’t go too far, instead of improving existing projects.

If it’s really very desirable to write geometry education application from start, perhaps it is a good idea to have some similar work available as reference, borrowing its idea and/or code.

In this case, you can take a look at [2] which is available for quite some time, though its author recently announced he can’t maintain it anymore due to lack of time.

#2 Pingback By 狗爺語錄 » 2007-01-07 Random stuff On enero 6, 2007 @ 2:35 PM

[…] Not sure why, I am tempted to skim through Planet Gnome. Great for trivial gamers like me: somebody want to write a real mahjong game and geometry education tool, which is indeed a good thing; but seems most developers neglected a serious problem: why everybody end up rewriting software from scratch? Why not improve based on old ones? That’s why we have a swamp of half-done software which is insufficient for wide-spread use, yet not many have the momentum to be full-featured ones because of lack of interest and/or lack of human power. […]

#3 Comment By Canek On enero 7, 2007 @ 1:54 AM

Don’t worry about the English Abel.

Actually, I’m familiar with DrGeo. In [3] ( [4]), I mentioned it, although I don’t quite explain why I’m starting from scratch.

First of all, DrGeo doesn’t uses a modern canvas: I’m using [5], and in the way helping (or trying to) Sven to work out any problems with it. And, really, this program is basically the interface. All the geometric behind has been resolved, like two hundred years ago or more.

Second, hell yeah, it’s more fun.

I know a lot of people thinks this is the major problem with Open Source; the lack of coordinated effort. I disagree: I think is great we have both GNOME and KDE, and PiTiVi and Diva, and XEmacs and Vi.

If someone wants to take over DrGeo, the code es GPL. So will be mine; we can actually shared code. Maybe we will; I don’t know.

But I’m aware of DrGeo, of course.