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

tdeui

Signals | Public Member Functions | Protected Member Functions
TDESelector Class Reference

#include <tdeselect.h>

Inheritance diagram for TDESelector:
TQWidget TQRangeControl KGradientSelector KValueSelector

List of all members.

Signals

void valueChanged (int value)

Public Member Functions

 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 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)

Detailed Description

TDESelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values.

An example is the KGradientSelector which allows to choose from a range of colors.

A custom drawing routine for the widget surface has to be provided by the subclass.

Definition at line 159 of file tdeselect.h.


Constructor & Destructor Documentation

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

Constructs a horizontal one-dimensional selection widget.

Definition at line 238 of file tdeselect.cpp.

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

Constructs a one-dimensional selection widget with a given orientation.

Definition at line 245 of file tdeselect.cpp.


Member Function Documentation

TQRect TDESelector::contentsRect ( ) const
Returns:
the rectangle on which subclasses should draw.

Definition at line 257 of file tdeselect.cpp.

void TDESelector::drawArrow ( TQPainter *  painter,
bool  show,
const TQPoint &  pos 
) [protected, virtual]

Override this function to draw the cursor which indicates the current value.

This function is always called twice, once with argument show=false to clear the old cursor, once with argument show=true to draw the new one.

Definition at line 370 of file tdeselect.cpp.

void TDESelector::drawContents ( TQPainter *  ) [protected, virtual]

Override this function to draw the contents of the control.

The default implementation does nothing.

Draw only within contentsRect().

Reimplemented in KGradientSelector, and KValueSelector.

Definition at line 367 of file tdeselect.cpp.

bool TDESelector::indent ( ) const [inline]
Returns:
whether the indent option is set.

Definition at line 201 of file tdeselect.h.

int TDESelector::maxValue ( ) const [inline]
Returns:
the max value.

Definition at line 237 of file tdeselect.h.

int TDESelector::minValue ( ) const [inline]
Returns:
the min value.

Definition at line 225 of file tdeselect.h.

Orientation TDESelector::orientation ( ) const [inline]
Returns:
the orientation of the widget.

Definition at line 184 of file tdeselect.h.

void TDESelector::setIndent ( bool  i) [inline]

Sets the indent option of the widget to i.

This determines whether a shaded frame is drawn.

Definition at line 196 of file tdeselect.h.

void TDESelector::setMaxValue ( int  value) [inline]

Sets the max value.

Reimplemented from TQRangeControl.

Definition at line 231 of file tdeselect.h.

void TDESelector::setMinValue ( int  value) [inline]

Sets the min value.

Reimplemented from TQRangeControl.

Definition at line 219 of file tdeselect.h.

void TDESelector::setValue ( int  value) [inline]

Sets the value.

Reimplemented from TQRangeControl.

Definition at line 207 of file tdeselect.h.

int TDESelector::value ( ) const [inline]
Returns:
the value.

Definition at line 213 of file tdeselect.h.

void TDESelector::valueChanged ( int  value) [signal]

This signal is emitted whenever the user chooses a value, e.g.

by clicking with the mouse on the widget.


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.7.6.1
This website is maintained by Timothy Pearson.