#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()
|
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()
|
virtual |
Definition at line 401 of file kptdoublelistviewbase.cpp.
◆ masterListView()
|
inline |
Definition at line 69 of file kptdoublelistviewbase.h.
◆ paintContents()
|
virtual |
Definition at line 485 of file kptdoublelistviewbase.cpp.
◆ print()
|
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()
|
virtual |
Definition at line 389 of file kptdoublelistviewbase.cpp.
◆ slaveListView()
|
inline |
Definition at line 70 of file kptdoublelistviewbase.h.
◆ slotCollapsed
|
protectedslot |
Definition at line 428 of file kptdoublelistviewbase.cpp.
◆ slotExpanded
|
protectedslot |
Definition at line 421 of file kptdoublelistviewbase.cpp.
The documentation for this class was generated from the following files:
