diff options
Diffstat (limited to 'src/svnfrontend/kdesvnfilelist.cpp')
-rw-r--r-- | src/svnfrontend/kdesvnfilelist.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/svnfrontend/kdesvnfilelist.cpp b/src/svnfrontend/kdesvnfilelist.cpp index 52f8ee0..f089782 100644 --- a/src/svnfrontend/kdesvnfilelist.cpp +++ b/src/svnfrontend/kdesvnfilelist.cpp @@ -189,8 +189,8 @@ bool KdesvnFileListPrivate::reReadSettings() _unknown != mdisp_unknown_files); } -kdesvnfilelist::kdesvnfilelist(KActionCollection*aCollect,TQWidget *tqparent, const char *name) - : KListView(tqparent, name),ItemDisplay(),m_SvnWrapper(new SvnActions(this)) +kdesvnfilelist::kdesvnfilelist(KActionCollection*aCollect,TQWidget *parent, const char *name) + : KListView(parent, name),ItemDisplay(),m_SvnWrapper(new SvnActions(this)) { m_SelectedItems = 0; m_pList = new KdesvnFileListPrivate; @@ -646,7 +646,7 @@ void kdesvnfilelist::closeMe() m_pList->m_fileTip->setItem(0); } -bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent) +bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _parent) { TQString what = _what; svn::StatusEntries dlist; @@ -654,13 +654,13 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent what.truncate(what.length()-1); } // prevent this from checking unversioned folder. FIXME: what happen when we do open url on a non-working-copy folder?? - if (!isWorkingCopy()|| (!_tqparent) || ((_tqparent) && (_tqparent->isVersioned()))) { + if (!isWorkingCopy()|| (!_parent) || ((_parent) && (_parent->isVersioned()))) { if (!m_SvnWrapper->maketqStatus(what,dlist,m_pList->m_remoteRevision) ) { kdDebug() << "unable maketqStatus" <<endl; return false; } } else { - checkUnversionedDirs(_tqparent); + checkUnversionedDirs(_parent); return true; } svn::StatusEntries neweritems; @@ -682,15 +682,15 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent // current item is not versioned if (!(*it)->isVersioned() && !filterOut((*it))) { - // if empty, we may want to create a default svn::tqStatus for each folder inside this _tqparent + // if empty, we may want to create a default svn::tqStatus for each folder inside this _parent // iterate over TQDir and create new filelistviewitem - checkUnversionedDirs(_tqparent); + checkUnversionedDirs(_parent); } if ((*it)->path()==what||TQString::compare((*it)->entry().url(),what)==0){ - if (!_tqparent) { + if (!_parent) { pitem = new FileListViewItem(this,*it); - //kdDebug()<< "CheckDirs::creating new FileListViewitem as tqparent " + (*it)->path() << endl; + //kdDebug()<< "CheckDirs::creating new FileListViewitem as parent " + (*it)->path() << endl; m_Dirsread[pitem->fullName()]=true; pitem->setDropEnabled(true); } @@ -699,8 +699,8 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent break; } } - if (_tqparent) { - pitem = _tqparent; + if (_parent) { + pitem = _parent; } insertDirs(pitem,dlist); if (ownupdates) { @@ -711,7 +711,7 @@ bool kdesvnfilelist::checkDirs(const TQString&_what,FileListViewItem * _tqparent return true; } -void kdesvnfilelist::insertDirs(FileListViewItem * _tqparent,svn::StatusEntries&dlist) +void kdesvnfilelist::insertDirs(FileListViewItem * _parent,svn::StatusEntries&dlist) { svn::StatusEntries::iterator it; #if 0 @@ -732,13 +732,13 @@ void kdesvnfilelist::insertDirs(FileListViewItem * _tqparent,svn::StatusEntries& continue; } FileListViewItem * item; - if (!_tqparent) { + if (!_parent) { item = new FileListViewItem(this,*it); } else { - if ( (item = _tqparent->findChild( (*it)->path() )) ) { + if ( (item = _parent->findChild( (*it)->path() )) ) { delete item; } - item = new FileListViewItem(this,_tqparent,*it); + item = new FileListViewItem(this,_parent,*it); } if (item->isDir()) { m_Dirsread[item->fullName()]=false; @@ -912,7 +912,7 @@ void kdesvnfilelist::enableActions() m_DelCurrent->setEnabled( (multi||single)); m_LockAction->setEnabled( (multi||single)); m_UnlockAction->setEnabled( (multi||single)); - m_IgnoreAction->setEnabled((single)&&singleSelected()->tqparent()!=0&&!singleSelected()->isRealVersioned()); + m_IgnoreAction->setEnabled((single)&&singleSelected()->parent()!=0&&!singleSelected()->isRealVersioned()); m_RenameAction->setEnabled(single && (!isWorkingCopy()||singleSelected()!=firstChild())); m_CopyAction->setEnabled(single && (!isWorkingCopy()||singleSelected()!=firstChild())); @@ -1304,11 +1304,11 @@ void kdesvnfilelist::refreshCurrent(SvnItem*cur) viewport()->tqrepaint(); } -bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down) +bool kdesvnfilelist::refreshRecursive(FileListViewItem*_parent,bool down) { FileListViewItem*item; - if (_tqparent) { - item = static_cast<FileListViewItem*>(_tqparent->firstChild()); + if (_parent) { + item = static_cast<FileListViewItem*>(_parent->firstChild()); } else { item = static_cast<FileListViewItem*>(firstChild()); } @@ -1324,7 +1324,7 @@ bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down) item = static_cast<FileListViewItem*>(item->nextSibling()); } - TQString what = (_tqparent!=0?_tqparent->fullName():baseUri()); + TQString what = (_parent!=0?_parent->fullName():baseUri()); svn::StatusEntries dlist; if (!m_SvnWrapper->maketqStatus(what,dlist,m_pList->m_remoteRevision)) { @@ -1363,10 +1363,10 @@ bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down) if (!gotit &&!filterOut((*it)) ) { dispchanged = true; FileListViewItem * item; - if (!_tqparent) { + if (!_parent) { item = new FileListViewItem(this,*it); } else { - item = new FileListViewItem(this,_tqparent,*it); + item = new FileListViewItem(this,_parent,*it); } if (item->isDir()) { m_Dirsread[item->fullName()]=false; @@ -1400,8 +1400,8 @@ bool kdesvnfilelist::refreshRecursive(FileListViewItem*_tqparent,bool down) kdDebug() << "Selected items " << m_SelectedItems->count() << endl; #endif } - if (_tqparent) { - item = static_cast<FileListViewItem*>(_tqparent->firstChild()); + if (_parent) { + item = static_cast<FileListViewItem*>(_parent->firstChild()); } else { item = static_cast<FileListViewItem*>(firstChild()); } @@ -2486,8 +2486,8 @@ void kdesvnfilelist::slotDirItemCreated(const TQString&what) void kdesvnfilelist::updateParents(FileListViewItem*item) { - if (!item || !item->tqparent()) return; - FileListViewItem*it = static_cast<FileListViewItem*>(item->tqparent()); + if (!item || !item->parent()) return; + FileListViewItem*it = static_cast<FileListViewItem*>(item->parent()); it->update(); updateParents(it); } @@ -2564,7 +2564,7 @@ void kdesvnfilelist::_dirwatchTimeout() checkUnversionedDirs(item); } } - updateParents(static_cast<FileListViewItem*>(item->tqparent())); + updateParents(static_cast<FileListViewItem*>(item->parent())); } else if (c=='D') { if (item->isDir()) { m_pList->m_DirWatch->removeDir(what); @@ -2576,7 +2576,7 @@ void kdesvnfilelist::_dirwatchTimeout() } else if (!item->isMissing()) { TQFileInfo fi(what); if (!fi.exists()) { - FileListViewItem*p = static_cast<FileListViewItem*>(item->tqparent()); + FileListViewItem*p = static_cast<FileListViewItem*>(item->parent()); delete item; repaintit=true; item = 0; @@ -2804,11 +2804,11 @@ void kdesvnfilelist::slotRelocate() refreshItem(k->fItem()); } -void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _tqparent ) +void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _parent ) { TQDir d; - if (_tqparent) - d.setPath(_tqparent->fullName()); //FIXME: this one is not reliable, what if _tqparent == 0?? + if (_parent) + d.setPath(_parent->fullName()); //FIXME: this one is not reliable, what if _parent == 0?? // else // d.setPath(this->firstChild()->fullName()); @@ -2845,12 +2845,12 @@ void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _tqparent ) // start copying insertDirs FileListViewItem * item; - if (!_tqparent) { + if (!_parent) { item = new FileListViewItem(this, stat); kdDebug()<< "creating new FileListViewitem " + item->fullName() << endl; } else { - item = new FileListViewItem(this,_tqparent, stat); - kdDebug()<< "creating new FileListViewitem (with tqparent) " + item->fullName() << endl; + item = new FileListViewItem(this,_parent, stat); + kdDebug()<< "creating new FileListViewitem (with parent) " + item->fullName() << endl; } if (fi->isDir()) { m_Dirsread[item->fullName()]=false; @@ -2872,7 +2872,7 @@ void kdesvnfilelist::checkUnversionedDirs( FileListViewItem * _tqparent ) } // uncomment this if you've ben able to set svn_node_kind (see above) - //this->insertDirs(_tqparent, nonversioned_list); + //this->insertDirs(_parent, nonversioned_list); } void kdesvnfilelist::rescanIconsRec(FileListViewItem*startAt,bool checkNewer,bool no_update) @@ -3098,7 +3098,7 @@ void kdesvnfilelist::slotFoldTree() while (TQListViewItem* item = it.current()) { // don't close the top level directory - if (item->isExpandable() && item->tqparent()) + if (item->isExpandable() && item->parent()) item->setOpen(false); ++it; |