• 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
KIntSpinBox Class Reference

#include <knuminput.h>

Inherits TQSpinBox.

Public Member Functions

 KIntSpinBox (TQWidget *parent=0, const char *name=0)
 
 KIntSpinBox (int lower, int upper, int step, int value, int base=10, TQWidget *parent=0, const char *name=0)
 
virtual ~KIntSpinBox ()
 
void setBase (int base)
 
int base () const
 
void setEditFocus (bool mark)
 

Protected Member Functions

virtual TQString mapValueToText (int)
 
virtual int mapTextToValue (bool *)
 
virtual void virtual_hook (int id, void *data)
 

Detailed Description

A TQSpinBox with support for arbitrary base numbers.

A TQSpinBox with support for arbitrary base numbers (e.g. hexadecimal).

The class provides an easy interface to use other numeric systems than the decimal.

Definition at line 707 of file knuminput.h.

Constructor & Destructor Documentation

◆ KIntSpinBox() [1/2]

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

Constructor.

Constructs a widget with an integer inputline with a little scrollbar and a slider, with minimal value 0, maximal value 99, step 1, base 10 and initial value 0.

Definition at line 203 of file knuminput.cpp.

◆ KIntSpinBox() [2/2]

KIntSpinBox::KIntSpinBox ( int  lower,
int  upper,
int  step,
int  value,
int  base = 10,
TQWidget *  parent = 0,
const char *  name = 0 
)

Constructor.

Constructs a widget with an integer inputline with a little scrollbar and a slider.

Parameters
lowerThe lowest valid value.
upperThe greatest valid value.
stepThe step size of the scrollbar.
valueThe actual value.
baseThe base of the used number system.
parentThe parent of the widget.
nameThe Name of the widget.

Definition at line 216 of file knuminput.cpp.

◆ ~KIntSpinBox()

KIntSpinBox::~KIntSpinBox ( )
virtual

Destructor.

Definition at line 212 of file knuminput.cpp.

Member Function Documentation

◆ base()

int KIntSpinBox::base ( ) const
Returns
the base in which numbers in the spin box are represented.

Definition at line 236 of file knuminput.cpp.

◆ mapTextToValue()

int KIntSpinBox::mapTextToValue ( bool *  ok)
protectedvirtual

Overloaded the method in QSpinBox to make use of the base given in the constructor.

Definition at line 246 of file knuminput.cpp.

◆ mapValueToText()

TQString KIntSpinBox::mapValueToText ( int  v)
protectedvirtual

Overloaded the method in QSpinBox to make use of the base given in the constructor.

Definition at line 241 of file knuminput.cpp.

◆ setBase()

void KIntSpinBox::setBase ( int  base)

Sets the base in which the numbers in the spin box are represented.

Definition at line 226 of file knuminput.cpp.

◆ setEditFocus()

void KIntSpinBox::setEditFocus ( bool  mark)

sets focus and optionally marks all text

Definition at line 251 of file knuminput.cpp.

◆ virtual_hook()

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

Definition at line 1202 of file knuminput.cpp.


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