From 251481192dc7ac89a3b749cbf42f79592e681e74 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 26 Mar 2014 20:02:47 +1000 Subject: More Stuff notes. --- ClientHamr/GuiLua/GuiLua.c | 14 ++++++++++++++ ClientHamr/GuiLua/skang.lua | 1 + 2 files changed, 15 insertions(+) diff --git a/ClientHamr/GuiLua/GuiLua.c b/ClientHamr/GuiLua/GuiLua.c index 94a29eb..87766b0 100644 --- a/ClientHamr/GuiLua/GuiLua.c +++ b/ClientHamr/GuiLua/GuiLua.c @@ -103,6 +103,20 @@ Squeal was the database driver interface for SquealStuff, the database version of Stuff. Maybe we could wrap esskyuehl? Not really in need of database stuff for now, but should keep it in mind. +Stuff is an abstract class that gets extended by other classes, like +SquealStuff, which was the only thing extending it. It dealt with the +basic "collection of things" stuff. Each individual thing was called a +stufflet. A final fooStuff would extend S_juealStuff, and include an +array of strings called "stufflets" that at least named the stufflets, +but could also include metadata and links to other Stuffs. For +SquealStuff, the metadata would be read from the SQL database +autamatically. + +There was varies infrastructure for reading and writing Stuff, throwing +rows of Stuff into grids, having choices of Stuff, linking stufflets to +individual widgets, having default Stuffs for windows, validating +Stuffs, etc. + */ diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index cb0b84a..e81c598 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -248,6 +248,7 @@ Thing.__index = function (table, key) local thing = things[key] -- First see if this is a Thing. -- TODO - Java skang called isValid() on get(). On the other hand, doesn't seem to call it on set(), but calls it on append(). + -- Ah, it was doing isValid() on setStufflet(). if thing then return thing.value or thing.default end -- Then see if we can inherit it from Thing. -- cgit v1.1