[SW2] Some new features
renggli at iam.unibe.ch
Mon Jul 26 13:54:46 MEST 2004
> yes, that would be much better. I'm working on a better implementation
> the tree, which use some icons for the nodes, for plus and minus, to
> a nicer design than using unordered lists. So there will be a lot of
> small images now... How can I hold these images within the code?
Sure, but I don't really know how to do it VisualWorks in a
(preferably) portable manner.
>> - You added a space into the tree component before the label. This is
>> the responsibility of the CSS-Stylesheet. No layout information in the
>> Smalltalk code. Not even a single space :)
> *g* ok, I get that. As mentioned above, the tree implementation I would
> prefer to have, uses images now, so it ain't be possible to discard all
> layout information from the Smalltalk code. To set an image in the code
> should be okay, no? ;)
Images should be part of the CSS as well, I think. So if you have a
green style enabled, you maybe want to have the tree-buttons in blue as
well. I would suggest to keep all the component layout to a very
minimal string-based css-enabled rendering and add images, colors, etc.
>> - I suspect you didn't understand the idea of RelatedComponent. Why do
>> you have for all your subclasses two almost identical method-bodies
>> like #structures and #search...?
> yes, you're right, that's bad...
Mhh ... well, maybe my superclass RelatedComponent isn't very useable,
e.g. for external links you cannot return a structure. Maybe the method
should be #links and return a collection of link instances, that can be
anything: mail, url, structure, broken, valid, etc.
>> Generally every
>> component should consist only of a configurable title-string (provided
>> by BodyComponent) and all the necessary information within div, span,
>> ul, li, etc tags.
> okay, that's better, I see. I have already worked on a CSS-Stylesheet
> the new user interface, but I have not finished it so far. You can
> fetch it
> from the university server. So I will try to control all the layout
> with this CSS file. Should I place this file also within the Smalltalk
> code somewhere, or is better the store it externaly?
I don't know yet, maybe we should discuss. Nothing providing CSS-Styles
is there yet. Seaside is having some functionality, so maybe we want to
build something on top there.
More information about the SmallWiki