summaryrefslogtreecommitdiffstats
path: root/kdgantt/KDGanttViewItem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kdgantt/KDGanttViewItem.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt/KDGanttViewItem.h')
-rw-r--r--kdgantt/KDGanttViewItem.h172
1 files changed, 86 insertions, 86 deletions
diff --git a/kdgantt/KDGanttViewItem.h b/kdgantt/KDGanttViewItem.h
index e296db0ad..cebced302 100644
--- a/kdgantt/KDGanttViewItem.h
+++ b/kdgantt/KDGanttViewItem.h
@@ -36,15 +36,15 @@
#ifndef KDGANTTVIEWITEM_H
#define KDGANTTVIEWITEM_H
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qcolor.h>
-#include <qpixmap.h>
-#include <qfont.h>
-#include <qlistview.h>
-#include <qcanvas.h>
-#include <qdom.h>
-#include <qdict.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqpixmap.h>
+#include <tqfont.h>
+#include <tqlistview.h>
+#include <tqcanvas.h>
+#include <tqdom.h>
+#include <tqdict.h>
class KDGanttView;
class KDTimeTableWidget;
@@ -63,26 +63,26 @@ public:
protected:
KDGanttViewItem( Type type, KDGanttView* view,
- const QString& lvtext = QString::null,
- const QString& name = QString::null );
+ const TQString& lvtext = TQString::null,
+ const TQString& name = TQString::null );
KDGanttViewItem( Type type, KDGanttViewItem* parent,
- const QString& lvtext = QString::null,
- const QString& name = QString::null );
+ const TQString& lvtext = TQString::null,
+ const TQString& name = TQString::null );
KDGanttViewItem( Type type, KDGanttView* view, KDGanttViewItem* after,
- const QString& lvtext = QString::null,
- const QString& name = QString::null );
+ const TQString& lvtext = TQString::null,
+ const TQString& name = TQString::null );
KDGanttViewItem( Type type, KDGanttViewItem* parent,
KDGanttViewItem* after,
- const QString& lvtext = QString::null,
- const QString& name = QString::null );
+ const TQString& lvtext = TQString::null,
+ const TQString& name = TQString::null );
//bool _isCalendar;
bool isVisibleInGanttView;
void updateCanvasItems();
int getCoordY();
- QDateTime myChildStartTime();
- QDateTime myChildEndTime();
- void generateAndInsertName( const QString& name );
+ TQDateTime myChildStartTime();
+ TQDateTime myChildEndTime();
+ void generateAndInsertName( const TQString& name );
KDCanvasLine * startLine, *endLine,
* startLineBack, *endLineBack, *actualEnd ;
KDCanvasPolygonItem* startShape,* midShape, *endShape, *progressShape,
@@ -90,16 +90,16 @@ protected:
* floatStartShape, * floatEndShape;
KDGanttView* myGanttView;
KDCanvasText* textCanvas;
- QString textCanvasText;
- QDateTime myStartTime, myEndTime;
+ TQString textCanvasText;
+ TQDateTime myStartTime, myEndTime;
bool isHighlighted, isEditable;
int myItemSize;
bool blockUpdating;
void moveTextCanvas(int x, int y);
int myProgress;
- QDateTime myFloatStartTime;
- QDateTime myFloatEndTime;
+ TQDateTime myFloatStartTime;
+ TQDateTime myFloatEndTime;
public:
virtual ~KDGanttViewItem();
@@ -118,25 +118,25 @@ public:
bool displaySubitemsAsGroup() const;
void setPriority( int prio );
int priority();
- virtual void setStartTime( const QDateTime& start );
- QDateTime startTime() const;
- virtual void setEndTime( const QDateTime& end );
- QDateTime endTime() const;
-
- void setText( const QString& text );
- QString text() const;
- void setListViewText( const QString& text, int column = 0 );
- void setListViewText( int column, const QString& text );
- QString listViewText( int column = 0 ) const;
- void setFont( const QFont& font );
- QFont font() const;
- void setTooltipText( const QString& text );
- QString tooltipText() const;
- void setWhatsThisText( const QString& text );
- QString whatsThisText() const;
- void setPixmap( int column, const QPixmap& pixmap );
- void setPixmap( const QPixmap& pixmap );
- const QPixmap* pixmap( int column = 0 ) const;
+ virtual void setStartTime( const TQDateTime& start );
+ TQDateTime startTime() const;
+ virtual void setEndTime( const TQDateTime& end );
+ TQDateTime endTime() const;
+
+ void setText( const TQString& text );
+ TQString text() const;
+ void setListViewText( const TQString& text, int column = 0 );
+ void setListViewText( int column, const TQString& text );
+ TQString listViewText( int column = 0 ) const;
+ void setFont( const TQFont& font );
+ TQFont font() const;
+ void setTooltipText( const TQString& text );
+ TQString tooltipText() const;
+ void setWhatsThisText( const TQString& text );
+ TQString whatsThisText() const;
+ void setPixmap( int column, const TQPixmap& pixmap );
+ void setPixmap( const TQPixmap& pixmap );
+ const TQPixmap* pixmap( int column = 0 ) const;
void setHighlight( bool );
bool highlight() const;
@@ -147,44 +147,44 @@ public:
void setShapes( Shape start, Shape middle, Shape end );
void shapes( Shape& start, Shape& middle, Shape& end ) const;
- void setDefaultColor( const QColor& );
- QColor defaultColor() const;
- void setColors( const QColor& start, const QColor& middle,
- const QColor& end );
- void colors( QColor& start, QColor& middle, QColor& end ) const;
- void setDefaultHighlightColor( const QColor& );
- QColor defaultHighlightColor() const;
- void setHighlightColors( const QColor& start, const QColor& middle,
- const QColor& end );
- void highlightColors( QColor& start, QColor& middle, QColor& end ) const;
- void setTextColor( const QColor& color );
- QColor textColor() const;
+ void setDefaultColor( const TQColor& );
+ TQColor defaultColor() const;
+ void setColors( const TQColor& start, const TQColor& middle,
+ const TQColor& end );
+ void colors( TQColor& start, TQColor& middle, TQColor& end ) const;
+ void setDefaultHighlightColor( const TQColor& );
+ TQColor defaultHighlightColor() const;
+ void setHighlightColors( const TQColor& start, const TQColor& middle,
+ const TQColor& end );
+ void highlightColors( TQColor& start, TQColor& middle, TQColor& end ) const;
+ void setTextColor( const TQColor& color );
+ TQColor textColor() const;
void setProgress(int percent);
- void setFloatStartTime(const QDateTime &start);
- void setFloatEndTime(const QDateTime &end);
+ void setFloatStartTime(const TQDateTime &start);
+ void setFloatEndTime(const TQDateTime &end);
KDGanttViewItem* firstChild() const;
KDGanttViewItem* nextSibling() const;
KDGanttViewItem* parent() const;
KDGanttViewItem* itemAbove();
KDGanttViewItem* itemBelow( bool includeDisabled = true );
- KDGanttViewItem* getChildByName( const QString& name );
- QString name() const;
- static KDGanttViewItem* find( const QString& name );
+ KDGanttViewItem* getChildByName( const TQString& name );
+ TQString name() const;
+ static KDGanttViewItem* find( const TQString& name );
- void createNode( QDomDocument& doc,
- QDomElement& parentElement );
+ void createNode( TQDomDocument& doc,
+ TQDomElement& parentElement );
static KDGanttViewItem* createFromDomElement( KDGanttView* view,
- QDomElement& element );
+ TQDomElement& element );
static KDGanttViewItem* createFromDomElement( KDGanttView* view,
KDGanttViewItem* previous,
- QDomElement& element );
+ TQDomElement& element );
static KDGanttViewItem* createFromDomElement( KDGanttViewItem* parent,
- QDomElement& element );
+ TQDomElement& element );
static KDGanttViewItem* createFromDomElement( KDGanttViewItem* parent,
KDGanttViewItem* previous,
- QDomElement& element );
+ TQDomElement& element );
void setMoveable( bool m );
bool isMoveable() const;
@@ -202,9 +202,9 @@ private:
friend class KDGanttViewItemDrag;
friend class itemAttributeDialog;
- static QString shapeToString( Shape shape );
- static Shape stringToShape( const QString& string );
- static QString typeToString( Type type );
+ static TQString shapeToString( Shape shape );
+ static Shape stringToShape( const TQString& string );
+ static TQString typeToString( Type type );
Type myType;
void initColorAndShapes(Type t);
@@ -218,33 +218,33 @@ private:
void setCallListViewOnSetOpen( bool call );
bool showNoCross();
void createShape(KDCanvasPolygonItem* &,KDCanvasPolygonItem* &, Shape);
- void loadFromDomElement( QDomElement& element );
+ void loadFromDomElement( TQDomElement& element );
- //QFont myFont;
- QString myToolTipText,myWhatsThisText;
- void paintBranches ( QPainter * p, const QColorGroup & cg, int w, int y, int h );
+ //TQFont myFont;
+ TQString myToolTipText,myWhatsThisText;
+ void paintBranches ( TQPainter * p, const TQColorGroup & cg, int w, int y, int h );
bool _displaySubitemsAsGroup;
bool _showNoInformation;
bool _enabled;
bool _callListViewOnSetOpen;
Shape myStartShape,myMiddleShape,myEndShape;
- QColor myStartColor,myMiddleColor,myEndColor;
- QColor myStartColorHL,myMiddleColorHL,myEndColorHL;
- QColor myDefaultColor,myDefaultColorHL;
- QColor myTextColor;
+ TQColor myStartColor,myMiddleColor,myEndColor;
+ TQColor myStartColorHL,myMiddleColorHL,myEndColorHL;
+ TQColor myDefaultColor,myDefaultColorHL;
+ TQColor myTextColor;
bool colorDefined,colorHLDefined;
- QPoint getTaskLinkStartCoord(QPoint);
- QPoint getTaskLinkEndCoord();
- QPoint middleLeft();
- QPoint middleRight();
+ TQPoint getTaskLinkStartCoord(TQPoint);
+ TQPoint getTaskLinkEndCoord();
+ TQPoint middleLeft();
+ TQPoint middleRight();
void moveTextCanvas();
- void setTextOffset(QPoint p);
- bool isMyTextCanvas(QCanvasItem *tc);
- QPoint myTextOffset;
- QString _name;
+ void setTextOffset(TQPoint p);
+ bool isMyTextCanvas(TQCanvasItem *tc);
+ TQPoint myTextOffset;
+ TQString _name;
bool shapeDefined;
int _priority;
- static QDict<KDGanttViewItem> sItemDict;
+ static TQDict<KDGanttViewItem> sItemDict;
bool _isMoveable;
bool _isResizeable;