[tekui-devel] tekui: Display, Visual: Removed numerical pens, all pens are sym...

Timm S. Mueller tmueller at neoscientists.org
Tue Jan 5 01:57:18 CET 2010


details:   http://hg.teklib.org/tekui/rev/832b0fe3a10a
changeset: 124:832b0fe3a10a
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Mon Jan 04 10:45:29 2010 +0100
description:
Display, Visual: Removed numerical pens, all pens are symbolic now, Display:
removed RGBTab and FontTab; added ui.support library with functions operating
on flag fields; added Fixed layouter; added Dynamic, Fixed and LayoutHook and
improved some demos; Element:addStyleClass() added, Properties attribute
added, removed getProperty() and getProperties(), style sheet properties,
direct formattings and hardcoded class properties are now decoded into a
metatable graph; Application: added Style and Preload attributes, removed
Theme attribute, renamed Styles to AuthorStyles, added AutorStyleSheets;
Drawable:getAttrs() split into getWH() and getXY(); PopItem: Now also elements
descending from CheckMark collapse in popups, no longer uses a
"popup-children" style class if an element has children, instead a style class
"popup-child" is appended to all children during connectPopItem(); CheckMark:
in setState(), precedence of the "Hilite" attribute over "Selected" is now
also considered for the foreground color; MenuItem: a predefined class
"menuitem" is now appended to the element's style classes during init(); Style
sheets: use of menu colors corrected, removed "internal" style sheet, added
the respective properties in the "default" style sheet, 'parent-group' pseudo
pen renamed to 'transparent', 'background-position' renamed to
'background-attachment'; ui.loadStyleSheet() can now operate on open
filehandles; RadioImage now paints a back pane; ImageGadget: did not implement
vertical and right alignments, corrected; Visual API: Window
MaxWidth/MaxHeight wasn't unset when passing 'false', corrected; Area: removed
relayout() function, rethinkLayout() now has an additional updateminmax
argument, added drawBegin() and drawEnd() functions, removed refresh(), layout
logic improved for growing elements, added Flag attribute, removed Redraw
attribute, removed BGColor, BGPosition, Margin, Padding, getProperties(),
FL_CHANGED is now set in rethinkLayout(), added getPadding(), renamed
MarginAndBorder to Margin, renamed former 'grid-align' properties to 'halign'
and 'valign'; FloatText: layout() took an existing Redraw into account,
removed; Frame: phased out an additional newBorderObject() function, removed
RedrawBorder attribute, removed Border and BorderClass attributes, these are
created on the fly during border creation and isolated in the border object;
Group: the Layout argument can now be a class name, not just a layouter
instance, calcWeights() is now called when a changed layout is notified,
addMember()/remMember() are more solid now, removed getStructure(),
getSameSize() and calcWeights(), these are now isolated in the default
layouter, removed onActivateGroup(), groups are no longer repainted
completely, but only when a fixed background-attachment is indicated; Handle:
now calls rethinkLayout() as it is supposed to, Orientation is now determined
during setup(); ListGadget: Removed BGAlt, CursorBorder, CursorBorderClass
attributes; PageGroup: simplified, now accepts a custom Layout; ScrollBar,
Slider: updateSlider() is no longer a local function and forwards the call to
its super class; ScrollGroup: internal sliders are handled more efficiently
now, causing a notification in their parent class now only when really needed;
Slider, Gauge: MaxWidth, Width, MaxHeight and Height are now determined during
setup(); Spacer: Orientation is now determined during setup(); Text: Removed
FGDisabled2, Font, TextHAlign, TextVAlign attributes; TextInput: Removed
FGCursor and BGCursor attributes; Window:relayout() changed and no longer
descends from Area but is now rooted in the Window class, calcWeights() is now
under the control of the Group class; UI: freeRegion() and testFlags()
removed, added element flags FL_REDRAW, FL_REDRAWBORDER, FL_LAYOUT etc.,
simplified and renamed prepareStyleSheet() to unpackStyleSheet(), added
unpackProperty() for direct formattings, loadStyleSheet() now unpacks
properties and merges pseudo class attributes on the fly, removed NULLOFFS,
new ui.ThemeName is "default desktop"; Layout base class added; Default
layouter: Now uses the Layout base class in an upvalue to new(), added version
string, handles weights internally when a change of a group's contents or
weights is indicated using the FL_CHANGED flag, bugs in the SameSize
calculation corrected, removed the "auto" state for Width and Height, the
logic is now more concise and faster; Renamed 'check' and 'radio' images to
'checkmark' and 'radiobutton', respectively; Region:trans() renamed to
shift(), isNull() to isEmpty(); Makefiles updated to install new classes,
args.lua, fixed layouter, new style sheets; Markup: Tables produced erroneous
HTML - now pop the current block from the stack; Documentation generator:
added macro support, added child class macro, tables did not break out of the
current block, corrected; improved documentation generator, documentation,
stylesheet, README

diffstat:

 CHANGES                                        |    94 +-
 COPYRIGHT                                      |     2 +-
 README                                         |   290 +-
 VERSION                                        |     2 +-
 bin/canvas.lua                                 |    58 +-
 bin/compiler.lua                               |   129 +-
 bin/demo.lua                                   |    32 +-
 bin/demo_alignment.lua                         |    47 +-
 bin/demo_animations.lua                        |    19 +-
 bin/demo_borders.lua                           |    86 +-
 bin/demo_buttons.lua                           |    17 +-
 bin/demo_custom.lua                            |    12 +-
 bin/demo_graphics.lua                          |     1 -
 bin/demo_layout.lua                            |    27 +-
 bin/demo_popups.lua                            |    28 +-
 bin/demo_slider.lua                            |     6 +-
 bin/dynamic.lua                                |   160 +
 bin/filereq.lua                                |    25 +-
 bin/fixed.lua                                  |   100 +
 bin/gendoc.lua                                 |    63 +-
 bin/gridalign.lua                              |   289 ++
 bin/imagetest.lua                              |     4 +-
 bin/layouthook.lua                             |   112 +
 bin/meter.lua                                  |    16 +-
 bin/tek/ui/class/boing.lua                     |    63 +-
 bin/tek/ui/class/meter.lua                     |    61 +-
 bin/tek/ui/class/plasma.lua                    |    70 +-
 bin/tek/ui/class/tunnel.lua                    |    69 +-
 bin/tsp.lua                                    |   459 +++
 bin/tutorial-1.lua                             |     2 +-
 bin/tutorial-2.lua                             |     2 +-
 bin/tutorial-3.lua                             |     5 +-
 bin/tutorial-4.lua                             |     6 +-
 bin/tutorial-5.lua                             |    12 +-
 bin/tutorial-6.lua                             |    12 +-
 bin/vgroup.lua                                 |    34 +-
 doc/changes.html                               |   182 +-
 doc/copyright.html                             |     2 +-
 doc/index.html                                 |   355 +-
 doc/manual.css                                 |    57 +-
 doc/manual.html                                |  3698 ++++++++++++++---------------
 include/tek/lib/tekui.h                        |    18 +
 tek/class.lua                                  |     5 +
 tek/class/list.lua                             |     2 +
 tek/class/markup.lua                           |     6 +-
 tek/class/object.lua                           |     6 +
 tek/class/utf8string.lua                       |     2 +
 tek/lib/Makefile                               |     2 +-
 tek/lib/args.lua                               |    12 +
 tek/lib/debug.lua                              |    58 +-
 tek/lib/region.c                               |    10 +-
 tek/lib/visual_api.c                           |    63 +-
 tek/lib/visual_lua.h                           |     2 +-
 tek/ui.lua                                     |   465 +-
 tek/ui/Makefile                                |    24 +-
 tek/ui/border/default.lua                      |   177 +-
 tek/ui/class/application.lua                   |   157 +-
 tek/ui/class/area.lua                          |   485 ++-
 tek/ui/class/border.lua                        |     2 +-
 tek/ui/class/button.lua                        |    16 +-
 tek/ui/class/canvas.lua                        |   177 +-
 tek/ui/class/checkmark.lua                     |    48 +-
 tek/ui/class/dirlist.lua                       |    43 +-
 tek/ui/class/display.lua                       |    28 +-
 tek/ui/class/drawable.lua                      |    46 +-
 tek/ui/class/drawhook.lua                      |     2 +-
 tek/ui/class/element.lua                       |   264 +-
 tek/ui/class/family.lua                        |     2 +
 tek/ui/class/floattext.lua                     |    70 +-
 tek/ui/class/frame.lua                         |   129 +-
 tek/ui/class/gadget.lua                        |   139 +-
 tek/ui/class/gauge.lua                         |    82 +-
 tek/ui/class/group.lua                         |   216 +-
 tek/ui/class/handle.lua                        |    37 +-
 tek/ui/class/image.lua                         |     2 +-
 tek/ui/class/imagegadget.lua                   |    69 +-
 tek/ui/class/layout.lua                        |    48 +
 tek/ui/class/listgadget.lua                    |    89 +-
 tek/ui/class/listview.lua                      |    27 +-
 tek/ui/class/menuitem.lua                      |    24 +-
 tek/ui/class/numeric.lua                       |     4 +-
 tek/ui/class/pagegroup.lua                     |    84 +-
 tek/ui/class/popitem.lua                       |    92 +-
 tek/ui/class/poplist.lua                       |    35 +-
 tek/ui/class/popupwindow.lua                   |     7 +-
 tek/ui/class/radiobutton.lua                   |     9 +-
 tek/ui/class/scrollbar.lua                     |    34 +-
 tek/ui/class/scrollgroup.lua                   |    58 +-
 tek/ui/class/slider.lua                        |   134 +-
 tek/ui/class/spacer.lua                        |    21 +-
 tek/ui/class/text.lua                          |   148 +-
 tek/ui/class/textinput.lua                     |   107 +-
 tek/ui/class/theme.lua                         |   453 +---
 tek/ui/class/window.lua                        |   217 +-
 tek/ui/hook/ripple.lua                         |    36 +-
 tek/ui/image/arrowdown.lua                     |     3 +-
 tek/ui/image/arrowleft.lua                     |     3 +-
 tek/ui/image/arrowright.lua                    |     3 +-
 tek/ui/image/arrowup.lua                       |     3 +-
 tek/ui/image/check.lua                         |    48 -
 tek/ui/image/checkmark.lua                     |    57 +
 tek/ui/image/file.lua                          |     9 +-
 tek/ui/image/radio.lua                         |    42 -
 tek/ui/image/radiobutton.lua                   |    54 +
 tek/ui/layout/default.c                        |   322 +-
 tek/ui/layout/fixed.lua                        |    67 +
 tek/ui/locale/schulze-mueller.de/tekui-demo/de |    36 +-
 tek/ui/locale/schulze-mueller.de/tekui-demo/en |    30 +-
 tek/ui/style/dark.css                          |   116 +
 tek/ui/style/default.css                       |   346 ++
 tek/ui/style/industrial.css                    |     4 +-
 tek/ui/style/internal.css                      |   383 ---
 tek/ui/style/texture.css                       |    29 +-
 tek/ui/style/tutorial.css                      |    10 +-
 tek/ui/support.c                               |    91 +
 115 files changed, 7515 insertions(+), 5342 deletions(-)

diffs (truncated from 21509 to 100 lines):

diff -r 8fd71dfe7f9b -r 832b0fe3a10a CHANGES
--- a/CHANGES	Sun Sep 13 09:50:37 2009 +0200
+++ b/CHANGES	Mon Jan 04 10:45:29 2010 +0100
@@ -1,6 +1,97 @@
 
 == tekUI Changelog ==
 
+=== 0.8i: ===
+ 
+ * Display, Visual: Removed numerical pens, all pens are symbolic now, 
+ Display: removed RGBTab and FontTab
+ * added ui.support library with functions operating on flag fields
+ * added Fixed layouter
+ * added Dynamic, Fixed and LayoutHook and improved some demos
+ * Element:addStyleClass() added, Properties attribute added, removed
+ getProperty() and getProperties(), style sheet properties, direct formattings
+ and hardcoded class properties are now decoded into a metatable graph
+ * EditWindow: localizations added
+ * Application: added Style and Preload attributes, removed Theme attribute,
+ renamed Styles to AuthorStyles, added AutorStyleSheets
+ * Drawable:getAttrs() split into getWH() and getXY()
+ * PopItem: Now also elements descending from CheckMark collapse in popups,
+ no longer uses a "popup-children" style class if an element has children,
+ instead a style class "popup-child" is appended to all children during
+ connectPopItem()
+ * CheckMark: in setState(), precedence of the "Hilite" attribute over
+ "Selected" is now also considered for the foreground color
+ * MenuItem: a predefined class "menuitem" is now appended to the element's
+ style classes during init()
+ * Internal theme: use of menu colors corrected, removed "internal" style
+ sheet, added the respective properties in the "desktop" style sheet.
+ * style sheets: 'parent-group' pseudo pen renamed to 'transparent',
+ 'background-position' renamed to 'background-attachment'
+ * ui.loadStyleSheet() can now operate on open filehandles
+ * RadioImage now paints a back pane
+ * ImageGadget: did not implement vertical and right alignments, corrected
+ * Input: setting the cursor with the mouse now also updates the LockCursorX
+ attribute, visual cursor position reporting corrected
+ * Visual API: Window MaxWidth/MaxHeight wasn't unset when passing 'false',
+ corrected
+ * Area: removed relayout() function, rethinkLayout() now has an additional
+ updateminmax argument, added drawBegin() and drawEnd() functions, removed
+ refresh(), layout logic improved for growing elements, added Flag attribute,
+ removed Redraw attribute, removed BGColor, BGPosition, Margin, Padding,
+ getProperties(), FL_CHANGED is now set in rethinkLayout(), added getPadding(),
+ renamed MarginAndBorder to Margin, renamed former 'grid-align' properties to
+ 'halign' and 'valign'
+ * FloatText: layout() took an existing Redraw into account, removed
+ * Frame: phased out an additional newBorderObject() function, removed
+ RedrawBorder attribute, removed Border and BorderClass attributes, these are
+ created on the fly during border creation and isolated in the border object
+ * Group: the Layout argument can now be a class name, not just a layouter
+ instance, calcWeights() is now called when a changed layout is notified,
+ addMember()/remMember() are more solid now, removed getStructure(),
+ getSameSize() and calcWeights(), these are now isolated in the default
+ layouter, removed onActivateGroup(), groups are no longer repainted
+ completely, but only when a fixed background-attachment is indicated
+ * Handle: now calls rethinkLayout() as it is supposed to, Orientation is now
+ determined during setup()
+ * ListGadget: Removed BGAlt, CursorBorder, CursorBorderClass attributes
+ * PageGroup: simplified, now accepts a custom Layout
+ * ScrollBar, Slider: updateSlider() is no longer a local function and
+ forwards the call to its super class
+ * ScrollGroup: internal sliders are handled more efficiently now, causing a
+ notification in their parent class now only when really needed
+ * Slider, Gauge: MaxWidth, Width, MaxHeight and Height are now determined
+ during setup()
+ * Spacer: Orientation is now determined during setup()
+ * Text: Removed FGDisabled2, Font, TextHAlign, TextVAlign attributes
+ * TextInput: Removed FGCursor and BGCursor attributes
+ * Window:relayout() changed and no longer descends from Area but is now
+ rooted in the Window class, calcWeights() is now under the control of the
+ Group class
+ * UI: freeRegion() and testFlags() removed, added element flags FL_REDRAW,
+ FL_REDRAWBORDER, FL_LAYOUT etc., simplified and renamed prepareStyleSheet()
+ to unpackStyleSheet(), added unpackProperty() for direct formattings,
+ loadStyleSheet() now unpacks properties and merges pseudo class attributes
+ on the fly, removed NULLOFFS, new ui.ThemeName is "default desktop"
+ * Layout base class added
+ * Default layouter: Now uses the Layout base class in an upvalue to new(),
+ added version string, handles weights internally when a change of a group's
+ contents or weights is indicated using the FL_CHANGED flag, bugs in the
+ SameSize calculation corrected, removed the "auto" state for Width and
+ Height, the logic is now more concise and faster
+ * Theme: The internal style sheet is now more minimal and has been renamed
+ to "minimal", many properties have been relocated to the new "default" style
+ sheet
+ * Renamed 'check' and 'radio' images to 'checkmark' and 'radiobutton',
+ respectively
+ * Region:trans() renamed to shift(), isNull() to isEmpty()
+ * Makefiles updated to install new classes, args.lua, fixed layouter, new
+ style sheets
+ * Markup: Tables produced erroneous HTML - now pop the current block from the
+ stack
+ * Documentation generator: added macro support, added child class macro,
+ tables did not break out of the current block, corrected
+ * improved documentation generator, documentation, stylesheet, README
+
 === 0.8h: ===
 


More information about the tekui-devel mailing list