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

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 comentarios sobre “Glade

  1. 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 Dr. Geo which is available for quite some time, though its author recently announced he can’t maintain it anymore due to lack of time.

  2. Don’t worry about the English Abel.

    Actually, I’m familiar with DrGeo. In this entry (same entry in English), 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 CCC, 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.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *