kplato

KPlato::DoubleListViewBase Class Reference

#include <kptdoublelistviewbase.h>

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 447 of file kptdoublelistviewbase.cpp.

◆ calculate()

void KPlato::DoubleListViewBase::calculate ( )
virtual

Definition at line 452 of file kptdoublelistviewbase.cpp.

◆ clearLists()

void KPlato::DoubleListViewBase::clearLists ( )

Definition at line 459 of file kptdoublelistviewbase.cpp.

◆ clearSlaveList()

void KPlato::DoubleListViewBase::clearSlaveList ( )

Definition at line 394 of file kptdoublelistviewbase.cpp.

◆ createSlaveItems()

void KPlato::DoubleListViewBase::createSlaveItems ( )
virtual

Definition at line 401 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 485 of file kptdoublelistviewbase.cpp.

◆ print()

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

Definition at line 411 of file kptdoublelistviewbase.cpp.

◆ setDescriptionHeader()

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

Definition at line 435 of file kptdoublelistviewbase.cpp.

◆ setFormat()

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

Definition at line 477 of file kptdoublelistviewbase.cpp.

◆ setMasterFormat()

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

Definition at line 464 of file kptdoublelistviewbase.cpp.

◆ setNameHeader()

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

Definition at line 439 of file kptdoublelistviewbase.cpp.

◆ setOpen()

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

Definition at line 416 of file kptdoublelistviewbase.cpp.

◆ setSlaveFormat()

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

Definition at line 470 of file kptdoublelistviewbase.cpp.

◆ setTotalHeader()

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

Definition at line 443 of file kptdoublelistviewbase.cpp.

◆ sizeHint()

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

Definition at line 389 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 428 of file kptdoublelistviewbase.cpp.

◆ slotExpanded

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

Definition at line 421 of file kptdoublelistviewbase.cpp.


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