summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/designerappiface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /kdevdesigner/designer/designerappiface.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner/designer/designerappiface.cpp')
-rw-r--r--kdevdesigner/designer/designerappiface.cpp368
1 files changed, 184 insertions, 184 deletions
diff --git a/kdevdesigner/designer/designerappiface.cpp b/kdevdesigner/designer/designerappiface.cpp
index 798f45b6..dca4bbd8 100644
--- a/kdevdesigner/designer/designerappiface.cpp
+++ b/kdevdesigner/designer/designerappiface.cpp
@@ -24,8 +24,8 @@
**
**********************************************************************/
-#include <qmenubar.h>
-#include <qpopupmenu.h>
+#include <tqmenubar.h>
+#include <tqpopupmenu.h>
#include "designerappiface.h"
#include "mainwindow.h"
#include "project.h"
@@ -35,14 +35,14 @@
#include "command.h"
#include "outputwindow.h"
#include "../shared/widgetdatabase.h"
-#include <qvariant.h>
-#include <qlistview.h>
-#include <qtextedit.h>
-#include <qstatusbar.h>
+#include <tqvariant.h>
+#include <tqlistview.h>
+#include <tqtextedit.h>
+#include <tqstatusbar.h>
#include "pixmapcollection.h"
#include "hierarchyview.h"
#include <stdlib.h>
-#include <qmetaobject.h>
+#include <tqmetaobject.h>
#include "popupmenueditor.h"
#include "menubareditor.h"
@@ -88,12 +88,12 @@ DesignerSourceFile *DesignerInterfaceImpl::currentSourceFile() const
return 0;
}
-QPtrList<DesignerProject> DesignerInterfaceImpl::projectList() const
+TQPtrList<DesignerProject> DesignerInterfaceImpl::projectList() const
{
return mainWindow->projectList();
}
-void DesignerInterfaceImpl::showStatusMessage( const QString &text, int ms ) const
+void DesignerInterfaceImpl::showStatusMessage( const TQString &text, int ms ) const
{
if ( text.isEmpty() ) {
mainWindow->statusBar()->clear();
@@ -115,7 +115,7 @@ DesignerOutputDock *DesignerInterfaceImpl::outputDock() const
return mainWindow->outputWindow() ? mainWindow->outputWindow()->iFace() : 0;
}
-void DesignerInterfaceImpl::setModified( bool b, QWidget *window )
+void DesignerInterfaceImpl::setModified( bool b, TQWidget *window )
{
mainWindow->setModified( b, window );
}
@@ -127,15 +127,15 @@ void DesignerInterfaceImpl::updateFunctionList()
mainWindow->objectHierarchy()->updateClassBrowsers();
}
-void DesignerInterfaceImpl::onProjectChange( QObject *receiver, const char *slot )
+void DesignerInterfaceImpl::onProjectChange( TQObject *receiver, const char *slot )
{
- QObject::connect( mainWindow, SIGNAL( projectChanged() ), receiver, slot );
+ TQObject::connect( mainWindow, TQT_SIGNAL( projectChanged() ), receiver, slot );
}
-void DesignerInterfaceImpl::onFormChange( QObject *receiver, const char *slot )
+void DesignerInterfaceImpl::onFormChange( TQObject *receiver, const char *slot )
{
- QObject::connect( mainWindow, SIGNAL( formWindowChanged() ), receiver, slot );
- QObject::connect( mainWindow, SIGNAL( editorChanged() ), receiver, slot );
+ TQObject::connect( mainWindow, TQT_SIGNAL( formWindowChanged() ), receiver, slot );
+ TQObject::connect( mainWindow, TQT_SIGNAL( editorChanged() ), receiver, slot );
}
bool DesignerInterfaceImpl::singleProjectMode() const
@@ -143,8 +143,8 @@ bool DesignerInterfaceImpl::singleProjectMode() const
return mainWindow->singleProjectMode();
}
-void DesignerInterfaceImpl::showError( QWidget *widget,
- int line, const QString &message )
+void DesignerInterfaceImpl::showError( TQWidget *widget,
+ int line, const TQString &message )
{
mainWindow->showErrorMessage( widget, line, message );
}
@@ -154,12 +154,12 @@ void DesignerInterfaceImpl::runFinished()
mainWindow->finishedRun();
}
-void DesignerInterfaceImpl::showStackFrame( QWidget *w, int line )
+void DesignerInterfaceImpl::showStackFrame( TQWidget *w, int line )
{
mainWindow->showStackFrame( w, line );
}
-void DesignerInterfaceImpl::showDebugStep( QWidget *w, int line )
+void DesignerInterfaceImpl::showDebugStep( TQWidget *w, int line )
{
mainWindow->showDebugStep( w, line );
}
@@ -169,7 +169,7 @@ void DesignerInterfaceImpl::runProjectPrecondition()
mainWindow->runProjectPrecondition();
}
-void DesignerInterfaceImpl::runProjectPostcondition( QObjectList *l )
+void DesignerInterfaceImpl::runProjectPostcondition( TQObjectList *l )
{
mainWindow->runProjectPostcondition( l );
}
@@ -179,18 +179,18 @@ DesignerProjectImpl::DesignerProjectImpl( Project *pr )
{
}
-QPtrList<DesignerFormWindow> DesignerProjectImpl::formList() const
+TQPtrList<DesignerFormWindow> DesignerProjectImpl::formList() const
{
- QPtrList<DesignerFormWindow> list;
- QObjectList *forms = project->formList();
+ TQPtrList<DesignerFormWindow> list;
+ TQObjectList *forms = project->formList();
if ( !forms )
return list;
- QPtrListIterator<QObject> it( *forms );
+ TQPtrListIterator<TQObject> it( *forms );
while ( it.current() ) {
- QObject *obj = it.current();
+ TQObject *obj = it.current();
++it;
- QWidget *par = ::qt_cast<FormWindow*>(obj->parent());
+ TQWidget *par = ::qt_cast<FormWindow*>(obj->parent());
if ( !obj->isWidgetType() || !par )
continue;
@@ -201,20 +201,20 @@ QPtrList<DesignerFormWindow> DesignerProjectImpl::formList() const
return list;
}
-QString DesignerProjectImpl::formFileName( const QString &form ) const
+TQString DesignerProjectImpl::formFileName( const TQString &form ) const
{
- for ( QPtrListIterator<FormFile> forms = project->formFiles();
+ for ( TQPtrListIterator<FormFile> forms = project->formFiles();
forms.current(); ++forms ) {
- if ( QString( forms.current()->formName() ) == form )
+ if ( TQString( forms.current()->formName() ) == form )
return forms.current()->fileName();
}
- return QString::null;
+ return TQString::null;
}
-QStringList DesignerProjectImpl::formNames() const
+TQStringList DesignerProjectImpl::formNames() const
{
- QStringList l;
- for ( QPtrListIterator<FormFile> forms = project->formFiles();
+ TQStringList l;
+ for ( TQPtrListIterator<FormFile> forms = project->formFiles();
forms.current(); ++forms ) {
FormFile* f = forms.current();
if ( f->isFake() )
@@ -232,30 +232,30 @@ void DesignerProjectImpl::removeForm( DesignerFormWindow * )
{
}
-QString DesignerProjectImpl::fileName() const
+TQString DesignerProjectImpl::fileName() const
{
return project->fileName();
}
-void DesignerProjectImpl::setFileName( const QString & )
+void DesignerProjectImpl::setFileName( const TQString & )
{
}
-QString DesignerProjectImpl::projectName() const
+TQString DesignerProjectImpl::projectName() const
{
return project->projectName();
}
-void DesignerProjectImpl::setProjectName( const QString & )
+void DesignerProjectImpl::setProjectName( const TQString & )
{
}
-QString DesignerProjectImpl::databaseFile() const
+TQString DesignerProjectImpl::databaseFile() const
{
- return QString::null;
+ return TQString::null;
}
-void DesignerProjectImpl::setDatabaseFile( const QString & )
+void DesignerProjectImpl::setDatabaseFile( const TQString & )
{
}
@@ -264,11 +264,11 @@ void DesignerProjectImpl::setupDatabases() const
MainWindow::self->editDatabaseConnections();
}
-QPtrList<DesignerDatabase> DesignerProjectImpl::databaseConnections() const
+TQPtrList<DesignerDatabase> DesignerProjectImpl::databaseConnections() const
{
- QPtrList<DesignerDatabase> lst;
+ TQPtrList<DesignerDatabase> lst;
#ifndef QT_NO_SQL
- QPtrList<DatabaseConnection> conns = project->databaseConnections();
+ TQPtrList<DatabaseConnection> conns = project->databaseConnections();
for ( DatabaseConnection *d = conns.first(); d; d = conns.next() )
lst.append( d->iFace() );
#endif
@@ -287,26 +287,26 @@ void DesignerProjectImpl::save() const
{
}
-void DesignerProjectImpl::setLanguage( const QString &l )
+void DesignerProjectImpl::setLanguage( const TQString &l )
{
project->setLanguage( l );
}
-QString DesignerProjectImpl::language() const
+TQString DesignerProjectImpl::language() const
{
return project->language();
}
-void DesignerProjectImpl::setCustomSetting( const QString &key, const QString &value )
+void DesignerProjectImpl::setCustomSetting( const TQString &key, const TQString &value )
{
project->setCustomSetting( key, value );
}
-QString DesignerProjectImpl::customSetting( const QString &key ) const
+TQString DesignerProjectImpl::customSetting( const TQString &key ) const
{
if ( key == "QTSCRIPT_PACKAGES" ) {
- QString s = getenv( "QTSCRIPT_PACKAGES" );
- QString s2 = project->customSetting( "QUICK_PACKAGES" );
+ TQString s = getenv( "QTSCRIPT_PACKAGES" );
+ TQString s2 = project->customSetting( "QUICK_PACKAGES" );
if ( !s.isEmpty() && !s2.isEmpty() )
#if defined(Q_OS_WIN32)
s += ";";
@@ -324,40 +324,40 @@ DesignerPixmapCollection *DesignerProjectImpl::pixmapCollection() const
return project->pixmapCollection()->iFace();
}
-void DesignerProjectImpl::breakPoints( QMap<QString, QValueList<uint> > &bps ) const
+void DesignerProjectImpl::breakPoints( TQMap<TQString, TQValueList<uint> > &bps ) const
{
MainWindow::self->saveAllBreakPoints();
- for ( QPtrListIterator<SourceFile> sources = project->sourceFiles();
+ for ( TQPtrListIterator<SourceFile> sources = project->sourceFiles();
sources.current(); ++sources ) {
SourceFile* f = sources.current();
bps.insert( project->makeRelative( f->fileName() ) + " <Source-File>", MetaDataBase::breakPoints( f ) );
}
- for ( QPtrListIterator<FormFile> forms = project->formFiles();
+ for ( TQPtrListIterator<FormFile> forms = project->formFiles();
forms.current(); ++forms ) {
if ( forms.current()->formWindow() )
- bps.insert( QString( forms.current()->formWindow()->name() ) + " <Form>", MetaDataBase::breakPoints( forms.current()->formWindow() ) );
+ bps.insert( TQString( forms.current()->formWindow()->name() ) + " <Form>", MetaDataBase::breakPoints( forms.current()->formWindow() ) );
}
}
-QString DesignerProjectImpl::breakPointCondition( QObject *o, int line ) const
+TQString DesignerProjectImpl::breakPointCondition( TQObject *o, int line ) const
{
return MetaDataBase::breakPointCondition( MainWindow::self->findRealObject( o ), line );
}
-void DesignerProjectImpl::setBreakPointCondition( QObject *o, int line, const QString &condition )
+void DesignerProjectImpl::setBreakPointCondition( TQObject *o, int line, const TQString &condition )
{
MetaDataBase::setBreakPointCondition( MainWindow::self->findRealObject( o ), line, condition );
}
void DesignerProjectImpl::clearAllBreakpoints() const
{
- QValueList<uint> empty;
- for ( QPtrListIterator<SourceFile> sources = project->sourceFiles();
+ TQValueList<uint> empty;
+ for ( TQPtrListIterator<SourceFile> sources = project->sourceFiles();
sources.current(); ++sources ) {
SourceFile* f = sources.current();
MetaDataBase::setBreakPoints( f, empty );
}
- for ( QPtrListIterator<FormFile> forms = project->formFiles();
+ for ( TQPtrListIterator<FormFile> forms = project->formFiles();
forms.current(); ++forms ) {
if ( forms.current()->formWindow() )
MetaDataBase::setBreakPoints( forms.current()->formWindow(), empty );
@@ -365,57 +365,57 @@ void DesignerProjectImpl::clearAllBreakpoints() const
}
}
-void DesignerProjectImpl::setIncludePath( const QString &platform, const QString &path )
+void DesignerProjectImpl::setIncludePath( const TQString &platform, const TQString &path )
{
project->setIncludePath( platform, path );
}
-void DesignerProjectImpl::setLibs( const QString &platform, const QString &path )
+void DesignerProjectImpl::setLibs( const TQString &platform, const TQString &path )
{
project->setLibs( platform, path );
}
-void DesignerProjectImpl::setDefines( const QString &platform, const QString &path )
+void DesignerProjectImpl::setDefines( const TQString &platform, const TQString &path )
{
project->setDefines( platform, path );
}
-void DesignerProjectImpl::setConfig( const QString &platform, const QString &config )
+void DesignerProjectImpl::setConfig( const TQString &platform, const TQString &config )
{
project->setConfig( platform, config );
}
-void DesignerProjectImpl::setTemplate( const QString &t )
+void DesignerProjectImpl::setTemplate( const TQString &t )
{
project->setTemplate( t );
}
-QString DesignerProjectImpl::config( const QString &platform ) const
+TQString DesignerProjectImpl::config( const TQString &platform ) const
{
return project->config( platform );
}
-QString DesignerProjectImpl::libs( const QString &platform ) const
+TQString DesignerProjectImpl::libs( const TQString &platform ) const
{
return project->libs( platform );
}
-QString DesignerProjectImpl::defines( const QString &platform ) const
+TQString DesignerProjectImpl::defines( const TQString &platform ) const
{
return project->defines( platform );
}
-QString DesignerProjectImpl::includePath( const QString &platform ) const
+TQString DesignerProjectImpl::includePath( const TQString &platform ) const
{
return project->includePath( platform );
}
-QString DesignerProjectImpl::templte() const
+TQString DesignerProjectImpl::templte() const
{
return project->templte();
}
-bool DesignerProjectImpl::isGenericObject( QObject *o ) const
+bool DesignerProjectImpl::isGenericObject( TQObject *o ) const
{
return !!project->fakeFormFileFor( o );
}
@@ -432,66 +432,66 @@ DesignerDatabaseImpl::DesignerDatabaseImpl( DatabaseConnection *d )
{
}
-QString DesignerDatabaseImpl::name() const
+TQString DesignerDatabaseImpl::name() const
{
return db->name();
}
-void DesignerDatabaseImpl::setName( const QString & )
+void DesignerDatabaseImpl::setName( const TQString & )
{
}
-QString DesignerDatabaseImpl::driver() const
+TQString DesignerDatabaseImpl::driver() const
{
return db->driver();
}
-void DesignerDatabaseImpl::setDriver( const QString & )
+void DesignerDatabaseImpl::setDriver( const TQString & )
{
}
-QString DesignerDatabaseImpl::database() const
+TQString DesignerDatabaseImpl::database() const
{
return db->database();
}
-void DesignerDatabaseImpl::setDatabase( const QString & )
+void DesignerDatabaseImpl::setDatabase( const TQString & )
{
}
-QString DesignerDatabaseImpl::userName() const
+TQString DesignerDatabaseImpl::userName() const
{
return db->username();
}
-void DesignerDatabaseImpl::setUserName( const QString & )
+void DesignerDatabaseImpl::setUserName( const TQString & )
{
}
-QString DesignerDatabaseImpl::password() const
+TQString DesignerDatabaseImpl::password() const
{
return db->password();
}
-void DesignerDatabaseImpl::setPassword( const QString & )
+void DesignerDatabaseImpl::setPassword( const TQString & )
{
}
-QString DesignerDatabaseImpl::hostName() const
+TQString DesignerDatabaseImpl::hostName() const
{
return db->hostname();
}
-void DesignerDatabaseImpl::setHostName( const QString & )
+void DesignerDatabaseImpl::setHostName( const TQString & )
{
}
-QStringList DesignerDatabaseImpl::tables() const
+TQStringList DesignerDatabaseImpl::tables() const
{
return db->tables();
}
-QMap<QString, QStringList> DesignerDatabaseImpl::fields() const
+TQMap<TQString, TQStringList> DesignerDatabaseImpl::fields() const
{
return db->fields();
}
@@ -506,15 +506,15 @@ void DesignerDatabaseImpl::close() const
db->close();
}
-void DesignerDatabaseImpl::setFields( const QMap<QString, QStringList> & )
+void DesignerDatabaseImpl::setFields( const TQMap<TQString, TQStringList> & )
{
}
-void DesignerDatabaseImpl::setTables( const QStringList & )
+void DesignerDatabaseImpl::setTables( const TQStringList & )
{
}
-QSqlDatabase* DesignerDatabaseImpl::connection()
+TQSqlDatabase* DesignerDatabaseImpl::connection()
{
return db->connection();
}
@@ -527,7 +527,7 @@ DesignerPixmapCollectionImpl::DesignerPixmapCollectionImpl( PixmapCollection *co
{
}
-void DesignerPixmapCollectionImpl::addPixmap( const QPixmap &p, const QString &name, bool force )
+void DesignerPixmapCollectionImpl::addPixmap( const TQPixmap &p, const TQString &name, bool force )
{
PixmapCollection::Pixmap pix;
pix.pix = p;
@@ -538,7 +538,7 @@ void DesignerPixmapCollectionImpl::addPixmap( const QPixmap &p, const QString &n
MetaDataBase::setPixmapKey( fw, p.serialNumber(), name );
}
-QPixmap DesignerPixmapCollectionImpl::pixmap( const QString &name ) const
+TQPixmap DesignerPixmapCollectionImpl::pixmap( const TQString &name ) const
{
return pixCollection->pixmap( name );
}
@@ -550,22 +550,22 @@ DesignerFormWindowImpl::DesignerFormWindowImpl( FormWindow *fw )
{
}
-QString DesignerFormWindowImpl::name() const
+TQString DesignerFormWindowImpl::name() const
{
return formWindow->name();
}
-void DesignerFormWindowImpl::setName( const QString &n )
+void DesignerFormWindowImpl::setName( const TQString &n )
{
formWindow->setName( n );
}
-QString DesignerFormWindowImpl::fileName() const
+TQString DesignerFormWindowImpl::fileName() const
{
return formWindow->fileName();
}
-void DesignerFormWindowImpl::setFileName( const QString & )
+void DesignerFormWindowImpl::setFileName( const TQString & )
{
}
@@ -578,25 +578,25 @@ bool DesignerFormWindowImpl::isModified() const
return formWindow->commandHistory()->isModified();
}
-void DesignerFormWindowImpl::insertWidget( QWidget * )
+void DesignerFormWindowImpl::insertWidget( TQWidget * )
{
}
-QWidget *DesignerFormWindowImpl::create( const char *className, QWidget *parent, const char *name )
+TQWidget *DesignerFormWindowImpl::create( const char *className, TQWidget *parent, const char *name )
{
- QWidget *w = WidgetFactory::create( WidgetDatabase::idFromClassName( className ), parent, name );
+ TQWidget *w = WidgetFactory::create( WidgetDatabase::idFromClassName( className ), parent, name );
formWindow->insertWidget( w, TRUE );
formWindow->killAccels( formWindow->mainContainer() );
return w;
}
-void DesignerFormWindowImpl::removeWidget( QWidget * )
+void DesignerFormWindowImpl::removeWidget( TQWidget * )
{
}
-QWidgetList DesignerFormWindowImpl::widgets() const
+TQWidgetList DesignerFormWindowImpl::widgets() const
{
- return QWidgetList();
+ return TQWidgetList();
}
void DesignerFormWindowImpl::undo()
@@ -653,17 +653,17 @@ void DesignerFormWindowImpl::layoutG()
formWindow->layoutGrid();
}
-void DesignerFormWindowImpl::layoutHContainer( QWidget* w )
+void DesignerFormWindowImpl::layoutHContainer( TQWidget* w )
{
formWindow->layoutHorizontalContainer( w );
}
-void DesignerFormWindowImpl::layoutVContainer( QWidget* w )
+void DesignerFormWindowImpl::layoutVContainer( TQWidget* w )
{
formWindow->layoutVerticalContainer( w );
}
-void DesignerFormWindowImpl::layoutGContainer( QWidget* w )
+void DesignerFormWindowImpl::layoutGContainer( TQWidget* w )
{
formWindow->layoutGridContainer( w );
}
@@ -672,7 +672,7 @@ void DesignerFormWindowImpl::breakLayout()
{
}
-void DesignerFormWindowImpl::selectWidget( QWidget * w )
+void DesignerFormWindowImpl::selectWidget( TQWidget * w )
{
formWindow->selectWidget( w, TRUE );
}
@@ -686,38 +686,38 @@ void DesignerFormWindowImpl::clearSelection()
formWindow->clearSelection();
}
-bool DesignerFormWindowImpl::isWidgetSelected( QWidget * ) const
+bool DesignerFormWindowImpl::isWidgetSelected( TQWidget * ) const
{
return FALSE;
}
-QWidgetList DesignerFormWindowImpl::selectedWidgets() const
+TQWidgetList DesignerFormWindowImpl::selectedWidgets() const
{
return formWindow->selectedWidgets();
}
-QWidget *DesignerFormWindowImpl::currentWidget() const
+TQWidget *DesignerFormWindowImpl::currentWidget() const
{
return formWindow->currentWidget();
}
-QWidget *DesignerFormWindowImpl::form() const
+TQWidget *DesignerFormWindowImpl::form() const
{
return formWindow;
}
-void DesignerFormWindowImpl::setCurrentWidget( QWidget * )
+void DesignerFormWindowImpl::setCurrentWidget( TQWidget * )
{
}
-QPtrList<QAction> DesignerFormWindowImpl::actionList() const
+TQPtrList<TQAction> DesignerFormWindowImpl::actionList() const
{
- return QPtrList<QAction>();
+ return TQPtrList<TQAction>();
}
-QAction *DesignerFormWindowImpl::createAction( const QString& text, const QIconSet& icon, const QString& menuText, int accel,
- QObject* parent, const char* name, bool toggle )
+TQAction *DesignerFormWindowImpl::createAction( const TQString& text, const TQIconSet& icon, const TQString& menuText, int accel,
+ TQObject* parent, const char* name, bool toggle )
{
QDesignerAction *a = new QDesignerAction( parent );
a->setName( name );
@@ -730,7 +730,7 @@ QAction *DesignerFormWindowImpl::createAction( const QString& text, const QIconS
return a;
}
-void DesignerFormWindowImpl::addAction( QAction *a )
+void DesignerFormWindowImpl::addAction( TQAction *a )
{
if ( formWindow->actionList().findRef( a ) != -1 )
return;
@@ -744,7 +744,7 @@ void DesignerFormWindowImpl::addAction( QAction *a )
setPropertyChanged( a, "iconSet", TRUE );
}
-void DesignerFormWindowImpl::removeAction( QAction *a )
+void DesignerFormWindowImpl::removeAction( TQAction *a )
{
formWindow->actionList().removeRef( a );
}
@@ -753,14 +753,14 @@ void DesignerFormWindowImpl::preview() const
{
}
-void DesignerFormWindowImpl::addConnection( QObject *sender, const char *signal, QObject *receiver, const char *slot )
+void DesignerFormWindowImpl::addConnection( TQObject *sender, const char *signal, TQObject *receiver, const char *slot )
{
MetaDataBase::addConnection( formWindow, sender, signal, receiver, slot );
}
-void DesignerFormWindowImpl::addFunction( const QCString &function, const QString &specifier,
- const QString &access, const QString &type,
- const QString &language, const QString &returnType )
+void DesignerFormWindowImpl::addFunction( const TQCString &function, const TQString &specifier,
+ const TQString &access, const TQString &type,
+ const TQString &language, const TQString &returnType )
{
MetaDataBase::addFunction( formWindow, function, specifier, access, type, language, returnType );
formWindow->mainWindow()->functionsChanged();
@@ -768,49 +768,49 @@ void DesignerFormWindowImpl::addFunction( const QCString &function, const QStrin
-void DesignerFormWindowImpl::setProperty( QObject *o, const char *property, const QVariant &value )
+void DesignerFormWindowImpl::setProperty( TQObject *o, const char *property, const TQVariant &value )
{
int id = o->metaObject()->findProperty( property, TRUE );
- const QMetaProperty* p = o->metaObject()->property( id, TRUE );
+ const TQMetaProperty* p = o->metaObject()->property( id, TRUE );
if ( p && p->isValid() )
o->setProperty( property, value );
else
MetaDataBase::setFakeProperty( o, property, value );
}
-QVariant DesignerFormWindowImpl::property( QObject *o, const char *prop ) const
+TQVariant DesignerFormWindowImpl::property( TQObject *o, const char *prop ) const
{
int id = o->metaObject()->findProperty( prop, TRUE );
- const QMetaProperty* p = o->metaObject()->property( id, TRUE );
+ const TQMetaProperty* p = o->metaObject()->property( id, TRUE );
if ( p && p->isValid() )
return o->property( prop );
return MetaDataBase::fakeProperty( o, prop );
}
-void DesignerFormWindowImpl::setPropertyChanged( QObject *o, const char *property, bool changed )
+void DesignerFormWindowImpl::setPropertyChanged( TQObject *o, const char *property, bool changed )
{
MetaDataBase::setPropertyChanged( o, property, changed );
}
-bool DesignerFormWindowImpl::isPropertyChanged( QObject *o, const char *property ) const
+bool DesignerFormWindowImpl::isPropertyChanged( TQObject *o, const char *property ) const
{
return MetaDataBase::isPropertyChanged( o, property );
}
-void DesignerFormWindowImpl::setColumnFields( QObject *o, const QMap<QString, QString> &f )
+void DesignerFormWindowImpl::setColumnFields( TQObject *o, const TQMap<TQString, TQString> &f )
{
MetaDataBase::setColumnFields( o, f );
}
-QStringList DesignerFormWindowImpl::implementationIncludes() const
+TQStringList DesignerFormWindowImpl::implementationIncludes() const
{
- QValueList<MetaDataBase::Include> includes = MetaDataBase::includes( formWindow );
- QStringList lst;
- for ( QValueList<MetaDataBase::Include>::Iterator it = includes.begin(); it != includes.end(); ++it ) {
+ TQValueList<MetaDataBase::Include> includes = MetaDataBase::includes( formWindow );
+ TQStringList lst;
+ for ( TQValueList<MetaDataBase::Include>::Iterator it = includes.begin(); it != includes.end(); ++it ) {
MetaDataBase::Include inc = *it;
if ( inc.implDecl != "in implementation" )
continue;
- QString s = inc.header;
+ TQString s = inc.header;
if ( inc.location == "global" ) {
s.prepend( "<" );
s.append( ">" );
@@ -823,15 +823,15 @@ QStringList DesignerFormWindowImpl::implementationIncludes() const
return lst;
}
-QStringList DesignerFormWindowImpl::declarationIncludes() const
+TQStringList DesignerFormWindowImpl::declarationIncludes() const
{
- QValueList<MetaDataBase::Include> includes = MetaDataBase::includes( formWindow );
- QStringList lst;
- for ( QValueList<MetaDataBase::Include>::Iterator it = includes.begin(); it != includes.end(); ++it ) {
+ TQValueList<MetaDataBase::Include> includes = MetaDataBase::includes( formWindow );
+ TQStringList lst;
+ for ( TQValueList<MetaDataBase::Include>::Iterator it = includes.begin(); it != includes.end(); ++it ) {
MetaDataBase::Include inc = *it;
if ( inc.implDecl == "in implementation" )
continue;
- QString s = inc.header;
+ TQString s = inc.header;
if ( inc.location == "global" ) {
s.prepend( "<" );
s.append( ">" );
@@ -844,19 +844,19 @@ QStringList DesignerFormWindowImpl::declarationIncludes() const
return lst;
}
-void DesignerFormWindowImpl::setImplementationIncludes( const QStringList &lst )
+void DesignerFormWindowImpl::setImplementationIncludes( const TQStringList &lst )
{
- QValueList<MetaDataBase::Include> oldIncludes = MetaDataBase::includes( formWindow );
- QValueList<MetaDataBase::Include> includes;
- for ( QValueList<MetaDataBase::Include>::Iterator it = oldIncludes.begin(); it != oldIncludes.end(); ++it ) {
+ TQValueList<MetaDataBase::Include> oldIncludes = MetaDataBase::includes( formWindow );
+ TQValueList<MetaDataBase::Include> includes;
+ for ( TQValueList<MetaDataBase::Include>::Iterator it = oldIncludes.begin(); it != oldIncludes.end(); ++it ) {
MetaDataBase::Include inc = *it;
if ( inc.implDecl == "in implementation" )
continue;
includes << inc;
}
- for ( QStringList::ConstIterator sit = lst.begin(); sit != lst.end(); ++sit ) {
- QString s = *sit;
+ for ( TQStringList::ConstIterator sit = lst.begin(); sit != lst.end(); ++sit ) {
+ TQString s = *sit;
if ( s.startsWith( "#include" ) )
s.remove( (uint)0, 8 );
s = s.simplifyWhiteSpace();
@@ -886,19 +886,19 @@ void DesignerFormWindowImpl::setImplementationIncludes( const QStringList &lst )
formWindow->mainWindow()->objectHierarchy()->formDefinitionView()->setup();
}
-void DesignerFormWindowImpl::setDeclarationIncludes( const QStringList &lst )
+void DesignerFormWindowImpl::setDeclarationIncludes( const TQStringList &lst )
{
- QValueList<MetaDataBase::Include> oldIncludes = MetaDataBase::includes( formWindow );
- QValueList<MetaDataBase::Include> includes;
- for ( QValueList<MetaDataBase::Include>::Iterator it = oldIncludes.begin(); it != oldIncludes.end(); ++it ) {
+ TQValueList<MetaDataBase::Include> oldIncludes = MetaDataBase::includes( formWindow );
+ TQValueList<MetaDataBase::Include> includes;
+ for ( TQValueList<MetaDataBase::Include>::Iterator it = oldIncludes.begin(); it != oldIncludes.end(); ++it ) {
MetaDataBase::Include inc = *it;
if ( inc.implDecl == "in declaration" )
continue;
includes << inc;
}
- for ( QStringList::ConstIterator sit = lst.begin(); sit != lst.end(); ++sit ) {
- QString s = *sit;
+ for ( TQStringList::ConstIterator sit = lst.begin(); sit != lst.end(); ++sit ) {
+ TQString s = *sit;
if ( s.startsWith( "#include" ) )
s.remove( (uint)0, 8 );
s = s.simplifyWhiteSpace();
@@ -928,41 +928,41 @@ void DesignerFormWindowImpl::setDeclarationIncludes( const QStringList &lst )
formWindow->mainWindow()->objectHierarchy()->formDefinitionView()->setup();
}
-QStringList DesignerFormWindowImpl::forwardDeclarations() const
+TQStringList DesignerFormWindowImpl::forwardDeclarations() const
{
return MetaDataBase::forwards( formWindow );
}
-void DesignerFormWindowImpl::setForwardDeclarations( const QStringList &lst )
+void DesignerFormWindowImpl::setForwardDeclarations( const TQStringList &lst )
{
MetaDataBase::setForwards( formWindow, lst );
formWindow->mainWindow()->objectHierarchy()->formDefinitionView()->setup();
}
-QStringList DesignerFormWindowImpl::signalList() const
+TQStringList DesignerFormWindowImpl::signalList() const
{
return MetaDataBase::signalList( formWindow );
}
-void DesignerFormWindowImpl::setSignalList( const QStringList &lst )
+void DesignerFormWindowImpl::setSignalList( const TQStringList &lst )
{
MetaDataBase::setSignalList( formWindow, lst );
formWindow->mainWindow()->objectHierarchy()->formDefinitionView()->setup();
}
-void DesignerFormWindowImpl::onModificationChange( QObject *receiver, const char *slot )
+void DesignerFormWindowImpl::onModificationChange( TQObject *receiver, const char *slot )
{
- QObject::connect( formWindow, SIGNAL( modificationChanged( bool, FormWindow * ) ), receiver, slot );
+ TQObject::connect( formWindow, TQT_SIGNAL( modificationChanged( bool, FormWindow * ) ), receiver, slot );
}
-void DesignerFormWindowImpl::addMenu( const QString &text, const QString &name )
+void DesignerFormWindowImpl::addMenu( const TQString &text, const TQString &name )
{
- if ( !::qt_cast<QMainWindow*>(formWindow->mainContainer()) )
+ if ( !::qt_cast<TQMainWindow*>(formWindow->mainContainer()) )
return;
- QMainWindow *mw = (QMainWindow*)formWindow->mainContainer();
+ TQMainWindow *mw = (TQMainWindow*)formWindow->mainContainer();
PopupMenuEditor *popup = new PopupMenuEditor( formWindow, mw );
- QString n = name;
+ TQString n = name;
formWindow->unify( popup, n, TRUE );
popup->setName( n );
MenuBarEditor *mb = (MenuBarEditor *)mw->child( 0, "MenuBarEditor" );
@@ -975,11 +975,11 @@ void DesignerFormWindowImpl::addMenu( const QString &text, const QString &name )
MetaDataBase::addEntry( popup );
}
-void DesignerFormWindowImpl::addMenuAction( const QString &menu, QAction *a )
+void DesignerFormWindowImpl::addMenuAction( const TQString &menu, TQAction *a )
{
- if ( !::qt_cast<QMainWindow*>(formWindow->mainContainer()) )
+ if ( !::qt_cast<TQMainWindow*>(formWindow->mainContainer()) )
return;
- QMainWindow *mw = (QMainWindow*)formWindow->mainContainer();
+ TQMainWindow *mw = (TQMainWindow*)formWindow->mainContainer();
if ( !mw->child( 0, "MenuBarEditor" ) )
return;
PopupMenuEditor *popup = (PopupMenuEditor*)mw->child( menu, "PopupMenuEditor" );
@@ -988,37 +988,37 @@ void DesignerFormWindowImpl::addMenuAction( const QString &menu, QAction *a )
popup->insert( a );
}
-void DesignerFormWindowImpl::addMenuSeparator( const QString &menu )
+void DesignerFormWindowImpl::addMenuSeparator( const TQString &menu )
{
- if ( !::qt_cast<QMainWindow*>(formWindow->mainContainer()) )
+ if ( !::qt_cast<TQMainWindow*>(formWindow->mainContainer()) )
return;
- QMainWindow *mw = (QMainWindow*)formWindow->mainContainer();
+ TQMainWindow *mw = (TQMainWindow*)formWindow->mainContainer();
if ( !mw->child( 0, "MenuBarEditor" ) )
return;
PopupMenuEditor *popup = (PopupMenuEditor*)mw->child( menu, "PopupMenuEditor" );
if ( !popup )
return;
- QAction *a = new QSeparatorAction( 0 );
+ TQAction *a = new QSeparatorAction( 0 );
popup->insert( a );
}
-void DesignerFormWindowImpl::addToolBar( const QString &text, const QString &name )
+void DesignerFormWindowImpl::addToolBar( const TQString &text, const TQString &name )
{
- if ( !::qt_cast<QMainWindow*>(formWindow->mainContainer()) )
+ if ( !::qt_cast<TQMainWindow*>(formWindow->mainContainer()) )
return;
- QMainWindow *mw = (QMainWindow*)formWindow->mainContainer();
- QToolBar *tb = new QDesignerToolBar( mw );
- QString n = name;
+ TQMainWindow *mw = (TQMainWindow*)formWindow->mainContainer();
+ TQToolBar *tb = new QDesignerToolBar( mw );
+ TQString n = name;
formWindow->unify( tb, n, TRUE );
tb->setName( n );
mw->addToolBar( tb, text );
}
-void DesignerFormWindowImpl::addToolBarAction( const QString &tbn, QAction *a )
+void DesignerFormWindowImpl::addToolBarAction( const TQString &tbn, TQAction *a )
{
- if ( !::qt_cast<QMainWindow*>(formWindow->mainContainer()) )
+ if ( !::qt_cast<TQMainWindow*>(formWindow->mainContainer()) )
return;
- QMainWindow *mw = (QMainWindow*)formWindow->mainContainer();
+ TQMainWindow *mw = (TQMainWindow*)formWindow->mainContainer();
QDesignerToolBar *tb = (QDesignerToolBar*)mw->child( tbn, "QDesignerToolBar" );
if ( !tb )
return;
@@ -1026,15 +1026,15 @@ void DesignerFormWindowImpl::addToolBarAction( const QString &tbn, QAction *a )
tb->addAction( a );
}
-void DesignerFormWindowImpl::addToolBarSeparator( const QString &tbn )
+void DesignerFormWindowImpl::addToolBarSeparator( const TQString &tbn )
{
- if ( !::qt_cast<QMainWindow*>(formWindow->mainContainer()) )
+ if ( !::qt_cast<TQMainWindow*>(formWindow->mainContainer()) )
return;
- QMainWindow *mw = (QMainWindow*)formWindow->mainContainer();
+ TQMainWindow *mw = (TQMainWindow*)formWindow->mainContainer();
QDesignerToolBar *tb = (QDesignerToolBar*)mw->child( tbn, "QDesignerToolBar" );
if ( !tb )
return;
- QAction *a = new QSeparatorAction( 0 );
+ TQAction *a = new QSeparatorAction( 0 );
a->addTo( tb );
tb->addAction( a );
}
@@ -1043,7 +1043,7 @@ DesignerDockImpl::DesignerDockImpl()
{
}
-QDockWindow *DesignerDockImpl::dockWindow() const
+TQDockWindow *DesignerDockImpl::dockWindow() const
{
return 0;
}
@@ -1053,14 +1053,14 @@ DesignerOutputDockImpl::DesignerOutputDockImpl( OutputWindow *ow )
{
}
-QWidget *DesignerOutputDockImpl::addView( const QString &title )
+TQWidget *DesignerOutputDockImpl::addView( const TQString &title )
{
- QWidget *page = new QWidget( outWin );
+ TQWidget *page = new TQWidget( outWin );
outWin->addTab( page, title );
return page;
}
-void DesignerOutputDockImpl::appendDebug( const QString &s )
+void DesignerOutputDockImpl::appendDebug( const TQString &s )
{
outWin->appendDebug( s );
}
@@ -1069,13 +1069,13 @@ void DesignerOutputDockImpl::clearDebug()
{
}
-void DesignerOutputDockImpl::appendError( const QString &s, int l )
+void DesignerOutputDockImpl::appendError( const TQString &s, int l )
{
- QStringList ls;
+ TQStringList ls;
ls << s;
- QValueList<uint> ll;
+ TQValueList<uint> ll;
ll << l;
- outWin->setErrorMessages( ls, ll, FALSE, QStringList(), QObjectList() );
+ outWin->setErrorMessages( ls, ll, FALSE, TQStringList(), TQObjectList() );
}
void DesignerOutputDockImpl::clearError()
@@ -1087,7 +1087,7 @@ DesignerSourceFileImpl::DesignerSourceFileImpl( SourceFile *e )
{
}
-QString DesignerSourceFileImpl::fileName() const
+TQString DesignerSourceFileImpl::fileName() const
{
return ed->fileName();
}