iisIconLabel Class Reference

#include <iisiconlabel.h>

Inheritance diagram for iisIconLabel:
Gui::TaskView::TaskIconLabel

List of all members.

Signals

void activated ()
void clicked ()
void contextMenu ()
void pressed ()
void released ()

Public Member Functions

 iisIconLabel (const QIcon &icon, const QString &title, QWidget *parent=0)
virtual QSize minimumSizeHint () const
void setColors (const QColor &color, const QColor &colorOver, const QColor &colorOff)
void setFocusPen (const QPen &pen)
void setFont (const QFont &font)
void setSchemePointer (iisIconLabelScheme **pointer)
virtual QSize sizeHint () const
virtual ~iisIconLabel ()

Protected Member Functions

virtual void enterEvent (QEvent *event)
virtual void keyPressEvent (QKeyEvent *event)
virtual void leaveEvent (QEvent *event)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void paintEvent (QPaintEvent *event)

Protected Attributes

bool m_changeCursorOver
bool m_over
bool m_pressed
bool m_underlineOver
QColor myColor
QColor myColorDisabled
QColor myColorOver
QFont myFont
QPen myPen
QIcon myPixmap
iisIconLabelScheme ** mySchemePointer
QString myText

Detailed Description

Definition at line 17 of file iisiconlabel.h.


Constructor & Destructor Documentation

iisIconLabel::iisIconLabel ( const QIcon &  icon,
const QString &  title,
QWidget *  parent = 0 
)

Definition at line 11 of file iisiconlabel.cpp.

References myColor, myColorDisabled, myColorOver, myFont, and myPen.

iisIconLabel::~iisIconLabel (  )  [virtual]

Definition at line 29 of file iisiconlabel.cpp.

References m_changeCursorOver.


Member Function Documentation

void iisIconLabel::activated (  )  [signal]

Referenced by keyPressEvent(), and mouseReleaseEvent().

void iisIconLabel::clicked (  )  [signal]

Referenced by mouseReleaseEvent().

void iisIconLabel::contextMenu (  )  [signal]

Referenced by mousePressEvent().

void iisIconLabel::enterEvent ( QEvent *  event  )  [protected, virtual]

Definition at line 140 of file iisiconlabel.cpp.

References m_changeCursorOver, and m_over.

void iisIconLabel::keyPressEvent ( QKeyEvent *  event  )  [protected, virtual]

Definition at line 186 of file iisiconlabel.cpp.

References activated().

void iisIconLabel::leaveEvent ( QEvent *  event  )  [protected, virtual]

Definition at line 150 of file iisiconlabel.cpp.

References m_changeCursorOver, and m_over.

QSize iisIconLabel::minimumSizeHint (  )  const [virtual]

Definition at line 66 of file iisiconlabel.cpp.

References myFont, myPixmap, mySchemePointer, myText, px, and RobotExample::w.

void iisIconLabel::mousePressEvent ( QMouseEvent *  event  )  [protected, virtual]

Definition at line 159 of file iisiconlabel.cpp.

References contextMenu(), m_pressed, and pressed().

void iisIconLabel::mouseReleaseEvent ( QMouseEvent *  event  )  [protected, virtual]

Definition at line 171 of file iisiconlabel.cpp.

References activated(), clicked(), m_pressed, and released().

void iisIconLabel::paintEvent ( QPaintEvent *  event  )  [protected, virtual]
void iisIconLabel::pressed (  )  [signal]

Referenced by mousePressEvent().

void iisIconLabel::released (  )  [signal]

Referenced by mouseReleaseEvent().

void iisIconLabel::setColors ( const QColor &  color,
const QColor &  colorOver,
const QColor &  colorOff 
)

Definition at line 41 of file iisiconlabel.cpp.

References myColor, myColorDisabled, and myColorOver.

Referenced by Gui::DockWnd::TaskPanelView::TaskPanelView(), and test::test().

void iisIconLabel::setFocusPen ( const QPen &  pen  ) 

Definition at line 55 of file iisiconlabel.cpp.

References myPen.

Referenced by Gui::DockWnd::TaskPanelView::TaskPanelView(), and test::test().

void iisIconLabel::setFont ( const QFont &  font  ) 

Definition at line 49 of file iisiconlabel.cpp.

References myFont.

void iisIconLabel::setSchemePointer ( iisIconLabelScheme **  pointer  ) 

Definition at line 35 of file iisiconlabel.cpp.

References mySchemePointer.

Referenced by iisTaskGroup::addIconLabel(), and iisTaskHeader::iisTaskHeader().

QSize iisIconLabel::sizeHint (  )  const [virtual]

Definition at line 61 of file iisiconlabel.cpp.


Member Data Documentation

Definition at line 61 of file iisiconlabel.h.

Referenced by enterEvent(), leaveEvent(), and ~iisIconLabel().

bool iisIconLabel::m_over [protected]

Definition at line 59 of file iisiconlabel.h.

Referenced by enterEvent(), leaveEvent(), and paintEvent().

bool iisIconLabel::m_pressed [protected]

Definition at line 59 of file iisiconlabel.h.

Referenced by mousePressEvent(), and mouseReleaseEvent().

Definition at line 61 of file iisiconlabel.h.

Referenced by paintEvent().

QColor iisIconLabel::myColor [protected]

Definition at line 53 of file iisiconlabel.h.

Referenced by iisIconLabel(), paintEvent(), and setColors().

QColor iisIconLabel::myColorDisabled [protected]

Definition at line 53 of file iisiconlabel.h.

Referenced by iisIconLabel(), paintEvent(), and setColors().

QColor iisIconLabel::myColorOver [protected]

Definition at line 53 of file iisiconlabel.h.

Referenced by iisIconLabel(), paintEvent(), and setColors().

QFont iisIconLabel::myFont [protected]

Definition at line 54 of file iisiconlabel.h.

Referenced by iisIconLabel(), minimumSizeHint(), paintEvent(), and setFont().

QPen iisIconLabel::myPen [protected]

Definition at line 55 of file iisiconlabel.h.

Referenced by iisIconLabel(), paintEvent(), and setFocusPen().

QIcon iisIconLabel::myPixmap [protected]

Definition at line 50 of file iisiconlabel.h.

Referenced by minimumSizeHint(), and paintEvent().

Definition at line 57 of file iisiconlabel.h.

Referenced by minimumSizeHint(), paintEvent(), and setSchemePointer().

QString iisIconLabel::myText [protected]

Definition at line 51 of file iisiconlabel.h.

Referenced by minimumSizeHint(), and paintEvent().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:01:37 2011 for FreeCAD by  doxygen 1.6.1