summaryrefslogtreecommitdiffstats
path: root/src/kchmviewwindow.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
commit25794f504692e5a36c490438814e9dfda8aaa2dd (patch)
tree8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kchmviewwindow.h
parent35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff)
downloadkchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz
kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kchmviewwindow.h')
-rw-r--r--src/kchmviewwindow.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/kchmviewwindow.h b/src/kchmviewwindow.h
index a114eac..dd49674 100644
--- a/src/kchmviewwindow.h
+++ b/src/kchmviewwindow.h
@@ -31,27 +31,27 @@
class KCHMViewWindow
{
public:
- KCHMViewWindow ( QTabWidget * parent );
+ KCHMViewWindow ( TQTabWidget * tqparent );
virtual ~KCHMViewWindow();
//! Open a page from current chm archive
- bool openUrl (const QString& url );
+ bool openUrl (const TQString& url );
- QString getBaseUrl() const { return m_base_url; }
- QString getOpenedPage() const { return m_openedPage; }
- QString getNewTabLink() const { return m_newTabLinkKeeper; }
- QString makeURLabsolute ( const QString &url, bool set_as_base = true );
+ TQString getBaseUrl() const { return m_base_url; }
+ TQString getOpenedPage() const { return m_openedPage; }
+ TQString getNewTabLink() const { return m_newTabLinkKeeper; }
+ TQString makeURLabsolute ( const TQString &url, bool set_as_base = true );
public:
// virtual members, which should be implemented by viewers
//! Invalidate current view, doing all the cleanups etc.
- virtual void invalidate();
+ virtual void tqinvalidate();
//! Popups the print dialog, and prints the current page on the printer.
virtual bool printCurrentPage() = 0;
- //! Continues the find-in-page search forward or backward
- virtual void searchWord( const QString & word, bool forward = true, bool casesensitive = false ) = 0;
+ //! Continues the tqfind-in-page search forward or backward
+ virtual void searchWord( const TQString & word, bool forward = true, bool casesensitive = false ) = 0;
//! Return current ZoomFactor.
virtual int getZoomFactor() const = 0;
@@ -62,8 +62,8 @@ public:
//! Relatively changes ZoomFactor. Most common values are -1 and 1.
virtual void addZoomFactor (int value) = 0;
- virtual QObject * getQObject() = 0;
- virtual QWidget * getQWidget() = 0;
+ virtual TQObject * getTQObject() = 0;
+ virtual TQWidget * getTQWidget() = 0;
/*!
* Return current scrollbar position in view window. Saved on program exit.
@@ -82,7 +82,7 @@ public:
virtual void clipCopy() = 0;
//! Returns the window title
- virtual QString getTitle() const;
+ virtual TQString getTitle() const;
//! Navigation stuff
virtual void navigateBack();
@@ -91,15 +91,15 @@ public:
//! Navigation auxiliary stuff
virtual void setHistoryMaxSize (unsigned int size) { m_historyMaxSize = size; }
- virtual void addNavigationHistory( const QString & url, int scrollpos );
+ virtual void addNavigationHistory( const TQString & url, int scrollpos );
virtual void updateNavigationToolbar();
/*!
* Used by contents window (and probably by other windows in future) to show
* context menu in listviews. Put here to futher reuse code in index and search windows.
*/
- KQPopupMenu * createListItemContextMenu ( QWidget * w );
- void setTabKeeper ( const QString& link );
+ KTQPopupMenu * createListItemContextMenu ( TQWidget * w );
+ void setTabKeeper ( const TQString& link );
protected: /* signals */
@@ -108,49 +108,49 @@ protected: /* signals */
* If linkClicked() return false, the current page should NOT change.
* Otherwise it should be changed to the new link value.
*/
- virtual void signalLinkClicked ( const QString & newlink, bool& follow_link ) = 0;
+ virtual void signalLinkClicked ( const TQString & newlink, bool& follow_link ) = 0;
protected:
- virtual bool openPage ( const QString& url ) = 0;
- virtual void handleStartPageAsImage( QString& link );
+ virtual bool openPage ( const TQString& url ) = 0;
+ virtual void handleStartPageAsImage( TQString& link );
- KQPopupMenu * getContextMenu( const QString& link, QWidget * parent );
- KQPopupMenu * createStandardContextMenu( QWidget * parent );
+ KTQPopupMenu * getContextMenu( const TQString& link, TQWidget * tqparent );
+ KTQPopupMenu * createStandardContextMenu( TQWidget * tqparent );
//! History
class KCHMUrlHistory
{
public:
KCHMUrlHistory() { scrollbarpos = 0; }
- KCHMUrlHistory( const QString& _url, int _scrollbarpos )
+ KCHMUrlHistory( const TQString& _url, int _scrollbarpos )
: url(_url), scrollbarpos(_scrollbarpos) {};
- const QString& getUrl() const { return url; }
+ const TQString& getUrl() const { return url; }
int getScrollPosition() const { return scrollbarpos; }
void setScrollPosition( int pos ) { scrollbarpos = pos; }
private:
- QString url;
+ TQString url;
int scrollbarpos;
};
unsigned int m_historyMaxSize;
unsigned int m_historyCurrentPos;
- QValueList<KCHMUrlHistory> m_history;
+ TQValueList<KCHMUrlHistory> m_history;
- KQPopupMenu * m_contextMenu;
- KQPopupMenu * m_contextMenuLink;
+ KTQPopupMenu * m_contextMenu;
+ KTQPopupMenu * m_contextMenuLink;
// This member keeps a "open new tab" link between getContextMenu() call and appropriate
// slot call
- QString m_newTabLinkKeeper;
+ TQString m_newTabLinkKeeper;
- QString m_openedPage;
- QString m_lastOpenedPage;
- QString m_base_url;
+ TQString m_openedPage;
+ TQString m_lastOpenedPage;
+ TQString m_base_url;
- QTabWidget * m_parentTabWidget;
+ TQTabWidget * m_parentTabWidget;
};
#endif