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

tdeui

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

#include <tdelistbox.h>

Inheritance diagram for TDEListBox:
TDECompletionBox

Signals

void executed (TQListBoxItem *item)
 
void executed (TQListBoxItem *item, const TQPoint &pos)
 
void doubleClicked (TQListBoxItem *item, const TQPoint &pos)
 

Public Member Functions

 TDEListBox (TQWidget *parent=0, const char *name=0, WFlags f=0)
 

Protected Slots

void slotOnItem (TQListBoxItem *item)
 
void slotOnViewport ()
 
void slotSettingsChanged (int)
 
void slotAutoSelect ()
 

Protected Member Functions

void emitExecute (TQListBoxItem *item, const TQPoint &pos)
 
virtual void keyPressEvent (TQKeyEvent *e)
 
virtual void focusOutEvent (TQFocusEvent *fe)
 
virtual void leaveEvent (TQEvent *e)
 
virtual void contentsMousePressEvent (TQMouseEvent *e)
 
virtual void contentsMouseDoubleClickEvent (TQMouseEvent *e)
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

bool m_bUseSingle
 
bool m_bChangeCursorOverItem
 
TQListBoxItem * m_pCurrentItem
 
TQTimer * m_pAutoSelect
 
int m_autoSelectDelay
 

Detailed Description

A variant of TQListBox that honors KDE's system-wide settings.

Extends the functionality of TQListBox to honor the system wide settings for Single Click/Double Click mode, Auto Selection and Change Cursor over Link.

There is a new signal executed(). It gets connected to either TQListBox::clicked() or TQListBox::doubleClicked() depending on the KDE wide Single Click/Double Click settings. It is strongly recommended that you use this signal instead of the above mentioned. This way you don't need to care about the current settings. If you want to get informed when the user selects something connect to the TQListBox::selectionChanged() signal.

Definition at line 40 of file tdelistbox.h.

Constructor & Destructor Documentation

◆ TDEListBox()

TDEListBox::TDEListBox ( TQWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0 
)

Definition at line 30 of file tdelistbox.cpp.

Member Function Documentation

◆ contentsMouseDoubleClickEvent()

void TDEListBox::contentsMouseDoubleClickEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 243 of file tdelistbox.cpp.

◆ contentsMousePressEvent()

void TDEListBox::contentsMousePressEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 229 of file tdelistbox.cpp.

◆ doubleClicked

void TDEListBox::doubleClicked ( TQListBoxItem *  item,
const TQPoint &  pos 
)
signal

This signal gets emitted whenever the user double clicks into the listbox.

Parameters
itemThe pointer to the clicked listbox item.
posThe position where the user has clicked.

Note that you may not delete any TQListBoxItem objects in slots connected to this signal.

This signal is more or less here for the sake of completeness. You should normally not need to use this. In most cases it's better to use executed() instead.

◆ emitExecute()

void TDEListBox::emitExecute ( TQListBoxItem *  item,
const TQPoint &  pos 
)
protected

Definition at line 179 of file tdelistbox.cpp.

◆ executed [1/2]

void TDEListBox::executed ( TQListBoxItem *  item)
signal

Emitted whenever the user executes an listbox item.

That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Parameters
itemis the pointer to the executed listbox item.

Note that you may not delete any TQListBoxItem objects in slots connected to this signal.

◆ executed [2/2]

void TDEListBox::executed ( TQListBoxItem *  item,
const TQPoint &  pos 
)
signal

Emitted whenever the user executes an listbox item.

That means depending on the KDE wide Single Click/Double Click setting the user clicked or double clicked on that item.

Parameters
itemis the pointer to the executed listbox item.
posis the position where the user has clicked

Note that you may not delete any TQListBoxItem objects in slots connected to this signal.

◆ focusOutEvent()

void TDEListBox::focusOutEvent ( TQFocusEvent *  fe)
protectedvirtual

Definition at line 215 of file tdelistbox.cpp.

◆ keyPressEvent()

void TDEListBox::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Definition at line 199 of file tdelistbox.cpp.

◆ leaveEvent()

void TDEListBox::leaveEvent ( TQEvent *  e)
protectedvirtual

Definition at line 222 of file tdelistbox.cpp.

◆ slotAutoSelect

void TDEListBox::slotAutoSelect ( )
protectedslot

Auto selection happend.

Definition at line 109 of file tdelistbox.cpp.

◆ slotOnItem

void TDEListBox::slotOnItem ( TQListBoxItem *  item)
protectedslot

Definition at line 51 of file tdelistbox.cpp.

◆ slotOnViewport

void TDEListBox::slotOnViewport ( )
protectedslot

Definition at line 62 of file tdelistbox.cpp.

◆ slotSettingsChanged

void TDEListBox::slotSettingsChanged ( int  category)
protectedslot

Definition at line 72 of file tdelistbox.cpp.

◆ virtual_hook()

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

Definition at line 263 of file tdelistbox.cpp.

Member Data Documentation

◆ m_autoSelectDelay

int TDEListBox::m_autoSelectDelay
protected

Definition at line 116 of file tdelistbox.h.

◆ m_bChangeCursorOverItem

bool TDEListBox::m_bChangeCursorOverItem
protected

Definition at line 111 of file tdelistbox.h.

◆ m_bUseSingle

bool TDEListBox::m_bUseSingle
protected

Definition at line 110 of file tdelistbox.h.

◆ m_pAutoSelect

TQTimer* TDEListBox::m_pAutoSelect
protected

Definition at line 115 of file tdelistbox.h.

◆ m_pCurrentItem

TQListBoxItem* TDEListBox::m_pCurrentItem
protected

Definition at line 113 of file tdelistbox.h.


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