diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 36a36a5c1015aa0d03f4515c401e907ddb9d6291 (patch) | |
tree | 0212ba6d2c749043134005a41f2bd0379619d40f /kdgantt | |
parent | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (diff) | |
download | tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.tar.gz tdepim-36a36a5c1015aa0d03f4515c401e907ddb9d6291.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdgantt')
-rw-r--r-- | kdgantt/KDGanttMinimizeSplitter.cpp | 20 | ||||
-rw-r--r-- | kdgantt/KDGanttMinimizeSplitter.h | 6 | ||||
-rw-r--r-- | kdgantt/KDGanttSemiSizingControl.cpp | 20 | ||||
-rw-r--r-- | kdgantt/KDGanttSemiSizingControl.h | 6 | ||||
-rw-r--r-- | kdgantt/KDGanttSizingControl.cpp | 6 | ||||
-rw-r--r-- | kdgantt/KDGanttSizingControl.h | 2 | ||||
-rw-r--r-- | kdgantt/KDGanttView.cpp | 10 | ||||
-rw-r--r-- | kdgantt/KDGanttView.h | 2 | ||||
-rw-r--r-- | kdgantt/KDGanttViewEventItem.cpp | 12 | ||||
-rw-r--r-- | kdgantt/KDGanttViewEventItem.h | 4 | ||||
-rw-r--r-- | kdgantt/KDGanttViewItem.cpp | 54 | ||||
-rw-r--r-- | kdgantt/KDGanttViewItem.h | 10 | ||||
-rw-r--r-- | kdgantt/KDGanttViewSubwidgets.cpp | 58 | ||||
-rw-r--r-- | kdgantt/KDGanttViewSubwidgets.h | 10 | ||||
-rw-r--r-- | kdgantt/KDGanttViewSummaryItem.cpp | 14 | ||||
-rw-r--r-- | kdgantt/KDGanttViewSummaryItem.h | 4 | ||||
-rw-r--r-- | kdgantt/KDGanttViewTaskItem.cpp | 22 | ||||
-rw-r--r-- | kdgantt/KDGanttViewTaskItem.h | 4 | ||||
-rw-r--r-- | kdgantt/KDGanttXMLTools.cpp | 60 | ||||
-rw-r--r-- | kdgantt/KDGanttXMLTools.h | 30 |
20 files changed, 177 insertions, 177 deletions
diff --git a/kdgantt/KDGanttMinimizeSplitter.cpp b/kdgantt/KDGanttMinimizeSplitter.cpp index b863e4e6e..f11832f37 100644 --- a/kdgantt/KDGanttMinimizeSplitter.cpp +++ b/kdgantt/KDGanttMinimizeSplitter.cpp @@ -56,10 +56,10 @@ static int opaqueOldPos = -1; //### there's only one mouse, but this is a bit ri KDGanttSplitterHandle::KDGanttSplitterHandle( Qt::Orientation o, - KDGanttMinimizeSplitter *tqparent, const char * name ) - : TQWidget( tqparent, name ), _activeButton( 0 ), _collapsed( false ) + KDGanttMinimizeSplitter *parent, const char * name ) + : TQWidget( parent, name ), _activeButton( 0 ), _collapsed( false ) { - s = tqparent; + s = parent; setOrientation(o); setMouseTracking( true ); } @@ -325,7 +325,7 @@ void kdganttGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int count, i To show a TQListBox, a TQListView and a TQTextEdit side by side: \code - KDGanttMinimizeSplitter *split = new KDGanttMinimizeSplitter( tqparent ); + KDGanttMinimizeSplitter *split = new KDGanttMinimizeSplitter( parent ); TQListBox *lb = new TQListBox( split ); TQListView *lv = new TQListView( split ); TQTextEdit *ed = new TQTextEdit( split ); @@ -378,22 +378,22 @@ static TQSize minSizeHint( const TQWidget* w ) /*! - Constructs a horizontal splitter with the \a tqparent and \a + Constructs a horizontal splitter with the \a parent and \a name arguments being passed on to the TQFrame constructor. */ -KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( TQWidget *tqparent, const char *name ) - :TQFrame(tqparent,name,WPaintUnclipped) +KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( TQWidget *parent, const char *name ) + :TQFrame(parent,name,WPaintUnclipped) { orient = Qt::Horizontal; init(); } /*! - Constructs a splitter with orientation \a o with the \a tqparent + Constructs a splitter with orientation \a o with the \a parent and \a name arguments being passed on to the TQFrame constructor. */ -KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( Qt::Orientation o, TQWidget *tqparent, const char *name ) - :TQFrame(tqparent,name,WPaintUnclipped) +KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( Qt::Orientation o, TQWidget *parent, const char *name ) + :TQFrame(parent,name,WPaintUnclipped) { orient = o; init(); diff --git a/kdgantt/KDGanttMinimizeSplitter.h b/kdgantt/KDGanttMinimizeSplitter.h index 9137da064..0d3499ac1 100644 --- a/kdgantt/KDGanttMinimizeSplitter.h +++ b/kdgantt/KDGanttMinimizeSplitter.h @@ -52,8 +52,8 @@ public: enum ResizeMode { Stretch, KeepSize, FollowSizeHint }; enum Direction { Left, Right, Up, Down }; - KDGanttMinimizeSplitter( TQWidget* tqparent=0, const char* name=0 ); - KDGanttMinimizeSplitter( Qt::Orientation, TQWidget* tqparent=0, const char* name=0 ); + KDGanttMinimizeSplitter( TQWidget* parent=0, const char* name=0 ); + KDGanttMinimizeSplitter( Qt::Orientation, TQWidget* parent=0, const char* name=0 ); ~KDGanttMinimizeSplitter(); virtual void setOrientation( Qt::Orientation ); @@ -141,7 +141,7 @@ class KDGanttSplitterHandle : public TQWidget TQ_OBJECT public: KDGanttSplitterHandle( Qt::Orientation o, - KDGanttMinimizeSplitter *tqparent, const char* name=0 ); + KDGanttMinimizeSplitter *parent, const char* name=0 ); void setOrientation( Qt::Orientation o ); Qt::Orientation orientation() const { return orient; } diff --git a/kdgantt/KDGanttSemiSizingControl.cpp b/kdgantt/KDGanttSemiSizingControl.cpp index 08c1a004c..bfaa161d0 100644 --- a/kdgantt/KDGanttSemiSizingControl.cpp +++ b/kdgantt/KDGanttSemiSizingControl.cpp @@ -57,15 +57,15 @@ orientation and the control arrow button on top of the controlled widget. - \param tqparent the tqparent widget. This parameter is passed to the + \param parent the parent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. */ -KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* tqparent, +KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent, const char* name ) : - KDGanttSizingControl( tqparent, name ), _orient( Qt::Horizontal ), + KDGanttSizingControl( parent, name ), _orient( Qt::Horizontal ), _arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0) { init(); @@ -78,16 +78,16 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* tqparent, the controlled widget (depending on the orientation). \param orientation the orientation of the splitter - \param tqparent the tqparent widget. This parameter is passed to the + \param parent the parent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. */ KDGanttSemiSizingControl::KDGanttSemiSizingControl( Qt::Orientation orientation, - TQWidget* tqparent, + TQWidget* parent, const char* name ) : - KDGanttSizingControl( tqparent, name ), _orient( orientation ), + KDGanttSizingControl( parent, name ), _orient( orientation ), _arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0) { init(); @@ -101,7 +101,7 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( Qt::Orientation orientation, \param arrowPosition specifies whether the control arrow button should appear before or after the controlled widget \param orientation the orientation of the splitter - \param tqparent the tqparent widget. This parameter is passed to the + \param parent the parent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. @@ -109,9 +109,9 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( Qt::Orientation orientation, KDGanttSemiSizingControl::KDGanttSemiSizingControl( ArrowPosition arrowPosition, Qt::Orientation orientation, - TQWidget* tqparent, + TQWidget* parent, const char* name ) : - KDGanttSizingControl( tqparent, name ), _orient( orientation ), + KDGanttSizingControl( parent, name ), _orient( orientation ), _arrowPos( arrowPosition ), _minimizedWidget(0), _maximizedWidget(0) { init(); @@ -313,7 +313,7 @@ void KDGanttSemiSizingControl::setup() ************************************************** */ // hack for the usage in KDGantt as pop-up legend widget // for this purpose, - // the _maximizedWidget must be a child of the tqparent of this widget + // the _maximizedWidget must be a child of the parent of this widget if ( isMinimized() ) { widget = _minimizedWidget; diff --git a/kdgantt/KDGanttSemiSizingControl.h b/kdgantt/KDGanttSemiSizingControl.h index 5857786e0..c1cc0b597 100644 --- a/kdgantt/KDGanttSemiSizingControl.h +++ b/kdgantt/KDGanttSemiSizingControl.h @@ -50,11 +50,11 @@ class KDGanttSemiSizingControl : public KDGanttSizingControl public: enum ArrowPosition { Before, After }; - KDGanttSemiSizingControl( TQWidget* tqparent = 0, const char* name = 0 ); - KDGanttSemiSizingControl( Qt::Orientation orientation, TQWidget* tqparent = 0, + KDGanttSemiSizingControl( TQWidget* parent = 0, const char* name = 0 ); + KDGanttSemiSizingControl( Qt::Orientation orientation, TQWidget* parent = 0, const char* name = 0 ); KDGanttSemiSizingControl( ArrowPosition arrowPosition, - Qt::Orientation orientation, TQWidget* tqparent = 0, + Qt::Orientation orientation, TQWidget* parent = 0, const char* name = 0 ); void setMinimizedWidget( TQWidget* widget ); diff --git a/kdgantt/KDGanttSizingControl.cpp b/kdgantt/KDGanttSizingControl.cpp index a51f9f4fe..3d174ad57 100644 --- a/kdgantt/KDGanttSizingControl.cpp +++ b/kdgantt/KDGanttSizingControl.cpp @@ -48,7 +48,7 @@ /*! Constructs an empty KDGanttSizing Control. - \param tqparent the tqparent widget. This parameter is passed to the + \param parent the parent widget. This parameter is passed to the base class. \param name the internal widget name. This parameter is passed to the base class. @@ -56,8 +56,8 @@ */ -KDGanttSizingControl::KDGanttSizingControl( TQWidget* tqparent, const char* name, WFlags f ) - :TQWidget( tqparent, name, f ), _isMinimized( false ) +KDGanttSizingControl::KDGanttSizingControl( TQWidget* parent, const char* name, WFlags f ) + :TQWidget( parent, name, f ), _isMinimized( false ) { } diff --git a/kdgantt/KDGanttSizingControl.h b/kdgantt/KDGanttSizingControl.h index cbea0c58b..ffdb0fa7d 100644 --- a/kdgantt/KDGanttSizingControl.h +++ b/kdgantt/KDGanttSizingControl.h @@ -44,7 +44,7 @@ public: bool isMinimized() const; protected: - KDGanttSizingControl( TQWidget* tqparent = 0, const char* name = 0, WFlags f = 0 ); + KDGanttSizingControl( TQWidget* parent = 0, const char* name = 0, WFlags f = 0 ); public slots: virtual void minimize( bool minimize ); diff --git a/kdgantt/KDGanttView.cpp b/kdgantt/KDGanttView.cpp index 749e53064..303ca8651 100644 --- a/kdgantt/KDGanttView.cpp +++ b/kdgantt/KDGanttView.cpp @@ -76,12 +76,12 @@ /*! Constructs an empty KDGanttView. - \param tqparent the widget tqparent + \param parent the widget parent \param name the internal debugging name */ -KDGanttView::KDGanttView( TQWidget* tqparent, const char* name ) - : KDGanttMinimizeSplitter( Qt::Vertical, tqparent, name ), +KDGanttView::KDGanttView( TQWidget* parent, const char* name ) + : KDGanttMinimizeSplitter( Qt::Vertical, parent, name ), myCanvasView(0), myTimeHeaderScroll(0), mFixedHorizon( false ) @@ -2346,7 +2346,7 @@ KDGanttViewItem* KDGanttView::firstChild() const GanttView as a calendar view, you have to call setDisplaySubitemsAsGroup( true ); to use the root items as calendar items. To create new calendar entries for these root items, create - a new KDGanttViewTaskItem with this root item as a tqparent. If you + a new KDGanttViewTaskItem with this root item as a parent. If you want an item with subitems to behave like a calendar (which is possibly empty at startup), please call setIsCalendar( true ); for this item. @@ -4542,7 +4542,7 @@ void KDGanttView::lvStartDrag (KDGanttViewItem* item) // In order to avoid starting drags for particular items, subclass KDGanttView // an reimplement this method. // insert here some code like - // if ( item->tqparent() ) + // if ( item->parent() ) // return; // This particular code will make it impossible to drag other items but root items. if ( d->drag() ) { diff --git a/kdgantt/KDGanttView.h b/kdgantt/KDGanttView.h index 781cc7586..264b609c1 100644 --- a/kdgantt/KDGanttView.h +++ b/kdgantt/KDGanttView.h @@ -119,7 +119,7 @@ public: enum HourFormat { Hour_24, Hour_12, Hour_24_FourDigit }; enum RepaintMode { No, Medium, Always }; - KDGanttView( TQWidget* tqparent = 0, const char* name = 0 ); + KDGanttView( TQWidget* parent = 0, const char* name = 0 ); ~KDGanttView(); virtual void show(); diff --git a/kdgantt/KDGanttViewEventItem.cpp b/kdgantt/KDGanttViewEventItem.cpp index 137c8ea3c..2d43a8e07 100644 --- a/kdgantt/KDGanttViewEventItem.cpp +++ b/kdgantt/KDGanttViewEventItem.cpp @@ -64,15 +64,15 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* tqparent, +KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Event, tqparent, lvtext, name ) + KDGanttViewItem( Event, parent, lvtext, name ) { initItem(); @@ -102,17 +102,17 @@ KDGanttViewEventItem::KDGanttViewEventItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param after another item at the same level behind which this one should go \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* tqparent, +KDGanttViewEventItem::KDGanttViewEventItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Event, tqparent, after, lvtext, name ) + KDGanttViewItem( Event, parent, after, lvtext, name ) { initItem(); diff --git a/kdgantt/KDGanttViewEventItem.h b/kdgantt/KDGanttViewEventItem.h index 033a248df..6bddf5a4d 100644 --- a/kdgantt/KDGanttViewEventItem.h +++ b/kdgantt/KDGanttViewEventItem.h @@ -43,13 +43,13 @@ public: KDGanttViewEventItem( KDGanttView* view, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewEventItem( KDGanttViewItem* tqparent, + KDGanttViewEventItem( KDGanttViewItem* parent, const TQString& lvtext = TQString(), const TQString& name = TQString() ); KDGanttViewEventItem( KDGanttView* view, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewEventItem( KDGanttViewItem* tqparent, KDGanttViewItem* after, + KDGanttViewEventItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); virtual ~KDGanttViewEventItem(); diff --git a/kdgantt/KDGanttViewItem.cpp b/kdgantt/KDGanttViewItem.cpp index 687618139..de80477a5 100644 --- a/kdgantt/KDGanttViewItem.cpp +++ b/kdgantt/KDGanttViewItem.cpp @@ -148,10 +148,10 @@ \a KDGanttView::setDisplaySubitemsAsGroup( true ); Insert root items in the Gantt view. Insert items as tqchildren of these root item in the Gantt view. - You may use any item type as tqparent and child; there are no limitations. + You may use any item type as parent and child; there are no limitations. It is, however, recommended to use KDGanttViewTaskItems Actually, you may add child items to the tqchildren themselves. - Such a child behaves then like a tqparent. + Such a child behaves then like a parent. Now set the start/end time of the tqchildren to specify a time interval for these items. */ @@ -182,7 +182,7 @@ KDGanttViewItem::KDGanttViewItem( Type type, KDGanttView* view, Constructs an empty Gantt item. \param type the type of the item to insert - \param parentItem a tqparent item under which this one goes + \param parentItem a parent item under which this one goes \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated @@ -224,7 +224,7 @@ KDGanttViewItem::KDGanttViewItem( Type type, KDGanttView* view, Constructs an empty Gantt item. \param type the type of the item to insert - \param parentItem a tqparent item under which this one goes + \param parentItem a parent item under which this one goes \param after another item at the same level behind which this one should go \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name @@ -268,8 +268,8 @@ KDGanttViewItem::~KDGanttViewItem() if ( listView() ) { if ( isOpen() ) setOpen( false ); - if ( tqparent() ) - tqparent()->takeItem( this ); + if ( parent() ) + parent()->takeItem( this ); else myGanttView->myListView->takeItem( this ); myGanttView->myTimeTable->updateMyContent(); @@ -463,9 +463,9 @@ void KDGanttViewItem::setDisplaySubitemsAsGroup( bool show ) if ( !show && _displaySubitemsAsGroup) isVisibleInGanttView = true; _displaySubitemsAsGroup = show; - if ( tqparent() ) - if ( tqparent()->isOpen() ) - tqparent()->setOpen( true ); + if ( parent() ) + if ( parent()->isOpen() ) + parent()->setOpen( true ); if ( isOpen() ) setOpen( true ); updateCanvasItems(); @@ -1248,14 +1248,14 @@ KDGanttViewItem* KDGanttViewItem::nextSibling() const /*! - Returns the tqparent item of this item + Returns the parent item of this item - \return the tqparent item of this item, 0 if this item is a top-level + \return the parent item of this item, 0 if this item is a top-level item */ -KDGanttViewItem* KDGanttViewItem::tqparent() const +KDGanttViewItem* KDGanttViewItem::parent() const { - return (KDGanttViewItem*)TQListViewItem::tqparent(); + return (KDGanttViewItem*)TQListViewItem::parent(); } @@ -1674,22 +1674,22 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttView* view, Creates a KDGanttViewItem according to the specification in a DOM element. - \param tqparent the tqparent item under which the item will be inserted + \param parent the parent item under which the item will be inserted \param element the DOM element from which to read the specification \return the newly created element */ -KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparent, +KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent, TQDomElement& element ) { TQString typeString = element.attribute( "Type" ); Q_ASSERT( !typeString.isEmpty() ); KDGanttViewItem* item; if( typeString == "Task" ) - item = new KDGanttViewTaskItem( tqparent ); + item = new KDGanttViewTaskItem( parent ); else if( typeString == "Summary" ) - item = new KDGanttViewSummaryItem( tqparent ); + item = new KDGanttViewSummaryItem( parent ); else if( typeString == "Event" ) - item = new KDGanttViewEventItem( tqparent ); + item = new KDGanttViewEventItem( parent ); else { qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; @@ -1704,12 +1704,12 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparen Creates a KDGanttViewItem according to the specification in a DOM element. - \param tqparent the tqparent item under which the item will be inserted + \param parent the parent item under which the item will be inserted \param previous to item behind this one should appear \param element the DOM element from which to read the specification \return the newly created element */ -KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparent, +KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* parent, KDGanttViewItem* previous, TQDomElement& element ) { @@ -1717,11 +1717,11 @@ KDGanttViewItem* KDGanttViewItem::createFromDomElement( KDGanttViewItem* tqparen Q_ASSERT( !typeString.isEmpty() ); KDGanttViewItem* item; if( typeString == "Task" ) - item = new KDGanttViewTaskItem( tqparent, previous ); + item = new KDGanttViewTaskItem( parent, previous ); else if( typeString == "Summary" ) - item = new KDGanttViewSummaryItem( tqparent, previous ); + item = new KDGanttViewSummaryItem( parent, previous ); else if( typeString == "Event" ) - item = new KDGanttViewEventItem( tqparent, previous ); + item = new KDGanttViewEventItem( parent, previous ); else { qDebug( "Unknown item type in KDGanttViewItem::createFromDomElement()" ); return 0; @@ -2228,7 +2228,7 @@ void KDGanttViewItem::paintBranches ( TQPainter* p, const TQColorGroup& cg, int x_c = w/2; int y_c = y+y_coord+ temp->height ()/2; int y_ce ; - if ( temp->itemBelow() && temp->itemBelow()->tqparent() == this ) + if ( temp->itemBelow() && temp->itemBelow()->parent() == this ) y_ce =y+y_coord+ temp->height (); else y_ce = y_c; @@ -2255,11 +2255,11 @@ void KDGanttViewItem::resetSubitemVisibility() if ( myGanttView->calendarMode() ) { // in calendarmode only items can be opened which have subitems which have subitems if ( ! temp ) { - if ( !tqparent() ) - // has no tqparent, has no child : show! + if ( !parent() ) + // has no parent, has no child : show! setVisible( true ); else - // has tqparent, has no child : hide! + // has parent, has no child : hide! setVisible( false ); return; } diff --git a/kdgantt/KDGanttViewItem.h b/kdgantt/KDGanttViewItem.h index e08630b87..9e54755b8 100644 --- a/kdgantt/KDGanttViewItem.h +++ b/kdgantt/KDGanttViewItem.h @@ -65,13 +65,13 @@ protected: KDGanttViewItem( Type type, KDGanttView* view, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewItem( Type type, KDGanttViewItem* tqparent, + KDGanttViewItem( Type type, KDGanttViewItem* parent, const TQString& lvtext = TQString(), const TQString& name = TQString() ); KDGanttViewItem( Type type, KDGanttView* view, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewItem( Type type, KDGanttViewItem* tqparent, + KDGanttViewItem( Type type, KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); @@ -166,7 +166,7 @@ public: KDGanttViewItem* firstChild() const; KDGanttViewItem* nextSibling() const; - KDGanttViewItem* tqparent() const; + KDGanttViewItem* parent() const; KDGanttViewItem* itemAbove(); KDGanttViewItem* itemBelow( bool includeDisabled = true ); KDGanttViewItem* getChildByName( const TQString& name ); @@ -180,9 +180,9 @@ public: static KDGanttViewItem* createFromDomElement( KDGanttView* view, KDGanttViewItem* previous, TQDomElement& element ); - static KDGanttViewItem* createFromDomElement( KDGanttViewItem* tqparent, + static KDGanttViewItem* createFromDomElement( KDGanttViewItem* parent, TQDomElement& element ); - static KDGanttViewItem* createFromDomElement( KDGanttViewItem* tqparent, + static KDGanttViewItem* createFromDomElement( KDGanttViewItem* parent, KDGanttViewItem* previous, TQDomElement& element ); diff --git a/kdgantt/KDGanttViewSubwidgets.cpp b/kdgantt/KDGanttViewSubwidgets.cpp index 2b63d1b1e..c6a326a3c 100644 --- a/kdgantt/KDGanttViewSubwidgets.cpp +++ b/kdgantt/KDGanttViewSubwidgets.cpp @@ -58,8 +58,8 @@ #include <kcalendarsystem.h> #include <kdebug.h> -KDTimeTableWidget:: KDTimeTableWidget( TQWidget* tqparent,KDGanttView* myGantt) - : TQCanvas (TQT_TQOBJECT(tqparent)) +KDTimeTableWidget:: KDTimeTableWidget( TQWidget* parent,KDGanttView* myGantt) + : TQCanvas (TQT_TQOBJECT(parent)) { myGanttView = myGantt; taskLinksVisible = true; @@ -695,8 +695,8 @@ int KDTimeTableWidget::getCoordX( TQDateTime dt ) { /* *************************************************************** KDTimeHeaderWidget:: KDTimeHeaderWidget ***************************************************************** */ -KDTimeHeaderWidget:: KDTimeHeaderWidget( TQWidget* tqparent,KDGanttView* gant ) - : TQWidget (tqparent) +KDTimeHeaderWidget:: KDTimeHeaderWidget( TQWidget* parent,KDGanttView* gant ) + : TQWidget (parent) { myToolTip = new KDTimeHeaderToolTip(this,this); mySizeHint = 0; @@ -2537,10 +2537,10 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e ) /* *************************************************************** KDLegendWidget:: KDLegendWidget ***************************************************************** */ -KDLegendWidget:: KDLegendWidget( TQWidget* tqparent, +KDLegendWidget:: KDLegendWidget( TQWidget* parent, KDGanttMinimizeSplitter* legendParent ) : KDGanttSemiSizingControl ( KDGanttSemiSizingControl::Before, Qt::Vertical, - tqparent) + parent) { myLegendParent = legendParent; dock = 0; @@ -2688,7 +2688,7 @@ bool KDLegendWidget::isShown ( ) } -KDListView::KDListView(TQWidget* tqparent, KDGanttView* gantView):TQListView (tqparent) +KDListView::KDListView(TQWidget* parent, KDGanttView* gantView):TQListView (parent) { myGanttView = gantView; setAcceptDrops(true); @@ -2991,13 +2991,13 @@ void KDListView::dragMoveEvent ( TQDragMoveEvent * e) } if ( e->source() == myGanttView && gItem ){ // internal drag - do not allow to drag the item to a subitem of itself - KDGanttViewItem* pItem = gItem->tqparent(); + KDGanttViewItem* pItem = gItem->parent(); while ( pItem ) { if ( pItem == myGanttView->myCanvasView->lastClickedItem ) { e->accept( false ); return; } - pItem = pItem->tqparent(); + pItem = pItem->parent(); } if ( gItem == myGanttView->myCanvasView->lastClickedItem ) { e->accept( false ); @@ -3152,8 +3152,8 @@ KDCanvasRectangle::KDCanvasRectangle( KDTimeTableWidget* canvas, -KDGanttCanvasView::KDGanttCanvasView( KDGanttView* sender,TQCanvas* canvas, TQWidget* tqparent, const - char* name ) : TQCanvasView ( canvas, tqparent, name ), +KDGanttCanvasView::KDGanttCanvasView( KDGanttView* sender,TQCanvas* canvas, TQWidget* parent, const + char* name ) : TQCanvasView ( canvas, parent, name ), movingGVItem( 0 ), scrollBarTimer( 0, "scrollBarTimer" ) { @@ -3311,20 +3311,20 @@ void KDGanttCanvasView::insertItemAsRoot( KDGanttViewItem* item ) if ( item == cuttedItem ) cuttedItem = 0; } -void KDGanttCanvasView::insertItemAsChild( KDGanttViewItem* tqparent, KDGanttViewItem* item ) +void KDGanttCanvasView::insertItemAsChild( KDGanttViewItem* parent, KDGanttViewItem* item ) { - tqparent->insertItem( cuttedItem ); + parent->insertItem( cuttedItem ); if ( item == cuttedItem ) cuttedItem = 0; } -void KDGanttCanvasView::insertItemAfter( KDGanttViewItem* tqparent , KDGanttViewItem* item ) +void KDGanttCanvasView::insertItemAfter( KDGanttViewItem* parent , KDGanttViewItem* item ) { - if ( tqparent->tqparent() ) { - tqparent->tqparent()->insertItem( item ); + if ( parent->parent() ) { + parent->parent()->insertItem( item ); } else mySignalSender->myListView->insertItem( item ); - item->moveItem( tqparent ); + item->moveItem( parent ); if ( item == cuttedItem ) cuttedItem = 0; } @@ -3332,9 +3332,9 @@ void KDGanttCanvasView::insertItemAfter( KDGanttViewItem* tqparent , KDGanttVie void KDGanttCanvasView::cutItem() { lastClickedItem->hideSubtree(); - //qDebug("last clicked %d tqparent %d ", lastClickedItem , lastClickedItem->tqparent()); - if ( lastClickedItem->tqparent() ) - lastClickedItem->tqparent()->takeItem(lastClickedItem); + //qDebug("last clicked %d parent %d ", lastClickedItem , lastClickedItem->parent()); + if ( lastClickedItem->parent() ) + lastClickedItem->parent()->takeItem(lastClickedItem); else mySignalSender->myListView->takeItem( lastClickedItem ); mySignalSender->myTimeTable->updateMyContent(); @@ -3370,8 +3370,8 @@ void KDGanttCanvasView::pasteItem( int type ) lastClickedItem->insertItem( cuttedItem ); break; case 2://after - if ( lastClickedItem->tqparent() ) { - lastClickedItem->tqparent()->insertItem( cuttedItem ); + if ( lastClickedItem->parent() ) { + lastClickedItem->parent()->insertItem( cuttedItem ); } else mySignalSender->myListView->insertItem( cuttedItem ); @@ -3418,20 +3418,20 @@ void KDGanttCanvasView::newChildItem( int type ) temp = new KDGanttViewTaskItem( lastClickedItem, i18n( "New Task" ) ); break; case 5: - if ( lastClickedItem->tqparent() ) - temp = new KDGanttViewEventItem( lastClickedItem->tqparent(), lastClickedItem, i18n( "New Event" ) ); + if ( lastClickedItem->parent() ) + temp = new KDGanttViewEventItem( lastClickedItem->parent(), lastClickedItem, i18n( "New Event" ) ); else temp = new KDGanttViewEventItem( mySignalSender, lastClickedItem, i18n( "New Event" ) ); break; case 4: - if ( lastClickedItem->tqparent() ) - temp = new KDGanttViewSummaryItem( lastClickedItem->tqparent(), lastClickedItem, i18n( "New Summary" ) ); + if ( lastClickedItem->parent() ) + temp = new KDGanttViewSummaryItem( lastClickedItem->parent(), lastClickedItem, i18n( "New Summary" ) ); else temp = new KDGanttViewSummaryItem( mySignalSender, lastClickedItem, i18n( "New Summary" ) ); break; case 6: - if ( lastClickedItem->tqparent() ) - temp = new KDGanttViewTaskItem( lastClickedItem->tqparent(), lastClickedItem, i18n( "New Task" ) ); + if ( lastClickedItem->parent() ) + temp = new KDGanttViewTaskItem( lastClickedItem->parent(), lastClickedItem, i18n( "New Task" ) ); else temp = new KDGanttViewTaskItem( mySignalSender, lastClickedItem, i18n( "New Task" ) ); break; @@ -3984,7 +3984,7 @@ int KDGanttCanvasView::getLinkType(int from, int to) { /*! Represents the background color for a given interval of time (across all tasks). \sa KDGanttView::addIntervalBackgroundColor - \param view tqparent view + \param view parent view */ KDIntervalColorRectangle::KDIntervalColorRectangle( KDGanttView* view ) : KDCanvasRectangle( view->timeTableWidget(), 0, Type_is_KDGanttGridItem ), diff --git a/kdgantt/KDGanttViewSubwidgets.h b/kdgantt/KDGanttViewSubwidgets.h index 37e70a563..b044c10ec 100644 --- a/kdgantt/KDGanttViewSubwidgets.h +++ b/kdgantt/KDGanttViewSubwidgets.h @@ -99,7 +99,7 @@ public: enum HourFormat { Hour_24, Hour_12 }; */ - KDTimeHeaderWidget (TQWidget* tqparent,KDGanttView* gant); + KDTimeHeaderWidget (TQWidget* parent,KDGanttView* gant); ~KDTimeHeaderWidget(); TQString getToolTipText(TQPoint p); @@ -257,7 +257,7 @@ class KDTimeTableWidget : public TQCanvas TQ_OBJECT public: - KDTimeTableWidget (TQWidget* tqparent,KDGanttView* my); + KDTimeTableWidget (TQWidget* parent,KDGanttView* my); void setBlockUpdating( bool block = true ); bool blockUpdating(); @@ -334,7 +334,7 @@ class KDLegendWidget : public KDGanttSemiSizingControl TQ_OBJECT public: - KDLegendWidget ( TQWidget* tqparent, KDGanttMinimizeSplitter* legendParent ); + KDLegendWidget ( TQWidget* parent, KDGanttMinimizeSplitter* legendParent ); void showMe(bool); bool isShown(); void addLegendItem( KDGanttViewItem::Shape tqshape, const TQColor& tqshapeColor, const TQString& text ); @@ -361,7 +361,7 @@ class KDListView : public TQListView TQ_OBJECT public: - KDListView (TQWidget* tqparent,KDGanttView* gv ); + KDListView (TQWidget* parent,KDGanttView* gv ); KDGanttView* myGanttView; void drawToPainter( TQPainter *p, bool drawHeader=false ); void setCalendarMode( bool mode ); @@ -490,7 +490,7 @@ class KDGanttCanvasView : public TQCanvasView TQ_OBJECT public: - KDGanttCanvasView(KDGanttView* sender, TQCanvas* canvas = 0, TQWidget* tqparent = 0, const char* name = 0 ); + KDGanttCanvasView(KDGanttView* sender, TQCanvas* canvas = 0, TQWidget* parent = 0, const char* name = 0 ); ~KDGanttCanvasView(); TQString getToolTipText(TQPoint p); TQString getWhatsThisText(TQPoint p); diff --git a/kdgantt/KDGanttViewSummaryItem.cpp b/kdgantt/KDGanttViewSummaryItem.cpp index 31d21cf9d..96980d2ac 100644 --- a/kdgantt/KDGanttViewSummaryItem.cpp +++ b/kdgantt/KDGanttViewSummaryItem.cpp @@ -65,15 +65,15 @@ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* tqparent, +KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* parent, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Summary, tqparent, lvtext, name ) + KDGanttViewItem( Summary, parent, lvtext, name ) { initItem(); } @@ -101,17 +101,17 @@ KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param after another item at the same level behind which this one should go \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* tqparent, +KDGanttViewSummaryItem::KDGanttViewSummaryItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Summary, tqparent, after, lvtext, name ) + KDGanttViewItem( Summary, parent, after, lvtext, name ) { initItem(); @@ -272,7 +272,7 @@ void KDGanttViewSummaryItem::showItem( bool show, int coordY ) hideMe(); return; } - if ( displaySubitemsAsGroup() && !tqparent() && !isOpen() ) { + if ( displaySubitemsAsGroup() && !parent() && !isOpen() ) { hideMe(); return; } diff --git a/kdgantt/KDGanttViewSummaryItem.h b/kdgantt/KDGanttViewSummaryItem.h index 3b2bb9c8e..7361adca4 100644 --- a/kdgantt/KDGanttViewSummaryItem.h +++ b/kdgantt/KDGanttViewSummaryItem.h @@ -43,13 +43,13 @@ public: KDGanttViewSummaryItem( KDGanttView* view, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewSummaryItem( KDGanttViewItem* tqparent, + KDGanttViewSummaryItem( KDGanttViewItem* parent, const TQString& lvtext = TQString(), const TQString& name = TQString() ); KDGanttViewSummaryItem( KDGanttView* view, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewSummaryItem( KDGanttViewItem* tqparent, KDGanttViewItem* after, + KDGanttViewSummaryItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); virtual ~KDGanttViewSummaryItem(); diff --git a/kdgantt/KDGanttViewTaskItem.cpp b/kdgantt/KDGanttViewTaskItem.cpp index 8154216bf..a89f23603 100644 --- a/kdgantt/KDGanttViewTaskItem.cpp +++ b/kdgantt/KDGanttViewTaskItem.cpp @@ -79,15 +79,15 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param lvtext the text to show in the list view \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* tqparent, +KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Task, tqparent, lvtext, name ) + KDGanttViewItem( Task, parent, lvtext, name ) { initItem(); } @@ -115,17 +115,17 @@ KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttView* view, /*! Constructs an empty Gantt item of type event. - \param tqparent a tqparent item under which this one goes + \param parent a parent item under which this one goes \param after another item at the same level behind which this one should go \param lvtext the text to show in the listview \param name the name by which the item can be identified. If no name is specified, a unique name will be generated */ -KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* tqparent, +KDGanttViewTaskItem::KDGanttViewTaskItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext, const TQString& name ) : - KDGanttViewItem( Task, tqparent, after, lvtext, name ) + KDGanttViewItem( Task, parent, after, lvtext, name ) { initItem(); } @@ -216,7 +216,7 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) floatEndShape->setZ(startShape->z()+0.003); // less than textCanvas floatEndShape->hide(); textCanvas->setZ( prio + 0.005 ); - if ( displaySubitemsAsGroup() && !tqparent() && !isOpen() ) { + if ( displaySubitemsAsGroup() && !parent() && !isOpen() ) { hideMe(); return; } @@ -242,9 +242,9 @@ void KDGanttViewTaskItem::showItem(bool show, int coordY) } int hei = height(); if ( ! isVisible() ) { - KDGanttViewItem * par = tqparent(); + KDGanttViewItem * par = parent(); while ( par != 0 && !par->isVisible() ) - par = par->tqparent(); + par = par->parent(); if ( par ) hei = par->height(); } @@ -356,9 +356,9 @@ void KDGanttViewTaskItem::initItem() { isVisibleInGanttView = false; - if ( myGanttView->calendarMode() && tqparent() ) { + if ( myGanttView->calendarMode() && parent() ) { setVisible( false ); - tqparent()->setVisible( true ); + parent()->setVisible( true ); } else showItem(true); //qDebug("initItem %s %s", listViewText().latin1(),startShape->brush().color().name().latin1() ); diff --git a/kdgantt/KDGanttViewTaskItem.h b/kdgantt/KDGanttViewTaskItem.h index cd77240e4..aa958d2ce 100644 --- a/kdgantt/KDGanttViewTaskItem.h +++ b/kdgantt/KDGanttViewTaskItem.h @@ -46,13 +46,13 @@ public: KDGanttViewTaskItem( KDGanttView* view, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewTaskItem( KDGanttViewItem* tqparent, + KDGanttViewTaskItem( KDGanttViewItem* parent, const TQString& lvtext = TQString(), const TQString& name = TQString() ); KDGanttViewTaskItem( KDGanttView* view, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); - KDGanttViewTaskItem( KDGanttViewItem* tqparent, KDGanttViewItem* after, + KDGanttViewTaskItem( KDGanttViewItem* parent, KDGanttViewItem* after, const TQString& lvtext = TQString(), const TQString& name = TQString() ); virtual ~KDGanttViewTaskItem(); diff --git a/kdgantt/KDGanttXMLTools.cpp b/kdgantt/KDGanttXMLTools.cpp index e6246138c..5f2909c07 100644 --- a/kdgantt/KDGanttXMLTools.cpp +++ b/kdgantt/KDGanttXMLTools.cpp @@ -40,12 +40,12 @@ namespace KDGanttXML { -void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, +void createBoolNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, bool value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( value ? "true" : "false" ); newElement.appendChild( elementContent ); @@ -53,59 +53,59 @@ void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, -void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent, +void createSizeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQSize& value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); newElement.setAttribute( "Width", value.width() ); newElement.setAttribute( "Height", value.height() ); } -void createIntNode( TQDomDocument& doc, TQDomNode& tqparent, +void createIntNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, int value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( TQString::number( value ) ); newElement.appendChild( elementContent ); } -void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent, +void createDoubleNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, double value ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( TQString::number( value ) ); newElement.appendChild( elementContent ); } -void createStringNode( TQDomDocument& doc, TQDomNode& tqparent, +void createStringNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQString& text ) { TQDomElement newElement = doc.createElement( elementName ); - tqparent.appendChild( newElement ); + parent.appendChild( newElement ); TQDomText elementContent = doc.createTextNode( text ); newElement.appendChild( elementContent ); } -void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, +void createColorNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQColor& color ) { TQDomElement colorElement = doc.createElement( elementName ); - tqparent.appendChild( colorElement ); + parent.appendChild( colorElement ); colorElement.setAttribute( "Red", TQString::number( color.red() ) ); colorElement.setAttribute( "Green", @@ -115,12 +115,12 @@ void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, } -void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, +void createBrushNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQBrush& brush ) { TQDomElement brushElement = doc.createElement( elementName ); - tqparent.appendChild( brushElement ); + parent.appendChild( brushElement ); createColorNode( doc, brushElement, "Color", brush.color() ); createStringNode( doc, brushElement, "Style", KDGanttXML::brushStyleToString( brush.style() ) ); @@ -129,11 +129,11 @@ void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, } -void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, +void createPixmapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPixmap& pixmap ) { TQDomElement pixmapElement = doc.createElement( elementName ); - tqparent.appendChild( pixmapElement ); + parent.appendChild( pixmapElement ); // Convert the pixmap to an image, save that image to an in-memory // XPM representation and compress this representation. This @@ -163,11 +163,11 @@ void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, } -void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, +void createRectNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQRect& rect ) { TQDomElement rectElement = doc.createElement( elementName ); - tqparent.appendChild( rectElement ); + parent.appendChild( rectElement ); TQDomElement xElement = doc.createElement( "X" ); rectElement.appendChild( xElement ); TQDomText xContent = doc.createTextNode( TQString::number( rect.x() ) ); @@ -187,7 +187,7 @@ void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, } -void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, +void createStringListNodes( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQStringList* list ) { @@ -197,18 +197,18 @@ void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, for( TQStringList::ConstIterator it = list->begin(); it != list->end(); ++it ) { TQDomElement element = doc.createElement( elementName ); - tqparent.appendChild( element ); + parent.appendChild( element ); TQDomText elementContent = doc.createTextNode( *it ); element.appendChild( elementContent ); } } -void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, +void createFontNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQFont& font ) { TQDomElement fontElement = doc.createElement( elementName ); - tqparent.appendChild( fontElement ); + parent.appendChild( fontElement ); createStringNode( doc, fontElement, "Family", font.family() ); createIntNode( doc, fontElement, "PointSize", font.pointSize() ); createIntNode( doc, fontElement, "PixelSize", font.pixelSize() ); @@ -217,44 +217,44 @@ void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, } -void createPenNode( TQDomDocument& doc, TQDomNode& tqparent, +void createPenNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPen& pen ) { TQDomElement penElement = doc.createElement( elementName ); - tqparent.appendChild( penElement ); + parent.appendChild( penElement ); createIntNode( doc, penElement, "Width", pen.width() ); createColorNode( doc, penElement, "Color", pen.color() ); createStringNode( doc, penElement, "Style", penStyleToString( pen.style() ) ); } -void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent, +void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDateTime& datetime ) { TQDomElement dateTimeElement = doc.createElement( elementName ); - tqparent.appendChild( dateTimeElement ); + parent.appendChild( dateTimeElement ); createDateNode( doc, dateTimeElement, "Date", datetime.date() ); createTimeNode( doc, dateTimeElement, "Time", datetime.time() ); } -void createDateNode( TQDomDocument& doc, TQDomNode& tqparent, +void createDateNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDate& date ) { TQDomElement dateElement = doc.createElement( elementName ); - tqparent.appendChild( dateElement ); + parent.appendChild( dateElement ); dateElement.setAttribute( "Year", TQString::number( date.year() ) ); dateElement.setAttribute( "Month", TQString::number( date.month() ) ); dateElement.setAttribute( "Day", TQString::number( date.day() ) ); } -void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, +void createTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQTime& time ) { TQDomElement timeElement = doc.createElement( elementName ); - tqparent.appendChild( timeElement ); + parent.appendChild( timeElement ); timeElement.setAttribute( "Hour", TQString::number( time.hour() ) ); timeElement.setAttribute( "Minute", diff --git a/kdgantt/KDGanttXMLTools.h b/kdgantt/KDGanttXMLTools.h index 8ea81f464..2583ec81b 100644 --- a/kdgantt/KDGanttXMLTools.h +++ b/kdgantt/KDGanttXMLTools.h @@ -50,39 +50,39 @@ namespace KDGanttXML { TQString brushStyleToString( Qt::BrushStyle style ); Qt::BrushStyle stringToBrushStyle( const TQString& style ); - void createBoolNode( TQDomDocument& doc, TQDomNode& tqparent, + void createBoolNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, bool value ); - void createSizeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createSizeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQSize& value ); - void createIntNode( TQDomDocument& doc, TQDomNode& tqparent, + void createIntNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, int value ); - void createDoubleNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDoubleNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, double value ); - void createStringNode( TQDomDocument& doc, TQDomNode& tqparent, + void createStringNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQString& text ); - void createColorNode( TQDomDocument& doc, TQDomNode& tqparent, + void createColorNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQColor& color ); - void createBrushNode( TQDomDocument& doc, TQDomNode& tqparent, + void createBrushNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQBrush& brush ); - void createPixmapNode( TQDomDocument& doc, TQDomNode& tqparent, + void createPixmapNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPixmap& pixmap ); - void createRectNode( TQDomDocument& doc, TQDomNode& tqparent, + void createRectNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQRect& rect ); - void createStringListNodes( TQDomDocument& doc, TQDomNode& tqparent, + void createStringListNodes( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQStringList* list ); - void createFontNode( TQDomDocument& doc, TQDomNode& tqparent, + void createFontNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQFont& font ); - void createPenNode( TQDomDocument& doc, TQDomNode& tqparent, + void createPenNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQPen& pen ); - void createDateTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDateTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDateTime& datetime ); - void createDateNode( TQDomDocument& doc, TQDomNode& tqparent, + void createDateNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQDate& date ); - void createTimeNode( TQDomDocument& doc, TQDomNode& tqparent, + void createTimeNode( TQDomDocument& doc, TQDomNode& parent, const TQString& elementName, const TQTime& time ); bool readIntNode( const TQDomElement& element, int& value ); bool readStringNode( const TQDomElement& element, TQString& value ); |