[texworks] SCRIPT Prototype: A work in progress - LaTeX xcolor colour names dialogue
Paul A Norman
paul.a.norman at gmail.com
Thu May 27 12:20:16 CEST 2010
( I promised Jonathan if we had dialogues -- I'd be aiming to do a
colour dialogue!)
Here I have attached a prototype of a colour dialogue using the x11
colours (at the moment appears to combine Base Colours, svgnames and
x11names, needs some sorting out. It is based on rgb.txt by the X11
consortium 1994 I think.
There is no .ui - it is all handled internally in the .js
There is much to be done on it - it shows though where I am wanting to take it.
If a colour is hovered over, the mouse toolTip shows the official Colour name.
But when the user selects a colour square (clicks in it), presently I
appear to have no way to obtain the chosen value when they ok the
dialogue -- it is not a property, and although I have obtained a
reference to the the widget in script, I can not presently execute a
function call of the widget, to get the tableItem and so the toolTip()
value selected.
Qt is not using as many properties as I expected.
Many values of useful things have to be returned by a function call.
However I have no slot to work with, or enabling to call .ui widget's
own Qt functions as yet from script.
Dialogues are looking very very promising though, thanks guys!!!
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: colourX11_rgb-txt.zip
Type: application/zip
Size: 6380 bytes
Desc: not available
URL: <http://tug.org/pipermail/texworks/attachments/20100527/735127ce/attachment.zip>
More information about the texworks
mailing list