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
i18n("<html><p>The improved search engine allows you to search for a word, symbol or phrase, which is set of words and symbols included in quotes. Only the documents which include all the terms speficide in th search query are shown; no prefixes needed.<p>Unlike MS CHM internal search index, my improved search engine indexes everything, including special symbols. Therefore it is possible to search (and find!) for something like <i>$q = new ChmFile();</i>. This search also fully supports Unicode, which means that you can search in non-English documents.<p>If you want to search for a quote symbol, use quotation mark instead. The engine treats a quote and a quotation mark as the same symbol, which allows to use them in phrases.</html>"));
i18n("<html><p>The improved search engine allows you to search for a word, symbol or phrase, which is set of words and symbols included in quotes. Only the documents which include all the terms speficide in th search query are shown; no prefixes needed.<p>Unlike MS CHM internal search index, my improved search engine indexes everything, including special symbols. Therefore it is possible to search (and tqfind!) for something like <i>$q = new ChmFile();</i>. This search also fully supports Unicode, which means that you can search in non-English documents.<p>If you want to search for a quote symbol, use quotation mark instead. The engine treats a quote and a quotation mark as the same symbol, which allows to use them in phrases.</html>"));
}
}
else
else
{
{
QMessageBox::information(this,
TQMessageBox::information(this,
i18n("How to use search"),
i18n("How to use search"),
i18n("The search query can contain a few prefixes.\nA set of words inside the quote marks mean that you are searching for exact phrase.\nA word with minus sign means that it should be absent in the search result.\nA word with plus mark or without any mark means that it must be present in the search result.\n\nNote that only letters and digits are indexed.\nYou cannot search for non-character symbols other than underscope, and those symbols will be removed from the search query.\nFor example, search for 'C' will give the same result as searching for 'C++'."));
i18n("The search query can contain a few prefixes.\nA set of words inside the quote marks mean that you are searching for exact phrase.\nA word with minus sign means that it should be absent in the search result.\nA word with plus mark or without any mark means that it must be present in the search result.\n\nNote that only letters and digits are indexed.\nYou cannot search for non-character symbols other than underscope, and those symbols will be removed from the search query.\nFor example, search for 'C' will give the same result as searching for 'C++'."));
QToolTip::add(m_rememberHistoryInfo,tr("Remembers the information about the files, which were opened. Remembers last opened page, search history, font size, bookmarks and so on."));
TQToolTip::add(m_rememberHistoryInfo,tr("Remembers the information about the files, which were opened. Remembers last opened page, search history, font size, bookmarks and so on."));
groupBox1->setTitle(tr("CHM security settings"));
groupBox1->setTitle(tr("CHM security settings"));
buttonGroup4->setTitle(tr("When external link clicked"));
buttonGroup4->setTitle(tr("When external link clicked"));
m_radioExtLinkOpenAlways->setText(tr("Alwa&ys open it in external browser"));
m_radioExtLinkOpenAlways->setText(tr("Alwa&ys open it in external browser"));
m_groupQtsettings->setTitle(tr("Qt version settings"));
m_groupQtsettings->setTitle(tr("TQt version settings"));
textLabel1_2->setText(tr("Enter the path to the program, which will be used as a browser for external links. A <i>%s</i> symbol will be replaced by the URL clicked."));
textLabel1_2->setText(tr("Enter the path to the program, which will be used as a browser for external links. A <i>%s</i> symbol will be replaced by the URL clicked."));
m_groupKDEsettings->setTitle(tr("KDE version settings"));
m_groupKDEsettings->setTitle(tr("KDE version settings"));
buttonGroup5_2->setTitle(tr("To show HTML content, use"));
buttonGroup5_2->setTitle(tr("To show HTML content, use"));
m_labelUseSearchEngineInternal->setText(tr("Use the search based on internal CHM index. This engine cannot search for any symbols except underscode, does not support multibyte languages, and is not always available."));
m_labelUseSearchEngineInternal->setText(tr("Use the search based on internal CHM index. This engine cannot search for any symbols except underscode, does not support multibyte languages, and is not always available."));
m_useSearchEngineNew->setText(QString::null);
m_useSearchEngineNew->setText(TQString());
m_labelUseSearchEngineNew->setText(tr("Use new kchmviewer internal search engine (recommended). This engine indexes symbols, so it is possible to search for special symbols (like \"C++\"). All languages are supported. The index will be generated before the first search."));
m_labelUseSearchEngineNew->setText(tr("Use new kchmviewer internal search engine (recommended). This engine indexes symbols, so it is possible to search for special symbols (like \"C++\"). All languages are supported. The index will be generated before the first search."));
<string>Enter the path to the program, which will be used as a browser for external links. A <i>%s</i> symbol will be replaced by the URL clicked.</string>
<string>Enter the path to the program, which will be used as a browser for external links. A <i>%s</i> symbol will be replaced by the URL clicked.</string>
</property>
</property>
<property name="alignment">
<property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
<set>WordBreak|AlignVCenter</set>
</property>
</property>
</widget>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<property name="name">
<cstring>m_qtBrowserPath</cstring>
<cstring>m_qtBrowserPath</cstring>
</property>
</property>
@ -317,7 +317,7 @@
</widget>
</widget>
</hbox>
</hbox>
</widget>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<property name="name">
<cstring>m_groupKDEsettings</cstring>
<cstring>m_groupKDEsettings</cstring>
</property>
</property>
@ -328,7 +328,7 @@
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QButtonGroup">
<widget class="TQButtonGroup">
<property name="name">
<property name="name">
<cstring>buttonGroup5_2</cstring>
<cstring>buttonGroup5_2</cstring>
</property>
</property>
@ -339,7 +339,7 @@
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QRadioButton">
<widget class="TQRadioButton">
<property name="name">
<property name="name">
<cstring>m_radioUseQtextBrowser</cstring>
<cstring>m_radioUseQtextBrowser</cstring>
</property>
</property>
@ -350,7 +350,7 @@
<string>Alt+Q</string>
<string>Alt+Q</string>
</property>
</property>
</widget>
</widget>
<widget class="QRadioButton">
<widget class="TQRadioButton">
<property name="name">
<property name="name">
<cstring>m_radioUseKHTMLPart</cstring>
<cstring>m_radioUseKHTMLPart</cstring>
</property>
</property>
@ -363,7 +363,7 @@
</widget>
</widget>
</vbox>
</vbox>
</widget>
</widget>
<widget class="QGroupBox">
<widget class="TQGroupBox">
<property name="name">
<property name="name">
<cstring>groupKhtmlSecurity</cstring>
<cstring>groupKhtmlSecurity</cstring>
</property>
</property>
@ -374,7 +374,7 @@
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QCheckBox" row="0" column="0">
<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<property name="name">
<cstring>m_enableJS</cstring>
<cstring>m_enableJS</cstring>
</property>
</property>
@ -385,7 +385,7 @@
<string>Alt+S</string>
<string>Alt+S</string>
</property>
</property>
</widget>
</widget>
<widget class="QCheckBox" row="0" column="1">
<widget class="TQCheckBox" row="0" column="1">
<property name="name">
<property name="name">
<cstring>m_enablePlugins</cstring>
<cstring>m_enablePlugins</cstring>
</property>
</property>
@ -396,7 +396,7 @@
<string>Alt+P</string>
<string>Alt+P</string>
</property>
</property>
</widget>
</widget>
<widget class="QCheckBox" row="1" column="0">
<widget class="TQCheckBox" row="1" column="0">
<property name="name">
<property name="name">
<cstring>m_enableJava</cstring>
<cstring>m_enableJava</cstring>
</property>
</property>
@ -407,7 +407,7 @@
<string>Alt+J</string>
<string>Alt+J</string>
</property>
</property>
</widget>
</widget>
<widget class="QCheckBox" row="1" column="1">
<widget class="TQCheckBox" row="1" column="1">
<property name="name">
<property name="name">
<cstring>m_enableRefresh</cstring>
<cstring>m_enableRefresh</cstring>
</property>
</property>
@ -424,7 +424,7 @@
</widget>
</widget>
</vbox>
</vbox>
</widget>
</widget>
<widget class="QWidget">
<widget class="TQWidget">
<property name="name">
<property name="name">
<cstring>TabPage</cstring>
<cstring>TabPage</cstring>
</property>
</property>
@ -435,7 +435,7 @@
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QButtonGroup">
<widget class="TQButtonGroup">
<property name="name">
<property name="name">
<cstring>buttonGroup7</cstring>
<cstring>buttonGroup7</cstring>
</property>
</property>
@ -446,7 +446,7 @@
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QRadioButton">
<widget class="TQRadioButton">
<property name="name">
<property name="name">
<cstring>m_advViewSourceInternal</cstring>
<cstring>m_advViewSourceInternal</cstring>
</property>
</property>
@ -457,7 +457,7 @@
<string></string>
<string></string>
</property>
</property>
</widget>
</widget>
<widget class="QRadioButton">
<widget class="TQRadioButton">
<property name="name">
<property name="name">
<cstring>m_advViewSourceExternal</cstring>
<cstring>m_advViewSourceExternal</cstring>
</property>
</property>
@ -468,15 +468,15 @@
<string>Alt+X</string>
<string>Alt+X</string>
</property>
</property>
</widget>
</widget>
<widget class="QLayoutWidget">
<widget class="TQLayoutWidget">
<property name="name">
<property name="name">
<cstring>layout4</cstring>
<cstring>tqlayout4</cstring>
</property>
</property>
<hbox>
<hbox>
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QLabel">
<widget class="TQLabel">
<property name="name">
<property name="name">
<cstring>textLabel1_3</cstring>
<cstring>textLabel1_3</cstring>
</property>
</property>
@ -484,7 +484,7 @@
<string>External program:</string>
<string>External program:</string>
</property>
</property>
</widget>
</widget>
<widget class="QLineEdit">
<widget class="TQLineEdit">
<property name="name">
<property name="name">
<cstring>m_advExternalProgramName</cstring>
<cstring>m_advExternalProgramName</cstring>
</property>
</property>
@ -493,7 +493,7 @@
</widget>
</widget>
</vbox>
</vbox>
</widget>
</widget>
<widget class="QButtonGroup">
<widget class="TQButtonGroup">
<property name="name">
<property name="name">
<cstring>groupBox6</cstring>
<cstring>groupBox6</cstring>
</property>
</property>
@ -504,7 +504,7 @@
<property name="name">
<property name="name">
<cstring>unnamed</cstring>
<cstring>unnamed</cstring>
</property>
</property>
<widget class="QRadioButton" row="1" column="0">
<widget class="TQRadioButton" row="1" column="0">
<property name="name">
<property name="name">
<cstring>m_useSearchEngineInternal</cstring>
<cstring>m_useSearchEngineInternal</cstring>
</property>
</property>
@ -512,7 +512,7 @@
<string></string>
<string></string>
</property>
</property>
</widget>
</widget>
<widget class="QLabel" row="1" column="1">
<widget class="TQLabel" row="1" column="1">
<property name="name">
<property name="name">
<cstring>m_labelUseSearchEngineInternal</cstring>
<cstring>m_labelUseSearchEngineInternal</cstring>
</property>
</property>
@ -527,11 +527,11 @@
<property name="text">
<property name="text">
<string>Use the search based on internal CHM index. This engine cannot search for any symbols except underscode, does not support multibyte languages, and is not always available.</string>
<string>Use the search based on internal CHM index. This engine cannot search for any symbols except underscode, does not support multibyte languages, and is not always available.</string>
</property>
</property>
<property name="alignment">
<property name="tqalignment">
<set>WordBreak|AlignVCenter</set>
<set>WordBreak|AlignVCenter</set>
</property>
</property>
</widget>
</widget>
<widget class="QRadioButton" row="0" column="0">
<widget class="TQRadioButton" row="0" column="0">
<property name="name">
<property name="name">
<cstring>m_useSearchEngineNew</cstring>
<cstring>m_useSearchEngineNew</cstring>
</property>
</property>
@ -539,7 +539,7 @@
<string></string>
<string></string>
</property>
</property>
</widget>
</widget>
<widget class="QLabel" row="0" column="1">
<widget class="TQLabel" row="0" column="1">
<property name="name">
<property name="name">
<cstring>m_labelUseSearchEngineNew</cstring>
<cstring>m_labelUseSearchEngineNew</cstring>
</property>
</property>
@ -554,7 +554,7 @@
<property name="text">
<property name="text">
<string>Use new kchmviewer internal search engine (recommended). This engine indexes symbols, so it is possible to search for special symbols (like "C++"). All languages are supported. The index will be generated before the first search.</string>
<string>Use new kchmviewer internal search engine (recommended). This engine indexes symbols, so it is possible to search for special symbols (like "C++"). All languages are supported. The index will be generated before the first search.</string>
m_contextMenuLink->insertItem("&Open this link in a new tab",::mainWindow, SLOT(slotOpenPageInNewTab()), QKeySequence("Shift+Enter"));
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 background tab",::mainWindow, SLOT(slotOpenPageInNewBackgroundTab()), QKeySequence("Ctrl+Enter"));
m_contextMenuLink->insertItem("&Open this link in a new background tab",::mainWindow,TQT_SLOT(slotOpenPageInNewBackgroundTab()),TQKeySequence("Ctrl+Enter"));