diff options
Diffstat (limited to 'kpresenter/KPrWebPresentation.h')
-rw-r--r-- | kpresenter/KPrWebPresentation.h | 110 |
1 files changed, 56 insertions, 54 deletions
diff --git a/kpresenter/KPrWebPresentation.h b/kpresenter/KPrWebPresentation.h index 873c4927..d5ffae15 100644 --- a/kpresenter/KPrWebPresentation.h +++ b/kpresenter/KPrWebPresentation.h @@ -23,8 +23,8 @@ #include <kwizard.h> -#include <qdialog.h> -#include <qvaluelist.h> +#include <tqdialog.h> +#include <tqvaluelist.h> class KPrDocument; @@ -37,35 +37,35 @@ class KIntNumInput; class KLineEdit; class KComboBox; -class QVBox; -class QHBox; +class TQVBox; +class TQHBox; -class QListViewItem; -class QCloseEvent; +class TQListViewItem; +class TQCloseEvent; class KProgress; -class QLabel; +class TQLabel; -class QCheckBox; +class TQCheckBox; class KPrWebPresentation { public: KPrWebPresentation( KPrDocument *_doc, KPrView *_view ); - KPrWebPresentation( const QString &_config, KPrDocument *_doc, KPrView *_view ); + KPrWebPresentation( const TQString &_config, KPrDocument *_doc, KPrView *_view ); KPrWebPresentation( const KPrWebPresentation &webPres ); - void setAuthor( const QString &_author ) + void setAuthor( const TQString &_author ) { author = _author; } - void setEMail( const QString &_email ) + void setEMail( const TQString &_email ) { email = _email; } - void setTitle( const QString &_title ) + void setTitle( const TQString &_title ) { title = _title; } - void setBackColor( const QColor &_backColor ) + void setBackColor( const TQColor &_backColor ) { backColor = _backColor; } - void setTitleColor( const QColor &_titleColor ) + void setTitleColor( const TQColor &_titleColor ) { titleColor = _titleColor; } - void setTextColor( const QColor &_textColor ) + void setTextColor( const TQColor &_textColor ) { textColor = _textColor; } void setXML( bool _xml ) { xml = _xml; } @@ -75,43 +75,43 @@ public: { m_bWriteFooter = _writeFooter; } void setLoopSlides( bool _loopSlides ) { m_bLoopSlides = _loopSlides; } - void setPath( const QString &_path ) + void setPath( const TQString &_path ) { path = _path; } void setZoom( int _zoom ) { zoom = _zoom; } void setTimeBetweenSlides( int _timeBetweenSlides ) { timeBetweenSlides = _timeBetweenSlides; } // PAU - void setEncoding( const QString &_encoding ) { m_encoding = _encoding; } - - QString getAuthor() const { return author; } - QString getEmail() const { return email; } - QString getTitle() const { return title; } - QColor getBackColor() const { return backColor; } - QColor getTitleColor() const { return titleColor; } - QColor getTextColor() const { return textColor; } + void setEncoding( const TQString &_encoding ) { m_encoding = _encoding; } + + TQString getAuthor() const { return author; } + TQString getEmail() const { return email; } + TQString getTitle() const { return title; } + TQColor getBackColor() const { return backColor; } + TQColor getTitleColor() const { return titleColor; } + TQColor getTextColor() const { return textColor; } bool isXML() const { return xml; } bool wantHeader() const { return m_bWriteHeader; } bool wantFooter() const { return m_bWriteFooter; } bool wantLoopSlides() const { return m_bLoopSlides; } - QString getPath() const { return path; } + TQString getPath() const { return path; } int getZoom() const { return zoom; } int getTimeBetweenSlides() const { return timeBetweenSlides; } // PAU - QString getEncoding() const { return m_encoding; } + TQString getEncoding() const { return m_encoding; } struct SlideInfo { int pageNumber; /* 0-based */ - QString slideTitle; + TQString slideTitle; }; // Each entry in this list is a page (number+title). // This allows to skip pages. - QValueList<SlideInfo> getSlideInfos() const { return slideInfos; } + TQValueList<SlideInfo> getSlideInfos() const { return slideInfos; } - void setSlideTitle( int i, const QString &slideTitle ) + void setSlideTitle( int i, const TQString &slideTitle ) { slideInfos[i].slideTitle = slideTitle; } - void setConfig( const QString &_config ) + void setConfig( const TQString &_config ) { config = _config; } - QString getConfig() const { return config; } + TQString getConfig() const { return config; } void loadConfig(); void saveConfig(); @@ -128,33 +128,34 @@ public: protected: void init(); - QString escapeHtmlText( QTextCodec *codec, const QString& strText ) const; - void writeStartOfHeader(QTextStream& streamOut, QTextCodec *codec, - const QString& subtitle, const QString& dest ); + TQString escapeHtmlText( TQTextCodec *codec, const TQString& strText ) const; + void writeStartOfHeader(TQTextStream& streamOut, TQTextCodec *codec, + const TQString& subtitle, const TQString& dest ); KPrDocument *doc; KPrView *view; - QString config; - QString author, title, email; - QValueList<SlideInfo> slideInfos; - QColor backColor, titleColor, textColor; - QString path; + TQString config; + TQString author, title, email; + TQValueList<SlideInfo> slideInfos; + TQColor backColor, titleColor, textColor; + TQString path; bool xml; bool m_bWriteHeader, m_bWriteFooter, m_bLoopSlides; int timeBetweenSlides; int zoom; - QString m_encoding; + TQString m_encoding; }; class KPrWebPresentationWizard : public KWizard { Q_OBJECT + TQ_OBJECT public: - KPrWebPresentationWizard( const QString &_config, KPrDocument *_doc, KPrView *_view ); + KPrWebPresentationWizard( const TQString &_config, KPrDocument *_doc, KPrView *_view ); ~KPrWebPresentationWizard(); - static void createWebPresentation( const QString &_config, KPrDocument *_doc, KPrView *_view ); + static void createWebPresentation( const TQString &_config, KPrDocument *_doc, KPrView *_view ); protected: @@ -164,15 +165,15 @@ protected: void setupPage4(); void setupPage5(); // PAU - void closeEvent( QCloseEvent *e ); + void closeEvent( TQCloseEvent *e ); - QString config; + TQString config; KPrDocument *doc; KPrView *view; KPrWebPresentation webPres; - QHBox *page1, *page2, *page3, *page4, *page5; // PAU - QCheckBox *writeHeader, *writeFooter, *loopSlides; // PAU + TQHBox *page1, *page2, *page3, *page4, *page5; // PAU + TQCheckBox *writeHeader, *writeFooter, *loopSlides; // PAU KLineEdit *author, *title, *email; KColorButton *textColor, *titleColor, *backColor; KComboBox *encoding, *doctype; @@ -184,15 +185,16 @@ protected: protected slots: virtual void finish(); void pageChanged(); - void slotChoosePath(const QString &); - void slideTitleChanged( const QString & ); - void slideTitleChanged( QListViewItem * ); + void slotChoosePath(const TQString &); + void slideTitleChanged( const TQString & ); + void slideTitleChanged( TQListViewItem * ); }; -class KPrWebPresentationCreateDialog : public QDialog +class KPrWebPresentationCreateDialog : public TQDialog { Q_OBJECT + TQ_OBJECT public: KPrWebPresentationCreateDialog( KPrDocument *_doc, KPrView *_view, const KPrWebPresentation &_webPres ); @@ -209,16 +211,16 @@ public: protected: void setupGUI(); - void resizeEvent( QResizeEvent *e ); + void resizeEvent( TQResizeEvent *e ); KPrView *view; KPrDocument *doc; KPrWebPresentation webPres; KProgress *progressBar; - QLabel *step1, *step2, *step3, *step4, *step5; - QPushButton *bDone, *bSave; - QVBox *back; + TQLabel *step1, *step2, *step3, *step4, *step5; + TQPushButton *bDone, *bSave; + TQVBox *back; protected slots: void saveConfig(); |