[Psi-devel] Customizable Roster Items (#167, #157)
Jacek Tomasiak
jacek.tomasiak at gmail.com
Sun Aug 22 05:34:31 PDT 2004
> I'll give my thoughts on 2 approaches on this: the customizable
> approach, and the 'easier' approach.
I use htmllike tags for all "template" elements in my solution, in
such case we can use
qt's built in richtext clases to handle newlines, font selection and so on...
> - How do we do markup ? Do we use fields like:
> - %n Newline
> - %sf Small font
> - %nf Normal font
> - %lf Large font
> - %rgbAAFFGG Color
> Or we use HTML ? Markup is wanted by some persons (e.g. to show status
> messages below the nick, ...)
as above, I use standard RT markup (in qt<font
color="red">text</font> works just like
in html). as for newlines, I introduced two version of all tags to
avoid empty lines. one
was "inline", the other had a conditional <br> at the end. if field
was empty, newline was
not inserted. this could be solved another (simpler?) way: separate
conditional newline
(4ex <cbr>) which checks wheather the tag before is not a linebreak,
which means that
the preceeding field was empty.
> - As with iconsets, roster items should be customizable per transport
> (and maybe even per regexp), with reasonable defaults. For example,
> for MSN, the default should be '%sm'.
I used regexps but it gives much cpu load, so you cant use 10+
templates on 1GHz cpu
> - What do we do with the rename option ? Maybe, when the user clicks
> rename, replace the roster item text with the manually assigned name,
in my case it renamed "the given name" of contact, not touching the template.
> Either this, or a non-customizable, sensible, maybe with a checkbox or
> 2, setup. This actually is the way most clients do it i think. I would
> make this look like this(...)
that's why I didn't make any gui for my patch. we have to discuss the
user perspective
details.
J/S
--
| PZDR Jacek aka SkaZi \\
| mail: jacek.tomasiak at gmail.com "Oset nie ma zadnego /O `----.
| jid: skazi at chrome.pl pozytku z tego, ze * (_.-. )\
| GG# 1699141 ICQ# 111926958 sie na nim siedzi..." *|* rs //--// X
More information about the Psi-devel-affinix.com
mailing list