36 #include "KDGanttViewSubwidgets.h"
37 #include "KDGanttViewTaskItem.h"
38 #include "KDGanttViewSummaryItem.h"
39 #include "KDGanttViewEventItem.h"
40 #include "itemAttributeDialog.h"
42 #include "tqpainter.h"
44 #include "KDGanttXMLTools.h"
160 TQDict<KDGanttViewItem> KDGanttViewItem::sItemDict;
172 const TQString& lvtext,
173 const TQString& name ) :
174 TQListViewItem(view->myListView,lvtext)
176 initColorAndShapes(
type);
192 const TQString& lvtext,
193 const TQString& name ) :
194 TQListViewItem(parentItem,lvtext)
196 initColorAndShapes(
type);
214 const TQString& lvtext,
215 const TQString& name ) :
216 TQListViewItem(view->myListView,after, lvtext)
218 initColorAndShapes(
type);
236 const TQString& lvtext,
237 const TQString& name ) :
238 TQListViewItem( parentItem, after, lvtext )
240 initColorAndShapes(
type);
263 if ( progressShape )
delete progressShape ;
264 if ( floatStartShape )
delete floatStartShape ;
265 if ( floatEndShape )
delete floatEndShape ;
266 myGanttView->myTimeTable->removeItemFromTasklinks(
this );
272 parent()->takeItem(
this );
290 if( !_name.isEmpty() )
292 sItemDict.remove( _name );
295 if (
name.isEmpty() || sItemDict.find(
name ) ) {
297 newName.sprintf(
"%p", (
void* )
this );
298 while( sItemDict.find( newName ) ) {
304 sItemDict.insert( newName,
this );
332 return sItemDict.find(
name );
372 TQListViewItem::setEnabled( on );
401 resetSubitemVisibility();
417 return TQListViewItem::isVisible();
463 if ( !show && _displaySubitemsAsGroup)
465 _displaySubitemsAsGroup = show;
484 return _displaySubitemsAsGroup;
566 tqDebug(
"KDGantt:Event Item has no end time" );
572 tqDebug(
"KDGantt:Task Item has no end time" );
575 tqDebug(
"Unknown type in KDGanttViewItem::typeToString()" );
629 TQListViewItem::setText( column,
text );
642 TQListViewItem::setText( column,
text );
656 return TQListViewItem::text( column );
693 myToolTipText =
text;
706 return myToolTipText;
718 myWhatsThisText =
text;
731 return myWhatsThisText;
790 myStartShape = start;
791 myMiddleShape= middle;
813 void KDGanttViewItem::createShape( KDCanvasPolygonItem* &itemShape,
814 KDCanvasPolygonItem* &itemShapeBack,
817 if ( itemShape &&
type() == Task )
819 if (itemShape)
delete itemShape;
820 if (itemShapeBack)
delete itemShapeBack;
822 TQCanvasPolygonalItem * item;
823 TQCanvasPolygonalItem * itemBack;
829 item =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
830 TQPointArray arr = TQPointArray(3);
831 arr.setPoint(0,-size/2,-hei);
832 arr.setPoint(1,size/2,-hei);
833 arr.setPoint(2,0,((size/2)-hei));
834 ((TQCanvasPolygon*)item)->setPoints(arr);
836 itemBack =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
837 arr.setPoint(0,-size/2,-hei);
838 arr.setPoint(1,size/2,-hei);
839 arr.setPoint(2,0,((size/2)-hei));
840 ((TQCanvasPolygon*)itemBack)->setPoints(arr);
849 item =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
850 TQPointArray arr = TQPointArray(3);
851 arr.setPoint(0,-size/2,hei);
852 arr.setPoint(1,size/2,hei);
853 arr.setPoint(2,0,(-size/2)+hei);
854 ((TQCanvasPolygon*)item)->setPoints(arr);
856 itemBack =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
857 arr.setPoint(0,-size/2,hei);
858 arr.setPoint(1,size/2,hei);
859 arr.setPoint(2,0,(-size/2)+hei);
860 ((TQCanvasPolygon*)itemBack)->setPoints(arr);
867 item =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
868 TQPointArray arr = TQPointArray(4);
869 arr.setPoint(0,0,-size/2);
870 arr.setPoint(1,size/2,0);
871 arr.setPoint(2,0,size/2);
872 arr.setPoint(3,-size/2,0);
873 ((TQCanvasPolygon*)item)->setPoints(arr);
875 itemBack =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
876 arr.setPoint(0,0,-size/2);
877 arr.setPoint(1,size/2,0);
878 arr.setPoint(2,0,size/2);
879 arr.setPoint(3,-size/2,0);
880 ((TQCanvasPolygon*)itemBack)->setPoints(arr);
887 item =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
888 TQPointArray arr = TQPointArray(4);
889 arr.setPoint(0,-size/2,-size/2);
890 arr.setPoint(1,size/2,-size/2);
891 arr.setPoint(2,size/2,size/2);
892 arr.setPoint(3,-size/2,size/2);
893 ((TQCanvasPolygon*)item)->setPoints(arr);
895 itemBack =
new KDCanvasPolygon(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
896 arr.setPoint(0,-size/2,-size/2);
897 arr.setPoint(1,size/2,-size/2);
898 arr.setPoint(2,size/2,size/2);
899 arr.setPoint(3,-size/2,size/2);
900 ((TQCanvasPolygon*)itemBack)->setPoints(arr);
907 item =
new KDCanvasEllipse(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
908 ((KDCanvasEllipse*)item)->setSize(size,size);
910 itemBack =
new KDCanvasEllipse(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
911 ((KDCanvasEllipse*)itemBack)->setSize(size,size);
919 item->setBrush(TQt::SolidPattern);
921 itemShape = (KDCanvasPolygonItem*) item;
922 itemBack->setBrush(TQt::SolidPattern);
924 itemShapeBack = (KDCanvasPolygonItem*) itemBack;
939 start = myStartShape;
940 middle = myMiddleShape;
962 myMiddleColor= middle;
987 start = myStartColor ;
988 middle = myMiddleColor;
1013 myStartColorHL=start ;
1014 myMiddleColorHL= middle;
1039 start = myStartColorHL ;
1040 middle = myMiddleColorHL;
1060 myTextColor = color;
1110 TQListViewItem::setPixmap( column,
pixmap );
1118 TQListViewItem::setPixmap( 0,
pixmap );
1131 return TQListViewItem::pixmap( column );
1152 myDefaultColor = color;
1178 return myDefaultColor;
1199 myDefaultColorHL = color;
1222 return myDefaultColorHL;
1285 if ( !includeDisabled ) {
1289 if (itemPos() + height() == retItem->itemPos() ) {
1293 KDGanttViewItem* Item2 = (
KDGanttViewItem* )TQListViewItem::listView()->itemAt(TQPoint (2, TQListViewItem::itemPos() + TQListViewItem::height() +2) );
1309 b.setStyle(TQt::SolidPattern);
1313 b.setStyle(TQt::SolidPattern);
1314 b.setColor(myStartColorHL);
1316 b.setColor(myMiddleColorHL);
1318 b.setColor(myEndColorHL);
1321 p.setColor(myStartColorHL);
1323 p.setColor(myEndColorHL);
1326 b.setStyle(TQt::SolidPattern);
1327 b.setColor(myStartColor);
1330 b.setColor(myMiddleColor);
1332 b.setColor(myEndColor);
1335 p.setColor(myStartColor);
1337 p.setColor(myEndColor);
1342 TQColor discol = TQColor(232,232,232);
1343 textCanvas->setColor( TQColor(150,150,150) );
1344 b.setStyle(TQt::SolidPattern);
1366 void KDGanttViewItem::initItem()
1376 if ( _callListViewOnSetOpen ) {
1379 listView ()->setOpen(
this, open );
1383 TQListViewItem::setOpen( open );
1388 void KDGanttViewItem::showItem(
bool,
int )
1393 TQPoint KDGanttViewItem::getTaskLinkStartCoord(TQPoint p)
1400 TQPoint KDGanttViewItem::getTaskLinkEndCoord()
1406 void KDGanttViewItem::hideSubtree()
1416 void KDGanttViewItem::setCallListViewOnSetOpen(
bool call )
1418 _callListViewOnSetOpen = call;
1422 void KDGanttViewItem::initColorAndShapes(Type t)
1424 _isMoveable =
false;
1425 _isResizeable =
false;
1426 setTextOffset(TQPoint(0,0));
1428 _callListViewOnSetOpen =
true;
1432 floatStartShape = 0;
1448 myToolTipText =TQListViewItem::text(0);
1449 myWhatsThisText = TQListViewItem::text(0);
1461 actualEnd->setPen( TQPen ( TQt::red, 3 ) );
1473 if (!( shapeDefined = (
myGanttView->
shapes(myType,myStartShape,myMiddleShape,myEndShape)))) {
1478 setShapes(myStartShape,myMiddleShape,myEndShape);
1479 if (
type() == Task ) {
1483 startShape = (KDCanvasPolygonItem*)
new KDCanvasRectangle(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
1484 progressShape = (KDCanvasPolygonItem*)
new KDCanvasRectangle(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
1486 floatStartShape = (KDCanvasPolygonItem*)
new KDCanvasRectangle(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
1487 floatEndShape = (KDCanvasPolygonItem*)
new KDCanvasRectangle(
myGanttView->myTimeTable,
this,Type_is_KDGanttViewItem);
1490 if (!( colorDefined = (
myGanttView->
colors(myType,myStartColor,myMiddleColor,myEndColor)))) {
1504 _showNoInformation =
false;
1511 TQString KDGanttViewItem::shapeToString( Shape shape )
1515 return "TriangleDown";
1517 return "TriangleUp";
1531 if(
string ==
"TriangleDown" )
1532 return TriangleDown;
1533 else if(
string ==
"TriangleUp" )
1535 else if(
string ==
"Diamond" )
1537 else if(
string ==
"Square" )
1539 else if(
string ==
"Circle" )
1542 return TriangleDown;
1553 TQDomElement& parentElement )
1555 TQDomElement itemElement = doc.createElement(
"Item" );
1556 parentElement.appendChild( itemElement );
1557 itemElement.setAttribute(
"Type", typeToString(
type() ) );
1559 KDGanttXML::createDateTimeNode( doc, itemElement,
"StartTime",
startTime() );
1560 KDGanttXML::createDateTimeNode( doc, itemElement,
"EndTime",
endTime() );
1561 KDGanttXML::createFontNode( doc, itemElement,
"Font",
font() );
1562 KDGanttXML::createStringNode( doc, itemElement,
"Text",
text() );
1563 KDGanttXML::createStringNode( doc, itemElement,
"TooltipText",
tooltipText() );
1564 KDGanttXML::createStringNode( doc, itemElement,
"WhatsThisText",
1567 KDGanttXML::createPixmapNode( doc, itemElement,
"Pixmap", *
pixmap() );
1569 KDGanttXML::createStringNode( doc, itemElement,
"ListViewText",
1571 KDGanttXML::createBoolNode( doc, itemElement,
"Open", isOpen() );
1572 KDGanttXML::createBoolNode( doc, itemElement,
"Highlight",
highlight() );
1575 KDGanttXML::createStringNode( doc, itemElement,
"StartShape",
1577 KDGanttXML::createStringNode( doc, itemElement,
"MiddleShape",
1578 shapeToString( middleShape ) );
1579 KDGanttXML::createStringNode( doc, itemElement,
"EndShape",
1581 KDGanttXML::createColorNode( doc, itemElement,
"DefaultColor",
defaultColor() );
1582 TQColor startColor, middleColor, endColor;
1583 colors( startColor, middleColor, endColor );
1584 KDGanttXML::createColorNode( doc, itemElement,
"StartColor", startColor );
1585 KDGanttXML::createColorNode( doc, itemElement,
"MiddleColor", middleColor );
1586 KDGanttXML::createColorNode( doc, itemElement,
"EndColor", endColor );
1587 KDGanttXML::createColorNode( doc, itemElement,
"DefaultHighlightColor",
1590 KDGanttXML::createColorNode( doc, itemElement,
"StartHighlightColor",
1592 KDGanttXML::createColorNode( doc, itemElement,
"MiddleHighlightColor",
1594 KDGanttXML::createColorNode( doc, itemElement,
"EndHighlightColor", endColor );
1595 KDGanttXML::createColorNode( doc, itemElement,
"TextColor",
textColor() );
1596 KDGanttXML::createStringNode( doc, itemElement,
"Name",
name() );
1597 TQDomElement itemsElement = doc.createElement(
"Items" );
1598 itemElement.appendChild( itemsElement );
1600 while( currentItem ) {
1601 currentItem->
createNode( doc, itemsElement );
1618 TQDomElement& element )
1620 TQString typeString = element.attribute(
"Type" );
1621 Q_ASSERT( !typeString.isEmpty() );
1623 if( typeString ==
"Task" )
1625 else if( typeString ==
"Summary" )
1627 else if( typeString ==
"Event" )
1630 tqDebug(
"Unknown item type %s in KDGanttViewItem::createFromDomElement()", typeString.latin1() );
1634 item->loadFromDomElement( element );
1650 TQDomElement& element )
1652 TQString typeString = element.attribute(
"Type" );
1653 Q_ASSERT( !typeString.isEmpty() );
1655 if( typeString ==
"Task" )
1657 else if( typeString ==
"Summary" )
1659 else if( typeString ==
"Event" )
1662 tqDebug(
"Unknown item type in KDGanttViewItem::createFromDomElement()" );
1666 item->loadFromDomElement( element );
1682 TQDomElement& element )
1684 TQString typeString = element.attribute(
"Type" );
1685 Q_ASSERT( !typeString.isEmpty() );
1687 if( typeString ==
"Task" )
1689 else if( typeString ==
"Summary" )
1691 else if( typeString ==
"Event" )
1694 tqDebug(
"Unknown item type in KDGanttViewItem::createFromDomElement()" );
1698 item->loadFromDomElement( element );
1714 TQDomElement& element )
1716 TQString typeString = element.attribute(
"Type" );
1717 Q_ASSERT( !typeString.isEmpty() );
1719 if( typeString ==
"Task" )
1721 else if( typeString ==
"Summary" )
1723 else if( typeString ==
"Event" )
1726 tqDebug(
"Unknown item type in KDGanttViewItem::createFromDomElement()" );
1730 item->loadFromDomElement( element );
1738 void KDGanttViewItem::loadFromDomElement( TQDomElement& element )
1740 TQDomNode node = element.firstChild();
1743 TQColor startColor, middleColor, endColor;
1744 TQColor startHighlightColor, middleHighlightColor, endHighlightColor;
1746 while( !node.isNull() ) {
1747 TQDomElement element = node.toElement();
1748 if( !element.isNull() ) {
1749 TQString tagName = element.tagName();
1750 if( tagName ==
"StartTime" ) {
1752 if( KDGanttXML::readDateTimeNode( element, value ) )
1754 }
else if( tagName ==
"EndTime" ) {
1756 if( KDGanttXML::readDateTimeNode( element, value ) )
1758 }
else if( tagName ==
"Text" ) {
1760 if( KDGanttXML::readStringNode( element, value ) )
1762 }
else if( tagName ==
"Font" ) {
1764 if( KDGanttXML::readFontNode( element, value ) )
1766 }
else if( tagName ==
"TooltipText" ) {
1768 if( KDGanttXML::readStringNode( element, value ) )
1770 }
else if( tagName ==
"WhatsThisText" ) {
1772 if( KDGanttXML::readStringNode( element, value ) )
1774 }
else if( tagName ==
"Pixmap" ) {
1776 if( KDGanttXML::readPixmapNode( element, value ) )
1778 }
else if( tagName ==
"ListViewText" ) {
1780 if( KDGanttXML::readStringNode( element, value ) )
1782 }
else if( tagName ==
"Open" ) {
1784 if( KDGanttXML::readBoolNode( element, value ) )
1786 }
else if( tagName ==
"Highlight" ) {
1788 if( KDGanttXML::readBoolNode( element, value ) )
1790 }
else if( tagName ==
"StartShape" ) {
1792 if( KDGanttXML::readStringNode( element, value ) )
1794 }
else if( tagName ==
"MiddleShape" ) {
1796 if( KDGanttXML::readStringNode( element, value ) )
1797 middleShape = stringToShape( value );
1798 }
else if( tagName ==
"EndShape" ) {
1800 if( KDGanttXML::readStringNode( element, value ) )
1802 }
else if( tagName ==
"DefaultColor" ) {
1804 if( KDGanttXML::readColorNode( element, value ) )
1806 }
else if( tagName ==
"StartColor" ) {
1808 if( KDGanttXML::readColorNode( element, value ) )
1810 }
else if( tagName ==
"MiddleColor" ) {
1812 if( KDGanttXML::readColorNode( element, value ) )
1813 middleColor = value;
1814 }
else if( tagName ==
"EndColor" ) {
1816 if( KDGanttXML::readColorNode( element, value ) )
1818 }
else if( tagName ==
"DefaultHighlightColor" ) {
1820 if( KDGanttXML::readColorNode( element, value ) )
1822 }
else if( tagName ==
"StartHighlightColor" ) {
1824 if( KDGanttXML::readColorNode( element, value ) )
1825 startHighlightColor = value;
1826 }
else if( tagName ==
"MiddleHighlightColor" ) {
1828 if( KDGanttXML::readColorNode( element, value ) )
1829 middleHighlightColor = value;
1830 }
else if( tagName ==
"EndHighlightColor" ) {
1832 if( KDGanttXML::readColorNode( element, value ) )
1833 endHighlightColor = value;
1834 }
else if( tagName ==
"TextColor" ) {
1836 if( KDGanttXML::readColorNode( element, value ) )
1838 }
else if( tagName ==
"Name" ) {
1840 if( KDGanttXML::readStringNode( element, value ) )
1842 }
else if( tagName ==
"Items" ) {
1843 TQDomNode node = element.firstChild();
1845 while( !node.isNull() ) {
1846 TQDomElement element = node.toElement();
1847 if( !element.isNull() ) {
1848 TQString tagName = element.tagName();
1849 if( tagName ==
"Item" ) {
1862 tqDebug(
"Unrecognized tag name: %s", tagName.latin1() );
1867 node = node.nextSibling();
1870 tqDebug(
"Unrecognized tag name: %s", tagName.latin1() );
1875 node = node.nextSibling();
1878 setColors( startColor, middleColor, endColor );
1880 endHighlightColor );
1886 TQString KDGanttViewItem::typeToString( Type type )
1896 tqDebug(
"Unknown type in KDGanttViewItem::typeToString()" );
1910 return itemPos() + height()/2;
1914 void KDGanttViewItem::showSubItems()
1920 void KDGanttViewItem::showSubitemTree(
int CoordY )
1927 temp->showItem(
true, CoordY );
1932 temp->hideSubtree();
1934 temp->showSubitemTree( CoordY );
1941 showItem(
true, CoordY );
1953 TQDateTime ret, tempTime;
1967 if ( tempTime < ret ) {
1987 TQDateTime ret, tempTime;
2001 if ( tempTime > ret ) {
2022 return _showNoInformation;
2039 _showNoInformation = show;
2100 int KDGanttViewItem::computeHeight()
2104 if ( !isVisible() ) {
2156 tempHeight = temp->computeHeight();
2197 bool KDGanttViewItem::showNoCross()
2212 void KDGanttViewItem::paintBranches ( TQPainter* p,
const TQColorGroup& cg,
2213 int w,
int y,
int h )
2215 TQListViewItem::paintBranches ( p, cg, w, y, h);
2221 if ( temp->showNoCross() ) {
2223 int y_coord = temp->itemPos() -height ()- itemPos();
2224 int hei = temp->height();
2227 myGanttView->myListView->paintemptyarea( p, TQRect( 0,y+y_coord,w,hei));
2229 int y_c = y+y_coord+ temp->height ()/2;
2232 y_ce =y+y_coord+ temp->height ();
2236 for (i = y+y_coord+1; i <= y_ce; i+=2 ) {
2237 p->drawPoint( x_c, i );
2239 for (i = x_c+2; i < w; i+=2 ) {
2240 p->drawPoint( i, y_c );
2250 void KDGanttViewItem::resetSubitemVisibility()
2263 setVisible(
false );
2270 temp->resetSubitemVisibility();
2273 temp->setVisible(
false);
2282 temp->resetSubitemVisibility();
2286 if ( !allow && isOpen() )
2468 TQPoint KDGanttViewItem::middleLeft()
2475 TQPoint KDGanttViewItem::middleRight()
2484 int mx = x + myTextOffset.x();
2485 int my = y + myTextOffset.y();
2486 if (myTextOffset.x() != 0)
2497 void KDGanttViewItem::moveTextCanvas()
2499 TQPoint m = myTextOffset+middleRight();
2506 void KDGanttViewItem::setTextOffset(TQPoint p)
2509 myTextOffset.setX(p.x());
2510 myTextOffset.setY(p.y());
2513 bool KDGanttViewItem::isMyTextCanvas(TQCanvasItem *tc)
2527 myProgress = TQMAX(0, percent);
2528 myProgress = TQMIN(100, myProgress);
2539 myFloatStartTime = start;
2550 myFloatEndTime = end;
2553 void KDGanttViewItem::setMoveable(
bool m)
2558 bool KDGanttViewItem::isMoveable()
const
2563 bool KDGanttViewItem::isResizeable()
const
2565 return _isResizeable;
2568 void KDGanttViewItem::setResizeable(
bool r)
void setTextColor(const TQColor &color)
KDCanvasPolygonItem * midShapeBack
TQString listViewText(int column=0) const
TQColor defaultColor() const
void setFont(const TQFont &font)
void setTooltipText(const TQString &text)
KDCanvasText * textCanvas
void setText(const TQString &text)
KDGanttViewItem * getChildByName(const TQString &name)
void setItemVisible(bool on)
const TQPixmap * pixmap(int column=0) const
void setShowNoInformation(bool show)
KDGanttViewItem * itemBelow(bool includeDisabled=true)
KDCanvasPolygonItem * startShape
KDCanvasPolygonItem * midShape
virtual void setEndTime(const TQDateTime &end)
void moveTextCanvas(int x, int y)
void setPriority(int prio)
KDGanttViewItem * itemAbove()
virtual void setStartTime(const TQDateTime &start)
void setEditable(bool editable)
void generateAndInsertName(const TQString &name)
static KDGanttViewItem * find(const TQString &name)
KDCanvasPolygonItem * endShapeBack
KDCanvasLine * endLineBack
TQString whatsThisText() const
void setColors(const TQColor &start, const TQColor &middle, const TQColor &end)
void createNode(TQDomDocument &doc, TQDomElement &parentElement)
KDCanvasPolygonItem * startShapeBack
KDGanttViewItem * nextSibling() const
KDGanttViewItem * parent() const
TQDateTime myChildStartTime()
TQDateTime endTime() const
TQString tooltipText() const
KDGanttView * myGanttView
KDCanvasLine * startLineBack
TQColor defaultHighlightColor() const
void setFloatStartTime(const TQDateTime &start)
void highlightColors(TQColor &start, TQColor &middle, TQColor &end) const
void setPixmap(int column, const TQPixmap &pixmap)
static KDGanttViewItem * createFromDomElement(KDGanttView *view, TQDomElement &element)
void setProgress(int percent)
void setShapes(Shape start, Shape middle, Shape end)
void colors(TQColor &start, TQColor &middle, TQColor &end) const
void setFloatEndTime(const TQDateTime &end)
void setDisplaySubitemsAsGroup(bool show)
bool displaySubitemsAsGroup() const
KDGanttViewItem * firstChild() const
void setDefaultColor(const TQColor &)
void setHighlightColors(const TQColor &start, const TQColor &middle, const TQColor &end)
void setListViewText(const TQString &text, int column=0)
bool isVisibleInGanttView
TQColor textColor() const
TQDateTime myChildEndTime()
TQDateTime startTime() const
bool subitemIsCalendar() const
KDGanttViewItem(Type type, KDGanttView *view, const TQString &lvtext=TQString(), const TQString &name=TQString())
void setWhatsThisText(const TQString &text)
KDCanvasPolygonItem * endShape
void shapes(Shape &start, Shape &middle, Shape &end) const
void setDefaultHighlightColor(const TQColor &)
virtual void setOpen(bool o)
virtual ~KDGanttViewItem()
bool colors(KDGanttViewItem::Type type, TQColor &start, TQColor &middle, TQColor &end) const
bool calendarMode() const
bool highlightColors(KDGanttViewItem::Type type, TQColor &start, TQColor &middle, TQColor &end) const
TQColor defaultHighlightColor(KDGanttViewItem::Type type) const
TQColor defaultColor(KDGanttViewItem::Type type) const
bool shapes(KDGanttViewItem::Type type, KDGanttViewItem::Shape &start, KDGanttViewItem::Shape &middle, KDGanttViewItem::Shape &end) const
TQColor textColor() const
bool displaySubitemsAsGroup() const