summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt2
-rw-r--r--src/Makefile.am39
-rw-r--r--src/config.h.in255
-rw-r--r--src/kchmbookmarkwindow.cpp24
-rw-r--r--src/kchmbookmarkwindow.h2
-rw-r--r--src/kchmcontentswindow.cpp6
-rw-r--r--src/kchmcontentswindow.h2
-rw-r--r--src/kchmdialogchooseurlfromlist.cpp8
-rw-r--r--src/kchmdialogchooseurlfromlist.h2
-rw-r--r--src/kchmindexwindow.cpp16
-rw-r--r--src/kchmindexwindow.h2
-rw-r--r--src/kchmmainwindow.cpp54
-rw-r--r--src/kchmmainwindow.h2
-rw-r--r--src/kchmnavtoolbar.cpp6
-rw-r--r--src/kchmnavtoolbar.h2
-rw-r--r--src/kchmsearchengine.cpp4
-rw-r--r--src/kchmsearchengine.h2
-rw-r--r--src/kchmsearchengine_impl.cpp8
-rw-r--r--src/kchmsearchengine_impl.h2
-rw-r--r--src/kchmsearchtoolbar.cpp42
-rw-r--r--src/kchmsearchtoolbar.h2
-rw-r--r--src/kchmsearchwindow.cpp18
-rw-r--r--src/kchmsearchwindow.h4
-rw-r--r--src/kchmsetupdialog.ui48
-rw-r--r--src/kchmsetupdialog_impl.h2
-rw-r--r--src/kchmviewwindow.cpp12
-rw-r--r--src/kchmviewwindow_qtextbrowser.cpp2
-rw-r--r--src/kchmviewwindow_qtextbrowser.h6
-rw-r--r--src/kchmviewwindowmgr.cpp12
-rw-r--r--src/kchmviewwindowmgr.h2
-rw-r--r--src/main.cpp2
-rw-r--r--src/pics/Makefile.am2
-rw-r--r--src/tde/Makefile.am8
-rw-r--r--src/tde/kchmdcopiface.h2
-rw-r--r--src/tde/kchmdcopiface_skel.cpp98
-rw-r--r--src/tde/kchmviewwindow_tdehtmlpart.cpp8
-rw-r--r--src/tde/kchmviewwindow_tdehtmlpart.h2
37 files changed, 133 insertions, 577 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index d045a52..85ba4aa 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,3 @@
##### create translation templates ##############
-tde_l10n_create_template( "kchmviewer" )
+tde_l10n_create_template( "messages/kchmviewer" )
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index fc7e5d3..0000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,39 +0,0 @@
-if AMC_USE_KDE
-LIB_KDEEXTRADIR = tde
-LIB_KDEEXTRA = tde/libkdeextra.a
-endif
-
-bin_PROGRAMS = kchmviewer
-kchmviewer_SOURCES = iconstorage.cpp kchmbookmarkwindow.cpp kchmconfig.cpp \
- kchmindexwindow.cpp kchmmainwindow.cpp kchmsearchtoolbar.cpp kchmsearchwindow.cpp \
- kchmsettings.cpp kchmsourcefactory.cpp kchmtreeviewitem.cpp kchmviewwindow.cpp main.cpp \
- kchmdialogchooseurlfromlist.cpp tde-tqt.cpp kchmviewwindow_qtextbrowser.cpp \
- kchmsetupdialog.ui kqtempfile.cpp kchmnavtoolbar.cpp kchmviewwindowmgr.cpp \
- kchmkeyeventfilter.cpp kchmcontentswindow.cpp kchmsearchengine_impl.cpp \
- kchmsearchengine.cpp kchmsetupdialog_impl.cpp
-
-# set the include path found by configure
-INCLUDES = $(TQT_INCLUDES) $(CHM_INCLUDES) $(KDE_INCLUDES) $(LIBCHMFILE_INCLUDES)
-
-SUBDIRS = $(LIB_KDEEXTRADIR) . pics
-
-# the library search path.
-kchmviewer_LDADD = $(top_builddir)/lib/libchmfile/libchmfile.a $(LIB_KDEEXTRA) \
- $(CHM_LIBS) $(LIB_TQT) $(LIB_TDEUI) $(LIB_TDEHTML) $(LIB_TDEPARTS) $(LIB_TDEIO)
-kchmviewer_LDFLAGS = $(QT_LDFLAGS) $(KDE_LDFLAGS) $(LIB_TDECORE) -lDCOP $(LIB_TDEUI) $(LIB_TDEPARTS) $(LIB_TDEIO) -L../lib/chmlib/
-
-METASOURCES = AUTO
-KDE_OPTIONS = qtonly
-KDE_ICON = AUTO
-noinst_HEADERS = kchmsettings.h forwarddeclarations.h kchmsourcefactory.h \
- iconstorage.h kchmbookmarkwindow.h kchmconfig.h kchmtreeviewitem.h \
- kchmdialogchooseurlfromlist.h kchmviewwindow.h kchmindexwindow.h \
- kchmmainwindow.h kchmviewwindow_qtextbrowser.h kchmsearchtoolbar.h tde-tqt.h \
- kchmsearchwindow.h kqtempfile.h kqrunprocess.h kchmnavtoolbar.h kchmviewwindowmgr.h \
- kchmkeyeventfilter.h kchmcontentswindow.h kchmlistitemtooltip.h kchmsearchengine_impl.h \
- kchmsearchengine.h kchmsetupdialog_impl.h
-
-messages: rc.cpp
- $(EXTRACTRC) *.rc > rc.cpp
- $(EXTRACTRC) *.ui >> rc.cpp
- $(XGETTEXT) rc.cpp *.h *.cpp -o $(podir)/kchmviewer.pot
diff --git a/src/config.h.in b/src/config.h.in
deleted file mode 100644
index f0c2ac9..0000000
--- a/src/config.h.in
+++ /dev/null
@@ -1,255 +0,0 @@
-/* src/config.h.in. Generated from configure.in by autoheader. */
-
-/* Application version as integer */
-#undef APP_INT_VERSION
-
-/* Application name */
-#undef APP_NAME
-
-/* Application version as text */
-#undef APP_VERSION
-
-/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
-#undef HAVE_CARBON_CARBON_H
-
-/* Define if you have the CoreAudio API */
-#undef HAVE_COREAUDIO
-
-/* Define to 1 if you have the <crt_externs.h> header file. */
-#undef HAVE_CRT_EXTERNS_H
-
-/* Defines if your system has the crypt function */
-#undef HAVE_CRYPT
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define if you have libjpeg */
-#undef HAVE_LIBJPEG
-
-/* Define if you have libpng */
-#undef HAVE_LIBPNG
-
-/* Define if you have a working libpthread (will enable threaded code) */
-#undef HAVE_LIBPTHREAD
-
-/* Define if you have libz */
-#undef HAVE_LIBZ
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define if your system needs _NSGetEnviron to set up the environment */
-#undef HAVE_NSGETENVIRON
-
-/* Define if you have res_init */
-#undef HAVE_RES_INIT
-
-/* Define if you have the res_init prototype */
-#undef HAVE_RES_INIT_PROTO
-
-/* Define if you have a STL implementation by SGI */
-#undef HAVE_SGI_STL
-
-/* Define to 1 if you have the `snprintf' function. */
-#undef HAVE_SNPRINTF
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define if you have strlcat */
-#undef HAVE_STRLCAT
-
-/* Define if you have the strlcat prototype */
-#undef HAVE_STRLCAT_PROTO
-
-/* Define if you have strlcpy */
-#undef HAVE_STRLCPY
-
-/* Define if you have the strlcpy prototype */
-#undef HAVE_STRLCPY_PROTO
-
-/* Define to 1 if you have the <sys/bitypes.h> header file. */
-#undef HAVE_SYS_BITYPES_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to 1 if you have the `vsnprintf' function. */
-#undef HAVE_VSNPRINTF
-
-/* Suffix for lib directories */
-#undef KDELIBSUFF
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* The size of `char *', as computed by sizeof. */
-#undef SIZEOF_CHAR_P
-
-/* The size of `int', as computed by sizeof. */
-#undef SIZEOF_INT
-
-/* The size of `long', as computed by sizeof. */
-#undef SIZEOF_LONG
-
-/* The size of `short', as computed by sizeof. */
-#undef SIZEOF_SHORT
-
-/* The size of `size_t', as computed by sizeof. */
-#undef SIZEOF_SIZE_T
-
-/* The size of `unsigned long', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_LONG
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* use builtin chmlib */
-#undef USE_BUILTIN_CHMLIB
-
-/* use KDE support */
-#undef USE_KDE
-
-/* Version number of package */
-#undef VERSION
-
-/* Defined if compiling without arts */
-#undef WITHOUT_ARTS
-
-/* Define to 1 if the X Window System is missing or not being used. */
-#undef X_DISPLAY_MISSING
-
-/*
- * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
- * headers and I'm too lazy to write a configure test as long as only
- * unixware is related
- */
-#ifdef _UNIXWARE
-#define HAVE_BOOLEAN
-#endif
-
-
-
-/*
- * AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
- * that defines bzero.
- */
-
-#if defined(_AIX)
-#include <strings.h>
-#endif
-
-
-
-#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
-# include <sys/time.h>
-# include <crt_externs.h>
-# define environ (*_NSGetEnviron())
-#endif
-
-
-
-#if !defined(HAVE_RES_INIT_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-int res_init(void);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_STRLCAT_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-unsigned long strlcat(char*, const char*, unsigned long);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-#if !defined(HAVE_STRLCPY_PROTO)
-#ifdef __cplusplus
-extern "C" {
-#endif
-unsigned long strlcpy(char*, const char*, unsigned long);
-#ifdef __cplusplus
-}
-#endif
-#endif
-
-
-
-/*
- * On HP-UX, the declaration of vsnprintf() is needed every time !
- */
-
-#if !defined(HAVE_VSNPRINTF) || defined(hpux)
-#if __STDC__
-#include <stdarg.h>
-#include <stdlib.h>
-#else
-#include <varargs.h>
-#endif
-#ifdef __cplusplus
-extern "C"
-#endif
-int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
-#ifdef __cplusplus
-extern "C"
-#endif
-int snprintf(char *str, size_t n, char const *fmt, ...);
-#endif
-
-
-
-#if defined(__SVR4) && !defined(__svr4__)
-#define __svr4__ 1
-#endif
-
-
-/* type to use in place of socklen_t if not defined */
-#undef kde_socklen_t
-
-/* type to use in place of socklen_t if not defined (deprecated, use
- kde_socklen_t) */
-#undef ksize_t
diff --git a/src/kchmbookmarkwindow.cpp b/src/kchmbookmarkwindow.cpp
index a95953c..dc1b3e4 100644
--- a/src/kchmbookmarkwindow.cpp
+++ b/src/kchmbookmarkwindow.cpp
@@ -50,29 +50,29 @@ KCHMBookmarkWindow::KCHMBookmarkWindow(TQWidget *parent, const char *name)
hlayout->addWidget (del);
connect( m_bookmarkList,
- TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ),
+ TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ),
this,
- TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
+ TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
connect( add,
- TQT_SIGNAL( clicked () ),
+ TQ_SIGNAL( clicked () ),
this,
- TQT_SLOT( onAddBookmarkPressed( ) ) );
+ TQ_SLOT( onAddBookmarkPressed( ) ) );
connect( del,
- TQT_SIGNAL( clicked () ),
+ TQ_SIGNAL( clicked () ),
this,
- TQT_SLOT( onDelBookmarkPressed( ) ) );
+ TQ_SLOT( onDelBookmarkPressed( ) ) );
connect( edit,
- TQT_SIGNAL( clicked () ),
+ TQ_SIGNAL( clicked () ),
this,
- TQT_SLOT( onEditBookmarkPressed( ) ) );
+ TQ_SLOT( onEditBookmarkPressed( ) ) );
connect( m_bookmarkList,
- TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
+ TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this,
- TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
+ TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
m_menuBookmarks = 0;
m_contextMenu = 0;
@@ -198,10 +198,10 @@ void KCHMBookmarkWindow::createMenu( KCHMMainWindow * parent )
m_menuBookmarks = new KTQPopupMenu( parent );
parent->menuBar()->insertItem( i18n( "&Bookmarks"), m_menuBookmarks );
- m_menuBookmarks->insertItem( i18n( "&Add bookmark"), this, TQT_SLOT(onAddBookmarkPressed()), CTRL+Key_B );
+ m_menuBookmarks->insertItem( i18n( "&Add bookmark"), this, TQ_SLOT(onAddBookmarkPressed()), CTRL+Key_B );
m_menuBookmarks->insertSeparator();
- connect( m_menuBookmarks, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onBookmarkSelected(int) ));
+ connect( m_menuBookmarks, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onBookmarkSelected(int) ));
}
void KCHMBookmarkWindow::onBookmarkSelected( int bookmark )
diff --git a/src/kchmbookmarkwindow.h b/src/kchmbookmarkwindow.h
index 2a79b49..40d1c19 100644
--- a/src/kchmbookmarkwindow.h
+++ b/src/kchmbookmarkwindow.h
@@ -31,7 +31,7 @@
*/
class KCHMBookmarkWindow : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMBookmarkWindow(TQWidget *parent = 0, const char *name = 0);
diff --git a/src/kchmcontentswindow.cpp b/src/kchmcontentswindow.cpp
index 200df61..eeaef20 100644
--- a/src/kchmcontentswindow.cpp
+++ b/src/kchmcontentswindow.cpp
@@ -42,11 +42,11 @@ KCHMContentsWindow::KCHMContentsWindow(TQWidget *parent, const char *name)
header()->hide();
setShowToolTips( false );
- connect( this, TQT_SIGNAL( onItem ( TQListViewItem * ) ), this, TQT_SLOT( slotOnItem( TQListViewItem * ) ) );
+ connect( this, TQ_SIGNAL( onItem ( TQListViewItem * ) ), this, TQ_SLOT( slotOnItem( TQListViewItem * ) ) );
connect( this,
- TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
+ TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this,
- TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
+ TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
new KCHMListItemTooltip( this );
diff --git a/src/kchmcontentswindow.h b/src/kchmcontentswindow.h
index 5c29956..83b27db 100644
--- a/src/kchmcontentswindow.h
+++ b/src/kchmcontentswindow.h
@@ -30,7 +30,7 @@
*/
class KCHMContentsWindow : public KQListView
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMContentsWindow( TQWidget *parent = 0, const char *name = 0 );
diff --git a/src/kchmdialogchooseurlfromlist.cpp b/src/kchmdialogchooseurlfromlist.cpp
index bb50a13..a6b7738 100644
--- a/src/kchmdialogchooseurlfromlist.cpp
+++ b/src/kchmdialogchooseurlfromlist.cpp
@@ -46,11 +46,11 @@ KCHMDialogChooseUrlFromList::KCHMDialogChooseUrlFromList(const TQStringList& url
hlayout->addWidget (bok);
hlayout->addWidget (bcancel);
- connect( m_urlsList, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
- connect( m_urlsList, TQT_SIGNAL( currentChanged ( TQListViewItem *) ), this, TQT_SLOT( onCurrentChanged ( TQListViewItem *) ) );
+ connect( m_urlsList, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ), this, TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
+ connect( m_urlsList, TQ_SIGNAL( currentChanged ( TQListViewItem *) ), this, TQ_SLOT( onCurrentChanged ( TQListViewItem *) ) );
- connect( bok, TQT_SIGNAL( clicked () ), this, TQT_SLOT( accept() ) );
- connect( bcancel, TQT_SIGNAL( clicked () ), this, TQT_SLOT( reject() ) );
+ connect( bok, TQ_SIGNAL( clicked () ), this, TQ_SLOT( accept() ) );
+ connect( bcancel, TQ_SIGNAL( clicked () ), this, TQ_SLOT( reject() ) );
m_acceptedurl = TQString();
}
diff --git a/src/kchmdialogchooseurlfromlist.h b/src/kchmdialogchooseurlfromlist.h
index afe44df..d972f96 100644
--- a/src/kchmdialogchooseurlfromlist.h
+++ b/src/kchmdialogchooseurlfromlist.h
@@ -30,7 +30,7 @@
*/
class KCHMDialogChooseUrlFromList : public TQDialog
{
-Q_OBJECT
+TQ_OBJECT
public:
KCHMDialogChooseUrlFromList (const TQStringList& urls, const TQStringList& titles, TQWidget* parent);
diff --git a/src/kchmindexwindow.cpp b/src/kchmindexwindow.cpp
index b678187..061ad86 100644
--- a/src/kchmindexwindow.cpp
+++ b/src/kchmindexwindow.cpp
@@ -52,24 +52,24 @@ KCHMIndexWindow::KCHMIndexWindow ( TQWidget * parent, const char * name, WFlags
layout->addWidget (m_indexList);
connect( m_indexFinder,
- TQT_SIGNAL( textChanged (const TQString &) ),
+ TQ_SIGNAL( textChanged (const TQString &) ),
this,
- TQT_SLOT( onTextChanged(const TQString &) ) );
+ TQ_SLOT( onTextChanged(const TQString &) ) );
connect( m_indexFinder,
- TQT_SIGNAL( returnPressed() ),
+ TQ_SIGNAL( returnPressed() ),
this,
- TQT_SLOT( onReturnPressed() ) );
+ TQ_SLOT( onReturnPressed() ) );
connect( m_indexList,
- TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ),
+ TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ),
this,
- TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
+ TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
connect( m_indexList,
- TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
+ TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this,
- TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
+ TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
m_indexListFilled = false;
m_lastSelectedItem = 0;
diff --git a/src/kchmindexwindow.h b/src/kchmindexwindow.h
index be2184f..69ce64c 100644
--- a/src/kchmindexwindow.h
+++ b/src/kchmindexwindow.h
@@ -32,7 +32,7 @@
*/
class KCHMIndexWindow : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMIndexWindow ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
diff --git a/src/kchmmainwindow.cpp b/src/kchmmainwindow.cpp
index 157b7d4..f6391d2 100644
--- a/src/kchmmainwindow.cpp
+++ b/src/kchmmainwindow.cpp
@@ -109,12 +109,12 @@ KCHMMainWindow::KCHMMainWindow()
#endif /* defined (ENABLE_AUTOTEST_SUPPORT) */
TQAccel * accel = new TQAccel( this );
- accel->connectItem ( accel->insertItem ( Key_F11 ), this, TQT_SLOT ( slotToggleFullScreenMode() ) );
- accel->connectItem ( accel->insertItem ( CTRL + Key_1), this, TQT_SLOT ( slotActivateContentTab() ) );
- accel->connectItem ( accel->insertItem ( CTRL + Key_2), this, TQT_SLOT ( slotActivateIndexTab() ) );
- accel->connectItem ( accel->insertItem ( CTRL + Key_3), this, TQT_SLOT ( slotActivateSearchTab() ) );
- accel->connectItem ( accel->insertItem ( CTRL + Key_4), this, TQT_SLOT ( slotActivateBookmarkTab() ) );
- accel->connectItem ( accel->insertItem ( Key_F3 ), m_searchToolbar, TQT_SLOT ( onBtnNextSearchResult() ) );
+ accel->connectItem ( accel->insertItem ( Key_F11 ), this, TQ_SLOT ( slotToggleFullScreenMode() ) );
+ accel->connectItem ( accel->insertItem ( CTRL + Key_1), this, TQ_SLOT ( slotActivateContentTab() ) );
+ accel->connectItem ( accel->insertItem ( CTRL + Key_2), this, TQ_SLOT ( slotActivateIndexTab() ) );
+ accel->connectItem ( accel->insertItem ( CTRL + Key_3), this, TQ_SLOT ( slotActivateSearchTab() ) );
+ accel->connectItem ( accel->insertItem ( CTRL + Key_4), this, TQ_SLOT ( slotActivateBookmarkTab() ) );
+ accel->connectItem ( accel->insertItem ( Key_F3 ), m_searchToolbar, TQ_SLOT ( onBtnNextSearchResult() ) );
statusBar()->show();
setIcon( *gIconStorage.getApplicationIcon() );
@@ -474,7 +474,7 @@ void KCHMMainWindow::setupToolbarsAndMenu( )
i18n( "Open File" ),
TQString(),
this,
- TQT_SLOT( slotOpenMenuItemActivated() ),
+ TQ_SLOT( slotOpenMenuItemActivated() ),
toolbar);
TQString fileOpenText = i18n( "Click this button to open an existing chm file." );
@@ -485,7 +485,7 @@ void KCHMMainWindow::setupToolbarsAndMenu( )
i18n( "Print File" ),
TQString(),
this,
- TQT_SLOT( slotPrintMenuItemActivated() ),
+ TQ_SLOT( slotPrintMenuItemActivated() ),
toolbar);
TQString filePrintText = i18n( "Click this button to print the current page");
@@ -496,30 +496,30 @@ void KCHMMainWindow::setupToolbarsAndMenu( )
menuBar()->insertItem( i18n( "&File"), file );
int id;
- id = file->insertItem ( iconFileOpen, i18n( "&Open..."), this, TQT_SLOT( slotOpenMenuItemActivated() ), CTRL+Key_O );
+ id = file->insertItem ( iconFileOpen, i18n( "&Open..."), this, TQ_SLOT( slotOpenMenuItemActivated() ), CTRL+Key_O );
file->TQMenuData::setWhatsThis( id, fileOpenText );
- id = file->insertItem( iconFilePrint, i18n( "&Print..."), this, TQT_SLOT( slotPrintMenuItemActivated() ), CTRL+Key_P );
+ id = file->insertItem( iconFilePrint, i18n( "&Print..."), this, TQ_SLOT( slotPrintMenuItemActivated() ), CTRL+Key_P );
file->TQMenuData::setWhatsThis( id, filePrintText );
file->insertSeparator();
- id = file->insertItem ( i18n( "E&xtract CHM content..."), this, TQT_SLOT( slotExtractCHM() ) );
+ id = file->insertItem ( i18n( "E&xtract CHM content..."), this, TQ_SLOT( slotExtractCHM() ) );
file->TQMenuData::setWhatsThis( id, i18n( "Click this button to extract the whole CHM file content into a specific directory") );
file->insertSeparator();
m_menuHistory = new KTQPopupMenu( file );
- connect ( m_menuHistory, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( slotHistoryMenuItemActivated(int) ));
+ connect ( m_menuHistory, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( slotHistoryMenuItemActivated(int) ));
file->insertItem( i18n( "&Recent files"), m_menuHistory );
file->insertSeparator();
- file->insertItem( i18n( "&Quit"), tqApp, TQT_SLOT( closeAllWindows() ), CTRL+Key_Q );
+ file->insertItem( i18n( "&Quit"), tqApp, TQ_SLOT( closeAllWindows() ), CTRL+Key_Q );
KTQPopupMenu * menu_edit = new KTQPopupMenu( this );
menuBar()->insertItem( i18n( "&Edit"), menu_edit );
- menu_edit->insertItem ( i18n( "&Copy"), this, TQT_SLOT( slotBrowserCopy()), CTRL+Key_C );
- menu_edit->insertItem ( i18n( "&Select all"), this, TQT_SLOT( slotBrowserSelectAll()), CTRL+Key_A );
+ menu_edit->insertItem ( i18n( "&Copy"), this, TQ_SLOT( slotBrowserCopy()), CTRL+Key_C );
+ menu_edit->insertItem ( i18n( "&Select all"), this, TQ_SLOT( slotBrowserSelectAll()), CTRL+Key_A );
menu_edit->insertSeparator();
@@ -537,16 +537,16 @@ void KCHMMainWindow::setupToolbarsAndMenu( )
KTQPopupMenu * settings = new KTQPopupMenu( this );
menuBar()->insertItem( i18n( "&Settings"), settings );
- settings->insertItem( i18n( "&Change settings..."), this, TQT_SLOT( slotChangeSettingsMenuItemActivated() ));
+ settings->insertItem( i18n( "&Change settings..."), this, TQ_SLOT( slotChangeSettingsMenuItemActivated() ));
#if defined(USE_KDE)
TQPopupMenu *help = helpMenu( m_aboutDlgMenuText );
#else
KTQPopupMenu * help = new KTQPopupMenu( this );
- help->insertItem( i18n( "&About"), this, TQT_SLOT( slotAboutMenuItemActivated() ), Key_F1 );
- help->insertItem( i18n( "About &TQt"), this, TQT_SLOT( slotAboutQtMenuItemActivated() ));
+ help->insertItem( i18n( "&About"), this, TQ_SLOT( slotAboutMenuItemActivated() ), Key_F1 );
+ help->insertItem( i18n( "About &TQt"), this, TQ_SLOT( slotAboutQtMenuItemActivated() ));
help->insertSeparator();
- help->insertItem( i18n( "What's &This"), this, TQT_SLOT(whatsThis()), SHIFT+Key_F1 );
+ help->insertItem( i18n( "What's &This"), this, TQ_SLOT(whatsThis()), SHIFT+Key_F1 );
#endif
menuBar()->insertItem( i18n( "&Help"), help );
@@ -651,7 +651,7 @@ bool KCHMMainWindow::parseCmdLineArgs( )
exit (1);
}
else
- filename = TQSTring::fromLocal8Bit(tqApp->argv()[i]);
+ filename = TQString::fromLocal8Bit(tqApp->argv()[i]);
}
#endif
@@ -916,14 +916,14 @@ void KCHMMainWindow::showOrHideContextWindow( int tabindex )
// Handle clicking on m_contentsWindow element
connect( m_contentsWindow,
- TQT_SIGNAL( clicked( TQListViewItem* ) ),
+ TQ_SIGNAL( clicked( TQListViewItem* ) ),
this,
- TQT_SLOT( slotOnTreeClicked( TQListViewItem* ) ) );
+ TQ_SLOT( slotOnTreeClicked( TQListViewItem* ) ) );
connect( m_contentsWindow,
- TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
+ TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
this,
- TQT_SLOT( slotOnTreeDoubleClicked ( TQListViewItem *, const TQPoint &, int ) ) );
+ TQ_SLOT( slotOnTreeDoubleClicked ( TQListViewItem *, const TQPoint &, int ) ) );
m_tabWidget->insertTab (m_contentsWindow, i18n( "Contents" ), tabindex);
}
@@ -1260,7 +1260,7 @@ void KCHMMainWindow::runAutoTest()
else
m_autoteststate = STATE_OPEN_INDEX;
- TQTimer::singleShot (500, this, TQT_SLOT(runAutoTest()) );
+ TQTimer::singleShot (500, this, TQ_SLOT(runAutoTest()) );
break; // allow to finish the initialization sequence
case STATE_CONTENTS_OPENNEXTPAGE:
@@ -1272,7 +1272,7 @@ void KCHMMainWindow::runAutoTest()
else
m_autoteststate = STATE_OPEN_INDEX;
- TQTimer::singleShot (50, this, TQT_SLOT(runAutoTest()) );
+ TQTimer::singleShot (50, this, TQ_SLOT(runAutoTest()) );
break;
case STATE_OPEN_INDEX:
@@ -1280,7 +1280,7 @@ void KCHMMainWindow::runAutoTest()
m_tabWidget->setCurrentPage (1);
m_autoteststate = STATE_SHUTDOWN;
- TQTimer::singleShot (500, this, TQT_SLOT(runAutoTest()) );
+ TQTimer::singleShot (500, this, TQ_SLOT(runAutoTest()) );
break;
case STATE_SHUTDOWN:
diff --git a/src/kchmmainwindow.h b/src/kchmmainwindow.h
index a4d1127..2a44229 100644
--- a/src/kchmmainwindow.h
+++ b/src/kchmmainwindow.h
@@ -57,7 +57,7 @@ class KCHMUserEvent : public TQEvent
class KCHMMainWindow : public KQMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/kchmnavtoolbar.cpp b/src/kchmnavtoolbar.cpp
index 7ebb6fc..e6215b4 100644
--- a/src/kchmnavtoolbar.cpp
+++ b/src/kchmnavtoolbar.cpp
@@ -37,7 +37,7 @@ KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent )
i18n( "Move backward in history"),
TQString(),
parent,
- TQT_SLOT( slotNavigateBack() ),
+ TQ_SLOT( slotNavigateBack() ),
this);
TQWhatsThis::add( m_toolbarIconBackward, i18n( "Click this button to move backward in browser history") );
@@ -46,7 +46,7 @@ KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent )
i18n( "Move forward in history"),
TQString(),
parent,
- TQT_SLOT( slotNavigateForward() ),
+ TQ_SLOT( slotNavigateForward() ),
this);
TQWhatsThis::add( m_toolbarIconForward, i18n( "Click this button to move forward in browser history") );
@@ -55,7 +55,7 @@ KCHMNavToolbar::KCHMNavToolbar( KCHMMainWindow *parent )
i18n( "Go to the home page"),
TQString(),
parent,
- TQT_SLOT( slotNavigateHome() ),
+ TQ_SLOT( slotNavigateHome() ),
this);
TQWhatsThis::add( hb, i18n( "Click this button to move to the home page") );
}
diff --git a/src/kchmnavtoolbar.h b/src/kchmnavtoolbar.h
index 6faee38..9b5d25e 100644
--- a/src/kchmnavtoolbar.h
+++ b/src/kchmnavtoolbar.h
@@ -26,7 +26,7 @@
class KCHMNavToolbar : public TQToolBar
{
-Q_OBJECT
+TQ_OBJECT
public:
KCHMNavToolbar( KCHMMainWindow *parent );
diff --git a/src/kchmsearchengine.cpp b/src/kchmsearchengine.cpp
index e9e2a35..7ef266f 100644
--- a/src/kchmsearchengine.cpp
+++ b/src/kchmsearchengine.cpp
@@ -74,9 +74,9 @@ bool KCHMSearchEngine::loadOrGenerateIndex( )
m_Index->setDocListFile( indexfiledoc );
m_progressDlg = new TQProgressDialog( 0 );
- connect( m_progressDlg, TQT_SIGNAL( canceled() ), this, TQT_SLOT( cancelButtonPressed() ) );
+ connect( m_progressDlg, TQ_SIGNAL( canceled() ), this, TQ_SLOT( cancelButtonPressed() ) );
- connect( m_Index, TQT_SIGNAL( indexingProgress( int ) ), this, TQT_SLOT( setIndexingProgress( int ) ) );
+ connect( m_Index, TQ_SIGNAL( indexingProgress( int ) ), this, TQ_SLOT( setIndexingProgress( int ) ) );
KCHMShowWaitCursor waitcursor;
TQFile f( indexfiledict );
diff --git a/src/kchmsearchengine.h b/src/kchmsearchengine.h
index b4f0402..223ac22 100644
--- a/src/kchmsearchengine.h
+++ b/src/kchmsearchengine.h
@@ -35,7 +35,7 @@ namespace QtAs { class Index; };
class KCHMSearchEngine : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
diff --git a/src/kchmsearchengine_impl.cpp b/src/kchmsearchengine_impl.cpp
index b57e029..0536626 100644
--- a/src/kchmsearchengine_impl.cpp
+++ b/src/kchmsearchengine_impl.cpp
@@ -72,8 +72,8 @@ Index::Index( const TQString &dp, const TQString & )
: TQObject( 0, 0 ), dict( 8999 ), docPath( dp )
{
lastWindowClosed = false;
- connect( tqApp, TQT_SIGNAL( lastWindowClosed() ),
- this, TQT_SLOT( setLastWinClosed() ) );
+ connect( tqApp, TQ_SIGNAL( lastWindowClosed() ),
+ this, TQ_SLOT( setLastWinClosed() ) );
}
Index::Index( const TQStringList &dl, const TQString & )
@@ -81,8 +81,8 @@ Index::Index( const TQStringList &dl, const TQString & )
{
docList = dl;
lastWindowClosed = false;
- connect( tqApp, TQT_SIGNAL( lastWindowClosed() ),
- this, TQT_SLOT( setLastWinClosed() ) );
+ connect( tqApp, TQ_SIGNAL( lastWindowClosed() ),
+ this, TQ_SLOT( setLastWinClosed() ) );
}
void Index::setLastWinClosed()
diff --git a/src/kchmsearchengine_impl.h b/src/kchmsearchengine_impl.h
index 7ef039f..0d3ec83 100644
--- a/src/kchmsearchengine_impl.h
+++ b/src/kchmsearchengine_impl.h
@@ -64,7 +64,7 @@ TQDataStream &operator<<( TQDataStream &s, const Document &l );
class Index : public TQObject
{
- Q_OBJECT
+ TQ_OBJECT
public:
struct Entry
diff --git a/src/kchmsearchtoolbar.cpp b/src/kchmsearchtoolbar.cpp
index a51bb5f..2c7e272 100644
--- a/src/kchmsearchtoolbar.cpp
+++ b/src/kchmsearchtoolbar.cpp
@@ -63,18 +63,18 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
// Create the combobox to enter the find text
m_findBox = new TQComboBox (TRUE, this);
m_findBox->setMinimumWidth (200);
- connect( m_findBox->lineEdit(), TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( onReturnPressed() ) );
+ connect( m_findBox->lineEdit(), TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( onReturnPressed() ) );
TQWhatsThis::add( m_findBox, i18n( "Enter here the text to search in the current page.") );
TQAccel *acc = new TQAccel( this );
- acc->connectItem( acc->insertItem(Key_F+CTRL), this, TQT_SLOT( onAccelFocusSearchField() ) );
+ acc->connectItem( acc->insertItem(Key_F+CTRL), this, TQ_SLOT( onAccelFocusSearchField() ) );
// Button 'prevous search result'
m_buttonPrev = new TQToolButton (iconPrev,
i18n( "Previous search result"),
TQString(),
this,
- TQT_SLOT(onBtnPrevSearchResult()),
+ TQ_SLOT(onBtnPrevSearchResult()),
this);
TQWhatsThis::add( m_buttonPrev, i18n( "Click this button to find previous search result.") );
@@ -83,7 +83,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Next search result"),
TQString(),
this,
- TQT_SLOT(onBtnNextSearchResult()),
+ TQ_SLOT(onBtnNextSearchResult()),
this);
TQWhatsThis::add( m_buttonNext, i18n( "Click this button to find next search result.") );
@@ -92,7 +92,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Locate this topic in content window"),
TQString(),
this,
- TQT_SLOT( onBtnLocateInContentWindow() ),
+ TQ_SLOT( onBtnLocateInContentWindow() ),
this );
TQWhatsThis::add( m_buttonLocateInContent, i18n( "Click this button to find current topic in the content window, and open it.") );
@@ -101,7 +101,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Increase font size"),
TQString(),
this,
- TQT_SLOT(onBtnFontInc()),
+ TQ_SLOT(onBtnFontInc()),
this);
TQWhatsThis::add( m_buttonFontInc, i18n( "Click this button to increase the font size.") );
@@ -110,7 +110,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Decrease font size"),
TQString(),
this,
- TQT_SLOT(onBtnFontDec()),
+ TQ_SLOT(onBtnFontDec()),
this);
TQWhatsThis::add( m_buttonFontDec, i18n( "Click this button to decrease the font size.") );
@@ -119,7 +119,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "View HTML source"),
TQString(),
this,
- TQT_SLOT(onBtnViewSource()),
+ TQ_SLOT(onBtnViewSource()),
this);
TQWhatsThis::add( m_buttonViewSource, i18n( "Click this button to open a separate window with the page HTML source.") );
@@ -128,7 +128,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Add to bookmarks"),
TQString(),
this,
- TQT_SLOT(onBtnAddBookmark()),
+ TQ_SLOT(onBtnAddBookmark()),
this);
TQWhatsThis::add( m_buttonAddBookmark, i18n( "Click this button to add the current page to the bookmarks list.") );
@@ -136,7 +136,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Prev page in TOC"),
TQString(),
this,
- TQT_SLOT(onBtnPrevPageInToc()),
+ TQ_SLOT(onBtnPrevPageInToc()),
this);
TQWhatsThis::add( m_buttonAddBookmark, i18n( "Click this button to go to previous page in Table Of Content.") );
@@ -144,7 +144,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
i18n( "Next page in TOC"),
TQString(),
this,
- TQT_SLOT(onBtnNextPageInToc()),
+ TQ_SLOT(onBtnNextPageInToc()),
this);
TQWhatsThis::add( m_buttonAddBookmark, i18n( "Click this button to go to next page in Table of Content.") );
@@ -152,20 +152,20 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
m_MenuView = new KTQPopupMenu( parent );
parent->menuBar()->insertItem( i18n( "&View"), m_MenuView );
- m_MenuView->insertItem( i18n( "&Increase font"), this, TQT_SLOT(onBtnFontInc()), CTRL+Key_Plus );
- m_MenuView->insertItem( i18n( "&Decrease font"), this, TQT_SLOT(onBtnFontDec()), CTRL+Key_Minus );
- m_MenuView->insertItem( i18n( "&View HTML source"), this, TQT_SLOT(onBtnViewSource()), CTRL+Key_U );
+ m_MenuView->insertItem( i18n( "&Increase font"), this, TQ_SLOT(onBtnFontInc()), CTRL+Key_Plus );
+ m_MenuView->insertItem( i18n( "&Decrease font"), this, TQ_SLOT(onBtnFontDec()), CTRL+Key_Minus );
+ m_MenuView->insertItem( i18n( "&View HTML source"), this, TQ_SLOT(onBtnViewSource()), CTRL+Key_U );
m_MenuView->insertSeparator();
- m_MenuView->insertItem( i18n( "&Bookmark this page"), this, TQT_SLOT(onBtnAddBookmark()), CTRL+Key_T );
+ m_MenuView->insertItem( i18n( "&Bookmark this page"), this, TQ_SLOT(onBtnAddBookmark()), CTRL+Key_T );
m_MenuView->insertSeparator();
m_menuShowFullscreenMenuID = m_MenuView->insertItem( i18n( "&Full screen"), this,
- TQT_SLOT(onBtnFullScreen()), Key_F11 );
+ TQ_SLOT(onBtnFullScreen()), Key_F11 );
m_menuShowContentWindowMenuID = m_MenuView->insertItem( i18n( "&Show contents window"), this,
- TQT_SLOT(onBtnToggleContentWindow()), Key_F9 );
+ TQ_SLOT(onBtnToggleContentWindow()), Key_F9 );
m_MenuView->insertItem( i18n( "&Locate in contents window"), this,
- TQT_SLOT(onBtnLocateInContentWindow()), CTRL+Key_L );
+ TQ_SLOT(onBtnLocateInContentWindow()), CTRL+Key_L );
m_MenuView->setItemChecked( m_menuShowFullscreenMenuID, false );
m_MenuView->setItemChecked( m_menuShowContentWindowMenuID, true );
@@ -177,7 +177,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
// Because the encoding menu is very large, it is not reasonable to have a slot for every item.
// It is simplier just to use a single slot for any menu item of this submenu.
- connect (menu_langlist, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) ));
+ connect (menu_langlist, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onMenuActivated(int) ));
// Add the language entries
const LCHMTextEncoding * enctable = LCHMFileImpl::getTextEncodingTable();
@@ -197,7 +197,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
if ( !menu_sublang )
{
menu_sublang = new KTQPopupMenu( menu_langlist );
- connect (menu_sublang, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) ));
+ connect (menu_sublang, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onMenuActivated(int) ));
}
menu_sublang->insertItem( item->sublanguage, idx );
@@ -225,7 +225,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
TQMap<TQString,bool> addedCharsets;
menu_enclist = new KTQPopupMenu( parent );
- connect (menu_enclist, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) ));
+ connect (menu_enclist, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onMenuActivated(int) ));
// Add the codepage entries
for ( idx = 0; (enctable + idx)->language; idx++ )
diff --git a/src/kchmsearchtoolbar.h b/src/kchmsearchtoolbar.h
index f031cca..ec8139b 100644
--- a/src/kchmsearchtoolbar.h
+++ b/src/kchmsearchtoolbar.h
@@ -33,7 +33,7 @@
*/
class KCHMSearchAndViewToolbar : public TQToolBar
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMSearchAndViewToolbar (KCHMMainWindow *parent);
diff --git a/src/kchmsearchwindow.cpp b/src/kchmsearchwindow.cpp
index be0122c..8d936c7 100644
--- a/src/kchmsearchwindow.cpp
+++ b/src/kchmsearchwindow.cpp
@@ -44,7 +44,7 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags
labellayout->addStretch( 10 );
KCHMClickableLabel * helplink = new KCHMClickableLabel( i18n( "<a href=\"q\"><b>Help</b></a>"), this );
- connect( helplink, TQT_SIGNAL( clicked() ), this, TQT_SLOT( onHelpClicked() ) );
+ connect( helplink, TQ_SIGNAL( clicked() ), this, TQ_SLOT( onHelpClicked() ) );
helplink->setCursor( TQCursor( TQt::PointingHandCursor ) );
labellayout->addWidget ( helplink );
@@ -68,24 +68,24 @@ KCHMSearchWindow::KCHMSearchWindow( TQWidget * parent, const char * name, WFlags
m_searchList->setShowToolTips(true);
connect( searchButton,
- TQT_SIGNAL( clicked () ),
+ TQ_SIGNAL( clicked () ),
this,
- TQT_SLOT( onReturnPressed() ) );
+ TQ_SLOT( onReturnPressed() ) );
connect( m_searchQuery->lineEdit(),
- TQT_SIGNAL( returnPressed() ),
+ TQ_SIGNAL( returnPressed() ),
this,
- TQT_SLOT( onReturnPressed() ) );
+ TQ_SLOT( onReturnPressed() ) );
connect( m_searchList,
- TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ),
+ TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int) ),
this,
- TQT_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
+ TQ_SLOT( onDoubleClicked ( TQListViewItem *, const TQPoint &, int) ) );
connect( m_searchList,
- TQT_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
+ TQ_SIGNAL( contextMenuRequested( TQListViewItem *, const TQPoint& , int ) ),
this,
- TQT_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
+ TQ_SLOT( slotContextMenuRequested ( TQListViewItem *, const TQPoint &, int ) ) );
//layout->addSpacing (10);
layout->addWidget (m_searchList);
diff --git a/src/kchmsearchwindow.h b/src/kchmsearchwindow.h
index 5a068a8..c9a553f 100644
--- a/src/kchmsearchwindow.h
+++ b/src/kchmsearchwindow.h
@@ -36,7 +36,7 @@ class KCHMSearchEngine;
class KCHMClickableLabel : public TQLabel
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMClickableLabel( const TQString& label, TQWidget * parent )
@@ -54,7 +54,7 @@ class KCHMClickableLabel : public TQLabel
class KCHMSearchWindow : public TQWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMSearchWindow ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 );
diff --git a/src/kchmsetupdialog.ui b/src/kchmsetupdialog.ui
index 9db45b5..3b90782 100644
--- a/src/kchmsetupdialog.ui
+++ b/src/kchmsetupdialog.ui
@@ -91,9 +91,6 @@
<property name="text">
<string>Open the &amp;last used CHM file, if exist</string>
</property>
- <property name="accel">
- <string>Alt+L</string>
- </property>
</widget>
</vbox>
</widget>
@@ -152,9 +149,6 @@
<property name="text">
<string>R&amp;emember extra information for history files</string>
</property>
- <property name="accel">
- <string>Alt+E</string>
- </property>
<property name="toolTip" stdset="0">
<string>Remembers the information about the files, which were opened. Remembers last opened page, search history, font size, bookmarks and so on.</string>
</property>
@@ -192,9 +186,6 @@
<property name="text">
<string>Alwa&amp;ys open it in external browser</string>
</property>
- <property name="accel">
- <string>Alt+Y</string>
- </property>
</widget>
<widget class="TQRadioButton">
<property name="name">
@@ -211,9 +202,6 @@
<property name="text">
<string>Do not open the link</string>
</property>
- <property name="accel">
- <string></string>
- </property>
</widget>
</vbox>
</widget>
@@ -274,7 +262,7 @@
<cstring>m_groupQtsettings</cstring>
</property>
<property name="title">
- <string>Qt version settings</string>
+ <string>TQt version settings</string>
</property>
<hbox>
<property name="name">
@@ -346,9 +334,6 @@
<property name="text">
<string>&amp;QTextBrowser-based widget</string>
</property>
- <property name="accel">
- <string>Alt+Q</string>
- </property>
</widget>
<widget class="TQRadioButton">
<property name="name">
@@ -357,9 +342,6 @@
<property name="text">
<string>&amp;TDEHTMLPart-based widget</string>
</property>
- <property name="accel">
- <string>Alt+K</string>
- </property>
</widget>
</vbox>
</widget>
@@ -381,9 +363,6 @@
<property name="text">
<string>Enable Java&amp;Script</string>
</property>
- <property name="accel">
- <string>Alt+S</string>
- </property>
</widget>
<widget class="TQCheckBox" row="0" column="1">
<property name="name">
@@ -392,9 +371,6 @@
<property name="text">
<string>Enable &amp;plugins</string>
</property>
- <property name="accel">
- <string>Alt+P</string>
- </property>
</widget>
<widget class="TQCheckBox" row="1" column="0">
<property name="name">
@@ -403,9 +379,6 @@
<property name="text">
<string>Enable &amp;Java</string>
</property>
- <property name="accel">
- <string>Alt+J</string>
- </property>
</widget>
<widget class="TQCheckBox" row="1" column="1">
<property name="name">
@@ -414,9 +387,6 @@
<property name="text">
<string>Enable &amp;refresh</string>
</property>
- <property name="accel">
- <string>Alt+R</string>
- </property>
</widget>
</grid>
</widget>
@@ -453,9 +423,6 @@
<property name="text">
<string>Built-in HTML source viewer</string>
</property>
- <property name="accel">
- <string></string>
- </property>
</widget>
<widget class="TQRadioButton">
<property name="name">
@@ -464,9 +431,6 @@
<property name="text">
<string>E&amp;xternal program, specified below</string>
</property>
- <property name="accel">
- <string>Alt+X</string>
- </property>
</widget>
<widget class="TQLayoutWidget">
<property name="name">
@@ -615,9 +579,6 @@
<property name="text">
<string>&amp;OK</string>
</property>
- <property name="accel">
- <string></string>
- </property>
<property name="autoDefault">
<bool>true</bool>
</property>
@@ -632,9 +593,6 @@
<property name="text">
<string>&amp;Cancel</string>
</property>
- <property name="accel">
- <string></string>
- </property>
<property name="autoDefault">
<bool>true</bool>
</property>
@@ -709,9 +667,9 @@
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot>m_radioUseTDEHTMLPart_toggled( bool )</slot>
<slot>slotShowHelp()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/src/kchmsetupdialog_impl.h b/src/kchmsetupdialog_impl.h
index c98b4d8..1f35dde 100644
--- a/src/kchmsetupdialog_impl.h
+++ b/src/kchmsetupdialog_impl.h
@@ -22,7 +22,7 @@
class KCHMSetupDialog_impl : public KCHMSetupDialog
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMSetupDialog_impl( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
diff --git a/src/kchmviewwindow.cpp b/src/kchmviewwindow.cpp
index 71e0813..5edca53 100644
--- a/src/kchmviewwindow.cpp
+++ b/src/kchmviewwindow.cpp
@@ -145,8 +145,8 @@ KTQPopupMenu * KCHMViewWindow::createStandardContextMenu( TQWidget * parent )
{
KTQPopupMenu * contextMenu = new KTQPopupMenu( parent );
- contextMenu->insertItem ( "&Copy", ::mainWindow, TQT_SLOT(slotBrowserCopy()) );
- contextMenu->insertItem ( "&Select all", ::mainWindow, TQT_SLOT(slotBrowserSelectAll()) );
+ contextMenu->insertItem ( "&Copy", ::mainWindow, TQ_SLOT(slotBrowserCopy()) );
+ contextMenu->insertItem ( "&Select all", ::mainWindow, TQ_SLOT(slotBrowserSelectAll()) );
return contextMenu;
}
@@ -171,9 +171,9 @@ KTQPopupMenu * KCHMViewWindow::getContextMenu( const TQString & link, TQWidget *
m_contextMenuLink = createStandardContextMenu( parent );
m_contextMenuLink->insertSeparator();
- m_contextMenuLink->insertItem ( "&Open this link in a new tab", ::mainWindow, TQT_SLOT(slotOpenPageInNewTab()), TQKeySequence("Shift+Enter") );
+ m_contextMenuLink->insertItem ( "&Open this link in a new tab", ::mainWindow, TQ_SLOT(slotOpenPageInNewTab()), TQKeySequence("Shift+Enter") );
- m_contextMenuLink->insertItem ( "&Open this link in a new background tab", ::mainWindow, TQT_SLOT(slotOpenPageInNewBackgroundTab()), TQKeySequence("Ctrl+Enter") );
+ m_contextMenuLink->insertItem ( "&Open this link in a new background tab", ::mainWindow, TQ_SLOT(slotOpenPageInNewBackgroundTab()), TQKeySequence("Ctrl+Enter") );
}
setTabKeeper( link );
@@ -286,12 +286,12 @@ KTQPopupMenu * KCHMViewWindow::createListItemContextMenu( TQWidget * w )
contextMenu->insertItem ( "&Open this link in a new tab",
::mainWindow,
- TQT_SLOT( slotOpenPageInNewTab() ),
+ TQ_SLOT( slotOpenPageInNewTab() ),
TQKeySequence( "Shift+Enter" ) );
contextMenu->insertItem ( "&Open this link in a new background tab",
::mainWindow,
- TQT_SLOT( slotOpenPageInNewBackgroundTab() ),
+ TQ_SLOT( slotOpenPageInNewBackgroundTab() ),
TQKeySequence( "Ctrl+Enter" ) );
return contextMenu;
diff --git a/src/kchmviewwindow_qtextbrowser.cpp b/src/kchmviewwindow_qtextbrowser.cpp
index 41db166..d3f1f72 100644
--- a/src/kchmviewwindow_qtextbrowser.cpp
+++ b/src/kchmviewwindow_qtextbrowser.cpp
@@ -47,7 +47,7 @@ KCHMViewWindow_QTextBrowser::KCHMViewWindow_QTextBrowser( TQTabWidget * parent )
invalidate();
setTextFormat ( TQt::RichText );
- connect( this, TQT_SIGNAL( linkClicked (const TQString &) ), this, TQT_SLOT( slotLinkClicked(const TQString &) ) );
+ connect( this, TQ_SIGNAL( linkClicked (const TQString &) ), this, TQ_SLOT( slotLinkClicked(const TQString &) ) );
}
diff --git a/src/kchmviewwindow_qtextbrowser.h b/src/kchmviewwindow_qtextbrowser.h
index 15550cb..413b940 100644
--- a/src/kchmviewwindow_qtextbrowser.h
+++ b/src/kchmviewwindow_qtextbrowser.h
@@ -32,7 +32,7 @@
*/
class KCHMViewWindow_QTextBrowser : public TQTextBrowser, public KCHMViewWindow
{
-Q_OBJECT
+TQ_OBJECT
public:
KCHMViewWindow_QTextBrowser( TQTabWidget * parent );
@@ -75,8 +75,8 @@ public:
//! Sets the scrollbar position.
virtual void setScrollbarPosition(int pos);
- virtual TQObject * getTQObject() { return TQT_TQOBJECT(this); }
- virtual TQWidget * getTQWidget() { return TQT_TQWIDGET(this); }
+ virtual TQObject * getTQObject() { return this; }
+ virtual TQWidget * getTQWidget() { return this; }
static TQString decodeUrl( const TQString &url );
diff --git a/src/kchmviewwindowmgr.cpp b/src/kchmviewwindowmgr.cpp
index bf2bc69..ea66069 100644
--- a/src/kchmviewwindowmgr.cpp
+++ b/src/kchmviewwindowmgr.cpp
@@ -40,7 +40,7 @@ KCHMViewWindowMgr::KCHMViewWindowMgr( TQWidget *parent )
m_MenuWindow = 0;
// on current tab changed
- connect( this, TQT_SIGNAL( currentChanged(TQWidget *) ), this, TQT_SLOT( onTabChanged(TQWidget *) ) );
+ connect( this, TQ_SIGNAL( currentChanged(TQWidget *) ), this, TQ_SLOT( onTabChanged(TQWidget *) ) );
// Create an iconset for the button
TQIconSet iset( *gIconStorage.getCloseWindowIcon() );
@@ -49,7 +49,7 @@ KCHMViewWindowMgr::KCHMViewWindowMgr( TQWidget *parent )
m_closeButton = new TQPushButton( iset, TQString(), this );
m_closeButton->setFlat( true );
m_closeButton->setEnabled( false );
- connect( m_closeButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( closeCurrentWindow() ) );
+ connect( m_closeButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( closeCurrentWindow() ) );
setCornerWidget( m_closeButton, TopRight);
}
@@ -64,11 +64,11 @@ void KCHMViewWindowMgr::createMenu( KCHMMainWindow * parent )
m_MenuWindow = new KTQPopupMenu( parent );
parent->menuBar()->insertItem( i18n( "&Window"), m_MenuWindow );
- m_menuIdClose = m_MenuWindow->insertItem( i18n( "&Close"), this, TQT_SLOT( closeCurrentWindow()), CTRL+Key_W );
+ m_menuIdClose = m_MenuWindow->insertItem( i18n( "&Close"), this, TQ_SLOT( closeCurrentWindow()), CTRL+Key_W );
m_MenuWindow->insertSeparator();
- //connect( m_MenuWindow, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onCloseWindow(int) ));
- connect( m_MenuWindow, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onActiveWindow(int) ));
+ //connect( m_MenuWindow, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onCloseWindow(int) ));
+ connect( m_MenuWindow, TQ_SIGNAL( activated(int) ), this, TQ_SLOT ( onActiveWindow(int) ));
}
void KCHMViewWindowMgr::invalidate()
@@ -114,7 +114,7 @@ KCHMViewWindow * KCHMViewWindowMgr::addNewTab( bool set_active )
showPage( widget );
// Handle clicking on link in browser window
- connect( viewvnd->getTQObject(), TQT_SIGNAL( signalLinkClicked (const TQString &, bool &) ), ::mainWindow, TQT_SLOT( slotLinkClicked(const TQString &, bool &) ) );
+ connect( viewvnd->getTQObject(), TQ_SIGNAL( signalLinkClicked (const TQString &, bool &) ), ::mainWindow, TQ_SLOT( slotLinkClicked(const TQString &, bool &) ) );
return viewvnd;
}
diff --git a/src/kchmviewwindowmgr.h b/src/kchmviewwindowmgr.h
index eea46de..c2f6fc6 100644
--- a/src/kchmviewwindowmgr.h
+++ b/src/kchmviewwindowmgr.h
@@ -30,7 +30,7 @@
class KCHMViewWindowMgr : public TQTabWidget
{
- Q_OBJECT
+ TQ_OBJECT
public:
KCHMViewWindowMgr( TQWidget *parent = 0 );
diff --git a/src/main.cpp b/src/main.cpp
index 35542f4..3bfe936 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -87,7 +87,7 @@ int main( int argc, char ** argv )
mainWindow->show();
#if !defined(USE_KDE)
- app.connect( &app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit()) );
+ app.connect( &app, TQ_SIGNAL(lastWindowClosed()), &app, TQ_SLOT(quit()) );
#else
app.setMainWidget( mainWindow );
#endif
diff --git a/src/pics/Makefile.am b/src/pics/Makefile.am
deleted file mode 100644
index d085bb3..0000000
--- a/src/pics/Makefile.am
+++ /dev/null
@@ -1,2 +0,0 @@
-# Install the icons into the global KDE directories
-KDE_ICON = AUTO
diff --git a/src/tde/Makefile.am b/src/tde/Makefile.am
deleted file mode 100644
index 05dbf2e..0000000
--- a/src/tde/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-lib_LIBRARIES=libkdeextra.a
-libkdeextra_a_SOURCES = kchmdcopiface.cpp kchmdcopiface.skel kchmviewwindow_tdehtmlpart.cpp
-noinst_HEADERS = kchmdcopiface.h kchmviewwindow_tdehtmlpart.h
-
-INCLUDES = $(TQT_INCLUDES) $(CHM_INCLUDES) $(KDE_INCLUDES) $(LIBCHMFILE_INCLUDES)
-
-METASOURCES = AUTO
-KDE_OPTIONS = qtonly
diff --git a/src/tde/kchmdcopiface.h b/src/tde/kchmdcopiface.h
index 6922a82..1fd2ff2 100644
--- a/src/tde/kchmdcopiface.h
+++ b/src/tde/kchmdcopiface.h
@@ -29,7 +29,7 @@
class KCHMDCOPIface : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
//
K_DCOP
diff --git a/src/tde/kchmdcopiface_skel.cpp b/src/tde/kchmdcopiface_skel.cpp
deleted file mode 100644
index be1e994..0000000
--- a/src/tde/kchmdcopiface_skel.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** DCOP Skeleton generated by dcopidl2cpp from kchmdcopiface.kidl
-**
-** WARNING! All changes made in this file will be lost!
-**
-*****************************************************************************/
-
-#include "./kchmdcopiface.h"
-
-#include <kdatastream.h>
-
-
-static const char* const KCHMDCOPIface_ftable[6][3] = {
- { "void", "loadHelpFile(TQString,TQString)", "loadHelpFile(TQString filename,TQString url)" },
- { "void", "openPage(TQString)", "openPage(TQString url)" },
- { "void", "guiFindInIndex(TQString)", "guiFindInIndex(TQString word)" },
- { "void", "guiSearchQuery(TQString)", "guiSearchQuery(TQString query)" },
- { TQSTRINGLIST_OBJECT_NAME_STRING, "searchQuery(TQString)", "searchQuery(TQString query)" },
- { 0, 0, 0 }
-};
-static const int KCHMDCOPIface_ftable_hiddens[5] = {
- 0,
- 0,
- 0,
- 0,
- 0,
-};
-
-bool KCHMDCOPIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
-{
- if ( fun == KCHMDCOPIface_ftable[0][1] ) { // void loadHelpFile(TQString,TQString)
- TQString arg0;
- TQString arg1;
- TQDataStream arg( data, IO_ReadOnly );
- if (arg.atEnd()) return false;
- arg >> arg0;
- if (arg.atEnd()) return false;
- arg >> arg1;
- replyType = KCHMDCOPIface_ftable[0][0];
- loadHelpFile(arg0, arg1 );
- } else if ( fun == KCHMDCOPIface_ftable[1][1] ) { // void openPage(TQString)
- TQString arg0;
- TQDataStream arg( data, IO_ReadOnly );
- if (arg.atEnd()) return false;
- arg >> arg0;
- replyType = KCHMDCOPIface_ftable[1][0];
- openPage(arg0 );
- } else if ( fun == KCHMDCOPIface_ftable[2][1] ) { // void guiFindInIndex(TQString)
- TQString arg0;
- TQDataStream arg( data, IO_ReadOnly );
- if (arg.atEnd()) return false;
- arg >> arg0;
- replyType = KCHMDCOPIface_ftable[2][0];
- guiFindInIndex(arg0 );
- } else if ( fun == KCHMDCOPIface_ftable[3][1] ) { // void guiSearchQuery(TQString)
- TQString arg0;
- TQDataStream arg( data, IO_ReadOnly );
- if (arg.atEnd()) return false;
- arg >> arg0;
- replyType = KCHMDCOPIface_ftable[3][0];
- guiSearchQuery(arg0 );
- } else if ( fun == KCHMDCOPIface_ftable[4][1] ) { // TQStringList searchQuery(TQString)
- TQString arg0;
- TQDataStream arg( data, IO_ReadOnly );
- if (arg.atEnd()) return false;
- arg >> arg0;
- replyType = KCHMDCOPIface_ftable[4][0];
- TQDataStream _replyStream( replyData, IO_WriteOnly );
- _replyStream << searchQuery(arg0 );
- } else {
- return DCOPObject::process( fun, data, replyType, replyData );
- }
- return true;
-}
-
-QCStringList KCHMDCOPIface::interfaces()
-{
- QCStringList ifaces = DCOPObject::interfaces();
- ifaces += "KCHMDCOPIface";
- return ifaces;
-}
-
-QCStringList KCHMDCOPIface::functions()
-{
- QCStringList funcs = DCOPObject::functions();
- for ( int i = 0; KCHMDCOPIface_ftable[i][2]; i++ ) {
- if (KCHMDCOPIface_ftable_hiddens[i])
- continue;
- TQCString func = KCHMDCOPIface_ftable[i][0];
- func += ' ';
- func += KCHMDCOPIface_ftable[i][2];
- funcs << func;
- }
- return funcs;
-}
-
-
diff --git a/src/tde/kchmviewwindow_tdehtmlpart.cpp b/src/tde/kchmviewwindow_tdehtmlpart.cpp
index 3a57e35..ad4a617 100644
--- a/src/tde/kchmviewwindow_tdehtmlpart.cpp
+++ b/src/tde/kchmviewwindow_tdehtmlpart.cpp
@@ -46,11 +46,11 @@ KCHMViewWindow_TDEHTMLPart::KCHMViewWindow_TDEHTMLPart( TQTabWidget * parent )
invalidate();
- connect( browserExtension(), TQT_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
- this, TQT_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) );
+ connect( browserExtension(), TQ_SIGNAL( openURLRequest( const KURL &, const KParts::URLArgs & ) ),
+ this, TQ_SLOT ( onOpenURLRequest( const KURL &, const KParts::URLArgs & )) );
- connect( this, TQT_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ),
- this, TQT_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) );
+ connect( this, TQ_SIGNAL ( popupMenu ( const TQString &, const TQPoint &) ),
+ this, TQ_SLOT ( onPopupMenu ( const TQString &, const TQPoint &) ) );
}
diff --git a/src/tde/kchmviewwindow_tdehtmlpart.h b/src/tde/kchmviewwindow_tdehtmlpart.h
index 0dcbe47..ee7d7d3 100644
--- a/src/tde/kchmviewwindow_tdehtmlpart.h
+++ b/src/tde/kchmviewwindow_tdehtmlpart.h
@@ -44,7 +44,7 @@
#if defined (USE_KDE)
class KCHMViewWindow_TDEHTMLPart : public TDEHTMLPart, public KCHMViewWindow
{
-Q_OBJECT
+TQ_OBJECT
public:
KCHMViewWindow_TDEHTMLPart( TQTabWidget * parent );