summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/newformimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/newformimpl.cpp')
-rw-r--r--kdevdesigner/designer/newformimpl.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kdevdesigner/designer/newformimpl.cpp b/kdevdesigner/designer/newformimpl.cpp
index 629d53ff..72c8323e 100644
--- a/kdevdesigner/designer/newformimpl.cpp
+++ b/kdevdesigner/designer/newformimpl.cpp
@@ -74,7 +74,7 @@ void FormItem::insert( Project *pro )
{
TQString n = "Form" + TQString::number( ++forms );
FormWindow *fw = 0;
- FormFile *ff = new FormFile( FormFile::createUnnamedFileName(), TRUE, pro );
+ FormFile *ff = new FormFile( FormFile::createUnnamedFileName(), true, pro );
fw = new FormWindow( ff, MainWindow::self, MainWindow::self->qWorkspace(), n );
fw->setProject( pro );
MetaDataBase::addEntry( fw );
@@ -113,11 +113,11 @@ void FormItem::insert( Project *pro )
MainWindow::self->objectHierarchy()->formDefinitionView()->refresh();
MainWindow::self->objectHierarchy()->rebuild();
fw->killAccels( fw );
- fw->project()->setModified( TRUE );
+ fw->project()->setModified( true );
fw->setFocus();
if ( !pro->isDummy() ) {
- fw->setSavePixmapInProject( TRUE );
- fw->setSavePixmapInline( FALSE );
+ fw->setSavePixmapInProject( true );
+ fw->setSavePixmapInline( false );
}
}
@@ -155,7 +155,7 @@ void CustomFormItem::insert( Project *pro )
TQString filename = templateFileName();
if ( !filename.isEmpty() && TQFile::exists( filename ) ) {
Resource resource( MainWindow::self );
- FormFile *ff = new FormFile( filename, TRUE, pro );
+ FormFile *ff = new FormFile( filename, true, pro );
if ( !resource.load( ff ) ) {
TQMessageBox::information( MainWindow::self, i18n("Load Template"),
i18n("Could not load form description from template '%1'" ).arg( filename ) );
@@ -167,8 +167,8 @@ void CustomFormItem::insert( Project *pro )
MainWindow::self->formWindow()->setFileName( TQString() );
unifyFormName( MainWindow::self->formWindow(), MainWindow::self->qWorkspace() );
if ( !pro->isDummy() ) {
- MainWindow::self->formWindow()->setSavePixmapInProject( TRUE );
- MainWindow::self->formWindow()->setSavePixmapInline( FALSE );
+ MainWindow::self->formWindow()->setSavePixmapInProject( true );
+ MainWindow::self->formWindow()->setSavePixmapInline( false );
}
}
}
@@ -177,13 +177,13 @@ void CustomFormItem::insert( Project *pro )
SourceFileItem::SourceFileItem( TQIconView *view, const TQString &text )
- : NewItem( view, text ), visible( TRUE )
+ : NewItem( view, text ), visible( true )
{
}
void SourceFileItem::insert( Project *pro )
{
- SourceFile *f = new SourceFile( SourceFile::createUnnamedFileName( ext ), TRUE, pro );
+ SourceFile *f = new SourceFile( SourceFile::createUnnamedFileName( ext ), true, pro );
MainWindow::self->editSource( f );
}
@@ -203,7 +203,7 @@ void SourceFileItem::setProject( Project *pro )
SourceTemplateItem::SourceTemplateItem( TQIconView *view, const TQString &text )
- : NewItem( view, text ), visible( TRUE )
+ : NewItem( view, text ), visible( true )
{
}
@@ -217,13 +217,13 @@ void SourceTemplateItem::insert( Project *pro )
if ( src.type == SourceTemplateInterface::Source::Invalid )
return;
if ( src.type == SourceTemplateInterface::Source::FileName )
- f = new SourceFile( src.filename, FALSE, pro );
+ f = new SourceFile( src.filename, false, pro );
else
- f = new SourceFile( SourceFile::createUnnamedFileName( src.extension ), TRUE, pro );
+ f = new SourceFile( SourceFile::createUnnamedFileName( src.extension ), true, pro );
if ( f->isAccepted()) {
f->setText( src.code );
MainWindow::self->editSource( f );
- f->setModified( TRUE );
+ f->setModified( true );
} else {
delete f;
}
@@ -253,7 +253,7 @@ void NewForm::insertTemplates( TQIconView *tView,
allItems.append( pi );
pi->setLanguage( *it );
pi->setPixmap( BarIcon( "designer_project.png" , KDevDesignerPartFactory::instance()) );
- pi->setDragEnabled( FALSE );
+ pi->setDragEnabled( false );
}
}
TQIconViewItem *cur = 0;
@@ -261,24 +261,24 @@ void NewForm::insertTemplates( TQIconView *tView,
allItems.append( fi );
fi->setFormType( FormItem::Dialog );
fi->setPixmap( BarIcon( "designer_newform.png" , KDevDesignerPartFactory::instance()) );
- fi->setDragEnabled( FALSE );
+ fi->setDragEnabled( false );
cur = fi;
if ( !MainWindow::self->singleProjectMode() ) {
fi = new FormItem( tView,i18n( "Wizard" ) );
allItems.append( fi );
fi->setFormType( FormItem::Wizard );
fi->setPixmap( BarIcon( "designer_newform.png" , KDevDesignerPartFactory::instance()) );
- fi->setDragEnabled( FALSE );
+ fi->setDragEnabled( false );
fi = new FormItem( tView, i18n( "Widget" ) );
allItems.append( fi );
fi->setFormType( FormItem::Widget );
fi->setPixmap( BarIcon( "designer_newform.png" , KDevDesignerPartFactory::instance()) );
- fi->setDragEnabled( FALSE );
+ fi->setDragEnabled( false );
fi = new FormItem( tView, i18n( "Main Window" ) );
allItems.append( fi );
fi->setFormType( FormItem::MainWindow );
fi->setPixmap( BarIcon( "designer_newform.png" , KDevDesignerPartFactory::instance()) );
- fi->setDragEnabled( FALSE );
+ fi->setDragEnabled( false );
TQString templPath = templatePath;
TQStringList templRoots;
@@ -309,7 +309,7 @@ void NewForm::insertTemplates( TQIconView *tView,
name = name.replace( '_', ' ' );
CustomFormItem *ci = new CustomFormItem( tView, name );
allItems.append( ci );
- ci->setDragEnabled( FALSE );
+ ci->setDragEnabled( false );
ci->setPixmap( BarIcon( "designer_newform.png" , KDevDesignerPartFactory::instance()) );
ci->setTemplateFile( fi->absFilePath() );
}
@@ -329,7 +329,7 @@ void NewForm::insertTemplates( TQIconView *tView,
si->setExtension( eit.key() );
si->setLanguage( *it );
si->setPixmap( BarIcon( "designer_filenew.png", KDevDesignerPartFactory::instance() ) );
- si->setDragEnabled( FALSE );
+ si->setDragEnabled( false );
}
iface->release();
}
@@ -346,7 +346,7 @@ void NewForm::insertTemplates( TQIconView *tView,
si->setTemplate( *sit );
si->setLanguage( siface->language( *sit ) );
si->setPixmap( BarIcon( "designer_filenew.png", KDevDesignerPartFactory::instance() ) );
- si->setDragEnabled( FALSE );
+ si->setDragEnabled( false );
siface->release();
}
}
@@ -366,7 +366,7 @@ NewForm::NewForm( TQIconView *templateView, const TQString &templatePath )
NewForm::NewForm( TQWidget *parent, const TQStringList& projects,
const TQString& currentProject, const TQString &templatePath )
- : NewFormBase( parent, 0, TRUE )
+ : NewFormBase( parent, 0, true )
{
connect( helpButton, TQ_SIGNAL( clicked() ), MainWindow::self, TQ_SLOT( showDialogHelp() ) );
@@ -399,7 +399,7 @@ void NewForm::projectChanged( const TQString &project )
for ( i = allItems.first(); i; i = allItems.next() )
( (NewItem*)i )->setProject( pro );
templateView->setCurrentItem( templateView->firstItem() );
- templateView->arrangeItemsInGrid( TRUE );
+ templateView->arrangeItemsInGrid( true );
}
void NewForm::itemChanged( TQIconViewItem *item )