GSOC Report #6: GUI + API

{"date": "Mon 06 August 2012",

"category": "GSoC2012",
"tags": ["", "gsoc2012"]}

Flattr this

Another report for the last 2 weeks.

The most of the work has been the Graphic User Interface.

So far it's possible to create nodes, zones, devices and radios in the remote host ( in this case) from the application.

You will also have the chance to create it locally, that is, modifying your own CNML file and keeping the changes without pushing them to the server but this is not working at the moment.

The dialogs to create new entities will inform you about the success or failure of the operation with message dialogs. I think they are quite intuitive

I have beautified the dialogs a lot. Some examples here:

Dialog create device Dialog create device 2

Dialog create node Dialog create node 2

Dialog create zone Dialog create zone 2

I'm trying a new widget that allows the enduser picking up a zone from all of them without having to use the huge combobox. It's a GtkEntry widget that uses autocompletion and so, you get suggestions as you type. You can see it in the "create zone" dialog.

Configuration Manager

Now there's a cache directory where CNML files are saved. My initial idea is that you can download the CNML file for the zone/node you want through a dialog window. Then you can change between those that you have downloaded previously and so, you can visualize different zones without having to load the whole World. It's almost working although I'm not sure if it will be really useful... we will see :D

dialog cnml


The Preferences dialog works now and the changes you make get saved to the config file when you close the dialog window. I have also added new settings to be saved like zone_type, token and token_date, host... Now you can also define which is your default zone and the application will autoload it when it's launched. API

I have added more methods to the API and more examples-snippets:,,,,,,,

They are easy to read and understand and so, the community could start now creating useful scripts to maintain their nodes/zones :)

Code structure

The code of Guifi·net Studio was becoming Spaghetti code and I did a lot of refactoring. For example I separated the main .ui file with all the glade interfaces into different files (each one is one dialog) and now there's a class for each dialog.

I have not pushed these last changes because I don't know how the heck can I configure git to push the changes through a SOCKS proxy server. I have read different solutions but none of those worked to me :-(. I hope to be able to push them this evening.


Comments !