libtdepim

#include <ksubscription.h>

Inherits TQCheckListItem.

Public Member Functions

 GroupItem (TQListView *v, const KGroupInfo &gi, KSubscription *browser, bool isCheckItem=false)
 
 GroupItem (TQListViewItem *i, const KGroupInfo &gi, KSubscription *browser, bool isCheckItem=false)
 
KGroupInfo info ()
 
void setInfo (KGroupInfo info)
 
TQListViewItem * originalParent ()
 
void setOriginalParent (TQListViewItem *parent)
 
bool lastOpenState ()
 
void setLastOpenState (bool last)
 
virtual void setDescription ()
 
bool isCheckItem () const
 
bool ignoreStateChange ()
 
void setIgnoreStateChange (bool ignore)
 
virtual void setOn (bool on)
 
virtual void stateChange (bool on)
 
void setVisible (bool b)
 
virtual void paintCell (TQPainter *p, const TQColorGroup &cg, int column, int width, int align)
 
virtual void paintFocus (TQPainter *, const TQColorGroup &cg, const TQRect &r)
 
virtual int width (const TQFontMetrics &, const TQListView *, int column) const
 
virtual void setup ()
 
virtual int rtti () const
 

Protected Attributes

KGroupInfo mInfo
 
KSubscriptionmBrowser
 
TQListViewItem * mOriginalParent
 
bool mLastOpenState
 
bool mIsCheckItem
 
bool mIgnoreStateChange
 

Detailed Description

A class representing a single group item (what's that?)

Definition at line 72 of file ksubscription.h.

Member Function Documentation

◆ ignoreStateChange()

bool GroupItem::ignoreStateChange ( )
inline

Get/Set if state changes should be ignored.

Definition at line 112 of file ksubscription.h.

◆ info()

KGroupInfo GroupItem::info ( )
inline

Get/Set the KGroupInfo.

Definition at line 83 of file ksubscription.h.

◆ isCheckItem()

bool GroupItem::isCheckItem ( ) const
inline

Get if this is a checkable item.

Definition at line 107 of file ksubscription.h.

◆ lastOpenState()

bool GroupItem::lastOpenState ( )
inline

Get/Set the last open state.

Definition at line 95 of file ksubscription.h.

◆ originalParent()

TQListViewItem* GroupItem::originalParent ( )
inline

Get/Set the original parent.

Definition at line 89 of file ksubscription.h.

◆ paintCell()

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

Reimplemented Calls TQListViewItem or TQCheckListItem.

Definition at line 169 of file ksubscription.cpp.

◆ paintFocus()

void GroupItem::paintFocus ( TQPainter *  p,
const TQColorGroup &  cg,
const TQRect &  r 
)
virtual

Reimplemented Calls TQListViewItem or TQCheckListItem.

Definition at line 179 of file ksubscription.cpp.

◆ rtti()

virtual int GroupItem::rtti ( ) const
inlinevirtual

Reimplemented.

Definition at line 160 of file ksubscription.h.

◆ setDescription()

void GroupItem::setDescription ( )
virtual

Sets the description from the KGroupInfo Reimplement this for special cases.

Definition at line 87 of file ksubscription.cpp.

◆ setOn()

void GroupItem::setOn ( bool  on)
virtual

Reimplemented Sets the subscribed property (only while items are loaded)

Definition at line 93 of file ksubscription.cpp.

◆ setup()

void GroupItem::setup ( )
virtual

Reimplemented Calls TQListViewItem or TQCheckListItem.

Definition at line 198 of file ksubscription.cpp.

◆ setVisible()

void GroupItem::setVisible ( bool  b)

Reimplemented Sets items invisible or disabled or even moves them.

Definition at line 114 of file ksubscription.cpp.

◆ stateChange()

void GroupItem::stateChange ( bool  on)
virtual

Reimlemented Calls KSubscription::changeItemState if mIgnoreStateChange == false.

Definition at line 106 of file ksubscription.cpp.

◆ width()

int GroupItem::width ( const TQFontMetrics &  fm,
const TQListView *  lv,
int  column 
) const
virtual

Reimplemented Calls TQListViewItem or TQCheckListItem.

Definition at line 189 of file ksubscription.cpp.


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