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.cpp732
1 files changed, 366 insertions, 366 deletions
diff --git a/buildtools/qmake/trollprojectwidget.cpp b/buildtools/qmake/trollprojectwidget.cpp
index 7668dbd7..087367bd 100644
--- a/buildtools/qmake/trollprojectwidget.cpp
+++ b/buildtools/qmake/trollprojectwidget.cpp
@@ -25,29 +25,29 @@
#include <config.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qheader.h>
-#include <qsplitter.h>
-#include <qptrstack.h>
-#include <qtextstream.h>
-#include <qcombobox.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqheader.h>
+#include <tqsplitter.h>
+#include <tqptrstack.h>
+#include <tqtextstream.h>
+#include <tqcombobox.h>
#include <kprocess.h>
-#include <qtimer.h>
-#include <qdir.h>
-#include <qregexp.h>
-#include <qinputdialog.h>
-#include <qwhatsthis.h>
-#include <qvaluestack.h>
+#include <tqtimer.h>
+#include <tqdir.h>
+#include <tqregexp.h>
+#include <tqinputdialog.h>
+#include <tqwhatsthis.h>
+#include <tqvaluestack.h>
#include <kfiledialog.h>
-#include <qtooltip.h>
+#include <tqtooltip.h>
#include <kdebug.h>
#include <klistview.h>
#include <kmessagebox.h>
#include <kpopupmenu.h>
#include <kregexp.h>
#include <kurl.h>
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <iostream>
#include <kparts/part.h>
#include <kaction.h>
@@ -80,105 +80,105 @@
#include <kapplication.h>
TrollProjectWidget::TrollProjectWidget( TrollProjectPart *part )
- : QVBox( 0, "troll project widget" ), m_shownSubproject( 0 ), m_rootSubproject( 0 ),
+ : TQVBox( 0, "troll project widget" ), m_shownSubproject( 0 ), m_rootSubproject( 0 ),
m_rootScope ( 0 ), m_part ( part ), m_configDlg( 0 ), m_filesCached(false)
{
- QSplitter * splitter = new QSplitter( Vertical, this );
+ TQSplitter * splitter = new TQSplitter( Vertical, this );
//////////////////
// PROJECT VIEW //
//////////////////
- overviewContainer = new QVBox( splitter, "Projects" );
+ overviewContainer = new TQVBox( splitter, "Projects" );
overviewContainer->setMargin ( 2 );
overviewContainer->setSpacing ( 2 );
- // overviewContainer->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
- // splitter->setResizeMode(overviewContainer, QSplitter::FollowSizeHint);
+ // overviewContainer->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Minimum);
+ // splitter->setResizeMode(overviewContainer, TQSplitter::FollowSizeHint);
- projectTools = new QHBox( overviewContainer, "Project buttons" );
+ projectTools = new TQHBox( overviewContainer, "Project buttons" );
projectTools->setMargin ( 2 );
projectTools->setSpacing ( 2 );
// Add subdir
- addSubdirButton = new QToolButton ( projectTools, "Add subproject button" );
+ addSubdirButton = new TQToolButton ( projectTools, "Add subproject button" );
addSubdirButton->setPixmap ( SmallIcon ( "folder_new" ) );
- addSubdirButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, addSubdirButton->sizePolicy().hasHeightForWidth() ) );
+ addSubdirButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, addSubdirButton->sizePolicy().hasHeightForWidth() ) );
addSubdirButton->setEnabled ( true );
- QToolTip::add( addSubdirButton, i18n( "Add subproject" ) );
- QWhatsThis::add( addSubdirButton, i18n( "<b>Add subproject</b><p>Creates a <i>new</i> or adds an <i>existing</i> subproject to a currently selected subproject. "
+ TQToolTip::add( addSubdirButton, i18n( "Add subproject" ) );
+ TQWhatsThis::add( addSubdirButton, i18n( "<b>Add subproject</b><p>Creates a <i>new</i> or adds an <i>existing</i> subproject to a currently selected subproject. "
"This action is allowed only if a type of the subproject is 'subdirectories'. The type of the subproject can be "
"defined in <b>Subproject Settings</b> dialog (open it from the subproject context menu)." ) );
// Create scope
- createScopeButton = new QToolButton ( projectTools, "Create scope button" );
+ createScopeButton = new TQToolButton ( projectTools, "Create scope button" );
createScopeButton->setPixmap ( SmallIcon ( "qmake_scopenew" ) );
- createScopeButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, createScopeButton->sizePolicy().hasHeightForWidth() ) );
+ createScopeButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, createScopeButton->sizePolicy().hasHeightForWidth() ) );
createScopeButton->setEnabled ( true );
- QToolTip::add( createScopeButton, i18n( "Create scope" ) );
- QWhatsThis::add( createScopeButton, i18n( "<b>Create scope</b><p>Creates QMake scope in the project file in case the subproject is selected or creates nested scope in case the scope is selected." ) );
+ TQToolTip::add( createScopeButton, i18n( "Create scope" ) );
+ TQWhatsThis::add( createScopeButton, i18n( "<b>Create scope</b><p>Creates QMake scope in the project file in case the subproject is selected or creates nested scope in case the scope is selected." ) );
// build
- buildProjectButton = new QToolButton ( projectTools, "Make button" );
+ buildProjectButton = new TQToolButton ( projectTools, "Make button" );
buildProjectButton->setPixmap ( SmallIcon ( "make_kdevelop" ) );
- buildProjectButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, buildProjectButton->sizePolicy().hasHeightForWidth() ) );
+ buildProjectButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, buildProjectButton->sizePolicy().hasHeightForWidth() ) );
buildProjectButton->setEnabled ( true );
- QToolTip::add( buildProjectButton, i18n( "Build project" ) );
- QWhatsThis::add( buildProjectButton, i18n( "<b>Build project</b><p>Runs <b>make</b> from the project directory.<br>"
+ TQToolTip::add( buildProjectButton, i18n( "Build project" ) );
+ TQWhatsThis::add( buildProjectButton, i18n( "<b>Build project</b><p>Runs <b>make</b> from the project directory.<br>"
"Environment variables and make arguments can be specified "
"in the project settings dialog, <b>Make Options</b> tab." ) );
// rebuild
- rebuildProjectButton = new QToolButton ( projectTools, "Rebuild button" );
+ rebuildProjectButton = new TQToolButton ( projectTools, "Rebuild button" );
rebuildProjectButton->setPixmap ( SmallIcon ( "rebuild" ) );
- rebuildProjectButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, rebuildProjectButton->sizePolicy().hasHeightForWidth() ) );
+ rebuildProjectButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, rebuildProjectButton->sizePolicy().hasHeightForWidth() ) );
rebuildProjectButton->setEnabled ( true );
- QToolTip::add( rebuildProjectButton, i18n( "Rebuild project" ) );
- QWhatsThis::add( rebuildProjectButton, i18n( "<b>Rebuild project</b><p>Runs <b>make clean</b> and then <b>make</b> from the project directory.<br>"
+ TQToolTip::add( rebuildProjectButton, i18n( "Rebuild project" ) );
+ TQWhatsThis::add( rebuildProjectButton, i18n( "<b>Rebuild project</b><p>Runs <b>make clean</b> and then <b>make</b> from the project directory.<br>"
"Environment variables and make arguments can be specified "
"in the project settings dialog, <b>Make Options</b> tab." ) );
// run
- executeProjectButton = new QToolButton ( projectTools, "Run button" );
+ executeProjectButton = new TQToolButton ( projectTools, "Run button" );
executeProjectButton->setPixmap ( SmallIcon ( "exec" ) );
- executeProjectButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, executeProjectButton->sizePolicy().hasHeightForWidth() ) );
+ executeProjectButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, executeProjectButton->sizePolicy().hasHeightForWidth() ) );
executeProjectButton->setEnabled ( true );
- QToolTip::add( executeProjectButton, i18n( "Execute main program" ) );
- QWhatsThis::add( executeProjectButton, i18n( "<b>Execute main program</b><p>Executes the main program specified in project settings, <b>Run Options</b> tab." ) );
+ TQToolTip::add( executeProjectButton, i18n( "Execute main program" ) );
+ TQWhatsThis::add( executeProjectButton, i18n( "<b>Execute main program</b><p>Executes the main program specified in project settings, <b>Run Options</b> tab." ) );
// spacer
- QWidget *spacer = new QWidget( projectTools );
+ TQWidget *spacer = new TQWidget( projectTools );
projectTools->setStretchFactor( spacer, 1 );
// Project configuration
- projectconfButton = new QToolButton ( projectTools, "Project configuration button" );
+ projectconfButton = new TQToolButton ( projectTools, "Project configuration button" );
projectconfButton->setPixmap ( SmallIcon ( "configure" ) );
- projectconfButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, projectconfButton->sizePolicy().hasHeightForWidth() ) );
+ projectconfButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, projectconfButton->sizePolicy().hasHeightForWidth() ) );
projectconfButton->setEnabled ( true );
- QToolTip::add( projectconfButton, i18n( "Subproject settings" ) );
- QWhatsThis::add( projectconfButton, i18n( "<b>Subproject settings</b><p>Opens <b>QMake Subproject Configuration</b> dialog for the currently selected subproject. "
+ TQToolTip::add( projectconfButton, i18n( "Subproject settings" ) );
+ TQWhatsThis::add( projectconfButton, i18n( "<b>Subproject settings</b><p>Opens <b>QMake Subproject Configuration</b> dialog for the currently selected subproject. "
"It provides settings for:<br>subproject type and configuration,<br>include and library paths,<br>lists of dependencies and "
"external libraries,<br>build order,<br>intermediate files locations,<br>compiler options." ) );
// Project button connections
- connect ( addSubdirButton, SIGNAL ( clicked () ), this, SLOT ( slotAddSubproject () ) );
- connect ( createScopeButton, SIGNAL ( clicked () ), this, SLOT ( slotCreateScope () ) );
+ connect ( addSubdirButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddSubproject () ) );
+ connect ( createScopeButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotCreateScope () ) );
- connect ( buildProjectButton, SIGNAL ( clicked () ), this, SLOT ( slotBuildProject () ) );
- connect ( rebuildProjectButton, SIGNAL ( clicked () ), this, SLOT ( slotRebuildProject () ) );
- connect ( executeProjectButton, SIGNAL ( clicked () ), m_part, SLOT ( slotBuildAndExecuteProject () ) );
+ connect ( buildProjectButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotBuildProject () ) );
+ connect ( rebuildProjectButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRebuildProject () ) );
+ connect ( executeProjectButton, TQT_SIGNAL ( clicked () ), m_part, TQT_SLOT ( slotBuildAndExecuteProject () ) );
- connect ( projectconfButton, SIGNAL ( clicked () ), this, SLOT ( slotConfigureProject () ) );
+ connect ( projectconfButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotConfigureProject () ) );
// Project tree
overview = new TrollListView( this, overviewContainer, SubprojectView, "project overview widget" );
-// overview->setResizeMode( QListView::LastColumn );
+// overview->setResizeMode( TQListView::LastColumn );
overview->setSorting( -1 );
overview->header() ->hide();
- overview->addColumn( QString::null );
+ overview->addColumn( TQString::null );
// Project tree connections
- connect( overview, SIGNAL( selectionChanged( QListViewItem* ) ),
- this, SLOT( slotOverviewSelectionChanged( QListViewItem* ) ) );
- connect( overview, SIGNAL( contextMenu( KListView*, QListViewItem*, const QPoint& ) ),
- this, SLOT( slotOverviewContextMenu( KListView*, QListViewItem*, const QPoint& ) ) );
+ connect( overview, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ this, TQT_SLOT( slotOverviewSelectionChanged( TQListViewItem* ) ) );
+ connect( overview, TQT_SIGNAL( contextMenu( KListView*, TQListViewItem*, const TQPoint& ) ),
+ this, TQT_SLOT( slotOverviewContextMenu( KListView*, TQListViewItem*, const TQPoint& ) ) );
/////////////////
@@ -186,128 +186,128 @@ TrollProjectWidget::TrollProjectWidget( TrollProjectPart *part )
/////////////////
// Details tree
- detailContainer = new QVBox( splitter, "Details" );
+ detailContainer = new TQVBox( splitter, "Details" );
detailContainer->setMargin ( 2 );
detailContainer->setSpacing ( 2 );
- // detailContainer->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
+ // detailContainer->setSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding);
// Details Toolbar
- fileTools = new QHBox( detailContainer, "Detail buttons" );
+ fileTools = new TQHBox( detailContainer, "Detail buttons" );
fileTools->setMargin ( 2 );
fileTools->setSpacing ( 2 );
// Add new file button
- newfileButton = new QToolButton ( fileTools, "Create new file" );
+ newfileButton = new TQToolButton ( fileTools, "Create new file" );
newfileButton->setPixmap ( SmallIcon ( "filenew" ) );
- newfileButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, newfileButton->sizePolicy().hasHeightForWidth() ) );
+ newfileButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, newfileButton->sizePolicy().hasHeightForWidth() ) );
newfileButton->setEnabled ( true );
- QToolTip::add( newfileButton, i18n( "Create new file" ) );
- QWhatsThis::add( newfileButton, i18n( "<b>Create new file</b><p>Creates a new file and adds it to a currently selected group." ) );
+ TQToolTip::add( newfileButton, i18n( "Create new file" ) );
+ TQWhatsThis::add( newfileButton, i18n( "<b>Create new file</b><p>Creates a new file and adds it to a currently selected group." ) );
// Add existing files button
- addfilesButton = new QToolButton ( fileTools, "Add existing files" );
+ addfilesButton = new TQToolButton ( fileTools, "Add existing files" );
addfilesButton->setPixmap ( SmallIcon ( "fileimport" ) );
- addfilesButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, addfilesButton->sizePolicy().hasHeightForWidth() ) );
+ addfilesButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, addfilesButton->sizePolicy().hasHeightForWidth() ) );
addfilesButton->setEnabled ( true );
- QToolTip::add( addfilesButton, i18n( "Add existing files" ) );
- QWhatsThis::add( addfilesButton, i18n( "<b>Add existing files</b><p>Adds existing files to a currently selected group. It is "
+ TQToolTip::add( addfilesButton, i18n( "Add existing files" ) );
+ TQWhatsThis::add( addfilesButton, i18n( "<b>Add existing files</b><p>Adds existing files to a currently selected group. It is "
"possible to copy files to a current subproject directory, create symbolic links or "
"add them with the relative path." ) );
// remove file button
- removefileButton = new QToolButton ( fileTools, "Remove file" );
+ removefileButton = new TQToolButton ( fileTools, "Remove file" );
removefileButton->setPixmap ( SmallIcon ( "button_cancel" ) );
- removefileButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, removefileButton->sizePolicy().hasHeightForWidth() ) );
+ removefileButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, removefileButton->sizePolicy().hasHeightForWidth() ) );
removefileButton->setEnabled ( true );
- QToolTip::add( removefileButton, i18n( "Remove file" ) );
- QWhatsThis::add( removefileButton, i18n( "<b>Remove file</b><p>Removes file from a current group. Does not remove file from disk." ) );
+ TQToolTip::add( removefileButton, i18n( "Remove file" ) );
+ TQWhatsThis::add( removefileButton, i18n( "<b>Remove file</b><p>Removes file from a current group. Does not remove file from disk." ) );
// build selected file
- buildFileButton = new QToolButton ( fileTools, "Make file button" );
+ buildFileButton = new TQToolButton ( fileTools, "Make file button" );
buildFileButton->setPixmap ( SmallIcon ( "compfile" ) );
- buildFileButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, buildFileButton->sizePolicy().hasHeightForWidth() ) );
+ buildFileButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, buildFileButton->sizePolicy().hasHeightForWidth() ) );
buildFileButton->setEnabled ( true );
- QToolTip::add( buildFileButton, i18n( "Compile file" ) );
- QWhatsThis::add( buildFileButton, i18n( "<b>Compile file</b><p>Runs <b>make filename.o</b> command from the directory where 'filename' is the name of currently opened file.<br>"
+ TQToolTip::add( buildFileButton, i18n( "Compile file" ) );
+ TQWhatsThis::add( buildFileButton, i18n( "<b>Compile file</b><p>Runs <b>make filename.o</b> command from the directory where 'filename' is the name of currently opened file.<br>"
"Environment variables and make arguments can be specified "
"in the project settings dialog, <b>Make Options</b> tab." ) );
// build
- buildTargetButton = new QToolButton ( fileTools, "Make sp button" );
+ buildTargetButton = new TQToolButton ( fileTools, "Make sp button" );
buildTargetButton->setPixmap ( SmallIcon ( "make_kdevelop" ) );
- buildTargetButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, buildTargetButton->sizePolicy().hasHeightForWidth() ) );
+ buildTargetButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, buildTargetButton->sizePolicy().hasHeightForWidth() ) );
buildTargetButton->setEnabled ( true );
- QToolTip::add( buildTargetButton, i18n( "Build subproject" ) );
- QWhatsThis::add( buildTargetButton, i18n( "<b>Build subproject</b><p>Runs <b>make</b> from the current subproject directory. "
+ TQToolTip::add( buildTargetButton, i18n( "Build subproject" ) );
+ TQWhatsThis::add( buildTargetButton, i18n( "<b>Build subproject</b><p>Runs <b>make</b> from the current subproject directory. "
"Current subproject is a subproject selected in <b>QMake manager</b> 'overview' window.<br>"
"Environment variables and make arguments can be specified "
"in the project settings dialog, <b>Make Options</b> tab." ) );
// rebuild
- rebuildTargetButton = new QToolButton ( fileTools, "Rebuild sp button" );
+ rebuildTargetButton = new TQToolButton ( fileTools, "Rebuild sp button" );
rebuildTargetButton->setPixmap ( SmallIcon ( "rebuild" ) );
- rebuildTargetButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, rebuildTargetButton->sizePolicy().hasHeightForWidth() ) );
+ rebuildTargetButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, rebuildTargetButton->sizePolicy().hasHeightForWidth() ) );
rebuildTargetButton->setEnabled ( true );
- QToolTip::add( rebuildTargetButton, i18n( "Rebuild subproject" ) );
- QWhatsThis::add( rebuildTargetButton, i18n( "<b>Rebuild subproject</b><p>Runs <b>make clean</b> and then <b>make</b> from the current subproject directory. "
+ TQToolTip::add( rebuildTargetButton, i18n( "Rebuild subproject" ) );
+ TQWhatsThis::add( rebuildTargetButton, i18n( "<b>Rebuild subproject</b><p>Runs <b>make clean</b> and then <b>make</b> from the current subproject directory. "
"Current subproject is a subproject selected in <b>QMake manager</b> 'overview' window.<br>"
"Environment variables and make arguments can be specified "
"in the project settings dialog, <b>Make Options</b> tab." ) );
// run
- executeTargetButton = new QToolButton ( fileTools, "Run sp button" );
+ executeTargetButton = new TQToolButton ( fileTools, "Run sp button" );
executeTargetButton->setPixmap ( SmallIcon ( "exec" ) );
- executeTargetButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, executeTargetButton->sizePolicy().hasHeightForWidth() ) );
+ executeTargetButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, executeTargetButton->sizePolicy().hasHeightForWidth() ) );
executeTargetButton->setEnabled ( true );
- QToolTip::add( executeTargetButton, i18n( "Execute subproject" ) );
- QWhatsThis::add( executeTargetButton, i18n( "<b>Execute subproject</b><p>Executes the target program for the currently selected subproject. "
+ TQToolTip::add( executeTargetButton, i18n( "Execute subproject" ) );
+ TQWhatsThis::add( executeTargetButton, i18n( "<b>Execute subproject</b><p>Executes the target program for the currently selected subproject. "
"This action is allowed only if a type of the subproject is 'application'. The type of the subproject can be "
"defined in <b>Subproject Settings</b> dialog (open it from the subproject context menu)." ) );
// spacer
- spacer = new QWidget( fileTools );
+ spacer = new TQWidget( fileTools );
projectTools->setStretchFactor( spacer, 1 );
// Configure file button
- excludeFileFromScopeButton = new QToolButton ( fileTools, "Exclude file" );
+ excludeFileFromScopeButton = new TQToolButton ( fileTools, "Exclude file" );
excludeFileFromScopeButton->setPixmap ( SmallIcon ( "configure_file" ) );
- excludeFileFromScopeButton->setSizePolicy ( QSizePolicy ( ( QSizePolicy::SizeType ) 0, ( QSizePolicy::SizeType ) 0, 0, 0, excludeFileFromScopeButton->sizePolicy().hasHeightForWidth() ) );
+ excludeFileFromScopeButton->setSizePolicy ( TQSizePolicy ( ( TQSizePolicy::SizeType ) 0, ( TQSizePolicy::SizeType ) 0, 0, 0, excludeFileFromScopeButton->sizePolicy().hasHeightForWidth() ) );
excludeFileFromScopeButton->setEnabled ( true );
- QToolTip::add( excludeFileFromScopeButton , i18n( "Exclude file" ) );
- QWhatsThis::add( excludeFileFromScopeButton , i18n( "<b>Exclude file</b><p>Exclude the selected file from this scope." ) );
+ TQToolTip::add( excludeFileFromScopeButton , i18n( "Exclude file" ) );
+ TQWhatsThis::add( excludeFileFromScopeButton , i18n( "<b>Exclude file</b><p>Exclude the selected file from this scope." ) );
// detail tree
details = new TrollListView( this, detailContainer, DetailsView, "details widget" );
details->setRootIsDecorated( true );
- details->setResizeMode( QListView::LastColumn );
+ details->setResizeMode( TQListView::LastColumn );
details->setSorting( -1 );
details->header() ->hide();
- details->addColumn( QString::null );
+ details->addColumn( TQString::null );
// Detail button connections
- connect ( addfilesButton, SIGNAL ( clicked () ), this, SLOT ( slotAddFiles () ) );
- connect ( newfileButton, SIGNAL ( clicked () ), this, SLOT ( slotNewFile () ) );
- connect ( removefileButton, SIGNAL ( clicked () ), this, SLOT ( slotRemoveFile () ) );
- connect ( buildFileButton, SIGNAL ( clicked () ), this, SLOT ( slotBuildSelectedFile () ) );
- connect ( excludeFileFromScopeButton, SIGNAL ( clicked () ), this, SLOT ( slotExcludeFileFromScopeButton() ) );
+ connect ( addfilesButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotAddFiles () ) );
+ connect ( newfileButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotNewFile () ) );
+ connect ( removefileButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRemoveFile () ) );
+ connect ( buildFileButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotBuildSelectedFile () ) );
+ connect ( excludeFileFromScopeButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotExcludeFileFromScopeButton() ) );
// Detail tree connections
- connect( details, SIGNAL( selectionChanged( QListViewItem* ) ),
- this, SLOT( slotDetailsSelectionChanged( QListViewItem* ) ) );
- connect( details, SIGNAL( executed( QListViewItem* ) ),
- this, SLOT( slotDetailsExecuted( QListViewItem* ) ) );
- connect( details, SIGNAL( contextMenu( KListView*, QListViewItem*, const QPoint& ) ),
- this, SLOT( slotDetailsContextMenu( KListView*, QListViewItem*, const QPoint& ) ) );
-
- connect ( buildTargetButton, SIGNAL ( clicked () ), this, SLOT ( slotBuildTarget () ) );
- connect ( rebuildTargetButton, SIGNAL ( clicked () ), this, SLOT ( slotRebuildTarget () ) );
- connect ( executeTargetButton, SIGNAL ( clicked () ), m_part, SLOT ( slotBuildAndExecuteTarget () ) );
+ connect( details, TQT_SIGNAL( selectionChanged( TQListViewItem* ) ),
+ this, TQT_SLOT( slotDetailsSelectionChanged( TQListViewItem* ) ) );
+ connect( details, TQT_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQT_SLOT( slotDetailsExecuted( TQListViewItem* ) ) );
+ connect( details, TQT_SIGNAL( contextMenu( KListView*, TQListViewItem*, const TQPoint& ) ),
+ this, TQT_SLOT( slotDetailsContextMenu( KListView*, TQListViewItem*, const TQPoint& ) ) );
+
+ connect ( buildTargetButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotBuildTarget () ) );
+ connect ( rebuildTargetButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotRebuildTarget () ) );
+ connect ( executeTargetButton, TQT_SIGNAL ( clicked () ), m_part, TQT_SLOT ( slotBuildAndExecuteTarget () ) );
buildTargetButton->setEnabled( false );
rebuildTargetButton->setEnabled( false );
executeTargetButton->setEnabled( false );
m_configDlg = new ProjectConfigurationDlg( overview, this, this );
- connect( m_part->dirWatch(), SIGNAL( dirty(const QString&) ), this, SLOT( slotProjectDirty(const QString&) ) );
+ connect( m_part->dirWatch(), TQT_SIGNAL( dirty(const TQString&) ), this, TQT_SLOT( slotProjectDirty(const TQString&) ) );
}
@@ -317,28 +317,28 @@ TrollProjectWidget::~TrollProjectWidget()
}
-void TrollProjectWidget::openProject( const QString &dirName )
+void TrollProjectWidget::openProject( const TQString &dirName )
{
- QDomDocument & dom = *( m_part->projectDom() );
+ TQDomDocument & dom = *( m_part->projectDom() );
m_subclasslist = DomUtil::readPairListEntry( dom, "/kdevtrollproject/subclassing" ,
"subclass", "sourcefile", "uifile" );
- QString projectfile = DomUtil::readEntry( dom, "/kdevtrollproject/qmake/projectfile", "" );
+ TQString projectfile = DomUtil::readEntry( dom, "/kdevtrollproject/qmake/projectfile", "" );
m_showFilenamesOnly = DomUtil::readBoolEntry( *m_part->projectDom(), "/kdevtrollproject/qmake/enableFilenamesOnly", false );
m_showVariablesInTree = DomUtil::readBoolEntry( *m_part->projectDom(), "/kdevtrollproject/qmake/showVariablesInTree", true );
- QString proname;
+ TQString proname;
if( projectfile.isEmpty() )
{
- QFileInfo fi( dirName );
- QDir dir( dirName );
- // QString proname = item->path + "/" + fi.baseName() + ".pro";
+ TQFileInfo fi( dirName );
+ TQDir dir( dirName );
+ // TQString proname = item->path + "/" + fi.baseName() + ".pro";
- QStringList l = dir.entryList( "*.pro" );
+ TQStringList l = dir.entryList( "*.pro" );
- QString profile;
+ TQString profile;
if( l.count() && l.findIndex( m_part->projectName() + ".pro") != -1 )
profile = m_part->projectName()+".pro";
else if( l.isEmpty() || ( l.count() && l.findIndex( fi.baseName() + ".pro") != -1 ) )
@@ -346,7 +346,7 @@ void TrollProjectWidget::openProject( const QString &dirName )
else
profile = l[0];
- proname = dirName + QString( QChar( QDir::separator() ) ) + profile;
+ proname = dirName + TQString( TQChar( TQDir::separator() ) ) + profile;
} else
{
proname = projectfile;
@@ -393,10 +393,10 @@ void TrollProjectWidget::closeProject()
delete m_rootScope;
}
-QStringList TrollProjectWidget::allFiles()
+TQStringList TrollProjectWidget::allFiles()
{
if( !m_rootScope )
- return QStringList();
+ return TQStringList();
if( m_filesCached )
return m_allFilesCache;
m_allFilesCache = m_rootScope->allFiles( m_rootScope->projectDir() );
@@ -404,19 +404,19 @@ QStringList TrollProjectWidget::allFiles()
return m_allFilesCache;
}
-QString TrollProjectWidget::projectDirectory()
+TQString TrollProjectWidget::projectDirectory()
{
if ( !m_rootScope )
- return QString::null; //confused
+ return TQString::null; //confused
return m_rootScope->projectDir();
}
-QString TrollProjectWidget::subprojectDirectory()
+TQString TrollProjectWidget::subprojectDirectory()
{
if ( !m_shownSubproject )
- return QString::null;
+ return TQString::null;
return m_shownSubproject->scope->projectDir();
}
@@ -431,7 +431,7 @@ void TrollProjectWidget::setupContext()
bool hasSourceFiles = true;
bool hasSubdirs = false;
- QStringList tmpl = m_shownSubproject->scope->variableValues( "TEMPLATE" );
+ TQStringList tmpl = m_shownSubproject->scope->variableValues( "TEMPLATE" );
if ( tmpl.findIndex( "lib" ) != -1 )
{
@@ -471,9 +471,9 @@ void TrollProjectWidget::setupContext()
details->setEnabled( hasSourceFiles );
}
-void TrollProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
+void TrollProjectWidget::slotOverviewSelectionChanged( TQListViewItem *item )
{
- QString olddir = m_part->activeDirectory();
+ TQString olddir = m_part->activeDirectory();
if ( !item )
{
kdDebug(9024) << "Trying to select a non-existing item" << endl;
@@ -484,7 +484,7 @@ void TrollProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
setupContext();
buildProjectDetailTree( m_shownSubproject, details );
- QDomDocument &dom = *( m_part->projectDom() );
+ TQDomDocument &dom = *( m_part->projectDom() );
DomUtil::writeEntry( dom, "/kdevtrollproject/general/activedir", m_shownSubproject->relativePath() );
if ( m_configDlg && m_configDlg->isShown() )
{
@@ -493,33 +493,33 @@ void TrollProjectWidget::slotOverviewSelectionChanged( QListViewItem *item )
emit m_part->activeDirectoryChanged( olddir, m_part->activeDirectory() );
}
-QString TrollProjectWidget::getCurrentTarget()
+TQString TrollProjectWidget::getCurrentTarget()
{
if ( !m_shownSubproject )
return "";
- QString destdir = getCurrentDestDir();
+ TQString destdir = getCurrentDestDir();
if ( destdir.isEmpty() )
return getCurrentOutputFilename();
else
- return destdir + QString( QChar( QDir::separator() ) ) + getCurrentOutputFilename();
+ return destdir + TQString( TQChar( TQDir::separator() ) ) + getCurrentOutputFilename();
}
-QString TrollProjectWidget::getCurrentDestDir()
+TQString TrollProjectWidget::getCurrentDestDir()
{
if ( !m_shownSubproject )
return "";
- QStringList destdir = m_shownSubproject->scope->variableValues( "DESTDIR", true, true, true );
+ TQStringList destdir = m_shownSubproject->scope->variableValues( "DESTDIR", true, true, true );
return m_shownSubproject->scope->resolveVariables(m_shownSubproject->scope->variableValues( "DESTDIR", true, true, true ).front());
}
-QString TrollProjectWidget::getCurrentOutputFilename()
+TQString TrollProjectWidget::getCurrentOutputFilename()
{
if ( !m_shownSubproject )
return "";
if ( m_shownSubproject->scope->variableValues( "TARGET", true, true, true ).isEmpty() )
{
- QString exe = m_shownSubproject->scope->resolveVariables(m_shownSubproject->scope->fileName());
- return exe.replace( QRegExp( "\\.pro$" ), "" );
+ TQString exe = m_shownSubproject->scope->resolveVariables(m_shownSubproject->scope->fileName());
+ return exe.replace( TQRegExp( "\\.pro$" ), "" );
}
else
{
@@ -533,14 +533,14 @@ void TrollProjectWidget::cleanDetailView( QMakeScopeItem *item )
// it is a subdir template
if ( item && details->childCount() )
{
- QListViewItem* i = details->firstChild();
+ TQListViewItem* i = details->firstChild();
while( i )
{
- QListViewItem* old = i;
+ TQListViewItem* old = i;
i = i->nextSibling();
details->takeItem(old);
}
-// QMapIterator<GroupItem::GroupType, GroupItem*> it1 = item->groups.begin() ;
+// TQMapIterator<GroupItem::GroupType, GroupItem*> it1 = item->groups.begin() ;
// for ( ; it1 != item->groups.end(); ++it1 )
// {
// // After AddTargetDialog, it can happen that an
@@ -560,8 +560,8 @@ void TrollProjectWidget::buildProjectDetailTree( QMakeScopeItem *item, KListView
if ( !listviewControl || item->scope->variableValues( "TEMPLATE" ).findIndex("subdirs") != -1 )
return ;
- QMapIterator<GroupItem::GroupType, GroupItem*> it2 = item->groups.begin();
- QListViewItem* lastItem = 0;
+ TQMapIterator<GroupItem::GroupType, GroupItem*> it2 = item->groups.begin();
+ TQListViewItem* lastItem = 0;
for ( ; it2 != item->groups.end(); ++it2 )
{
listviewControl->insertItem( it2.data() );
@@ -570,16 +570,16 @@ void TrollProjectWidget::buildProjectDetailTree( QMakeScopeItem *item, KListView
lastItem = it2.data();
if ( it2.key() == GroupItem::InstallRoot )
{
- QListViewItem* lastinstallitem = 0;
- QPtrListIterator<GroupItem> it3( it2.data() ->installs );
+ TQListViewItem* lastinstallitem = 0;
+ TQPtrListIterator<GroupItem> it3( it2.data() ->installs );
for ( ; it3.current(); ++it3 )
{
it2.data() ->insertItem( *it3 );
if ( lastinstallitem )
it3.current()->moveItem(lastinstallitem);
lastinstallitem = it3.current();
- QPtrListIterator<FileItem> it4( ( *it3 ) ->files );
- QListViewItem* lastfileitem = 0;
+ TQPtrListIterator<FileItem> it4( ( *it3 ) ->files );
+ TQListViewItem* lastfileitem = 0;
for ( ; it4.current(); ++it4 )
{
( *it3 ) ->insertItem( *it4 );
@@ -595,8 +595,8 @@ void TrollProjectWidget::buildProjectDetailTree( QMakeScopeItem *item, KListView
}
else
{
- QPtrListIterator<FileItem> it3( it2.data() ->files );
- QListViewItem* lastfileitem = 0;
+ TQPtrListIterator<FileItem> it3( it2.data() ->files );
+ TQListViewItem* lastfileitem = 0;
for ( ; it3.current(); ++it3 )
{
it2.data() ->insertItem( *it3 );
@@ -612,7 +612,7 @@ void TrollProjectWidget::buildProjectDetailTree( QMakeScopeItem *item, KListView
listviewControl->setCurrentItem( 0 );
}
-void TrollProjectWidget::slotDetailsExecuted( QListViewItem *item )
+void TrollProjectWidget::slotDetailsExecuted( TQListViewItem *item )
{
if ( !item )
return ;
@@ -625,7 +625,7 @@ void TrollProjectWidget::slotDetailsExecuted( QListViewItem *item )
FileItem *fitem = static_cast<FileItem*>( pvitem );
- QString filePath;
+ TQString filePath;
if( m_shownSubproject->scope->scopeType() == Scope::IncludeScope )
{
filePath = m_shownSubproject->scope->parent()->projectDir();
@@ -633,9 +633,9 @@ void TrollProjectWidget::slotDetailsExecuted( QListViewItem *item )
{
filePath = m_shownSubproject->scope->projectDir();
}
- filePath += QChar( QDir::separator() ) + m_shownSubproject->scope->resolveVariables( fitem->localFilePath );
+ filePath += TQChar( TQDir::separator() ) + m_shownSubproject->scope->resolveVariables( fitem->localFilePath );
- bool isUiFile = QFileInfo( fitem->text( 0 ) ).extension() == "ui";
+ bool isUiFile = TQFileInfo( fitem->text( 0 ) ).extension() == "ui";
kdDebug(9024) << "Opening file: " << filePath << endl;
if ( isTMakeProject() && isUiFile )
{
@@ -686,10 +686,10 @@ void TrollProjectWidget::slotExecuteTarget()
}
- QString program = KProcess::quote( "." + QString( QChar( QDir::separator() ) ) + getCurrentOutputFilename() );
+ TQString program = KProcess::quote( "." + TQString( TQChar( TQDir::separator() ) ) + getCurrentOutputFilename() );
// Build environment variables to prepend to the executable path
- QString runEnvVars = QString::null;
+ TQString runEnvVars = TQString::null;
DomUtil::PairList list =
DomUtil::readPairListEntry( *( m_part->projectDom() ), "/kdevtrollproject/run/envvars", "envvar", "name", "value" );
@@ -709,7 +709,7 @@ void TrollProjectWidget::slotExecuteTarget()
bool inTerminal = DomUtil::readBoolEntry( *m_part->projectDom(), "/kdevtrollproject/run/terminal" );
- m_part->appFrontend() ->startAppCommand( subprojectDirectory() + QString( QChar( QDir::separator() ) ) + getCurrentDestDir(), program, inTerminal );
+ m_part->appFrontend() ->startAppCommand( subprojectDirectory() + TQString( TQChar( TQDir::separator() ) ) + getCurrentDestDir(), program, inTerminal );
}
@@ -718,7 +718,7 @@ void TrollProjectWidget::slotBuildProject()
if ( m_part->partController() ->saveAllFiles() == false )
return ; //user cancelled
- QString dir = projectDirectory();
+ TQString dir = projectDirectory();
if ( !m_rootSubproject )
return ;
@@ -726,8 +726,8 @@ void TrollProjectWidget::slotBuildProject()
createMakefileIfMissing( dir, m_rootSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString buildcmd = constructMakeCommandLine( m_rootSubproject->scope );
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString buildcmd = constructMakeCommandLine( m_rootSubproject->scope );
m_part->queueCmd( dir, dircmd + buildcmd );
}
@@ -736,7 +736,7 @@ void TrollProjectWidget::slotInstallProject()
if ( m_part->partController() ->saveAllFiles() == false )
return ; //user cancelled
- QString dir = projectDirectory();
+ TQString dir = projectDirectory();
if ( !m_rootSubproject )
return ;
@@ -744,8 +744,8 @@ void TrollProjectWidget::slotInstallProject()
createMakefileIfMissing( dir, m_rootSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString buildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " install";
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString buildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " install";
m_part->queueCmd( dir, dircmd + buildcmd );
}
@@ -758,12 +758,12 @@ void TrollProjectWidget::slotBuildTarget()
// can't build from scope
if ( m_shownSubproject->scope->scopeType() != Scope::ProjectScope )
return ;
- QString dir = subprojectDirectory();
+ TQString dir = subprojectDirectory();
createMakefileIfMissing( dir, m_shownSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString buildcmd = constructMakeCommandLine( m_shownSubproject->scope );
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString buildcmd = constructMakeCommandLine( m_shownSubproject->scope );
m_part->queueCmd( dir, dircmd + buildcmd );
}
@@ -776,19 +776,19 @@ void TrollProjectWidget::slotInstallTarget()
// can't build from scope
if ( m_shownSubproject->scope->scopeType() != Scope::ProjectScope )
return ;
- QString dir = subprojectDirectory();
+ TQString dir = subprojectDirectory();
createMakefileIfMissing( dir, m_shownSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString buildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " install";
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString buildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " install";
m_part->queueCmd( dir, dircmd + buildcmd );
}
void TrollProjectWidget::slotRebuildProject()
{
m_part->partController() ->saveAllFiles();
- QString dir = this-> projectDirectory();
+ TQString dir = this-> projectDirectory();
if ( !m_rootSubproject )
return ;
@@ -796,8 +796,8 @@ void TrollProjectWidget::slotRebuildProject()
createMakefileIfMissing( dir, m_rootSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString rebuildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " clean && " + constructMakeCommandLine( m_rootSubproject->scope );
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString rebuildcmd = constructMakeCommandLine( m_rootSubproject->scope ) + " clean && " + constructMakeCommandLine( m_rootSubproject->scope );
m_part->queueCmd( dir, dircmd + rebuildcmd );
}
@@ -811,12 +811,12 @@ void TrollProjectWidget::slotRebuildTarget()
if ( m_shownSubproject->scope->scopeType() != Scope::ProjectScope )
return ;
- QString dir = subprojectDirectory();
+ TQString dir = subprojectDirectory();
createMakefileIfMissing( dir, m_shownSubproject );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString rebuildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " clean && " + constructMakeCommandLine( m_shownSubproject->scope );
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString rebuildcmd = constructMakeCommandLine( m_shownSubproject->scope ) + " clean && " + constructMakeCommandLine( m_shownSubproject->scope );
m_part->queueCmd( dir, dircmd + rebuildcmd );
}
@@ -827,7 +827,7 @@ void TrollProjectWidget::slotCreateScope( QMakeScopeItem *spitem )
else
spitem = m_shownSubproject;
CreateScopeDlg dlg( spitem, this );
- if ( dlg.exec() == QDialog::Accepted )
+ if ( dlg.exec() == TQDialog::Accepted )
{
spitem->scope->saveToFile( );
spitem->sortChildItems( 0, true );
@@ -845,31 +845,31 @@ void TrollProjectWidget::slotAddSubproject( QMakeScopeItem *spitem )
m_filesCached = false;
m_allFilesCache.clear();
- QString projectdir = spitem->scope->projectDir();
+ TQString projectdir = spitem->scope->projectDir();
KURLRequesterDlg dialog( i18n( "Add Subproject" ), i18n( "Please enter a name for the subproject: " ), this, 0 );
KURLRequester* req = dialog.urlRequester();
req->setMode( KFile::Directory | KFile::File | KFile::LocalOnly );
req->setFilter( "*.pro|QMake Project Files (*.pro)" );
- req->setURL( QString() );
+ req->setURL( TQString() );
req->fileDialog()->setURL( KURL::fromPathOrURL( projectdir ) );
req->completionObject() ->setDir( projectdir );
- if ( dialog.exec() == QDialog::Accepted && !dialog.urlRequester() ->url().isEmpty() )
+ if ( dialog.exec() == TQDialog::Accepted && !dialog.urlRequester() ->url().isEmpty() )
{
- QString subdirname;
- if ( !QDir::isRelativePath( dialog.urlRequester() ->url() ) )
+ TQString subdirname;
+ if ( !TQDir::isRelativePath( dialog.urlRequester() ->url() ) )
subdirname = URLUtil::getRelativePath( projectdir, dialog.urlRequester()->url() );
else
subdirname = dialog.urlRequester()->url();
- while( subdirname.endsWith( QString(QChar(QDir::separator())) ) )
+ while( subdirname.endsWith( TQString(TQChar(TQDir::separator())) ) )
subdirname = subdirname.left(subdirname.length()-1);
if( !subdirname.endsWith(".pro") )
{
kdDebug(9024) << "Cleaned subdirname: " << subdirname << endl;
- QDir dir( projectdir );
- QString realdir = spitem->scope->resolveVariables( subdirname );
+ TQDir dir( projectdir );
+ TQString realdir = spitem->scope->resolveVariables( subdirname );
if ( !dir.exists( realdir ) )
{
if ( !dir.mkdir( realdir ) )
@@ -880,15 +880,15 @@ void TrollProjectWidget::slotAddSubproject( QMakeScopeItem *spitem )
return ;
}else
{
- QFile f( dir.absPath()+"/"+realdir+"/"+realdir+".pro" );
+ TQFile f( dir.absPath()+"/"+realdir+"/"+realdir+".pro" );
f.open( IO_WriteOnly );
f.close();
}
}
}else
{
- QString realdir = spitem->scope->resolveVariables( subdirname );
- QFile f( projectdir+"/"+realdir );
+ TQString realdir = spitem->scope->resolveVariables( subdirname );
+ TQFile f( projectdir+"/"+realdir );
f.open( IO_WriteOnly );
f.close();
}
@@ -898,9 +898,9 @@ void TrollProjectWidget::slotAddSubproject( QMakeScopeItem *spitem )
}
}
-void TrollProjectWidget::addSubprojectToItem( QMakeScopeItem* spitem, const QString& subdirname )
+void TrollProjectWidget::addSubprojectToItem( QMakeScopeItem* spitem, const TQString& subdirname )
{
- QListViewItem* item = spitem->firstChild();
+ TQListViewItem* item = spitem->firstChild();
while( item )
{
QMakeScopeItem* sitem = static_cast<QMakeScopeItem*>(item);
@@ -924,7 +924,7 @@ void TrollProjectWidget::addSubprojectToItem( QMakeScopeItem* spitem, const QStr
if( subproject )
{
new QMakeScopeItem( spitem, subproject->scopeName(), subproject );
-// QListViewItem* lastitem = spitem->firstChild();
+// TQListViewItem* lastitem = spitem->firstChild();
// while( lastitem->nextSibling() != 0 )
// lastitem = lastitem->nextSibling();
// newitem->moveItem( lastitem );
@@ -966,7 +966,7 @@ void TrollProjectWidget::slotRemoveSubproject( QMakeScopeItem *spitem )
}
}
-void TrollProjectWidget::slotOverviewContextMenu( KListView *, QListViewItem *item, const QPoint &p )
+void TrollProjectWidget::slotOverviewContextMenu( KListView *, TQListViewItem *item, const TQPoint &p )
{
if ( !item )
return ;
@@ -1066,7 +1066,7 @@ void TrollProjectWidget::slotOverviewContextMenu( KListView *, QListViewItem *it
int r = popup.exec( p );
- QString relpath = spitem->relativePath();
+ TQString relpath = spitem->relativePath();
if ( r == idAddSubproject )
{
slotAddSubproject( spitem );
@@ -1090,12 +1090,12 @@ void TrollProjectWidget::slotOverviewContextMenu( KListView *, QListViewItem *it
else if ( r == idBuild )
{
slotBuildTarget();
- // m_part->startMakeCommand(projectDirectory() + relpath, QString::fromLatin1(""));
+ // m_part->startMakeCommand(projectDirectory() + relpath, TQString::fromLatin1(""));
}
else if ( r == idInstall )
{
slotInstallTarget();
- // m_part->startMakeCommand(projectDirectory() + relpath, QString::fromLatin1(""));
+ // m_part->startMakeCommand(projectDirectory() + relpath, TQString::fromLatin1(""));
}
else if ( r == idRebuild )
{
@@ -1112,7 +1112,7 @@ void TrollProjectWidget::slotOverviewContextMenu( KListView *, QListViewItem *it
else if ( r == idQmake )
{
- m_part->startQMakeCommand( projectDirectory() + QString(QChar(QDir::separator())) + relpath );
+ m_part->startQMakeCommand( projectDirectory() + TQString(TQChar(TQDir::separator())) + relpath );
}
else if ( r == idQmakeRecursive )
{
@@ -1126,7 +1126,7 @@ void TrollProjectWidget::slotOverviewContextMenu( KListView *, QListViewItem *it
}
}
-void TrollProjectWidget::addFileToCurrentSubProject( GroupItem *titem, const QString &filename )
+void TrollProjectWidget::addFileToCurrentSubProject( GroupItem *titem, const TQString &filename )
{
m_filesCached = false;
@@ -1134,7 +1134,7 @@ void TrollProjectWidget::addFileToCurrentSubProject( GroupItem *titem, const QSt
titem->addFileToScope( filename );
}
-void TrollProjectWidget::addFileToCurrentSubProject( GroupItem::GroupType gtype, const QString &filename )
+void TrollProjectWidget::addFileToCurrentSubProject( GroupItem::GroupType gtype, const TQString &filename )
{
if ( !m_shownSubproject )
return ;
@@ -1157,7 +1157,7 @@ void TrollProjectWidget::addFileToCurrentSubProject( GroupItem::GroupType gtype,
* Method adds a file to the current project by grouped
* by file extension
*/
-void TrollProjectWidget::addFiles( QStringList &files, bool relativeToProjectRoot )
+void TrollProjectWidget::addFiles( TQStringList &files, bool relativeToProjectRoot )
{
if ( !m_shownSubproject )
return ;
@@ -1165,22 +1165,22 @@ void TrollProjectWidget::addFiles( QStringList &files, bool relativeToProjectRoo
m_filesCached = false;
m_allFilesCache.clear();
- for ( QStringList::Iterator it = files.begin(); it != files.end(); ++it )
+ for ( TQStringList::Iterator it = files.begin(); it != files.end(); ++it )
{
- QString fileName = *it;
+ TQString fileName = *it;
kdDebug(9024) << "Adding file:" << fileName << " " << relativeToProjectRoot << endl;
if ( m_shownSubproject->scope->variableValues( "TEMPLATE" ).findIndex( "subdirs" ) != -1 && !fileName.endsWith(".pro") )
{
ChooseSubprojectDlg dlg( this, false );
- if ( dlg.exec() == QDialog::Accepted )
+ if ( dlg.exec() == TQDialog::Accepted )
{
if ( dlg.selectedSubproject() && dlg.selectedSubproject()->scope->variableValues("TEMPLATE").findIndex( "subdirs" ) != -1 )
{
fileName = URLUtil::getRelativePath( dlg.selectedSubproject()->scope->projectDir() ,
- QDir::cleanDirPath(
+ TQDir::cleanDirPath(
m_shownSubproject->scope->projectDir()+
- QString(QChar(QDir::separator()))+
+ TQString(TQChar(TQDir::separator()))+
fileName ) );
overview->setCurrentItem( dlg.selectedSubproject() );
@@ -1192,21 +1192,21 @@ void TrollProjectWidget::addFiles( QStringList &files, bool relativeToProjectRoo
}
}
- QFileInfo info( fileName );
- QString ext = info.extension( false ).simplifyWhiteSpace();
+ TQFileInfo info( fileName );
+ TQString ext = info.extension( false ).simplifyWhiteSpace();
- QString noPathFileName;
+ TQString noPathFileName;
if( relativeToProjectRoot )
- noPathFileName = URLUtil::getRelativePath( m_shownSubproject->scope->projectDir(), QDir::cleanDirPath(projectDirectory()+QString(QChar(QDir::separator()))+fileName ) );
+ noPathFileName = URLUtil::getRelativePath( m_shownSubproject->scope->projectDir(), TQDir::cleanDirPath(projectDirectory()+TQString(TQChar(TQDir::separator()))+fileName ) );
else
- noPathFileName = URLUtil::getRelativePath( m_shownSubproject->scope->projectDir(), QDir::cleanDirPath(m_shownSubproject->scope->projectDir()+QString(QChar(QDir::separator()))+fileName ) );
+ noPathFileName = URLUtil::getRelativePath( m_shownSubproject->scope->projectDir(), TQDir::cleanDirPath(m_shownSubproject->scope->projectDir()+TQString(TQChar(TQDir::separator()))+fileName ) );
if( DomUtil::readBoolEntry( *m_part->projectDom(), "/kdevtrollproject/qmake/replacePaths", false ) )
{
- QString var = m_shownSubproject->scope->findCustomVarForPath( QFileInfo( noPathFileName ).dirPath() );
+ TQString var = m_shownSubproject->scope->findCustomVarForPath( TQFileInfo( noPathFileName ).dirPath() );
if( !var.isEmpty() )
{
- noPathFileName = "$${"+var+"}"+QString( QChar( QDir::separator() ) )+QFileInfo( noPathFileName ).fileName();
+ noPathFileName = "$${"+var+"}"+TQString( TQChar( TQDir::separator() ) )+TQFileInfo( noPathFileName ).fileName();
}
}
@@ -1219,16 +1219,16 @@ void TrollProjectWidget::addFiles( QStringList &files, bool relativeToProjectRoo
if( ext == "pro" )
{
- addSubprojectToItem( findSubprojectForPath( QFileInfo( fileName ).dirPath() ), QFileInfo( fileName ).fileName() );
+ addSubprojectToItem( findSubprojectForPath( TQFileInfo( fileName ).dirPath() ), TQFileInfo( fileName ).fileName() );
}else
{
addFileToCurrentSubProject( GroupItem::groupTypeForExtension( ext ), noPathFileName );
slotOverviewSelectionChanged( m_shownSubproject );
kdDebug(9024) << "emitting" << relativeToProjectRoot << " " << fileName << endl;
if( relativeToProjectRoot )
- emitAddedFile ( projectDirectory()+QString( QChar( QDir::separator() ) ) + fileName );
+ emitAddedFile ( projectDirectory()+TQString( TQChar( TQDir::separator() ) ) + fileName );
else
- emitAddedFile ( m_shownSubproject->scope->projectDir()+QString( QChar( QDir::separator() ) ) + fileName );
+ emitAddedFile ( m_shownSubproject->scope->projectDir()+TQString( TQChar( TQDir::separator() ) ) + fileName );
}
}
@@ -1238,9 +1238,9 @@ void TrollProjectWidget::addFiles( QStringList &files, bool relativeToProjectRoo
void TrollProjectWidget::slotAddFiles()
{
static KURL lastVisited;
- QString cleanSubprojectDir = QDir::cleanDirPath( m_shownSubproject->scope->projectDir() );
- QString title, filter;
- QString otherTitle, otherFilter;
+ TQString cleanSubprojectDir = TQDir::cleanDirPath( m_shownSubproject->scope->projectDir() );
+ TQString title, filter;
+ TQString otherTitle, otherFilter;
GroupItem* item = dynamic_cast<GroupItem*>( details->selectedItem() );
GroupItem::GroupType type = item ? item->groupType : GroupItem::NoType;
@@ -1265,7 +1265,7 @@ void TrollProjectWidget::slotAddFiles()
filter,
this,
"Insert existing files",
- true, new QComboBox( false ) );
+ true, new TQComboBox( false ) );
dialog->setMode( KFile::Files | KFile::ExistingOnly | KFile::LocalOnly );
@@ -1275,7 +1275,7 @@ void TrollProjectWidget::slotAddFiles()
}
dialog->exec();
- QStringList files = dialog->selectedFiles();
+ TQStringList files = dialog->selectedFiles();
lastVisited = dialog->baseURL();
for ( unsigned int i = 0; i < files.count(); i++ )
@@ -1286,13 +1286,13 @@ void TrollProjectWidget::slotAddFiles()
{
// Copy selected files to current subproject folder
// and add them to the filelist
- QString filename = KURL( files[ i ] ).fileName();
- KIO::NetAccess::file_copy( files[ i ], cleanSubprojectDir + QString( QChar( QDir::separator() ) ) + filename, -1, false, false, this );
- QFile testExist( cleanSubprojectDir + QString( QChar( QDir::separator() ) ) + filename );
+ TQString filename = KURL( files[ i ] ).fileName();
+ KIO::NetAccess::file_copy( files[ i ], cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename, -1, false, false, this );
+ TQFile testExist( cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename );
if ( testExist.exists() )
{
- QStringList files( filename );
+ TQStringList files( filename );
addFiles( files, false );
}
}
@@ -1307,12 +1307,12 @@ void TrollProjectWidget::slotAddFiles()
*proc << files[ i ];
*proc << cleanSubprojectDir;
proc->start(KProcess::Block);
- QString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 );
+ TQString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 );
// and add them to the filelist
- QFile testExist( cleanSubprojectDir + QString( QChar( QDir::separator() ) ) + filename );
+ TQFile testExist( cleanSubprojectDir + TQString( TQChar( TQDir::separator() ) ) + filename );
if ( testExist.exists() )
{
- QStringList files( filename );
+ TQStringList files( filename );
addFiles( files, false );
}
}
@@ -1321,8 +1321,8 @@ void TrollProjectWidget::slotAddFiles()
case AddFilesDialog::Relative:
{
// Form relative path to current subproject folder
- QString theFile = files[ i ];
- QStringList files( URLUtil::relativePathToFile( cleanSubprojectDir , theFile )
+ TQString theFile = files[ i ];
+ TQStringList files( URLUtil::relativePathToFile( cleanSubprojectDir , theFile )
);
addFiles( files, false );
}
@@ -1338,12 +1338,12 @@ GroupItem* TrollProjectWidget::getInstallRoot( QMakeScopeItem* item )
return 0;
}
-GroupItem* TrollProjectWidget::getInstallObject( QMakeScopeItem* item, const QString& objectname )
+GroupItem* TrollProjectWidget::getInstallObject( QMakeScopeItem* item, const TQString& objectname )
{
GroupItem * instroot = getInstallRoot( item );
if ( !instroot )
return 0;
- QPtrListIterator<GroupItem> it( instroot->installs );
+ TQPtrListIterator<GroupItem> it( instroot->installs );
for ( ;it.current();++it )
{
if ( ( *it ) ->groupType == GroupItem::InstallObject &&
@@ -1370,13 +1370,13 @@ void TrollProjectWidget::slotNewFile()
{
if ( gitem->groupType == GroupItem::InstallObject )
{
- // QString relpath = m_shownSubproject->path.mid(projectDirectory().length());
+ // TQString relpath = m_shownSubproject->path.mid(projectDirectory().length());
bool ok = FALSE;
- QString filepattern = KInputDialog::getText(
+ TQString filepattern = KInputDialog::getText(
i18n( "Insert New Filepattern" ),
i18n( "Please enter a filepattern relative the current "
"subproject (example docs/*.html):" ),
- QString::null, &ok, this );
+ TQString::null, &ok, this );
if ( ok && !filepattern.isEmpty() )
{
addFileToCurrentSubProject( gitem, filepattern );
@@ -1386,12 +1386,12 @@ void TrollProjectWidget::slotNewFile()
}
if ( gitem->groupType == GroupItem::InstallRoot )
{
- // QString relpath = m_shownSubproject->path.mid(projectDirectory().length());
+ // TQString relpath = m_shownSubproject->path.mid(projectDirectory().length());
bool ok = FALSE;
- QString install_obj = KInputDialog::getText(
+ TQString install_obj = KInputDialog::getText(
i18n( "Insert New Install Object" ),
i18n( "Please enter a name for the new object:" ),
- QString::null, &ok, this );
+ TQString::null, &ok, this );
if ( ok && !install_obj.isEmpty() )
{
gitem->addInstallObject( install_obj );
@@ -1404,7 +1404,7 @@ void TrollProjectWidget::slotNewFile()
}
}
KDevCreateFile * createFileSupport = m_part->extension<KDevCreateFile>( "KDevelop/CreateFile" );
- QString fcext;
+ TQString fcext;
if( gitem )
{
switch ( gitem->groupType )
@@ -1434,16 +1434,16 @@ void TrollProjectWidget::slotNewFile()
fcext = "qrc";
break;
default:
- fcext = QString::null;
+ fcext = TQString::null;
}
}
KDevCreateFile::CreatedFile crFile =
- createFileSupport->createNewFile( fcext, projectDirectory() + QString(QChar(QDir::separator()))+ m_shownSubproject->relativePath() );
+ createFileSupport->createNewFile( fcext, projectDirectory() + TQString(TQChar(TQDir::separator()))+ m_shownSubproject->relativePath() );
}
void TrollProjectWidget::slotRemoveFile()
{
- QListViewItem * selectedItem = details->currentItem();
+ TQListViewItem * selectedItem = details->currentItem();
if ( !selectedItem )
return ;
@@ -1460,7 +1460,7 @@ void TrollProjectWidget::slotRemoveFile()
void TrollProjectWidget::slotExcludeFileFromScopeButton()
{
- QListViewItem * selectedItem = details->currentItem();
+ TQListViewItem * selectedItem = details->currentItem();
if ( !selectedItem )
return ;
qProjectItem *pvitem = static_cast<qProjectItem*>( selectedItem );
@@ -1474,7 +1474,7 @@ void TrollProjectWidget::slotExcludeFileFromScopeButton()
gitem->removeFileFromScope( fitem->text( 0 ) );
}
-void TrollProjectWidget::slotDetailsSelectionChanged( QListViewItem *item )
+void TrollProjectWidget::slotDetailsSelectionChanged( TQListViewItem *item )
{
if ( !item )
{
@@ -1516,7 +1516,7 @@ void TrollProjectWidget::slotDetailsSelectionChanged( QListViewItem *item )
}
}
-void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *item, const QPoint &p )
+void TrollProjectWidget::slotDetailsContextMenu( KListView *, TQListViewItem *item, const TQPoint &p )
{
if ( !item )
return ;
@@ -1525,7 +1525,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
if ( pvitem->type() == qProjectItem::Group )
{
GroupItem * titem = static_cast<GroupItem*>( pvitem );
- QString title, ext;
+ TQString title, ext;
GroupItem::groupTypeMeanings( titem->groupType, title, ext );
KPopupMenu popup( this );
@@ -1583,7 +1583,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
"add them with the relative path." ) );
}
int r = popup.exec( p );
- QString cleanSubprojectPath = QDir::cleanDirPath( m_shownSubproject->scope->projectDir() );
+ TQString cleanSubprojectPath = TQDir::cleanDirPath( m_shownSubproject->scope->projectDir() );
if ( r == idSetInstObjPath )
{
@@ -1591,7 +1591,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
"(example /usr/local/share/... ):" ), this, 0 );
dialog.urlRequester() ->setMode( KFile::Directory );
dialog.urlRequester() ->setURL( titem->owner->scope->variableValues( titem->text( 0 ) + ".path" ).front() );
- if ( dialog.exec() == QDialog::Accepted )
+ if ( dialog.exec() == TQDialog::Accepted )
{
titem->owner->scope->setEqualOp( titem->text( 0 ) + ".path", dialog.urlRequester() ->url() );
titem->owner->scope->saveToFile( );
@@ -1600,11 +1600,11 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
else if ( r == idInsNewFilepatternItem )
{
bool ok = FALSE;
- QString filepattern = KInputDialog::getText(
+ TQString filepattern = KInputDialog::getText(
i18n( "Add Pattern of Files to Install" ),
i18n( "Enter a pattern relative to the current "
"subproject (example docs/*.html):" ),
- QString::null, &ok, this );
+ TQString::null, &ok, this );
if ( ok && !filepattern.isEmpty() )
{
addFileToCurrentSubProject( titem, filepattern );
@@ -1617,11 +1617,11 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
ext + "|" + title + " (" + ext + ")",
this,
"Add existing files",
- true, new QComboBox( false ) );
+ true, new TQComboBox( false ) );
dialog->setMode( KFile::Files | KFile::ExistingOnly | KFile::LocalOnly );
- if ( dialog->exec() == QDialog::Rejected )
+ if ( dialog->exec() == TQDialog::Rejected )
return ;
- QStringList files = dialog->selectedFiles();
+ TQStringList files = dialog->selectedFiles();
for ( unsigned int i = 0;i < files.count();++i )
{
switch ( dialog->mode() )
@@ -1630,13 +1630,13 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
{
// Copy selected files to current subproject folder
// and add them to the filelist
- QString filename = KURL( files[ i ] ).fileName();
- KIO::NetAccess::file_copy( files[ i ], cleanSubprojectPath + QString( QChar( QDir::separator() ) ) + filename, -1, false, false, this );
- QFile testExist( cleanSubprojectPath + QString( QChar( QDir::separator() ) ) + filename );
+ TQString filename = KURL( files[ i ] ).fileName();
+ KIO::NetAccess::file_copy( files[ i ], cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename, -1, false, false, this );
+ TQFile testExist( cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename );
if ( testExist.exists() )
{
- QStringList files( filename );
+ TQStringList files( filename );
addFiles( files, false );
}
}
@@ -1651,12 +1651,12 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
*proc << files[ i ];
*proc << cleanSubprojectPath;
proc->start(KProcess::Block);
- QString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 );
+ TQString filename = files[ i ].right( files[ i ].length() - files[ i ].findRev( '/' ) - 1 );
// and add them to the filelist
- QFile testExist( cleanSubprojectPath + QString( QChar( QDir::separator() ) ) + filename );
+ TQFile testExist( cleanSubprojectPath + TQString( TQChar( TQDir::separator() ) ) + filename );
if ( testExist.exists() )
{
- QStringList files( filename );
+ TQStringList files( filename );
addFiles( files, false );
}
}
@@ -1665,8 +1665,8 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
case AddFilesDialog::Relative:
{
// Form relative path to current subproject folder
- QString theFile = files[ i ];
- QStringList files( URLUtil::relativePathToFile( cleanSubprojectPath, theFile )
+ TQString theFile = files[ i ];
+ TQStringList files( URLUtil::relativePathToFile( cleanSubprojectPath, theFile )
);
addFiles( files, false );
}
@@ -1684,7 +1684,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
else if ( r == idInsNewFile )
{
KDevCreateFile * createFileSupport = m_part->extension<KDevCreateFile>( "KDevelop/CreateFile" );
- QString fcext;
+ TQString fcext;
switch ( titem->groupType )
{
case GroupItem::Sources:
@@ -1712,7 +1712,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
fcext = "qrc";
break;
default:
- fcext = QString::null;
+ fcext = TQString::null;
}
KDevCreateFile::CreatedFile crFile =
createFileSupport->createNewFile( fcext, cleanSubprojectPath );
@@ -1721,10 +1721,10 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
else if ( r == idInsInstallObject )
{
bool ok = FALSE;
- QString install_obj = KInputDialog::getText(
+ TQString install_obj = KInputDialog::getText(
i18n( "Add Install Object" ),
i18n( "Enter a name for the new object:" ),
- QString::null, &ok, this );
+ TQString::null, &ok, this );
if ( ok && !install_obj.isEmpty() )
{
titem->addInstallObject( install_obj );
@@ -1733,13 +1733,13 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
}
else if ( r == idLUpdate )
{
- QString cmd = "lupdate ";
+ TQString cmd = "lupdate ";
cmd += m_shownSubproject->scope->fileName();
m_part->appFrontend() ->startAppCommand( m_shownSubproject->scope->projectDir(), cmd, false );
}
else if ( r == idLRelease )
{
- QString cmd = "lrelease ";
+ TQString cmd = "lrelease ";
cmd += m_shownSubproject->scope->fileName();
m_part->appFrontend() ->startAppCommand( m_shownSubproject->scope->projectDir(), cmd, false );
}else if( r == idRemoveFile )
@@ -1808,7 +1808,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
if ( !( gitem->groupType == GroupItem::InstallObject ) )
{
KURL::List urls;
- urls.append( m_shownSubproject->scope->projectDir() + QChar( QDir::separator() ) + m_shownSubproject->scope->resolveVariables( fitem->localFilePath ) );
+ urls.append( m_shownSubproject->scope->projectDir() + TQChar( TQDir::separator() ) + m_shownSubproject->scope->resolveVariables( fitem->localFilePath ) );
FileContext context( urls );
m_part->core() ->fillContextMenu( &popup, &context );
}
@@ -1828,29 +1828,29 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
else if ( r == idViewUIH )
{
kdDebug(9024) << "Opening:" << fitem->text(0) << ";" << fitem->text(0).replace(".ui","") << endl;
- m_part->partController() ->editDocument( KURL( m_shownSubproject->scope->projectDir() + QChar( QDir::separator() ) +
+ m_part->partController() ->editDocument( KURL( m_shownSubproject->scope->projectDir() + TQChar( TQDir::separator() ) +
fitem->localFilePath.replace(".ui","") + ".h" ) );
}
else if ( r == idSubclassWidget )
{
- QStringList newFileNames;
- newFileNames = m_part->languageSupport() ->subclassWidget( m_shownSubproject->scope->projectDir() + QChar( QDir::separator() ) + fitem->localFilePath );
+ TQStringList newFileNames;
+ newFileNames = m_part->languageSupport() ->subclassWidget( m_shownSubproject->scope->projectDir() + TQChar( TQDir::separator() ) + fitem->localFilePath );
kdDebug(9024) << "got new filenames: " << newFileNames << endl;
if ( !newFileNames.empty() )
{
- QDomDocument & dom = *( m_part->projectDom() );
+ TQDomDocument & dom = *( m_part->projectDom() );
for ( uint i = 0; i < newFileNames.count(); ++i )
{
- QString srcfile_relpath = URLUtil::getRelativePath( m_shownSubproject->scope->projectDir(), newFileNames[ i ] ) ;
+ TQString srcfile_relpath = URLUtil::getRelativePath( m_shownSubproject->scope->projectDir(), newFileNames[ i ] ) ;
newFileNames[i] = URLUtil::getRelativePath( projectDirectory(), newFileNames[ i ] ) ;
- QString uifile_relpath = m_shownSubproject->relativePath() + QChar( QDir::separator() ) + fitem->localFilePath;
+ TQString uifile_relpath = m_shownSubproject->relativePath() + TQChar( TQDir::separator() ) + fitem->localFilePath;
DomUtil::PairList list = DomUtil::readPairListEntry( dom, "/kdevtrollproject/subclassing" ,
"subclass", "sourcefile", "uifile" );
list << DomUtil::Pair( srcfile_relpath, uifile_relpath );
DomUtil::writePairListEntry( dom, "/kdevtrollproject/subclassing", "subclass", "sourcefile", "uifile", list );
- // newFileNames[i] = newFileNames[i].replace(QRegExp(projectDirectory()+"/"),"");
+ // newFileNames[i] = newFileNames[i].replace(TQRegExp(projectDirectory()+"/"),"");
qWarning( "new file: %s", newFileNames[ i ].latin1() );
}
m_subclasslist = DomUtil::readPairListEntry( dom, "/kdevtrollproject/subclassing" ,
@@ -1861,30 +1861,30 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
}
else if ( r == idUpdateWidgetclass )
{
- QString noext = fitem->text( 0 );
+ TQString noext = fitem->text( 0 );
if ( noext.findRev( '.' ) > -1 )
noext = noext.left( noext.findRev( '.' ) );
- QStringList dummy;
- QString uifile = fitem->uiFileLink;
- if ( uifile.findRev( QString( QChar( QDir::separator() ) ) ) > -1 )
+ TQStringList dummy;
+ TQString uifile = fitem->uiFileLink;
+ if ( uifile.findRev( TQString( TQChar( TQDir::separator() ) ) ) > -1 )
{
- QStringList uisplit = QStringList::split( QString( QChar( QDir::separator() ) ), uifile );
+ TQStringList uisplit = TQStringList::split( TQString( TQChar( TQDir::separator() ) ), uifile );
uifile = uisplit[ uisplit.count() - 1 ];
}
- m_part->languageSupport() ->updateWidget( m_shownSubproject->scope->projectDir() + QString( QChar( QDir::separator() ) ) + uifile, noext );
+ m_part->languageSupport() ->updateWidget( m_shownSubproject->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + uifile, noext );
}
else if ( r == idUISubclasses )
{
- QDomDocument & dom = *( m_part->projectDom() );
+ TQDomDocument & dom = *( m_part->projectDom() );
DomUtil::PairList list = DomUtil::readPairListEntry( dom, "/kdevtrollproject/subclassing" ,
"subclass", "sourcefile", "uifile" );
- SubclassesDlg *sbdlg = new SubclassesDlg( m_shownSubproject->relativePath() + QChar( QDir::separator() ) + fitem->localFilePath,
+ SubclassesDlg *sbdlg = new SubclassesDlg( m_shownSubproject->relativePath() + TQChar( TQDir::separator() ) + fitem->localFilePath,
list, projectDirectory() );
if ( sbdlg->exec() )
{
- QDomElement el = DomUtil::elementByPath( dom, "/kdevtrollproject" );
- QDomElement el2 = DomUtil::elementByPath( dom, "/kdevtrollproject/subclassing" );
+ TQDomElement el = DomUtil::elementByPath( dom, "/kdevtrollproject" );
+ TQDomElement el2 = DomUtil::elementByPath( dom, "/kdevtrollproject/subclassing" );
if ( ( !el.isNull() ) && ( !el2.isNull() ) )
{
el.removeChild( el2 );
@@ -1901,7 +1901,7 @@ void TrollProjectWidget::slotDetailsContextMenu( KListView *, QListViewItem *ite
GroupItem * titem = static_cast<GroupItem*>( item->parent() );
bool ok = FALSE;
- QString filepattern = KInputDialog::getText(
+ TQString filepattern = KInputDialog::getText(
i18n( "Edit Pattern" ),
i18n( "Enter a pattern relative to the current "
"subproject (example docs/*.html):" ),
@@ -1928,7 +1928,7 @@ void TrollProjectWidget::removeFile( QMakeScopeItem *spitem, FileItem *fitem )
m_filesCached = false;
m_allFilesCache.clear();
- QString realfilename = spitem->scope->resolveVariables( fitem->localFilePath );
+ TQString realfilename = spitem->scope->resolveVariables( fitem->localFilePath );
if ( KMessageBox::warningYesNo( this,
"<qt>" +
i18n( "Do you want to delete the file <strong>%1</strong> from the project and your disk?" )
@@ -1942,24 +1942,24 @@ void TrollProjectWidget::removeFile( QMakeScopeItem *spitem, FileItem *fitem )
return;
}else
{
- kdDebug(9024) << "Deleting file as the user wished: " << spitem->scope->projectDir() + QString( QChar( QDir::separator() ) ) + realfilename << endl;
- KIO::NetAccess::del( KURL::fromPathOrURL( spitem->scope->projectDir() + QString( QChar( QDir::separator() ) ) + realfilename ), 0 );
+ kdDebug(9024) << "Deleting file as the user wished: " << spitem->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + realfilename << endl;
+ KIO::NetAccess::del( KURL::fromPathOrURL( spitem->scope->projectDir() + TQString( TQChar( TQDir::separator() ) ) + realfilename ), 0 );
}
if ( gitem->groupType != GroupItem::InstallObject )
{
- QString removedFileName = spitem->relativePath() + QString( QChar( QDir::separator() ) ) + realfilename;
- if ( removedFileName.startsWith( QDir::rootDirPath() ) )
+ TQString removedFileName = spitem->relativePath() + TQString( TQChar( TQDir::separator() ) ) + realfilename;
+ if ( removedFileName.startsWith( TQDir::rootDirPath() ) )
removedFileName = removedFileName.mid( 1 );
emitRemovedFile( removedFileName );
}
//remove subclassing info
- QDomDocument &dom = *( m_part->projectDom() );
+ TQDomDocument &dom = *( m_part->projectDom() );
DomUtil::PairList list = DomUtil::readPairListEntry( dom, "/kdevtrollproject/subclassing" ,
"subclass", "sourcefile", "uifile" );
- QPtrList<DomUtil::Pair> pairsToRemove;
+ TQPtrList<DomUtil::Pair> pairsToRemove;
DomUtil::PairList::iterator it;
for ( it = list.begin(); it != list.end(); ++it )
{
@@ -1973,8 +1973,8 @@ void TrollProjectWidget::removeFile( QMakeScopeItem *spitem, FileItem *fitem )
{
list.remove( *pair );
}
- QDomElement el = DomUtil::elementByPath( dom, "/kdevtrollproject" );
- QDomElement el2 = DomUtil::elementByPath( dom, "/kdevtrollproject/subclassing" );
+ TQDomElement el = DomUtil::elementByPath( dom, "/kdevtrollproject" );
+ TQDomElement el2 = DomUtil::elementByPath( dom, "/kdevtrollproject/subclassing" );
if ( ( !el.isNull() ) && ( !el2.isNull() ) )
{
el.removeChild( el2 );
@@ -1984,19 +1984,19 @@ void TrollProjectWidget::removeFile( QMakeScopeItem *spitem, FileItem *fitem )
gitem->removeFileFromScope( fitem->text( 0 ) );
}
-void TrollProjectWidget::emitAddedFile( const QString &fileName )
+void TrollProjectWidget::emitAddedFile( const TQString &fileName )
{
- emit m_part->addedFilesToProject( QStringList( fileName ) );
+ emit m_part->addedFilesToProject( TQStringList( fileName ) );
}
-void TrollProjectWidget::emitRemovedFile( const QString &fileName )
+void TrollProjectWidget::emitRemovedFile( const TQString &fileName )
{
- emit m_part->removedFilesFromProject( QStringList( fileName ) );
+ emit m_part->removedFilesFromProject( TQStringList( fileName ) );
}
-QString TrollProjectWidget::getUiFileLink( const QString &relpath, const QString& filename )
+TQString TrollProjectWidget::getUiFileLink( const TQString &relpath, const TQString& filename )
{
DomUtil::PairList::iterator it;
for ( it = m_subclasslist.begin();it != m_subclasslist.end(); ++it )
@@ -2013,28 +2013,28 @@ void TrollProjectWidget::slotBuildOpenFile()
if ( !part || !part->url().isLocalFile() )
return ;
- QString fileName = part->url().path();
- QFileInfo fi( fileName );
- QString sourceDir = fi.dirPath();
- QString baseName = fi.baseName( true );
+ TQString fileName = part->url().path();
+ TQFileInfo fi( fileName );
+ TQString sourceDir = fi.dirPath();
+ TQString baseName = fi.baseName( true );
kdDebug( 9024 ) << "Compiling " << fileName
<< "in dir " << sourceDir
<< " with baseName " << baseName << endl;
- QString buildDir = sourceDir;
- QString target = baseName + ".o";
+ TQString buildDir = sourceDir;
+ TQString target = baseName + ".o";
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
// m_part->startMakeCommand(buildDir, target);
- QPtrList<QMakeScopeItem> list = findSubprojectForFile( fi );
+ TQPtrList<QMakeScopeItem> list = findSubprojectForFile( fi );
QMakeScopeItem *spitem;
for ( spitem = list.first(); spitem; spitem = list.next() )
{
- QString buildcmd = constructMakeCommandLine( spitem->scope );
- QString dircmd = "cd " + KProcess::quote( spitem->scope->projectDir() ) + " && " ;
+ TQString buildcmd = constructMakeCommandLine( spitem->scope );
+ TQString dircmd = "cd " + KProcess::quote( spitem->scope->projectDir() ) + " && " ;
kdDebug( 9024 ) << "builddir " << spitem->scope->projectDir() << ", cmd " << dircmd + buildcmd + " " + target << endl;
m_part->queueCmd( spitem->scope->projectDir(), dircmd + buildcmd + " " + target );
}
@@ -2046,7 +2046,7 @@ void TrollProjectWidget::slotBuildOpenFile()
void TrollProjectWidget::slotExecuteProject()
{
- QString program = m_part->mainProgram();
+ TQString program = m_part->mainProgram();
if ( program.isEmpty() )
{
KMessageBox::sorry( this, i18n( "Please specify the executable name in the "
@@ -2067,12 +2067,12 @@ void TrollProjectWidget::slotExecuteProject()
}
}
- if ( !program.startsWith( QDir::rootDirPath() ) )
- program.prepend( "." + QString( QChar( QDir::separator() ) ) );
+ if ( !program.startsWith( TQDir::rootDirPath() ) )
+ program.prepend( "." + TQString( TQChar( TQDir::separator() ) ) );
// Build environment variables to prepend to the executable path
- QString runEnvVars = QString::null;
+ TQString runEnvVars = TQString::null;
DomUtil::PairList list =
DomUtil::readPairListEntry( *( m_part->projectDom() ), "/kdevtrollproject/run/envvars", "envvar", "name", "value" );
@@ -2112,7 +2112,7 @@ void TrollProjectWidget::slotDistCleanTarget()
runClean(m_shownSubproject, "distclean");
}
-void TrollProjectWidget::runClean( QMakeScopeItem* item, const QString& cleantargetname )
+void TrollProjectWidget::runClean( QMakeScopeItem* item, const TQString& cleantargetname )
{
// no subproject selected
m_part->partController() ->saveAllFiles();
@@ -2122,24 +2122,24 @@ void TrollProjectWidget::runClean( QMakeScopeItem* item, const QString& cleantar
if ( item->scope->scopeType() != Scope::ProjectScope )
return ;
- QString dir = item->scope->projectDir();
+ TQString dir = item->scope->projectDir();
createMakefileIfMissing( dir, item );
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
- QString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
- QString rebuildcmd = constructMakeCommandLine( item->scope ) + " "+cleantargetname;
+ TQString dircmd = "cd " + KProcess::quote( dir ) + " && " ;
+ TQString rebuildcmd = constructMakeCommandLine( item->scope ) + " "+cleantargetname;
m_part->queueCmd( dir, dircmd + rebuildcmd );
}
-QString TrollProjectWidget::constructMakeCommandLine( Scope* s )
+TQString TrollProjectWidget::constructMakeCommandLine( Scope* s )
{
- QString makeFileName;
+ TQString makeFileName;
if ( s )
makeFileName = s->resolveVariables( s->variableValues( "MAKEFILE", true, true, true ).front() );
- QDomDocument & dom = *( m_part->projectDom() );
+ TQDomDocument & dom = *( m_part->projectDom() );
- QString cmdline = DomUtil::readEntry( dom, "/kdevtrollproject/make/makebin" );
+ TQString cmdline = DomUtil::readEntry( dom, "/kdevtrollproject/make/makebin" );
if ( cmdline.isEmpty() )
cmdline = MAKE_COMMAND;
if ( !makeFileName.isEmpty() )
@@ -2153,7 +2153,7 @@ QString TrollProjectWidget::constructMakeCommandLine( Scope* s )
if ( jobs != 0 && runmultiple )
{
cmdline += " -j";
- cmdline += QString::number( jobs );
+ cmdline += TQString::number( jobs );
}
if ( DomUtil::readBoolEntry( dom, "/kdevtrollproject/make/dontact" ) )
cmdline += " -n";
@@ -2165,44 +2165,44 @@ QString TrollProjectWidget::constructMakeCommandLine( Scope* s )
}
-void TrollProjectWidget::createMakefileIfMissing( const QString &dir, QMakeScopeItem *item )
+void TrollProjectWidget::createMakefileIfMissing( const TQString &dir, QMakeScopeItem *item )
{
- QFileInfo fi;
- QFileInfo fi2;
+ TQFileInfo fi;
+ TQFileInfo fi2;
kdDebug(9024) << "Makefile:" << item->scope->variableValues( "MAKEFILE", true, true, true ) << endl;
if ( item->scope->variableValues( "MAKEFILE", true, true, true ).isEmpty() )
{
- fi.setFile( dir + QString( QChar( QDir::separator() ) ) + "Makefile" );
- fi2.setFile( dir + QString( QChar( QDir::separator() ) ) + "makefile" );
+ fi.setFile( dir + TQString( TQChar( TQDir::separator() ) ) + "Makefile" );
+ fi2.setFile( dir + TQString( TQChar( TQDir::separator() ) ) + "makefile" );
}
else
{
- QString realmf = item->scope->resolveVariables( item->scope->variableValues( "MAKEFILE", true, true, true ).front() );
+ TQString realmf = item->scope->resolveVariables( item->scope->variableValues( "MAKEFILE", true, true, true ).front() );
fi.setFile( realmf );
- fi2.setFile( dir + QString( QChar( QDir::separator() ) ) + realmf );
+ fi2.setFile( dir + TQString( TQChar( TQDir::separator() ) ) + realmf );
}
if ( !fi.exists() && !fi2.exists() )
{
- int r = KMessageBox::questionYesNo( this, i18n( "There is no Makefile in this directory. Run qmake first?" ), QString::null, i18n( "Run qmake" ), i18n( "Do Not Run" ) );
+ int r = KMessageBox::questionYesNo( this, i18n( "There is no Makefile in this directory. Run qmake first?" ), TQString::null, i18n( "Run qmake" ), i18n( "Do Not Run" ) );
if ( r == KMessageBox::No )
return ;
m_part->startQMakeCommand( dir );
}
}
-QMakeScopeItem* TrollProjectWidget::findSubprojectForPath( const QString& relPath )
+QMakeScopeItem* TrollProjectWidget::findSubprojectForPath( const TQString& relPath )
{
if( !m_rootSubproject )
return 0;
- QStringList dirs = QStringList::split("/", relPath);
+ TQStringList dirs = TQStringList::split("/", relPath);
QMakeScopeItem* pitem = static_cast<QMakeScopeItem*>(m_rootSubproject);
- for( QStringList::iterator it = dirs.begin(); it != dirs.end(); ++it)
+ for( TQStringList::iterator it = dirs.begin(); it != dirs.end(); ++it)
{
- QListViewItem* item = pitem->firstChild();
+ TQListViewItem* item = pitem->firstChild();
while( item )
{
QMakeScopeItem* sitem = static_cast<QMakeScopeItem*>(item);
- if( QFileInfo( sitem->scope->projectDir() ).fileName() == *it )
+ if( TQFileInfo( sitem->scope->projectDir() ).fileName() == *it )
{
pitem = sitem;
break;
@@ -2212,37 +2212,37 @@ QMakeScopeItem* TrollProjectWidget::findSubprojectForPath( const QString& relPat
return pitem;
}
-QPtrList<QMakeScopeItem> TrollProjectWidget::findSubprojectForFile( QFileInfo fi )
+TQPtrList<QMakeScopeItem> TrollProjectWidget::findSubprojectForFile( TQFileInfo fi )
{
- QPtrList<QMakeScopeItem> list;
+ TQPtrList<QMakeScopeItem> list;
findSubprojectForFile( list, m_rootSubproject, fi.absFilePath() );
return list;
}
-void TrollProjectWidget::findSubprojectForFile( QPtrList<QMakeScopeItem> &list, QMakeScopeItem * item, QString absFilePath )
+void TrollProjectWidget::findSubprojectForFile( TQPtrList<QMakeScopeItem> &list, QMakeScopeItem * item, TQString absFilePath )
{
if( !item )
return;
- QDir d( item->scope->projectDir() );
+ TQDir d( item->scope->projectDir() );
- QStringList vars = item->scope->variableValues( "SOURCES" );
- for ( QStringList::Iterator it = vars.begin(); it != vars.end(); ++it )
+ TQStringList vars = item->scope->variableValues( "SOURCES" );
+ for ( TQStringList::Iterator it = vars.begin(); it != vars.end(); ++it )
{
- QFileInfo fi2( d, item->scope->resolveVariables( *it ) );
+ TQFileInfo fi2( d, item->scope->resolveVariables( *it ) );
if ( absFilePath == fi2.absFilePath() )
list.append( item );
}
vars = item->scope->variableValues( "HEADERS" );
- for ( QStringList::Iterator it = vars.begin(); it != vars.end(); ++it )
+ for ( TQStringList::Iterator it = vars.begin(); it != vars.end(); ++it )
{
- QFileInfo fi2( d, item->scope->resolveVariables( *it ) );
+ TQFileInfo fi2( d, item->scope->resolveVariables( *it ) );
if ( absFilePath == fi2.absFilePath() )
list.append( item );
}
- QListViewItem * child = item->firstChild();
+ TQListViewItem * child = item->firstChild();
while ( child )
{
QMakeScopeItem * spitem = dynamic_cast<QMakeScopeItem*>( child );
@@ -2320,7 +2320,7 @@ QMakeScopeItem * TrollProjectWidget::findSubprojectForScope( QMakeScopeItem * sc
return findSubprojectForScope( dynamic_cast<QMakeScopeItem *>( scope->parent() ) );
}
-void TrollProjectWidget::focusInEvent( QFocusEvent * /*e*/ )
+void TrollProjectWidget::focusInEvent( TQFocusEvent * /*e*/ )
{
switch ( m_lastFocusedView )
{
@@ -2360,7 +2360,7 @@ void TrollProjectWidget::runQMakeRecursive( QMakeScopeItem* proj )
void TrollProjectWidget::slotBuildSelectedFile()
{
- QListViewItem * selectedItem = details->currentItem();
+ TQListViewItem * selectedItem = details->currentItem();
if ( !selectedItem )
return ;
qProjectItem *pvitem = static_cast<qProjectItem*>( selectedItem );
@@ -2373,24 +2373,24 @@ void TrollProjectWidget::slotBuildSelectedFile()
void TrollProjectWidget::buildFile( QMakeScopeItem* spitem, FileItem* fitem )
{
- QFileInfo fi( spitem->scope->projectDir() + QChar( QDir::separator() ) + spitem->scope->resolveVariables( fitem->localFilePath ) );
- QString sourceDir = fi.dirPath();
- QString baseName = fi.baseName( true );
+ TQFileInfo fi( spitem->scope->projectDir() + TQChar( TQDir::separator() ) + spitem->scope->resolveVariables( fitem->localFilePath ) );
+ TQString sourceDir = fi.dirPath();
+ TQString baseName = fi.baseName( true );
kdDebug( 9024 ) << "Compiling " << spitem->scope->resolveVariables( fitem->text( 0 ) )
<< "in dir " << sourceDir
<< " with baseName " << baseName << endl;
- QString buildDir = sourceDir;
- QString target = baseName + ".o";
+ TQString buildDir = sourceDir;
+ TQString target = baseName + ".o";
if( !spitem->scope->variableValues("OBJECTS_DIR").isEmpty() )
- target = spitem->scope->resolveVariables( spitem->scope->variableValues("OBJECTS_DIR").first() )+ QString( QChar( QDir::separator() ) )+target;
+ target = spitem->scope->resolveVariables( spitem->scope->variableValues("OBJECTS_DIR").first() )+ TQString( TQChar( TQDir::separator() ) )+target;
kdDebug( 9024 ) << "builddir " << buildDir << ", target " << target << endl;
m_part->mainWindow() ->raiseView( m_part->makeFrontend() ->widget() );
// m_part->startMakeCommand(buildDir, target);
- QString buildcmd = constructMakeCommandLine( spitem->scope );
- QString dircmd = "cd " + KProcess::quote( spitem->scope->projectDir() ) + " && " ;
+ TQString buildcmd = constructMakeCommandLine( spitem->scope );
+ TQString dircmd = "cd " + KProcess::quote( spitem->scope->projectDir() ) + " && " ;
kdDebug( 9024 ) << "builddir " << spitem->scope->projectDir() << ", cmd " << dircmd + buildcmd + " " + target << endl;
m_part->queueCmd( spitem->scope->projectDir(), dircmd + buildcmd + " " + target );
@@ -2428,12 +2428,12 @@ void TrollProjectWidget::slotDisableSubproject( QMakeScopeItem* spitem )
if( spitem->scope->variableValues("TEMPLATE").findIndex("subdirs") != -1 )
{
- QStringList subdirs = spitem->scope->variableValues( "SUBDIRS" );
+ TQStringList subdirs = spitem->scope->variableValues( "SUBDIRS" );
DisableSubprojectDlg dlg( subdirs );
if( dlg.exec() )
{
- QStringList values = dlg.selectedProjects();
- QListViewItem* item = spitem->firstChild();
+ TQStringList values = dlg.selectedProjects();
+ TQListViewItem* item = spitem->firstChild();
while( item )
{
if( values.findIndex( item->text(0) ) != -1 )
@@ -2448,7 +2448,7 @@ void TrollProjectWidget::slotDisableSubproject( QMakeScopeItem* spitem )
}else
{
QMakeScopeItem* parent = static_cast<QMakeScopeItem*>(spitem->parent());
- parent->disableSubprojects( QStringList( spitem->scope->scopeName() ) );
+ parent->disableSubprojects( TQStringList( spitem->scope->scopeName() ) );
delete spitem;
parent->scope->saveToFile();
m_shownSubproject = parent;
@@ -2456,21 +2456,21 @@ void TrollProjectWidget::slotDisableSubproject( QMakeScopeItem* spitem )
}
}
-void TrollProjectWidget::slotProjectDirty(const QString& path)
+void TrollProjectWidget::slotProjectDirty(const TQString& path)
{
kdDebug(9024) << "File is dirty:" << path << " using method " << endl;
if( KMessageBox::warningYesNo(this, i18n("The project file \"%1\" has changed on disk\n(Or you have \"%2\" opened in the editor, which also triggers a reload when you change something in the QMake Manager).\n\nDo you want to reload it?").arg(path).arg(path), i18n("Project File Changed"), i18n("Reload"), i18n("Do Not Reload"), "trollproject_reload_project_file" ) != KMessageBox::No )
{
m_part->dirWatch()->stopScan();
- QListViewItemIterator it(m_rootSubproject);
- QValueList<QMakeScopeItem*> itemstoreload;
+ TQListViewItemIterator it(m_rootSubproject);
+ TQValueList<QMakeScopeItem*> itemstoreload;
while( it.current() )
{
QMakeScopeItem* projectitem = static_cast<QMakeScopeItem*>( it.current() );
if( projectitem->scope->scopeType() == Scope::ProjectScope
|| projectitem->scope->scopeType() == Scope::IncludeScope )
{
- QString projectfile = projectitem->scope->projectDir() + QString(QChar(QDir::separator())) + projectitem->scope->fileName();
+ TQString projectfile = projectitem->scope->projectDir() + TQString(TQChar(TQDir::separator())) + projectitem->scope->fileName();
if( projectfile == path )
{
itemstoreload.append(projectitem);
@@ -2479,7 +2479,7 @@ void TrollProjectWidget::slotProjectDirty(const QString& path)
it++;
}
- QValueList<QMakeScopeItem*>::const_iterator reloadit = itemstoreload.begin();
+ TQValueList<QMakeScopeItem*>::const_iterator reloadit = itemstoreload.begin();
for( ; reloadit != itemstoreload.end() ; ++reloadit )
{
(*reloadit)->reloadProject();
@@ -2517,13 +2517,13 @@ bool TrollProjectWidget::showVariablesInTree() const
}
-QMap<QString,QString> TrollProjectWidget::qmakeEnvironment() const
+TQMap<TQString,TQString> TrollProjectWidget::qmakeEnvironment() const
{
- QMap<QString,QString> map;
+ TQMap<TQString,TQString> map;
DomUtil::PairList envvars =
DomUtil::readPairListEntry(*m_part->projectDom(), "/kdevtrollproject/make/envvars", "envvar", "name", "value");
- QString environstr;
+ TQString environstr;
DomUtil::PairList::ConstIterator it;
bool hasQtDir = false;
for (it = envvars.begin(); it != envvars.end(); ++it) {