Thursday, July 29, 2010

gnocl::noteBook

This module has received little attention over the past few years so today I added a few more options.

            -groupId
            -tabBorder
            -tabHBorder
            -tabVBorder
            -onCreateWindow


Its still early days but the above allows two or more notebook widgets sharing the dame groupId to share pages. These can be just dragged and dropped. The default setting is now changed to enable tab re-arranging.

There are a few more signals to implement as well as a number of page options.

Tuesday, July 27, 2010

Colour Conversion Command

The whole situation around defining colours in Gtk+ is confusing. There are so many different ways including names, hex, int and decimal depending on what package is being worked with! I need to come up with a utility command to do these conversions....

gnocl::colour <in> -outFormat opt

The command needs to smart enough to know what the input format is...

Perhaps a cluster of commands or sub commands?

Monday, July 26, 2010

gnocl::text added drag and drop...

Some new, much needed functionality.  Need to evaluate its impact on the undo/redo module.
            -dropTargets
            -dragTargets
            -onDropData
            -onDragData

gnocl::sound

I've created a documentation page for the gnocl::sound command and added it to both the local and gnocl.org repositories. The -onFinished command that I've added is still puzzling me. If the sample comes is played fully then the signal is not fired, if it is cancelled then it does! There's probably something simple about this that I haven't seen yet.

just added the test script to the demos and run them. Oddly, the -onFinished works perfectly here but not when run standalone! Now, I'm even more confused.

Wednesday, July 21, 2010

gnocl::splashScreen

Spent a few hours too many working on this one over the two days. I basically re-wrote about 20% of the code to make it run more smoothly. I originally thought of it being like an ordinary widget but allowing the various text items to be configured and positioned on screen make it behave more like a cut-down version of a canvas. Probably an overkill, but, there you go! There's just a little more work to do on managing a 'blank screen' and rendering off-screen and then its pretty well finished.

gnocl::text new tag sub-command

Work on my gnome/gnocl implementation of my thesaurus is going well. I've now created an entry editor. Here's the screen shot.



I'm using MetaKit to manage the data so the field names are obtained directed from the database view. The blue band with the term 'number category' is a new gnocl megawigdet which I've built specifically to act as a heading (its basically a label in an enventBox).

The idea is to allow entries to be edited as needed. So, to call the editor is a simple matter of clicking on the category heading that appears after a search has been produced. This smoke and mirror stuff is all handled through text tags. This is where the new tag subcommand comes in useful. Each category has a unique tag derived from the database row number. As I don't want to use globals or namespaces to track the search results we can do the job easily through significating tag names. After a new search the tags used will change so we want to purge the tagtable. Hitherto it was possible to do this explictly using tag delete but, of course there are simpler ways to do this (this is TCL after all). Hence the tag subCommand 'clear' will zap all tags.

New Icon Management Package - gnocl::iconTheme

gnocl::iconTheme
gnocl::iconTheme default
gnocl::iconTheme screen screen-id

iconTheme-id set screen screen-id
iconTheme-id set custom string

iconTheme-id searchpath append path
iconTheme-id searchpath prepend path
iconTheme-id searchpath set path
iconTheme-id icon exists string
iconTheme-id icon info string
iconTheme-id icon choose string
iconTheme-id icon load string
iconTheme-id icon list
iconTheme-id icon sizes string
iconTheme-id icon example
iconTheme-id icon add int pixbuf-id
iconTheme-id icon free string
iconTheme-id icon new pixbuf-id
iconTheme-id icon basesize icon-id
iconTheme-id icon filename string
iconTheme-id icon rectangle string
iconTheme-id icon displayname string

iconTheme-id contexts
iconTheme-id rescan

json_shell_utils.tcl