summaryrefslogtreecommitdiffstats
path: root/buildtools/qmake/trollprojectwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/qmake/trollprojectwidget.cpp')
-rw-r--r--buildtools/qmake/trollprojectwidget.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/buildtools/qmake/trollprojectwidget.cpp b/buildtools/qmake/trollprojectwidget.cpp
index b6ec8f5e..148f8b22 100644
--- a/buildtools/qmake/trollprojectwidget.cpp
+++ b/buildtools/qmake/trollprojectwidget.cpp
@@ -358,7 +358,7 @@ void TrollProjectWidget::openProject( const TQString &dirName )
if( m_rootScope->scopeType() != Scope::InvalidScope )
{
- m_rootSubproject = new TQMakeScopeItem( overview, m_rootScope->scopeName(), m_rootScope, this );
+ m_rootSubproject = new QMakeScopeItem( overview, m_rootScope->scopeName(), m_rootScope, this );
m_rootSubproject->setOpen( true );
@@ -380,7 +380,7 @@ void TrollProjectWidget::openProject( const TQString &dirName )
}
-void TrollProjectWidget::createTQMakeScopeItems()
+void TrollProjectWidget::createQMakeScopeItems()
{
}
@@ -480,7 +480,7 @@ void TrollProjectWidget::slotOverviewSelectionChanged( TQListViewItem *item )
return ;
}
cleanDetailView( m_shownSubproject );
- m_shownSubproject = static_cast<TQMakeScopeItem*>( item );
+ m_shownSubproject = static_cast<QMakeScopeItem*>( item );
setupContext();
buildProjectDetailTree( m_shownSubproject, details );
@@ -527,7 +527,7 @@ TQString TrollProjectWidget::getCurrentOutputFilename()
}
}
-void TrollProjectWidget::cleanDetailView( TQMakeScopeItem *item )
+void TrollProjectWidget::cleanDetailView( QMakeScopeItem *item )
{
// If no tqchildren in detailview
// it is a subdir template
@@ -553,7 +553,7 @@ void TrollProjectWidget::cleanDetailView( TQMakeScopeItem *item )
}
}
-void TrollProjectWidget::buildProjectDetailTree( TQMakeScopeItem *item, KListView *listviewControl )
+void TrollProjectWidget::buildProjectDetailTree( QMakeScopeItem *item, KListView *listviewControl )
{
// Insert all GroupItems and all of their tqchildren into the view
@@ -820,7 +820,7 @@ void TrollProjectWidget::slotRebuildTarget()
m_part->queueCmd( dir, dircmd + rebuildcmd );
}
-void TrollProjectWidget::slotCreateScope( TQMakeScopeItem *spitem )
+void TrollProjectWidget::slotCreateScope( QMakeScopeItem *spitem )
{
if ( spitem == 0 && m_shownSubproject == 0 )
return ;
@@ -835,7 +835,7 @@ void TrollProjectWidget::slotCreateScope( TQMakeScopeItem *spitem )
return ;
}
-void TrollProjectWidget::slotAddSubproject( TQMakeScopeItem *spitem )
+void TrollProjectWidget::slotAddSubproject( QMakeScopeItem *spitem )
{
if ( spitem == 0 && m_shownSubproject == 0 )
return ;
@@ -898,12 +898,12 @@ void TrollProjectWidget::slotAddSubproject( TQMakeScopeItem *spitem )
}
}
-void TrollProjectWidget::addSubprojectToItem( TQMakeScopeItem* spitem, const TQString& subdirname )
+void TrollProjectWidget::addSubprojectToItem( QMakeScopeItem* spitem, const TQString& subdirname )
{
TQListViewItem* item = spitem->firstChild();
while( item )
{
- TQMakeScopeItem* sitem = static_cast<TQMakeScopeItem*>(item);
+ QMakeScopeItem* sitem = static_cast<QMakeScopeItem*>(item);
if( sitem->scope->scopeName() == subdirname )
{
if( sitem->scope->isEnabled() )
@@ -923,7 +923,7 @@ void TrollProjectWidget::addSubprojectToItem( TQMakeScopeItem* spitem, const TQS
Scope* subproject = spitem->scope->createSubProject( subdirname );
if( subproject )
{
- new TQMakeScopeItem( spitem, subproject->scopeName(), subproject );
+ new QMakeScopeItem( spitem, subproject->scopeName(), subproject );
// TQListViewItem* lastitem = spitem->firstChild();
// while( lastitem->nextSibling() != 0 )
// lastitem = lastitem->nextSibling();
@@ -938,11 +938,11 @@ void TrollProjectWidget::addSubprojectToItem( TQMakeScopeItem* spitem, const TQS
spitem->sortChildItems( 0, true );
}
-void TrollProjectWidget::slotRemoveSubproject( TQMakeScopeItem *spitem )
+void TrollProjectWidget::slotRemoveSubproject( QMakeScopeItem *spitem )
{
if ( spitem == 0 && m_shownSubproject == 0 )
return ;
- else if ( ( spitem = dynamic_cast<TQMakeScopeItem *>( m_shownSubproject->tqparent() ) ) != NULL )
+ else if ( ( spitem = dynamic_cast<QMakeScopeItem *>( m_shownSubproject->tqparent() ) ) != NULL )
{
m_filesCached = false;
@@ -971,7 +971,7 @@ void TrollProjectWidget::slotOverviewContextMenu( KListView *, TQListViewItem *i
if ( !item )
return ;
- TQMakeScopeItem *spitem = static_cast<TQMakeScopeItem*>( item );
+ QMakeScopeItem *spitem = static_cast<QMakeScopeItem*>( item );
KPopupMenu popup( this );
popup.insertTitle( i18n( "Subproject %1" ).tqarg( item->text( 0 ) ) );
@@ -1331,14 +1331,14 @@ void TrollProjectWidget::slotAddFiles()
}
}
-GroupItem* TrollProjectWidget::getInstallRoot( TQMakeScopeItem* item )
+GroupItem* TrollProjectWidget::getInstallRoot( QMakeScopeItem* item )
{
if ( item->groups.tqcontains( GroupItem::InstallRoot ) )
return item->groups[ GroupItem::InstallRoot ];
return 0;
}
-GroupItem* TrollProjectWidget::getInstallObject( TQMakeScopeItem* item, const TQString& objectname )
+GroupItem* TrollProjectWidget::getInstallObject( QMakeScopeItem* item, const TQString& objectname )
{
GroupItem * instroot = getInstallRoot( item );
if ( !instroot )
@@ -1921,7 +1921,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, TQListViewItem *it
}
-void TrollProjectWidget::removeFile( TQMakeScopeItem *spitem, FileItem *fitem )
+void TrollProjectWidget::removeFile( QMakeScopeItem *spitem, FileItem *fitem )
{
GroupItem * gitem = static_cast<GroupItem*>( fitem->tqparent() );
@@ -2028,9 +2028,9 @@ void TrollProjectWidget::slotBuildOpenFile()
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
// m_part->startMakeCommand(buildDir, target);
- TQPtrList<TQMakeScopeItem> list = findSubprojectForFile( fi );
+ TQPtrList<QMakeScopeItem> list = findSubprojectForFile( fi );
- TQMakeScopeItem *spitem;
+ QMakeScopeItem *spitem;
for ( spitem = list.first(); spitem; spitem = list.next() )
{
TQString buildcmd = constructMakeCommandLine( spitem->scope );
@@ -2112,7 +2112,7 @@ void TrollProjectWidget::slotDistCleanTarget()
runClean(m_shownSubproject, "distclean");
}
-void TrollProjectWidget::runClean( TQMakeScopeItem* item, const TQString& cleantargetname )
+void TrollProjectWidget::runClean( QMakeScopeItem* item, const TQString& cleantargetname )
{
// no subproject selected
m_part->partController() ->saveAllFiles();
@@ -2165,7 +2165,7 @@ TQString TrollProjectWidget::constructMakeCommandLine( Scope* s )
}
-void TrollProjectWidget::createMakefileIfMissing( const TQString &dir, TQMakeScopeItem *item )
+void TrollProjectWidget::createMakefileIfMissing( const TQString &dir, QMakeScopeItem *item )
{
TQFileInfo fi;
TQFileInfo fi2;
@@ -2190,18 +2190,18 @@ void TrollProjectWidget::createMakefileIfMissing( const TQString &dir, TQMakeSco
}
}
-TQMakeScopeItem* TrollProjectWidget::findSubprojectForPath( const TQString& relPath )
+QMakeScopeItem* TrollProjectWidget::findSubprojectForPath( const TQString& relPath )
{
if( !m_rootSubproject )
return 0;
TQStringList dirs = TQStringList::split("/", relPath);
- TQMakeScopeItem* pitem = static_cast<TQMakeScopeItem*>(m_rootSubproject);
+ QMakeScopeItem* pitem = static_cast<QMakeScopeItem*>(m_rootSubproject);
for( TQStringList::iterator it = dirs.begin(); it != dirs.end(); ++it)
{
TQListViewItem* item = pitem->firstChild();
while( item )
{
- TQMakeScopeItem* sitem = static_cast<TQMakeScopeItem*>(item);
+ QMakeScopeItem* sitem = static_cast<QMakeScopeItem*>(item);
if( TQFileInfo( sitem->scope->projectDir() ).fileName() == *it )
{
pitem = sitem;
@@ -2212,14 +2212,14 @@ TQMakeScopeItem* TrollProjectWidget::findSubprojectForPath( const TQString& relP
return pitem;
}
-TQPtrList<TQMakeScopeItem> TrollProjectWidget::findSubprojectForFile( TQFileInfo fi )
+TQPtrList<QMakeScopeItem> TrollProjectWidget::findSubprojectForFile( TQFileInfo fi )
{
- TQPtrList<TQMakeScopeItem> list;
+ TQPtrList<QMakeScopeItem> list;
findSubprojectForFile( list, m_rootSubproject, fi.absFilePath() );
return list;
}
-void TrollProjectWidget::findSubprojectForFile( TQPtrList<TQMakeScopeItem> &list, TQMakeScopeItem * item, TQString absFilePath )
+void TrollProjectWidget::findSubprojectForFile( TQPtrList<QMakeScopeItem> &list, QMakeScopeItem * item, TQString absFilePath )
{
if( !item )
return;
@@ -2245,7 +2245,7 @@ void TrollProjectWidget::findSubprojectForFile( TQPtrList<TQMakeScopeItem> &list
TQListViewItem * child = item->firstChild();
while ( child )
{
- TQMakeScopeItem * spitem = dynamic_cast<TQMakeScopeItem*>( child );
+ QMakeScopeItem * spitem = dynamic_cast<QMakeScopeItem*>( child );
if ( spitem )
{
@@ -2256,7 +2256,7 @@ void TrollProjectWidget::findSubprojectForFile( TQPtrList<TQMakeScopeItem> &list
}
}
-void TrollProjectWidget::slotRemoveScope( TQMakeScopeItem * spitem )
+void TrollProjectWidget::slotRemoveScope( QMakeScopeItem * spitem )
{
if ( spitem == 0 && m_shownSubproject == 0 )
return ;
@@ -2265,7 +2265,7 @@ void TrollProjectWidget::slotRemoveScope( TQMakeScopeItem * spitem )
m_filesCached = false;
m_allFilesCache.clear();
- TQMakeScopeItem* pitem = dynamic_cast<TQMakeScopeItem *>( spitem->tqparent() );
+ QMakeScopeItem* pitem = dynamic_cast<QMakeScopeItem *>( spitem->tqparent() );
if ( pitem != 0 )
{
switch ( spitem->scope->scopeType() )
@@ -2287,7 +2287,7 @@ void TrollProjectWidget::slotRemoveScope( TQMakeScopeItem * spitem )
// pitem->scopes.remove( spitem );
delete spitem;
spitem = pitem;
- pitem = dynamic_cast<TQMakeScopeItem *>( pitem->tqparent() );
+ pitem = dynamic_cast<QMakeScopeItem *>( pitem->tqparent() );
// pitem->scopes.remove(spitem);
break;
case Scope::SimpleScope:
@@ -2311,13 +2311,13 @@ void TrollProjectWidget::slotRemoveScope( TQMakeScopeItem * spitem )
}
}
-TQMakeScopeItem * TrollProjectWidget::findSubprojectForScope( TQMakeScopeItem * scope )
+QMakeScopeItem * TrollProjectWidget::findSubprojectForScope( QMakeScopeItem * scope )
{
if ( ( scope == 0 ) || ( scope->tqparent() == 0 ) )
return 0;
if ( scope->scope->scopeType() == Scope::ProjectScope )
return scope;
- return findSubprojectForScope( dynamic_cast<TQMakeScopeItem *>( scope->tqparent() ) );
+ return findSubprojectForScope( dynamic_cast<QMakeScopeItem *>( scope->tqparent() ) );
}
void TrollProjectWidget::focusInEvent( TQFocusEvent * /*e*/ )
@@ -2338,7 +2338,7 @@ void TrollProjectWidget::setLastFocusedView( TrollProjectView view )
m_lastFocusedView = view;
}
-void TrollProjectWidget::runTQMakeRecursive( TQMakeScopeItem* proj )
+void TrollProjectWidget::runTQMakeRecursive( QMakeScopeItem* proj )
{
if( m_part->isTQt4Project() )
{
@@ -2349,11 +2349,11 @@ void TrollProjectWidget::runTQMakeRecursive( TQMakeScopeItem* proj )
{
m_part->startTQMakeCommand( proj->scope->projectDir() );
}
- TQMakeScopeItem* item = static_cast<TQMakeScopeItem*>( proj->firstChild() );
+ QMakeScopeItem* item = static_cast<QMakeScopeItem*>( proj->firstChild() );
while ( item )
{
runTQMakeRecursive( item );
- item = static_cast<TQMakeScopeItem*>( item->nextSibling() );
+ item = static_cast<QMakeScopeItem*>( item->nextSibling() );
}
}
}
@@ -2371,7 +2371,7 @@ void TrollProjectWidget::slotBuildSelectedFile()
buildFile( m_shownSubproject, fitem );
}
-void TrollProjectWidget::buildFile( TQMakeScopeItem* spitem, FileItem* fitem )
+void TrollProjectWidget::buildFile( QMakeScopeItem* spitem, FileItem* fitem )
{
TQFileInfo fi( spitem->scope->projectDir() + TQChar( TQDir::separator() ) + spitem->scope->resolveVariables( fitem->localFilePath ) );
TQString sourceDir = fi.dirPath();
@@ -2421,7 +2421,7 @@ bool TrollProjectWidget::isTMakeProject()
return m_part->isTMakeProject();
}
-void TrollProjectWidget::slotDisableSubproject( TQMakeScopeItem* spitem )
+void TrollProjectWidget::slotDisableSubproject( QMakeScopeItem* spitem )
{
m_filesCached = false;
m_allFilesCache.clear();
@@ -2447,7 +2447,7 @@ void TrollProjectWidget::slotDisableSubproject( TQMakeScopeItem* spitem )
}
}else
{
- TQMakeScopeItem* tqparent = static_cast<TQMakeScopeItem*>(spitem->tqparent());
+ QMakeScopeItem* tqparent = static_cast<QMakeScopeItem*>(spitem->tqparent());
tqparent->disableSubprojects( TQStringList( spitem->scope->scopeName() ) );
delete spitem;
tqparent->scope->saveToFile();
@@ -2463,10 +2463,10 @@ void TrollProjectWidget::slotProjectDirty(const TQString& path)
{
m_part->dirWatch()->stopScan();
TQListViewItemIterator it(m_rootSubproject);
- TQValueList<TQMakeScopeItem*> itemstoreload;
+ TQValueList<QMakeScopeItem*> itemstoreload;
while( it.current() )
{
- TQMakeScopeItem* projectitem = static_cast<TQMakeScopeItem*>( it.current() );
+ QMakeScopeItem* projectitem = static_cast<QMakeScopeItem*>( it.current() );
if( projectitem->scope->scopeType() == Scope::ProjectScope
|| projectitem->scope->scopeType() == Scope::IncludeScope )
{
@@ -2479,7 +2479,7 @@ void TrollProjectWidget::slotProjectDirty(const TQString& path)
it++;
}
- TQValueList<TQMakeScopeItem*>::const_iterator reloadit = itemstoreload.begin();
+ TQValueList<QMakeScopeItem*>::const_iterator reloadit = itemstoreload.begin();
for( ; reloadit != itemstoreload.end() ; ++reloadit )
{
(*reloadit)->reloadProject();
@@ -2501,7 +2501,7 @@ void TrollProjectWidget::slotProjectDirty(const TQString& path)
}
-TQMakeScopeItem* TrollProjectWidget::currentSubproject()
+QMakeScopeItem* TrollProjectWidget::currentSubproject()
{
return m_shownSubproject;
}