Got most of the functionality for the iconview in place and now its time to cut back some of the unecessary controls to provide a dedicated widget. The framework does allow for much, much more that a simple listing of icons. But, anyone who need such extra controls should use the list widget itself. I'll take another look at it tomorrow, and it should be complete by then.
Monday, January 31, 2011
Sunday, January 30, 2011
gnocl::iconView
Uploaded some user docs to the website. The package is now beginning to take shape but I'm still not fully certain about what's going on and where. On selection, for instance, I want to return some form of ID for the item selected but I've not yet been successful. As far as I can see, the IconView object is derived from the same classes as the TreeView and List object and so perhaps I'll find some answers there.
Friday, January 28, 2011
gnocl::iconView - more work
The past few days has seen little posted to the blog but that doesn't mean that the Gnocl wheel has not been turning! Earlier this week I posted an article to tutorials page at gnocl.org to show how easy it is to set up and C-coded packages for Tcl. There are some useful materials in the Tcler's wiki but I wanted something much more. Most of the inconvenience is continuously creating the basic skeleton and makefiles etc. I created some boiler plates for new packages and all of the naming, versioning and so on are managed through the Makefile.
Today I turned my attention back to the gnocl::iconView widget. This object will now happily accept new images and add them to the display.
Here's the test script.
#---------------
# Author: William J Giddings
# Date: 28/01/11
#---------------
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
#---------------
package require Gnocl
#-icons [list wjg.png gnocl.png wjg.png gnocl.png wjg.png gnocl.png] \
if { 0 } {
set iv [gnocl::iconView \
-columnSpacing 20 \
-margin 5 \
-spacing 15 \
-columns 4 \
-rowSpacing 20 \
-pixbufColumn 0 \
-textColumn 1 \
]
}
set iv [gnocl::iconView]
$iv add "%/./georgie.png" -label Georgie
$iv add "%/./wjg.png" -label WiGi
$iv add "%/./gnocl.png" -label NEW
$iv add "%/./wjg.png" -label WiGi
gnocl::window \
-child $iv \
-title gnocl::iconView \
-widthRequest 200 \
-heightRequest 200
gnocl::mainLoop
Can't really say that I've found these two tasks fulfilling. It meant going over some old code the errors within which I had long since forgotten and had to resolve these before being able to move forward.
Today I turned my attention back to the gnocl::iconView widget. This object will now happily accept new images and add them to the display.
Here's the test script.
#---------------
# Author: William J Giddings
# Date: 28/01/11
#---------------
#!/bin/sh
# the next line restarts using tclsh \
exec tclsh "$0" "$@"
#---------------
package require Gnocl
#-icons [list wjg.png gnocl.png wjg.png gnocl.png wjg.png gnocl.png] \
if { 0 } {
set iv [gnocl::iconView \
-columnSpacing 20 \
-margin 5 \
-spacing 15 \
-columns 4 \
-rowSpacing 20 \
-pixbufColumn 0 \
-textColumn 1 \
]
}
set iv [gnocl::iconView]
$iv add "%/./georgie.png" -label Georgie
$iv add "%/./wjg.png" -label WiGi
$iv add "%/./gnocl.png" -label NEW
$iv add "%/./wjg.png" -label WiGi
gnocl::window \
-child $iv \
-title gnocl::iconView \
-widthRequest 200 \
-heightRequest 200
gnocl::mainLoop
Can't really say that I've found these two tasks fulfilling. It meant going over some old code the errors within which I had long since forgotten and had to resolve these before being able to move forward.
Thursday, January 13, 2011
window jitter command -done
Added a jitter subcommand for gnocl::windows.
Here's the docs entry:
Here's the docs entry:
- id jitter integer
- 'Jitter' or horizontally shake the window for number of times specified by integer (default = 20).
Wednesday, January 12, 2011
Toplevel window jittering...
The Tcler's wiki has a brief but interesting post on toplevel jittering, (http://wiki.tcl.tk/14457). Anyone who enters a wrong name or password whilst logging onto their Linux box will know exactly what this means. Should be an interesting little addition -used by no-one most likely but interesting.
gnocl::print more options added
Now completed the options for the following parameters:
-useColor, -collate, -duplex, -quality, -copies, -numberUp, -resolution and -xyRes
With a bit of luck, might get this section completed before the end of the evening.
Ah.... second hack....
-printerLpi, -scale, -pageRanges, -defaultSource, -media, -dither, -finishings, -outputBin
Some the values to be passed to these options baffle me at the moment as they should be meaningful values and there's no clear guidelines in the docs. Not to worry, the details will come in the fullness of time and then I can then add some error checking.
-useColor, -collate, -duplex, -quality, -copies, -numberUp, -resolution and -xyRes
With a bit of luck, might get this section completed before the end of the evening.
Ah.... second hack....
-printerLpi, -scale, -pageRanges, -defaultSource, -media, -dither, -finishings, -outputBin
Some the values to be passed to these options baffle me at the moment as they should be meaningful values and there's no clear guidelines in the docs. Not to worry, the details will come in the fullness of time and then I can then add some error checking.
gnocl::print more options added
Now completed the options for the following parameters:
-useColor, -collate, -duplex, -quality, -copies, -numberUp, -resolution and -xyRes
With a bit of luck, might get this section completed before the end of the evening.
-useColor, -collate, -duplex, -quality, -copies, -numberUp, -resolution and -xyRes
With a bit of luck, might get this section completed before the end of the evening.
Subscribe to:
Posts (Atom)
-
Given this module some attention today. Added some of the more package wide options to the module and created customised handler for settin...
-
Over the past few programming sessions I've been working on producing a central point, a dashboard, around which it's possible to se...
-
Spent some time today creating some simple howto-tutorials on creating standalone Tcl/Gnocl applications using freewrap. The process is almo...