Joining the team...

Jason Mott jmott at
Sun Dec 8 23:56:31 GMT 2002

Hash: SHA1


Since two others have posted on this subject, I guess I will too.

I've been listening in to get a feel of how the group works (and how one 
becomes a part of the development effort). I have some original works I'd 
like to offer (will discuss most of them in other posts, but one later in 
this email). I just have one question to add to the others that have been 

Do new guys like myself just have to post patches for a while until we get 
better known, or is there a process for getting a cvs account?

As well as some of my original work, I'd also like to offer my support where 
needed. I can investigate bugs, add features according to requests, etc. Just 
ask if you have a need.

Now, here is one thing I'd like to add: A class that extends QLCDNumber that 
is configurable the way that the DigitalClock Widget of the clock applet is. 
Basically, I'd take the code in the DigitalClock Widget of the clock applet 
and make it more general purpose and configurable through an API. When done, 
the clock applet would be able to use the new class instead of implementing 
the functionality itself (but that is really separate from this 
conversation). I'm doing this because of my program Kalculate 
( It uses the base QLCDNumber for 
its display. As I was investigating how to add configurability to its look 
and feel, I realized I was just redoing what the DigitalClock widget was 
doing -- so it made since to see if it is something that should be offered to 
core so we don't have many different iterations of this functionality around.

Here is the interface I'd imagine for such a widget (this is of course just a 
rough sketch and is open to comments/suggestions).

class KLCDNumber : public QLCDNumber  {
	KLCDNumber(QWidget *parent=0, const char *name=0);
   *  This method just calls the setPaletteBackgroundColor() method in 
   *  I'm just showing it here to emphasize its availability.
  virtual void setPaletteBackgroundColor(const QColor & background);
   * This method just calls the setPaletteBackgroundPixmap method in QWidget.
   *  I'm just showing it here to emphasize its availability.
  virtual void setPaletteBackgroundPixmap(const QPixmap & backgroundPix);

   *  This is reimplemented because we need to make note of the color in order
   * to support the shadow.
  virtual void setPaletteForgroundColor(const QColor & forground);

   * This is new but made virtual in case derivative classes want to make use 
of it polymorphically.
  virtual void setPaletteShadowColor(const QColor & shadowColor);
   * These two methods give control over the distance of the displayed number 
and its shadow (and the angle of the shadow)...
   * they are doubles because QPainter's translate method takes doubles.
  virtual void setForgroundOffset(double x, double y);
  virtual void setShadowOffset(double x, double y);

Is this something that would benefit the core ui library?

- -- 

Version: GnuPG v1.0.7 (GNU/Linux)


More information about the kde-core-devel mailing list