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

tdeui

Public Member Functions | Protected Member Functions | List of all members
KGradientSelector Class Reference

#include <tdeselect.h>

Inheritance diagram for KGradientSelector:
TDESelector

Public Member Functions

 KGradientSelector (TQWidget *parent=0, const char *name=0)
 
 KGradientSelector (Orientation o, TQWidget *parent=0, const char *name=0)
 
 ~KGradientSelector ()
 
void setColors (const TQColor &col1, const TQColor &col2)
 
void setText (const TQString &t1, const TQString &t2)
 
void setFirstColor (const TQColor &col)
 
void setSecondColor (const TQColor &col)
 
void setFirstText (const TQString &t)
 
void setSecondText (const TQString &t)
 
const TQColor firstColor () const
 
const TQColor secondColor () const
 
const TQString firstText () const
 
const TQString secondText () const
 
- Public Member Functions inherited from TDESelector
 TDESelector (TQWidget *parent=0, const char *name=0)
 
 TDESelector (Orientation o, TQWidget *parent=0L, const char *name=0L)
 
Orientation orientation () const
 
TQRect contentsRect () const
 
void setIndent (bool i)
 
bool indent () const
 
void setValue (int value)
 
int value () const
 
void setMinValue (int value)
 
int minValue () const
 
void setMaxValue (int value)
 
int maxValue () const
 

Protected Member Functions

virtual void drawContents (TQPainter *)
 
virtual TQSize minimumSize () const
 
virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from TDESelector
virtual void drawContents (TQPainter *)
 
virtual void drawArrow (TQPainter *painter, bool show, const TQPoint &pos)
 
virtual void valueChange ()
 
virtual void paintEvent (TQPaintEvent *)
 
virtual void mousePressEvent (TQMouseEvent *e)
 
virtual void mouseMoveEvent (TQMouseEvent *e)
 
virtual void wheelEvent (TQWheelEvent *)
 
virtual void virtual_hook (int id, void *data)
 

Additional Inherited Members

- Signals inherited from TDESelector
void valueChanged (int value)
 

Detailed Description

The KGradientSelector widget allows the user to choose from a one-dimensional range of colors which is given as a gradient between two colors provided by the programmer.

KDE Gradient Selector Widget

Definition at line 293 of file tdeselect.h.

Constructor & Destructor Documentation

◆ KGradientSelector() [1/2]

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

Constructs a horizontal color selector which contains a gradient between white and black.

Definition at line 406 of file tdeselect.cpp.

◆ KGradientSelector() [2/2]

KGradientSelector::KGradientSelector ( Orientation  o,
TQWidget *  parent = 0,
const char *  name = 0 
)

Constructs a colors selector with orientation o which contains a gradient between white and black.

Definition at line 413 of file tdeselect.cpp.

◆ ~KGradientSelector()

KGradientSelector::~KGradientSelector ( )

Destructs the widget.

Definition at line 421 of file tdeselect.cpp.

Member Function Documentation

◆ drawContents()

void KGradientSelector::drawContents ( TQPainter *  )
protectedvirtual

Override this function to draw the contents of the control.

The default implementation does nothing.

Draw only within contentsRect().

Reimplemented from TDESelector.

Definition at line 434 of file tdeselect.cpp.

◆ firstColor()

const TQColor KGradientSelector::firstColor ( ) const
inline

Definition at line 341 of file tdeselect.h.

◆ firstText()

const TQString KGradientSelector::firstText ( ) const
inline

Definition at line 346 of file tdeselect.h.

◆ minimumSize()

virtual TQSize KGradientSelector::minimumSize ( ) const
inlineprotectedvirtual

Definition at line 354 of file tdeselect.h.

◆ secondColor()

const TQColor KGradientSelector::secondColor ( ) const
inline

Definition at line 343 of file tdeselect.h.

◆ secondText()

const TQString KGradientSelector::secondText ( ) const
inline

Definition at line 348 of file tdeselect.h.

◆ setColors()

void KGradientSelector::setColors ( const TQColor &  col1,
const TQColor &  col2 
)
inline

Sets the two colors which span the gradient.

Definition at line 320 of file tdeselect.h.

◆ setFirstColor()

void KGradientSelector::setFirstColor ( const TQColor &  col)
inline

Set each color on its own.

Definition at line 328 of file tdeselect.h.

◆ setFirstText()

void KGradientSelector::setFirstText ( const TQString &  t)
inline

Set each description on its own.

Definition at line 336 of file tdeselect.h.

◆ setSecondColor()

void KGradientSelector::setSecondColor ( const TQColor &  col)
inline

Definition at line 330 of file tdeselect.h.

◆ setSecondText()

void KGradientSelector::setSecondText ( const TQString &  t)
inline

Definition at line 338 of file tdeselect.h.

◆ setText()

void KGradientSelector::setText ( const TQString &  t1,
const TQString &  t2 
)
inline

Definition at line 322 of file tdeselect.h.

◆ virtual_hook()

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

Reimplemented from TDESelector.

Definition at line 530 of file tdeselect.cpp.


The documentation for this class was generated from the following files:
  • tdeselect.h
  • tdeselect.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.