[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: [PATCH] Bug 158444: Pager can't display name of desktop
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-03-14 2:54:52
Message-ID: 200803132054.52480.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 13 March 2008, Rafał Miłecki wrote:
> 2008/3/12, Aaron J. Seigo <aseigo@kde.org>:
> > cool =) i look forward to seeing the update.
>
> It's ready. Thanks for your tip about casting enum<->int. I wasn't
> sure which style of enum should I use. Some apps in KDE use UPPER_CASE
> values and other use First_letter_upper_only.

usually UPPER_CASE is used for literal constants (e.g. "static const int 
FOO;"), and FirstLetterUpper for enums.

> Hope it doesn't matter 
> so much and patch may be accepted. Finally I used:
> enum DisplayedText
> {
> Number,
> Name,
> None
> };

probably good enough. for libraries (which you may end up touching if you hang 
around us crazy plasma people long enough ;) we'd probably do DisplayNumber, 
DisplayName and DisplayNone since that's more obvious when read in code and 
has a lesser likliehood of name collisions should future enums be desirable.

anyways, looks good. go for it =)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

["signature.asc" (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic