Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Ui::OPopupTitle Class Reference

OPopupMenu title widget. More...

#include </home/clem/local/src/opie/libopie2/opieui/opopupmenu.h>

Collaboration diagram for Opie::Ui::OPopupTitle:

Collaboration graph
[legend]
List of all members.

Public Slots

void setText (const QString &text)
void setIcon (const QPixmap &pix)

Public Member Functions

 OPopupTitle (QWidget *parent=0, const char *name=0)
 OPopupTitle (OPixmapEffect::GradientType gradient, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0)
 OPopupTitle (const OPixmap &background, const QColor &color, const QColor &textColor, QWidget *parent=0, const char *name=0)
void setTitle (const QString &text, const QPixmap *icon=NULL)
QString title () const
QPixmap icon () const
QSize sizeHint () const

Protected Member Functions

void paintEvent (QPaintEvent *ev)
virtual void virtual_hook (int id, void *data)

Protected Attributes

QString titleStr
QPixmap miniicon
OPixmapEffect::GradientType grType
QPixmap fill
QColor fgColor
QColor bgColor
QColor grHigh
QColor grLow
bool useGradient

Private Attributes

OPopupTitlePrivate * d

Detailed Description

OPopupMenu title widget.

Title widget for use in OPopupMenu.

You usually don't have to create this manually since OPopupMenu::insertTitle will do it for you, but it is allowed if you wish to customize it's look.

Author:
Daniel M. Duley <mosfet@kde.org>

Definition at line 46 of file opopupmenu.h.


Constructor & Destructor Documentation

OPopupTitle::OPopupTitle QWidget *  parent = 0,
const char *  name = 0
 

Constructs a title widget with the user specified gradient, pixmap, and colors.

Definition at line 33 of file opopupmenu.cpp.

References height.

OPopupTitle::OPopupTitle OPixmapEffect::GradientType  gradient,
const QColor &  color,
const QColor &  textColor,
QWidget *  parent = 0,
const char *  name = 0
 

Deprecated:
Constructs a title widget with the specified gradient and colors.

Definition at line 39 of file opopupmenu.cpp.

References height.

OPopupTitle::OPopupTitle const OPixmap background,
const QColor &  color,
const QColor &  textColor,
QWidget *  parent = 0,
const char *  name = 0
 

Deprecated:
Constructs a title widget with the specified pixmap and colors.

Definition at line 47 of file opopupmenu.cpp.

References height.


Member Function Documentation

QPixmap Opie::Ui::OPopupTitle::icon  )  const [inline]
 

Returns the current icon.

Definition at line 83 of file opopupmenu.h.

References miniicon.

void OPopupTitle::paintEvent QPaintEvent *  ev  )  [protected]
 

Definition at line 84 of file opopupmenu.cpp.

References active, f, height, QString::isNull(), miniicon, p, qApp, text, titleStr, and width.

void OPopupTitle::setIcon const QPixmap &  pix  )  [slot]
 

Since:
3.1

Definition at line 76 of file opopupmenu.cpp.

References height, miniicon, and titleStr.

void OPopupTitle::setText const QString text  )  [slot]
 

Since:
3.1

Definition at line 68 of file opopupmenu.cpp.

References height, miniicon, and titleStr.

void OPopupTitle::setTitle const QString text,
const QPixmap *  icon = NULL
 

Sets the title string and optional icon for the title widget.

You will want to call this before inserting into a menu.

Definition at line 55 of file opopupmenu.cpp.

References height, miniicon, and titleStr.

Referenced by OPopupMenu::insertTitle(), and OPopupMenu::setTitle().

QSize OPopupTitle::sizeHint  )  const
 

Definition at line 120 of file opopupmenu.cpp.

QString Opie::Ui::OPopupTitle::title  )  const [inline]
 

Returns the current title.

Definition at line 79 of file opopupmenu.h.

References titleStr.

void OPopupTitle::virtual_hook int  id,
void *  data
[protected, virtual]
 

Definition at line 595 of file opopupmenu.cpp.


Member Data Documentation

QColor Opie::Ui::OPopupTitle::bgColor [protected]
 

Definition at line 102 of file opopupmenu.h.

OPopupTitlePrivate* Opie::Ui::OPopupTitle::d [private]
 

Definition at line 108 of file opopupmenu.h.

QColor Opie::Ui::OPopupTitle::fgColor [protected]
 

Definition at line 102 of file opopupmenu.h.

QPixmap Opie::Ui::OPopupTitle::fill [protected]
 

Definition at line 101 of file opopupmenu.h.

QColor Opie::Ui::OPopupTitle::grHigh [protected]
 

Definition at line 102 of file opopupmenu.h.

QColor Opie::Ui::OPopupTitle::grLow [protected]
 

Definition at line 102 of file opopupmenu.h.

OPixmapEffect::GradientType Opie::Ui::OPopupTitle::grType [protected]
 

Definition at line 100 of file opopupmenu.h.

QPixmap Opie::Ui::OPopupTitle::miniicon [protected]
 

Definition at line 97 of file opopupmenu.h.

Referenced by icon(), paintEvent(), setIcon(), setText(), and setTitle().

QString Opie::Ui::OPopupTitle::titleStr [protected]
 

Definition at line 96 of file opopupmenu.h.

Referenced by paintEvent(), setIcon(), setText(), setTitle(), and title().

bool Opie::Ui::OPopupTitle::useGradient [protected]
 

Definition at line 103 of file opopupmenu.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:02:01 2005 for OPIE by  doxygen 1.4.2