Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KMoodWidget Class Reference

The emotion widget. More...

#include <KMoodWidget.hh>

Inheritance diagram for KMoodWidget:

Inheritance graph
[legend]
Collaboration diagram for KMoodWidget:

Collaboration graph
[legend]
List of all members.

Public Methods

 KMoodWidget (QWidget *parent=0, const char *name=0, KMood *mood=0, bool changeable=false)
 ~KMoodWidget ()
void setModel (KMood *mood)
void setAge (int minutesAge)

Protected Slots

virtual void slotMoodChanged (KMood *mood)

Protected Methods

virtual void renderEmoticon ()
virtual void paintEvent (QPaintEvent *e)
virtual void resizeEvent (QResizeEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
void addEmotionsToMenu ()
void adaptMenuTicks ()

Protected Attributes

KPopupMenu * m_popup
KMoodm_mood
bool m_changeable
int m_minutesAge

Private Methods

QImage loadEmoticon ()
QString mood2filename (KMood *mood)

Detailed Description

The emotion widget.

The widget representing an emotion. This is the view/control part of the users emotions. It's used in the StatusBar applet and in the main window when showing mood of other users.

Author:
Andreas Baumann <andreas_baumann@users.sourceforge.net>
Version:
ProjectMajorVersion:
0


Constructor & Destructor Documentation

KMoodWidget::KMoodWidget QWidget *    parent = 0,
const char *    name = 0,
KMood   mood = 0,
bool    changeable = false
 

KMoodWidget::~KMoodWidget  
 


Member Function Documentation

void KMoodWidget::adaptMenuTicks   [protected]
 

void KMoodWidget::addEmotionsToMenu   [protected]
 

QImage KMoodWidget::loadEmoticon   [private]
 

QString KMoodWidget::mood2filename KMood   mood [private]
 

void KMoodWidget::mousePressEvent QMouseEvent *    e [protected, virtual]
 

Reimplemented in KMoodStatusBarApplet.

void KMoodWidget::paintEvent QPaintEvent *    e [protected, virtual]
 

void KMoodWidget::renderEmoticon   [protected, virtual]
 

Reimplemented in KMoodStatusBarApplet.

void KMoodWidget::resizeEvent QResizeEvent *    e [protected, virtual]
 

void KMoodWidget::setAge int    minutesAge
 

Sets the age of the emoticon. This is the set depending on how long the user didn't change the state of the emoticon. It is also used in the settings dialog to test the fading of the emoticons.

Parameters:
minutes  the age of the emoticon in minutes.

void KMoodWidget::setModel KMood   mood
 

void KMoodWidget::slotMoodChanged KMood   mood [protected, virtual, slot]
 


Member Data Documentation

bool KMoodWidget::m_changeable [protected]
 

int KMoodWidget::m_minutesAge [protected]
 

KMood* KMoodWidget::m_mood [protected]
 

KPopupMenu* KMoodWidget::m_popup [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Oct 8 21:52:29 2003 for kmood by doxygen1.2.18