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

tdeui

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

#include <kcolordialog.h>

Inherits TQGridView.

Signals

void colorSelected (int col)
 
void colorDoubleClicked (int col)
 

Public Member Functions

 KColorCells (TQWidget *parent, int rows, int cols)
 
void setColor (int colNum, const TQColor &col)
 
TQColor color (int indx) const
 
int numCells () const
 
void setShading (bool _shade)
 
void setAcceptDrags (bool _acceptDrags)
 
int getSelected () const
 

Protected Member Functions

virtual void paintCell (TQPainter *painter, int row, int col)
 
virtual void resizeEvent (TQResizeEvent *)
 
virtual void mouseReleaseEvent (TQMouseEvent *)
 
virtual void mousePressEvent (TQMouseEvent *)
 
virtual void mouseMoveEvent (TQMouseEvent *)
 
virtual void dragEnterEvent (TQDragEnterEvent *)
 
virtual void dropEvent (TQDropEvent *)
 
virtual void mouseDoubleClickEvent (TQMouseEvent *)
 
int posToCell (const TQPoint &pos, bool ignoreBorders=false)
 
virtual void virtual_hook (int id, void *data)
 

Protected Attributes

TQColor * colors
 
bool inMouse
 
TQPoint mPos
 
int selected
 
bool shade
 
bool acceptDrags
 

Detailed Description

A table of editable color cells.

Author
Martin Jones mjone.nosp@m.s@kd.nosp@m.e.org

Definition at line 253 of file kcolordialog.h.

Constructor & Destructor Documentation

◆ KColorCells()

KColorCells::KColorCells ( TQWidget *  parent,
int  rows,
int  cols 
)

Definition at line 340 of file kcolordialog.cpp.

◆ ~KColorCells()

KColorCells::~KColorCells ( )

Definition at line 363 of file kcolordialog.cpp.

Member Function Documentation

◆ color()

TQColor KColorCells::color ( int  indx) const
inline

Definition at line 261 of file kcolordialog.h.

◆ dragEnterEvent()

void KColorCells::dragEnterEvent ( TQDragEnterEvent *  event)
protectedvirtual

Definition at line 449 of file kcolordialog.cpp.

◆ dropEvent()

void KColorCells::dropEvent ( TQDropEvent *  event)
protectedvirtual

Definition at line 454 of file kcolordialog.cpp.

◆ getSelected()

int KColorCells::getSelected ( ) const
inline

Definition at line 270 of file kcolordialog.h.

◆ mouseDoubleClickEvent()

void KColorCells::mouseDoubleClickEvent ( TQMouseEvent *  )
protectedvirtual

Definition at line 486 of file kcolordialog.cpp.

◆ mouseMoveEvent()

void KColorCells::mouseMoveEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 430 of file kcolordialog.cpp.

◆ mousePressEvent()

void KColorCells::mousePressEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 406 of file kcolordialog.cpp.

◆ mouseReleaseEvent()

void KColorCells::mouseReleaseEvent ( TQMouseEvent *  e)
protectedvirtual

Definition at line 463 of file kcolordialog.cpp.

◆ numCells()

int KColorCells::numCells ( ) const
inline

Definition at line 263 of file kcolordialog.h.

◆ paintCell()

void KColorCells::paintCell ( TQPainter *  painter,
int  row,
int  col 
)
protectedvirtual

Definition at line 374 of file kcolordialog.cpp.

◆ posToCell()

int KColorCells::posToCell ( const TQPoint &  pos,
bool  ignoreBorders = false 
)
protected

Definition at line 412 of file kcolordialog.cpp.

◆ resizeEvent()

void KColorCells::resizeEvent ( TQResizeEvent *  )
protectedvirtual

Definition at line 400 of file kcolordialog.cpp.

◆ setAcceptDrags()

void KColorCells::setAcceptDrags ( bool  _acceptDrags)
inline

Definition at line 268 of file kcolordialog.h.

◆ setColor()

void KColorCells::setColor ( int  colNum,
const TQColor &  col 
)

Definition at line 368 of file kcolordialog.cpp.

◆ setShading()

void KColorCells::setShading ( bool  _shade)
inline

Definition at line 266 of file kcolordialog.h.

◆ virtual_hook()

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

Definition at line 1605 of file kcolordialog.cpp.

Member Data Documentation

◆ acceptDrags

bool KColorCells::acceptDrags
protected

Definition at line 294 of file kcolordialog.h.

◆ colors

TQColor* KColorCells::colors
protected

Definition at line 289 of file kcolordialog.h.

◆ inMouse

bool KColorCells::inMouse
protected

Definition at line 290 of file kcolordialog.h.

◆ mPos

TQPoint KColorCells::mPos
protected

Definition at line 291 of file kcolordialog.h.

◆ selected

int KColorCells::selected
protected

Definition at line 292 of file kcolordialog.h.

◆ shade

bool KColorCells::shade
protected

Definition at line 293 of file kcolordialog.h.


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