• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TDEPopupTitle Class Reference

#include <tdepopupmenu.h>

Inherits TQWidget.

Public Slots

void setText (const TQString &text)
 
void setIcon (const TQPixmap &pix)
 

Public Member Functions

 TDEPopupTitle (TQWidget *parent=0, const char *name=0)
 
 TDEPopupTitle (KPixmapEffect::GradientType gradient, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) TDE_DEPRECATED
 
 TDEPopupTitle (const KPixmap &background, const TQColor &color, const TQColor &textColor, TQWidget *parent=0, const char *name=0) TDE_DEPRECATED
 
void setTitle (const TQString &text, const TQPixmap *icon=0)
 
TQString title () const
 
TQPixmap icon () const
 
TQSize sizeHint () const
 

Protected Member Functions

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

Protected Attributes

KPixmapEffect::GradientType grType
 
TQString titleStr
 
KPixmap fill
 
TQPixmap miniicon
 
TQColor fgColor
 
TQColor bgColor
 
TQColor grHigh
 
TQColor grLow
 
bool useGradient
 

Detailed Description

TDEPopupMenu title widget.

Title widget for use in TDEPopupMenu.

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

Author
Daniel M. Duley mosfe.nosp@m.t@kd.nosp@m.e.org

Definition at line 38 of file tdepopupmenu.h.

Constructor & Destructor Documentation

◆ TDEPopupTitle() [1/3]

TDEPopupTitle::TDEPopupTitle ( TQWidget *  parent = 0,
const char *  name = 0 
)

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

Definition at line 31 of file tdepopupmenu.cpp.

◆ TDEPopupTitle() [2/3]

TDEPopupTitle::TDEPopupTitle ( KPixmapEffect::GradientType  gradient,
const TQColor &  color,
const TQColor &  textColor,
TQWidget *  parent = 0,
const char *  name = 0 
)
Deprecated:
Constructs a title widget with the specified gradient and colors.

Definition at line 37 of file tdepopupmenu.cpp.

◆ TDEPopupTitle() [3/3]

TDEPopupTitle::TDEPopupTitle ( const KPixmap &  background,
const TQColor &  color,
const TQColor &  textColor,
TQWidget *  parent = 0,
const char *  name = 0 
)
Deprecated:
Constructs a title widget with the specified pixmap and colors.

Definition at line 45 of file tdepopupmenu.cpp.

Member Function Documentation

◆ calcSize()

void TDEPopupTitle::calcSize ( )
protected

Definition at line 76 of file tdepopupmenu.cpp.

◆ icon()

TQPixmap TDEPopupTitle::icon ( ) const
inline

Returns the current icon.

Definition at line 75 of file tdepopupmenu.h.

◆ paintEvent()

void TDEPopupTitle::paintEvent ( TQPaintEvent *  ev)
protected

Definition at line 85 of file tdepopupmenu.cpp.

◆ setIcon

void TDEPopupTitle::setIcon ( const TQPixmap &  pix)
slot
Since
3.1

Definition at line 70 of file tdepopupmenu.cpp.

◆ setText

void TDEPopupTitle::setText ( const TQString &  text)
slot
Since
3.1

Definition at line 64 of file tdepopupmenu.cpp.

◆ setTitle()

void TDEPopupTitle::setTitle ( const TQString &  text,
const TQPixmap *  icon = 0 
)

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 53 of file tdepopupmenu.cpp.

◆ sizeHint()

TQSize TDEPopupTitle::sizeHint ( void  ) const

Definition at line 114 of file tdepopupmenu.cpp.

◆ title()

TQString TDEPopupTitle::title ( ) const
inline

Returns the current title.

Definition at line 71 of file tdepopupmenu.h.

◆ virtual_hook()

void TDEPopupTitle::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 684 of file tdepopupmenu.cpp.

Member Data Documentation

◆ bgColor

TQColor TDEPopupTitle::bgColor
protected

Definition at line 95 of file tdepopupmenu.h.

◆ fgColor

TQColor TDEPopupTitle::fgColor
protected

Definition at line 95 of file tdepopupmenu.h.

◆ fill

KPixmap TDEPopupTitle::fill
protected

Definition at line 93 of file tdepopupmenu.h.

◆ grHigh

TQColor TDEPopupTitle::grHigh
protected

Definition at line 95 of file tdepopupmenu.h.

◆ grLow

TQColor TDEPopupTitle::grLow
protected

Definition at line 95 of file tdepopupmenu.h.

◆ grType

KPixmapEffect::GradientType TDEPopupTitle::grType
protected

Definition at line 90 of file tdepopupmenu.h.

◆ miniicon

TQPixmap TDEPopupTitle::miniicon
protected

Definition at line 94 of file tdepopupmenu.h.

◆ titleStr

TQString TDEPopupTitle::titleStr
protected

Definition at line 91 of file tdepopupmenu.h.

◆ useGradient

bool TDEPopupTitle::useGradient
protected

Definition at line 96 of file tdepopupmenu.h.


The documentation for this class was generated from the following files:
  • tdepopupmenu.h
  • tdepopupmenu.cpp

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.