Wednesday, May 12, 2010

More Calendar Stuff

Got most of the calendar functionality running now. The last remaining task is to finalize the ability to display details. I’ve managed to get hold of some C test applications which show how the job is done with hash tables. From the Gnocl perspective, I think that the management of the actual details should be handled on the Tcl side. After completing the code, I’ll put a demo script together to show how it all works in practice.




Monday, May 10, 2010

Gnocl::calendar updates...

Spent most of this evening expanding the gnocl::calendar functionality. Got most of it working now and only need to sort out a couple of sub-commands and the cget function. -Oh, completed most of the documentation too!



Saturday, May 08, 2010

Plodding on....

More time today on pagesetup. Resolved some issues over the implementation of the cget and configure sub-commands.

Also took a look at the possibility of using git to manage versions. As there’s only me actively working on any module source code, it seems like a fruitless exercise.


PrintSetup, progress continues....

Did more work yesterday on the printsetup module. This has taken me more time than I expected for a couple of reasons. Firstly, the documentation surrounding the printing features is a little spartan. It needs time to sit and reflect upon what’s going on rather than having a simple ‘how-to’ set of instructions. I have a copy of Krause who does give a worked example, but it appears to me that the chapter on printing was not given the attention of other sections of his textbook. Secondly, for a number of reasons I’ve had little restorative sleep over the past few days and looking at the source code was a bit like trying to read sand! Yesterday was a better day, completed the conversion to using a param structure for the object registration. So far, so good.


In operation this should allow two ways of setting up a printer, explicitly through the script or interactively through the a dialog.


Something which did occur to me as a result of working on this was returning to the builder module in the future in order to see how it would be possible to convert a Glade defined widget such as a GtkEntry into a gnocl::entry. It would, be simply a matter of retaining the Gnocl name of the widget and redirecting the GtkEntry pointer in the instance of the EntryParams structure to point to the builder generated entry. Could be a pile of spaghetti, but should be interesting.



Wednesday, May 05, 2010

More on PageSetup and New Packages

Added a few extra lines of code to the gnocl::pageSetup module today. As I was doing this I noticed something that I was doing for the first time – writing an implementation of the cget sub-command from scratch. Things are going well but I need to decide how to handle the -units option. This doesn’t correspond to any gtk property for this object. I guess that I might need to re-write the code to enable a ‘ params’ structure for the object. Just as well that there aren’t thousands of lines of code!


This morning I also created the bare bones for a new gnome application, Yelp. The Gnome help viewer.




Tuesday, May 04, 2010

Progress with Windows Gnocl....

After spending the bank holiday weekend at my daughter's house in the cold and wind doing a whole pile of DIY (building a wall and painting) it's sure is nice to sit down oncemore in front of a whining, warm workstation. 

The momentum is gathering now to get a release of Gnocl 0.9.95 running on windows. The modification of the makefiles and testing is being undertaken by Luis Alejandro Muzzachiodi and so far so good. 

I’m now in the process of replicating his build on my old banger of a WindowsXP driven laptop. I’ve also downloaded the Gtk theme selector app from Sourceforge and, I must say, Gnocl can now look very windows like. The fileselector dialogs are not native but it wouldn’t be too difficult (I guess) to add support for native dialogs. I’ll post some comparative screenshots soon.

Finally, I did a little more on the printer support libraries. Worked on the gnocl::pageSetup command. I think is pretty obvious from the name what this widget will do!



Sunday, May 02, 2010

Printing Services and gnocl::winfo

There's been some basic code including within gnocl for some time now that shows how the printing of ascii files can be done. The code is basic and does really allow for any settings configuration from the script side of things. It was ok for listings. This weekend I've taken a look at the GtkPrint API and have begun to add more functionality and power to what Gnocl print services has to offer. Its an interesting exercise really as the library calls still expect quite a bit to be completed by the application source prior to issuing the actual print job. This includes rendering pages.

Again, working on different pieces of code sheds light onto other areas of the project that need some attention. One of these was documenting the gnocl:winfo command.

json_shell_utils.tcl