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

tdeui

Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Friends | List of all members
TDEIconView Class Reference

#include <kiconview.h>

Inherits TQIconView.

Public Types

enum  Mode { Execute , Select }
 

Signals

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

Public Member Functions

 TDEIconView (TQWidget *parent=0, const char *name=0, WFlags f=0)
 
void setMode (Mode m)
 
Mode mode () const
 
virtual void setFont (const TQFont &)
 
void setIconTextHeight (int n)
 
int iconTextHeight () const
 
virtual void takeItem (TQIconViewItem *item)
 

Protected Slots

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

Protected Member Functions

void emitExecute (TQIconViewItem *item, const TQPoint &pos)
 
void updateDragHoldItem (TQDropEvent *e)
 
virtual void focusOutEvent (TQFocusEvent *fe)
 
virtual void leaveEvent (TQEvent *e)
 
virtual void contentsMousePressEvent (TQMouseEvent *e)
 
virtual void contentsMouseDoubleClickEvent (TQMouseEvent *e)
 
virtual void contentsMouseReleaseEvent (TQMouseEvent *e)
 
virtual void contentsDragEnterEvent (TQDragEnterEvent *e)
 
virtual void contentsDragLeaveEvent (TQDragLeaveEvent *e)
 
virtual void contentsDragMoveEvent (TQDragMoveEvent *e)
 
virtual void contentsDropEvent (TQDropEvent *e)
 
virtual void wheelEvent (TQWheelEvent *e)
 
void cancelPendingHeldSignal ()
 
virtual void virtual_hook (int id, void *data)
 

Friends

class TDEIconViewItem
 

Detailed Description

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

This Widget extends the functionality of TQIconView 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 TQIconView::clicked() or TQIconView::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 TQIconView::selectionChanged() signal.

Definition at line 42 of file kiconview.h.

Member Enumeration Documentation

◆ Mode

enum TDEIconView::Mode

TDEIconView has two different operating modes.

Execute mode is depending on the configuration of single-click or double-click where the signal executed() will be emitted upon click/double-click. In Select mode, this signal will not be emitted.

Default is Execute mode.

Definition at line 62 of file kiconview.h.

Constructor & Destructor Documentation

◆ TDEIconView()

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

Definition at line 59 of file kiconview.cpp.

◆ ~TDEIconView()

TDEIconView::~TDEIconView ( )

Definition at line 83 of file kiconview.cpp.

Member Function Documentation

◆ cancelPendingHeldSignal()

void TDEIconView::cancelPendingHeldSignal ( )
protected

This method allows to handle correctly cases where a subclass needs the held() signal to not be triggered without calling a TDEIconView::contentsDrag*Event() method (which have side effects because they forward to TQIconView).

Definition at line 382 of file kiconview.cpp.

◆ contentsDragEnterEvent()

void TDEIconView::contentsDragEnterEvent ( TQDragEnterEvent *  e)
protectedvirtual

Definition at line 337 of file kiconview.cpp.

◆ contentsDragLeaveEvent()

void TDEIconView::contentsDragLeaveEvent ( TQDragLeaveEvent *  e)
protectedvirtual

Definition at line 343 of file kiconview.cpp.

◆ contentsDragMoveEvent()

void TDEIconView::contentsDragMoveEvent ( TQDragMoveEvent *  e)
protectedvirtual

Definition at line 351 of file kiconview.cpp.

◆ contentsDropEvent()

void TDEIconView::contentsDropEvent ( TQDropEvent *  e)
protectedvirtual

Definition at line 357 of file kiconview.cpp.

◆ contentsMouseDoubleClickEvent()

void TDEIconView::contentsMouseDoubleClickEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 306 of file kiconview.cpp.

◆ contentsMousePressEvent()

void TDEIconView::contentsMousePressEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 291 of file kiconview.cpp.

◆ contentsMouseReleaseEvent()

void TDEIconView::contentsMouseReleaseEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 331 of file kiconview.cpp.

◆ doubleClicked

void TDEIconView::doubleClicked ( TQIconViewItem *  item,
const TQPoint &  pos 
)
signal

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

Parameters
itemis the pointer to the clicked iconview item.
posis the position where the user has clicked, and

Note that you may not delete any TQIconViewItem 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 TDEIconView::emitExecute ( TQIconViewItem *  item,
const TQPoint &  pos 
)
protected

Definition at line 238 of file kiconview.cpp.

◆ executed [1/2]

void TDEIconView::executed ( TQIconViewItem *  item)
signal

This signal is emitted whenever the user executes an iconview 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 iconview item.

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

◆ executed [2/2]

void TDEIconView::executed ( TQIconViewItem *  item,
const TQPoint &  pos 
)
signal

This signal is emitted whenever the user executes an iconview 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 iconview item.
posis the position where the user has clicked

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

◆ focusOutEvent()

void TDEIconView::focusOutEvent ( TQFocusEvent *  fe)
protectedvirtual

Definition at line 277 of file kiconview.cpp.

◆ held

void TDEIconView::held ( TQIconViewItem *  item)
signal

This signal is emitted whenever the user hold something on an iconview during a drag'n'drop.

Parameters
itemis the pointer to the iconview item the hold event occur.

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

◆ iconTextHeight()

int TDEIconView::iconTextHeight ( ) const
Returns
The height of icon text in lines
Since
3.3

Definition at line 427 of file kiconview.cpp.

◆ leaveEvent()

void TDEIconView::leaveEvent ( TQEvent *  e)
protectedvirtual

Definition at line 284 of file kiconview.cpp.

◆ mode()

TDEIconView::Mode TDEIconView::mode ( ) const
Returns
the current Mode, either Execute or Select.

Definition at line 95 of file kiconview.cpp.

◆ setFont()

void TDEIconView::setFont ( const TQFont &  font)
virtual

Reimplemented for internal purposes.

Definition at line 401 of file kiconview.cpp.

◆ setIconTextHeight()

void TDEIconView::setIconTextHeight ( int  n)

Set the maximum number of lines that will be used to display icon text.

Setting this value will enable word-wrap, too.

Since
3.3
Parameters
nNumber of lines

Definition at line 432 of file kiconview.cpp.

◆ setMode()

void TDEIconView::setMode ( TDEIconView::Mode  mode)

Sets the mode to Execute or Select.

  • In Execute mode, the signal executed() will be emitted when the user clicks/double-clicks an item.
  • Select mode is the normal TQIconView mode.

Default is Execute.

Definition at line 90 of file kiconview.cpp.

◆ slotAutoSelect

void TDEIconView::slotAutoSelect ( )
protectedslot

Auto selection happend.

Definition at line 160 of file kiconview.cpp.

◆ slotOnItem

void TDEIconView::slotOnItem ( TQIconViewItem *  item)
protectedslot

Definition at line 100 of file kiconview.cpp.

◆ slotOnViewport

void TDEIconView::slotOnViewport ( )
protectedslot

Definition at line 115 of file kiconview.cpp.

◆ slotSettingsChanged

void TDEIconView::slotSettingsChanged ( int  category)
protectedslot

Definition at line 124 of file kiconview.cpp.

◆ takeItem()

void TDEIconView::takeItem ( TQIconViewItem *  item)
virtual

Reimplemented for held() signal behavior internal purposes.

Definition at line 371 of file kiconview.cpp.

◆ updateDragHoldItem()

void TDEIconView::updateDragHoldItem ( TQDropEvent *  e)
protected

Definition at line 259 of file kiconview.cpp.

◆ virtual_hook()

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

Definition at line 784 of file kiconview.cpp.

◆ wheelEvent()

void TDEIconView::wheelEvent ( TQWheelEvent *  e)
protectedvirtual

Definition at line 388 of file kiconview.cpp.

Friends And Related Function Documentation

◆ TDEIconViewItem

friend class TDEIconViewItem
friend

Definition at line 44 of file kiconview.h.


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