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