kplato

KPlato::DoubleListViewBase Class Reference

#include <kptdoublelistviewbase.h>

Inherits TQSplitter.

Inherited by KPlato::ResourceAppointmentsView, and KPlato::TaskAppointmentsView.

Public Member Functions

 DoubleListViewBase (TQWidget *parent, bool description=false)
 
ListView * masterListView () const
 
ListView * slaveListView () const
 
void setOpen (TQListViewItem *item, bool open)
 
void setNameHeader (TQString text)
 
void setTotalHeader (TQString text)
 
void setDescriptionHeader (TQString text)
 
void addSlaveColumn (TQString text)
 
virtual void print (KPrinter &printer)
 
virtual void calculate ()
 
void clearLists ()
 
virtual void createSlaveItems ()
 
void clearSlaveList ()
 
void setFormat (int fieldwidth=0, char fmt='f', int prec=0)
 
void setMasterFormat (int fieldwidth=0, char fmt='f', int prec=0)
 
void setSlaveFormat (int fieldwidth=0, char fmt='f', int prec=0)
 
virtual TQSize sizeHint () const
 
virtual void paintContents (TQPainter *p)
 

Protected Slots

void slotExpanded (TQListViewItem *item)
 
void slotCollapsed (TQListViewItem *item)
 

Detailed Description

The class DoubleListViewBase provides a double listview where the right listview (the slave) containes columns of double values and the left listview (the master) is the 'item' listview and also provides for a sum total column of the values in the slave listview.

This makes it possible to scroll the slave listview and still see the values in the master listview.

Definition at line 59 of file kptdoublelistviewbase.h.

Constructor & Destructor Documentation

◆ DoubleListViewBase()

KPlato::DoubleListViewBase::DoubleListViewBase ( TQWidget *  parent,
bool  description = false 
)

Definition at line 345 of file kptdoublelistviewbase.cpp.

Member Function Documentation

◆ addSlaveColumn()

void KPlato::DoubleListViewBase::addSlaveColumn ( TQString  text)

Definition at line 449 of file kptdoublelistviewbase.cpp.

◆ calculate()

void KPlato::DoubleListViewBase::calculate ( )
virtual

Definition at line 454 of file kptdoublelistviewbase.cpp.

◆ clearLists()

void KPlato::DoubleListViewBase::clearLists ( )

Definition at line 461 of file kptdoublelistviewbase.cpp.

◆ clearSlaveList()

void KPlato::DoubleListViewBase::clearSlaveList ( )

Definition at line 396 of file kptdoublelistviewbase.cpp.

◆ createSlaveItems()

void KPlato::DoubleListViewBase::createSlaveItems ( )
virtual

Definition at line 403 of file kptdoublelistviewbase.cpp.

◆ masterListView()

ListView * KPlato::DoubleListViewBase::masterListView ( ) const
inline

Definition at line 69 of file kptdoublelistviewbase.h.

◆ paintContents()

void KPlato::DoubleListViewBase::paintContents ( TQPainter *  p)
virtual

Definition at line 487 of file kptdoublelistviewbase.cpp.

◆ print()

void KPlato::DoubleListViewBase::print ( KPrinter &  printer)
virtual

Definition at line 413 of file kptdoublelistviewbase.cpp.

◆ setDescriptionHeader()

void KPlato::DoubleListViewBase::setDescriptionHeader ( TQString  text)

Definition at line 437 of file kptdoublelistviewbase.cpp.

◆ setFormat()

void KPlato::DoubleListViewBase::setFormat ( int  fieldwidth = 0,
char  fmt = 'f',
int  prec = 0 
)

Definition at line 479 of file kptdoublelistviewbase.cpp.

◆ setMasterFormat()

void KPlato::DoubleListViewBase::setMasterFormat ( int  fieldwidth = 0,
char  fmt = 'f',
int  prec = 0 
)

Definition at line 466 of file kptdoublelistviewbase.cpp.

◆ setNameHeader()

void KPlato::DoubleListViewBase::setNameHeader ( TQString  text)

Definition at line 441 of file kptdoublelistviewbase.cpp.

◆ setOpen()

void KPlato::DoubleListViewBase::setOpen ( TQListViewItem *  item,
bool  open 
)

Definition at line 418 of file kptdoublelistviewbase.cpp.

◆ setSlaveFormat()

void KPlato::DoubleListViewBase::setSlaveFormat ( int  fieldwidth = 0,
char  fmt = 'f',
int  prec = 0 
)

Definition at line 472 of file kptdoublelistviewbase.cpp.

◆ setTotalHeader()

void KPlato::DoubleListViewBase::setTotalHeader ( TQString  text)

Definition at line 445 of file kptdoublelistviewbase.cpp.

◆ sizeHint()

TQSize KPlato::DoubleListViewBase::sizeHint ( ) const
virtual

Definition at line 391 of file kptdoublelistviewbase.cpp.

◆ slaveListView()

ListView * KPlato::DoubleListViewBase::slaveListView ( ) const
inline

Definition at line 70 of file kptdoublelistviewbase.h.

◆ slotCollapsed

void KPlato::DoubleListViewBase::slotCollapsed ( TQListViewItem *  item)
protectedslot

Definition at line 430 of file kptdoublelistviewbase.cpp.

◆ slotExpanded

void KPlato::DoubleListViewBase::slotExpanded ( TQListViewItem *  item)
protectedslot

Definition at line 423 of file kptdoublelistviewbase.cpp.


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