Sunday, September 19, 2010

gnocl::abiwidget signal bindings

After eating a great dinner cooked by my wife and watching tonight's episode of X-Factor, I came back to my machine and completed the first batch of signal bindings. These simply return boolean values - ideal for setting against variables to control button toggle  (i.e.. text formatting) or activation (i.e. undo/redo).

-onBold
-onItalic
-onUnderline
-onOverline
-onTopline
-onBottomline
-onSuperscript
-onSubscript
-onCanUndo
-onCanRedo
-onIsDirty
-onLeftAlign
-onCenterAlign
-onRightAlign
-onJustifyAlign
-onTextSelected
-onImageSelected
-onSelectionCleared
-onEnterSelection
-onLeaveSelection
-onTableState


The percentage substitution strings for these items current have two items %w (widget name) and %v value 0 or 1. It's probably an academic exercise only, but I think that I will add a further item. %t for signal/event type. But, that will have to wait till the morning.

The code is available from the SourceForge nightly build.

No comments: