diff options
Diffstat (limited to 'kpresenter/KPrWebPresentation.cpp')
-rw-r--r-- | kpresenter/KPrWebPresentation.cpp | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/kpresenter/KPrWebPresentation.cpp b/kpresenter/KPrWebPresentation.cpp index 0d490cf4..d4df256b 100644 --- a/kpresenter/KPrWebPresentation.cpp +++ b/kpresenter/KPrWebPresentation.cpp @@ -87,7 +87,7 @@ static TQString EscapeSgmlText(const TQTextCodec* codec, const TQString& strIn, for (uint i=0; i<strIn.length(); i++) { ch=strIn[i]; - switch (ch.tqunicode()) + switch (ch.unicode()) { case 38: // & { @@ -129,7 +129,7 @@ static TQString EscapeSgmlText(const TQTextCodec* codec, const TQString& strIn, { if (!codec->canEncode(ch)) { - strReturn+=TQString("&#%1;").arg(ch.tqunicode()); + strReturn+=TQString("&#%1;").arg(ch.unicode()); break; } } @@ -156,7 +156,7 @@ static TQString EscapeEncodingOnly(const TQTextCodec* codec, const TQString& str { if (!codec->canEncode(ch)) { - strReturn+=TQString("&#%1;").arg(ch.tqunicode()); + strReturn+=TQString("&#%1;").arg(ch.unicode()); continue; } } @@ -664,7 +664,7 @@ void KPrWebPresentationWizard::setupPage1() sidebar->setPixmap(locate("data", "kpresenter/pics/webslideshow-sidebar.png")); TQWidget* canvas = new TQWidget( page1 ); - TQGridLayout *tqlayout = new TQGridLayout( canvas, 7, 2, + TQGridLayout *layout = new TQGridLayout( canvas, 7, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQLabel *helptext = new TQLabel( canvas ); @@ -673,29 +673,29 @@ void KPrWebPresentationWizard::setupPage1() "the title of the web presentation. " "Also enter the output directory where the " "web presentation should be saved. " ) ); - tqlayout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); + layout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); - tqlayout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); + layout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); TQLabel *label1 = new TQLabel( i18n("Author:"), canvas ); label1->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); TQWhatsThis::add( label1, i18n("This is where you enter the name of the person or " "organization that should be named as the author of " "the presentation.") ); - tqlayout->addWidget( label1, 2, 0 ); + layout->addWidget( label1, 2, 0 ); TQLabel *label2 = new TQLabel( i18n("Title:"), canvas ); label2->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); TQWhatsThis::add( label2, i18n("This is where you enter the title of the overall " "presentation." ) ); - tqlayout->addWidget( label2, 3, 0 ); + layout->addWidget( label2, 3, 0 ); TQLabel *label3 = new TQLabel( i18n("Email address:"), canvas ); label3->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); TQWhatsThis::add( label3, i18n("This is where you enter the email address of the " "person or organization that is responsible for " "the presentation.") ); - tqlayout->addWidget( label3, 4, 0 ); + layout->addWidget( label3, 4, 0 ); TQLabel *label4 = new TQLabel( i18n("Path:"), canvas ); label4->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); @@ -703,24 +703,24 @@ void KPrWebPresentationWizard::setupPage1() "where the presentation will be saved. If it does " "not exist, you'll be asked if you want to create " "the directory or abort the creation.") ); - tqlayout->addWidget( label4, 5, 0 ); + layout->addWidget( label4, 5, 0 ); author = new KLineEdit( webPres.getAuthor(), canvas ); TQWhatsThis::add( author, i18n("This is where you enter the name of the person or " "organization that should be named as the author of " "the presentation.") ); - tqlayout->addWidget( author, 2, 1 ); + layout->addWidget( author, 2, 1 ); title = new KLineEdit( webPres.getTitle(), canvas ); TQWhatsThis::add( title, i18n("This is where you enter the title of the overall " "presentation." ) ); - tqlayout->addWidget( title, 3, 1 ); + layout->addWidget( title, 3, 1 ); email = new KLineEdit( webPres.getEmail(), canvas ); TQWhatsThis::add( email, i18n("This is where you enter the email address of the " "person or organization that is responsible for " "the presentation.") ); - tqlayout->addWidget( email, 4, 1 ); + layout->addWidget( email, 4, 1 ); path=new KURLRequester( canvas ); path->setMode( KFile::Directory); @@ -729,11 +729,11 @@ void KPrWebPresentationWizard::setupPage1() "where the presentation will be saved. If it does " "not exist, you'll be asked if you want to create " "the directory or abort the creation.") ); - tqlayout->addWidget( path, 5, 1 ); + layout->addWidget( path, 5, 1 ); TQSpacerItem* spacer = new TQSpacerItem( 1, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tqlayout->addMultiCell( spacer, 6, 6, 0, 1 ); + layout->addMultiCell( spacer, 6, 6, 0, 1 ); connect(path, TQT_SIGNAL(textChanged(const TQString&)), this,TQT_SLOT(slotChoosePath(const TQString&))); @@ -762,7 +762,7 @@ void KPrWebPresentationWizard::setupPage2() sidebar->setPixmap(locate("data", "kpresenter/pics/webslideshow-sidebar.png")); TQWidget* canvas = new TQWidget( page2 ); - TQGridLayout *tqlayout = new TQGridLayout( canvas, 6, 2, + TQGridLayout *layout = new TQGridLayout( canvas, 6, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQLabel *helptext = new TQLabel( canvas ); @@ -771,34 +771,34 @@ void KPrWebPresentationWizard::setupPage2() help += i18n( "You can also specify the zoom for the slides." ); helptext->setText(help); - tqlayout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); + layout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); - tqlayout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); + layout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); TQLabel *label1 = new TQLabel( i18n("Zoom:"), canvas ); label1->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); TQWhatsThis::add( label1, i18n( "This selection allows you to specify " "the size of the slide image." ) ); - tqlayout->addWidget( label1, 2, 0 ); + layout->addWidget( label1, 2, 0 ); TQLabel *label2 = new TQLabel( i18n( "Encoding:" ), canvas ); label2->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); - tqlayout->addWidget( label2, 3, 0 ); + layout->addWidget( label2, 3, 0 ); TQLabel *label3 = new TQLabel( i18n( "Document type:" ), canvas ); label3->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); - tqlayout->addWidget( label3, 4, 0 ); + layout->addWidget( label3, 4, 0 ); zoom = new KIntNumInput( webPres.getZoom(), canvas ); TQWhatsThis::add( zoom, i18n( "This selection allows you to specify " "the size of the slide image." ) ); - tqlayout->addWidget( zoom, 2, 1 ); + layout->addWidget( zoom, 2, 1 ); zoom->setSuffix( " %" ); zoom->setRange( 25, 1000, 5 ); encoding = new KComboBox( false, canvas ); - tqlayout->addWidget( encoding, 3, 1 ); + layout->addWidget( encoding, 3, 1 ); // Fill encoding combo // Stolen from tdelibs/kate/part/katedialogs.cpp @@ -819,7 +819,7 @@ void KPrWebPresentationWizard::setupPage2() } doctype = new KComboBox( false, canvas ); - tqlayout->addWidget( doctype, 4, 1 ); + layout->addWidget( doctype, 4, 1 ); doctype->insertItem( "HTML 4.01", -1 ); doctype->insertItem( "XHTML 1.0", -1 ); @@ -827,7 +827,7 @@ void KPrWebPresentationWizard::setupPage2() TQSpacerItem* spacer = new TQSpacerItem( 1, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tqlayout->addMultiCell( spacer, 5, 5, 0, 1 ); + layout->addMultiCell( spacer, 5, 5, 0, 1 ); addPage( page2, i18n( "Step 2: Configure HTML" ) ); @@ -852,40 +852,40 @@ void KPrWebPresentationWizard::setupPage3() sidebar->setPixmap(locate("data", "kpresenter/pics/webslideshow-sidebar.png")); TQWidget* canvas = new TQWidget( page3 ); - TQGridLayout *tqlayout = new TQGridLayout( canvas, 6, 2, + TQGridLayout *layout = new TQGridLayout( canvas, 6, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQLabel *helptext = new TQLabel( canvas ); helptext->setAlignment( TQt::WordBreak | TQt::AlignVCenter| TQt::AlignLeft ); helptext->setText( i18n( "Now you can customize the colors of the web pages." ) ); - tqlayout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); + layout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); - tqlayout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); + layout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); TQLabel *label1 = new TQLabel( i18n("Text color:"), canvas ); label1->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); - tqlayout->addWidget( label1, 2, 0 ); + layout->addWidget( label1, 2, 0 ); TQLabel *label2 = new TQLabel( i18n("Title color:"), canvas ); label2->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); - tqlayout->addWidget( label2, 3, 0 ); + layout->addWidget( label2, 3, 0 ); TQLabel *label3 = new TQLabel( i18n("Background color:"), canvas ); label3->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); - tqlayout->addWidget( label3, 4, 0 ); + layout->addWidget( label3, 4, 0 ); textColor = new KColorButton( webPres.getTextColor(), canvas ); - tqlayout->addWidget( textColor, 2, 1 ); + layout->addWidget( textColor, 2, 1 ); titleColor = new KColorButton( webPres.getTitleColor(), canvas ); - tqlayout->addWidget( titleColor, 3, 1 ); + layout->addWidget( titleColor, 3, 1 ); backColor = new KColorButton( webPres.getBackColor(), canvas ); - tqlayout->addWidget( backColor, 4, 1 ); + layout->addWidget( backColor, 4, 1 ); TQSpacerItem* spacer = new TQSpacerItem( 1, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tqlayout->addMultiCell( spacer, 5, 5, 0, 1 ); + layout->addMultiCell( spacer, 5, 5, 0, 1 ); addPage( page3, i18n( "Step 3: Customize Colors" ) ); @@ -909,7 +909,7 @@ void KPrWebPresentationWizard::setupPage4() sidebar->setPixmap(locate("data", "kpresenter/pics/webslideshow-sidebar.png")); TQWidget* canvas = new TQWidget( page4 ); - TQGridLayout *tqlayout = new TQGridLayout( canvas, 3, 2, + TQGridLayout *layout = new TQGridLayout( canvas, 3, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQLabel *helptext = new TQLabel( canvas ); @@ -921,19 +921,19 @@ void KPrWebPresentationWizard::setupPage4() "click on a title, KPresenter " "mainview will display the slide.") ); - tqlayout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); + layout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); TQLabel *label = new TQLabel( i18n( "Slide title:" ), canvas ); label->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); - tqlayout->addWidget( label, 1, 0 ); + layout->addWidget( label, 1, 0 ); slideTitle = new KLineEdit( canvas ); - tqlayout->addWidget( slideTitle, 1, 1 ); + layout->addWidget( slideTitle, 1, 1 ); connect( slideTitle, TQT_SIGNAL( textChanged( const TQString & ) ), this, TQT_SLOT( slideTitleChanged( const TQString & ) ) ); slideTitles = new KListView( canvas ); - tqlayout->addMultiCellWidget( slideTitles, 2, 2, 0, 1 ); + layout->addMultiCellWidget( slideTitles, 2, 2, 0, 1 ); slideTitles->addColumn( i18n( "No." ) ); slideTitles->addColumn( i18n( "Slide Title" ) ); connect( slideTitles, TQT_SIGNAL( selectionChanged( TQListViewItem * ) ), this, @@ -977,7 +977,7 @@ void KPrWebPresentationWizard::setupPage5() sidebar->setPixmap(locate("data", "kpresenter/pics/webslideshow-sidebar.png")); TQWidget* canvas = new TQWidget( page5 ); - TQGridLayout *tqlayout = new TQGridLayout( canvas, 6, 2, + TQGridLayout *layout = new TQGridLayout( canvas, 6, 2, KDialog::marginHint(), KDialog::spacingHint() ); TQLabel *helptext = new TQLabel( canvas ); @@ -987,50 +987,50 @@ void KPrWebPresentationWizard::setupPage5() "the next slide, looping and the presence of headers."); helptext->setText(help); - tqlayout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); + layout->addMultiCellWidget( helptext, 0, 0, 0, 1 ); - tqlayout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); + layout->addMultiCell( new TQSpacerItem( 1, 50 ), 1, 1, 0, 1 ); TQLabel *label1 = new TQLabel( i18n("Advance after:"), canvas ); label1->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); TQWhatsThis::add( label1, i18n( "This selection allows you to specify " "the time between slides." ) ); - tqlayout->addWidget( label1, 2, 0 ); + layout->addWidget( label1, 2, 0 ); timeBetweenSlides = new KIntNumInput( webPres.getTimeBetweenSlides(), canvas ); timeBetweenSlides->setSpecialValueText(i18n( "Disabled" )); TQWhatsThis::add( timeBetweenSlides, i18n( "This selection allows you to specify " "the time between slides." ) ); - tqlayout->addWidget( timeBetweenSlides, 2, 1 ); + layout->addWidget( timeBetweenSlides, 2, 1 ); timeBetweenSlides->setSuffix( " seconds" ); timeBetweenSlides->setRange( 0, 900, 1 ); - tqlayout->addMultiCell( new TQSpacerItem( 1, 10 ), 1, 1, 0, 1 ); + layout->addMultiCell( new TQSpacerItem( 1, 10 ), 1, 1, 0, 1 ); writeHeader=new TQCheckBox( i18n("Write header to the slides"), canvas); TQWhatsThis::add( writeHeader, i18n( "This checkbox allows you to specify if you " "want to write the navigation buttons on top " "of the slide." ) ); writeHeader->setChecked( webPres.wantHeader() ); - tqlayout->addWidget( writeHeader, 3, 1); + layout->addWidget( writeHeader, 3, 1); writeFooter=new TQCheckBox( i18n("Write footer to the slides"), canvas); TQWhatsThis::add( writeFooter, i18n( "This checkbox allows you to specify if you " "want to write an imprint consisting on the author " "and the software used to create these slides." ) ); writeFooter->setChecked( webPres.wantFooter() ); - tqlayout->addWidget( writeFooter, 4, 1); + layout->addWidget( writeFooter, 4, 1); loopSlides=new TQCheckBox( i18n("Loop presentation"), canvas); TQWhatsThis::add( loopSlides, i18n( "This checkbox allows you to specify if you " "want the presentation to start again once " "the latest slide is reached." ) ); loopSlides->setChecked( webPres.wantLoopSlides() ); - tqlayout->addWidget( loopSlides, 5, 1); + layout->addWidget( loopSlides, 5, 1); TQSpacerItem* spacer = new TQSpacerItem( 1, 10, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); - tqlayout->addMultiCell( spacer, 5, 5, 0, 1 ); + layout->addMultiCell( spacer, 5, 5, 0, 1 ); addPage( page5, i18n( "Step 5: Options for Unattended Presentations" ) ); |