lib

#include <editoritem.h>

Inheritance diagram for KoProperty::EditorItem:
TDEListViewItem

Public Types

typedef TQAsciiDict< EditorItem > Dict

Public Member Functions

 EditorItem (Editor *editor, EditorItem *parent, Property *property, TQListViewItem *after=0)
 EditorItem (TDEListView *parent)
 EditorItem (EditorItem *parent, const TQString &text)
 EditorItem (EditorItem *parent, EditorItem *after, const TQString &text)
Property * property ()
Public Member Functions inherited from TDEListViewItem
 TDEListViewItem (TQListView *parent)
bool isAlternate ()
const TQColor & backgroundColor () TDE_DEPRECATED
TQColor backgroundColor (int column)

Protected Member Functions

virtual void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int align)
virtual void paintBranches (TQPainter *p, const TQColorGroup &cg, int w, int y, int h)
virtual void paintFocus (TQPainter *p, const TQColorGroup &cg, const TQRect &r)
virtual int compare (TQListViewItem *i, int col, bool ascending) const
virtual void setHeight (int height)

Protected Attributes

EditorItemPrivate * d

Detailed Description

Item for a single property displayed within Editor object.

Author
Cedric Pasteur cedri.nosp@m.c.pa.nosp@m.steur.nosp@m.@fre.nosp@m.e.fr
Alexander Dymo cloud.nosp@m.temp.nosp@m.le@ms.nosp@m.kat..nosp@m.net
Jaroslaw Staniek js@ii.nosp@m.dea..nosp@m.pl

Definition at line 47 of file editoritem.h.

Member Typedef Documentation

◆ Dict

typedef TQAsciiDict<EditorItem> KoProperty::EditorItem::Dict

Definition at line 50 of file editoritem.h.

Constructor & Destructor Documentation

◆ EditorItem() [1/4]

EditorItem::EditorItem ( Editor * editor,
EditorItem * parent,
Property * property,
TQListViewItem * after = 0 )

Creates an EditorItem child of parent, associated to property. It property has not desctiption set, its name (i.e. not i18n'ed) is reused.

Definition at line 257 of file editoritem.cpp.

◆ EditorItem() [2/4]

EditorItem::EditorItem ( TDEListView * parent)

Two helper contructors for subclass.

Definition at line 283 of file editoritem.cpp.

◆ EditorItem() [3/4]

EditorItem::EditorItem ( EditorItem * parent,
const TQString & text )

Definition at line 292 of file editoritem.cpp.

◆ EditorItem() [4/4]

EditorItem::EditorItem ( EditorItem * parent,
EditorItem * after,
const TQString & text )

Definition at line 301 of file editoritem.cpp.

◆ ~EditorItem()

EditorItem::~EditorItem ( )
virtual

Definition at line 310 of file editoritem.cpp.

Member Function Documentation

◆ compare()

int EditorItem::compare ( TQListViewItem * i,
int col,
bool ascending ) const
protectedvirtual

Definition at line 489 of file editoritem.cpp.

◆ paintBranches()

void EditorItem::paintBranches ( TQPainter * p,
const TQColorGroup & cg,
int w,
int y,
int h )
protectedvirtual

Reimplemented from TDEListViewItem to draw custom contents. It takes care of drawing the [+] and [-] signs only if the item has children.

Definition at line 384 of file editoritem.cpp.

◆ paintCell()

void EditorItem::paintCell ( TQPainter * p,
const TQColorGroup & cg,
int column,
int width,
int align )
protectedvirtual

Reimplemented from TDEListViewItem to draw custom contents. Properties names are wriiten in bold if modified. Also takes care of drawing borders around the cells as well as pixmaps or colors if necessary.

Todo
custom color?
Todo
custom color?

Definition at line 322 of file editoritem.cpp.

◆ paintFocus()

void EditorItem::paintFocus ( TQPainter * p,
const TQColorGroup & cg,
const TQRect & r )
protectedvirtual

Definition at line 484 of file editoritem.cpp.

◆ property()

Property * EditorItem::property ( )
Returns
a pointer to the property associated to this item.

Definition at line 316 of file editoritem.cpp.

◆ setHeight()

void EditorItem::setHeight ( int height)
protectedvirtual

Definition at line 508 of file editoritem.cpp.

Member Data Documentation

◆ d

EditorItemPrivate* KoProperty::EditorItem::d
protected

Definition at line 86 of file editoritem.h.


The documentation for this class was generated from the following files: