1 #ifndef _XTQGANTTLISTVIEWPORT_H_
2 #define _XTQGANTTLISTVIEWPORT_H_
33 #include "xQGanttBarViewPort.h"
34 #include "KGanttItem.h"
65 const char * name=0, WFlags f=0 );
79 void barViewResized();
88 void update( int x1, int y1, int x2, int y2);
98 void drawContents(TQPainter*, int x1, int y1, int x2, int y2);
99 void drawItem( KGanttItem*, TQPainter* p, const TQRect&, int);
107 void paintEvent(TQPaintEvent * e) {
109 update(e->rect().left(), e->rect().top(),
110 e->rect().right(), e->rect().bottom() );
115 void mousePressEvent(TQMouseEvent* e) {
117 if(e->button() == TQt::RightButton && e->state() == ControlButton ) {
118 _menu->popup(e->globalPos());
125 TQBrush brush1, brush2;
127 static int _ListViewCounter;
GanttListViewPort Widget.
~xQGanttListViewPort() Destructor.
xQGanttListViewPort(KGanttItem *toplevelitem, TQWidget *parent=0, const char *name=0, WFlags f=0) Constructor.
void update(int x1, int y1, int x2, int y2) Update widget.
|