diff options
Diffstat (limited to 'lib/kofficeui/KoInsertLink.h')
-rw-r--r-- | lib/kofficeui/KoInsertLink.h | 101 |
1 files changed, 53 insertions, 48 deletions
diff --git a/lib/kofficeui/KoInsertLink.h b/lib/kofficeui/KoInsertLink.h index 79d5eeca..cb10a7f0 100644 --- a/lib/kofficeui/KoInsertLink.h +++ b/lib/kofficeui/KoInsertLink.h @@ -22,27 +22,28 @@ #include <kdialogbase.h> #include <koffice_export.h> -class QLineEdit; +class TQLineEdit; class KURLRequester; namespace KOfficePrivate { /** * @internal */ -class internetLinkPage : public QWidget +class internetLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - internetLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); + internetLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); private: - QString createInternetLink(); - QLineEdit* m_linkName, *m_hrefName; + TQString createInternetLink(); + TQLineEdit* m_linkName, *m_hrefName; private slots: - void textChanged ( const QString & ); + void textChanged ( const TQString & ); signals: void textChanged(); }; @@ -50,22 +51,23 @@ signals: /** * @internal */ -class bookmarkLinkPage : public QWidget +class bookmarkLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - bookmarkLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); - void setBookmarkList(const QStringList &bkmlist); + bookmarkLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); + void setBookmarkList(const TQStringList &bkmlist); private: - QString createBookmarkLink(); - QLineEdit* m_linkName; - QComboBox *m_hrefName; + TQString createBookmarkLink(); + TQLineEdit* m_linkName; + TQComboBox *m_hrefName; private slots: - void textChanged ( const QString & ); + void textChanged ( const TQString & ); signals: void textChanged(); }; @@ -73,21 +75,22 @@ signals: /** * @internal */ -class mailLinkPage : public QWidget +class mailLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - mailLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); + mailLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); private slots: - void textChanged ( const QString & ); + void textChanged ( const TQString & ); private: - QString createMailLink(); - QLineEdit* m_linkName, *m_hrefName; + TQString createMailLink(); + TQLineEdit* m_linkName, *m_hrefName; signals: void textChanged(); }; @@ -95,22 +98,23 @@ signals: /** * @internal */ -class fileLinkPage : public QWidget +class fileLinkPage : public TQWidget { Q_OBJECT + TQ_OBJECT public: - fileLinkPage( QWidget *parent = 0, char *name = 0 ); - QString linkName()const; - QString hrefName(); - void setLinkName(const QString & _name); - void setHrefName(const QString &_name); + fileLinkPage( TQWidget *tqparent = 0, char *name = 0 ); + TQString linkName()const; + TQString hrefName(); + void setLinkName(const TQString & _name); + void setHrefName(const TQString &_name); private slots: - void textChanged ( const QString & ); - void slotSelectRecentFile( const QString & ); + void textChanged ( const TQString & ); + void slotSelectRecentFile( const TQString & ); private: - QString createFileLink(); - QLineEdit* m_linkName; + TQString createFileLink(); + TQLineEdit* m_linkName; KURLRequester* m_hrefName; signals: void textChanged(); @@ -123,26 +127,27 @@ signals: class KOFFICEUI_EXPORT KoInsertLinkDia : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - KoInsertLinkDia( QWidget *parent, const char *name = 0,bool displayBookmarkLink=true ); - static bool createLinkDia(QString & linkName, QString & hrefName, const QStringList& bkmlist, bool displayBookmarkLink = true, - QWidget* parent = 0, const char* name = 0); + KoInsertLinkDia( TQWidget *tqparent, const char *name = 0,bool displayBookmarkLink=true ); + static bool createLinkDia(TQString & linkName, TQString & hrefName, const TQStringList& bkmlist, bool displayBookmarkLink = true, + TQWidget* tqparent = 0, const char* name = 0); //internal - QString linkName() const; - QString hrefName() const; - void setHrefLinkName(const QString &_href, const QString &_link, const QStringList & bkmlist); + TQString linkName() const; + TQString hrefName() const; + void setHrefLinkName(const TQString &_href, const TQString &_link, const TQStringList & bkmlist); protected slots: virtual void slotOk(); void slotTextChanged ( ); - void tabChanged(QWidget *); + void tabChanged(TQWidget *); private: KOfficePrivate::fileLinkPage *fileLink; KOfficePrivate::mailLinkPage *mailLink; KOfficePrivate::internetLinkPage *internetLink; KOfficePrivate::bookmarkLinkPage *bookmarkLink; - QString currentText; + TQString currentText; }; #endif |