@ -63,18 +63,18 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
// Create the combobox to enter the find text
// Create the combobox to enter the find text
m_findBox = new TQComboBox ( TRUE , this ) ;
m_findBox = new TQComboBox ( TRUE , this ) ;
m_findBox - > setMinimumWidth ( 200 ) ;
m_findBox - > setMinimumWidth ( 200 ) ;
connect ( m_findBox - > lineEdit ( ) , TQ T _SIGNAL( returnPressed ( ) ) , this , TQ T _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. " ) ) ;
TQWhatsThis : : add ( m_findBox , i18n ( " Enter here the text to search in the current page. " ) ) ;
TQAccel * acc = new TQAccel ( this ) ;
TQAccel * acc = new TQAccel ( this ) ;
acc - > connectItem ( acc - > insertItem ( Key_F + CTRL ) , this , TQ T _SLOT( onAccelFocusSearchField ( ) ) ) ;
acc - > connectItem ( acc - > insertItem ( Key_F + CTRL ) , this , TQ _SLOT( onAccelFocusSearchField ( ) ) ) ;
// Button 'prevous search result'
// Button 'prevous search result'
m_buttonPrev = new TQToolButton ( iconPrev ,
m_buttonPrev = new TQToolButton ( iconPrev ,
i18n ( " Previous search result " ) ,
i18n ( " Previous search result " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnPrevSearchResult ( ) ) ,
TQ _SLOT( onBtnPrevSearchResult ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonPrev , i18n ( " Click this button to find previous search result. " ) ) ;
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 " ) ,
i18n ( " Next search result " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnNextSearchResult ( ) ) ,
TQ _SLOT( onBtnNextSearchResult ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonNext , i18n ( " Click this button to find next search result. " ) ) ;
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 " ) ,
i18n ( " Locate this topic in content window " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnLocateInContentWindow ( ) ) ,
TQ _SLOT( onBtnLocateInContentWindow ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonLocateInContent , i18n ( " Click this button to find current topic in the content window, and open it. " ) ) ;
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 " ) ,
i18n ( " Increase font size " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnFontInc ( ) ) ,
TQ _SLOT( onBtnFontInc ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonFontInc , i18n ( " Click this button to increase the font size. " ) ) ;
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 " ) ,
i18n ( " Decrease font size " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnFontDec ( ) ) ,
TQ _SLOT( onBtnFontDec ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonFontDec , i18n ( " Click this button to decrease the font size. " ) ) ;
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 " ) ,
i18n ( " View HTML source " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnViewSource ( ) ) ,
TQ _SLOT( onBtnViewSource ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonViewSource , i18n ( " Click this button to open a separate window with the page HTML source. " ) ) ;
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 " ) ,
i18n ( " Add to bookmarks " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnAddBookmark ( ) ) ,
TQ _SLOT( onBtnAddBookmark ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonAddBookmark , i18n ( " Click this button to add the current page to the bookmarks list. " ) ) ;
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 " ) ,
i18n ( " Prev page in TOC " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnPrevPageInToc ( ) ) ,
TQ _SLOT( onBtnPrevPageInToc ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonAddBookmark , i18n ( " Click this button to go to previous page in Table Of Content. " ) ) ;
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 " ) ,
i18n ( " Next page in TOC " ) ,
TQString ( ) ,
TQString ( ) ,
this ,
this ,
TQ T _SLOT( onBtnNextPageInToc ( ) ) ,
TQ _SLOT( onBtnNextPageInToc ( ) ) ,
this ) ;
this ) ;
TQWhatsThis : : add ( m_buttonAddBookmark , i18n ( " Click this button to go to next page in Table of Content. " ) ) ;
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 ) ;
m_MenuView = new KTQPopupMenu ( parent ) ;
parent - > menuBar ( ) - > insertItem ( i18n ( " &View " ) , m_MenuView ) ;
parent - > menuBar ( ) - > insertItem ( i18n ( " &View " ) , m_MenuView ) ;
m_MenuView - > insertItem ( i18n ( " &Increase font " ) , this , TQ T _SLOT( onBtnFontInc ( ) ) , CTRL + Key_Plus ) ;
m_MenuView - > insertItem ( i18n ( " &Increase font " ) , this , TQ _SLOT( onBtnFontInc ( ) ) , CTRL + Key_Plus ) ;
m_MenuView - > insertItem ( i18n ( " &Decrease font " ) , this , TQ T _SLOT( onBtnFontDec ( ) ) , CTRL + Key_Minus ) ;
m_MenuView - > insertItem ( i18n ( " &Decrease font " ) , this , TQ _SLOT( onBtnFontDec ( ) ) , CTRL + Key_Minus ) ;
m_MenuView - > insertItem ( i18n ( " &View HTML source " ) , this , TQ T _SLOT( onBtnViewSource ( ) ) , CTRL + Key_U ) ;
m_MenuView - > insertItem ( i18n ( " &View HTML source " ) , this , TQ _SLOT( onBtnViewSource ( ) ) , CTRL + Key_U ) ;
m_MenuView - > insertSeparator ( ) ;
m_MenuView - > insertSeparator ( ) ;
m_MenuView - > insertItem ( i18n ( " &Bookmark this page " ) , this , TQ T _SLOT( onBtnAddBookmark ( ) ) , CTRL + Key_T ) ;
m_MenuView - > insertItem ( i18n ( " &Bookmark this page " ) , this , TQ _SLOT( onBtnAddBookmark ( ) ) , CTRL + Key_T ) ;
m_MenuView - > insertSeparator ( ) ;
m_MenuView - > insertSeparator ( ) ;
m_menuShowFullscreenMenuID = m_MenuView - > insertItem ( i18n ( " &Full screen " ) , this ,
m_menuShowFullscreenMenuID = m_MenuView - > insertItem ( i18n ( " &Full screen " ) , this ,
TQ T _SLOT( onBtnFullScreen ( ) ) , Key_F11 ) ;
TQ _SLOT( onBtnFullScreen ( ) ) , Key_F11 ) ;
m_menuShowContentWindowMenuID = m_MenuView - > insertItem ( i18n ( " &Show contents window " ) , this ,
m_menuShowContentWindowMenuID = m_MenuView - > insertItem ( i18n ( " &Show contents window " ) , this ,
TQ T _SLOT( onBtnToggleContentWindow ( ) ) , Key_F9 ) ;
TQ _SLOT( onBtnToggleContentWindow ( ) ) , Key_F9 ) ;
m_MenuView - > insertItem ( i18n ( " &Locate in contents window " ) , this ,
m_MenuView - > insertItem ( i18n ( " &Locate in contents window " ) , this ,
TQ T _SLOT( onBtnLocateInContentWindow ( ) ) , CTRL + Key_L ) ;
TQ _SLOT( onBtnLocateInContentWindow ( ) ) , CTRL + Key_L ) ;
m_MenuView - > setItemChecked ( m_menuShowFullscreenMenuID , false ) ;
m_MenuView - > setItemChecked ( m_menuShowFullscreenMenuID , false ) ;
m_MenuView - > setItemChecked ( m_menuShowContentWindowMenuID , true ) ;
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.
// 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.
// It is simplier just to use a single slot for any menu item of this submenu.
connect ( menu_langlist , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT ( onMenuActivated ( int ) ) ) ;
connect ( menu_langlist , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT ( onMenuActivated ( int ) ) ) ;
// Add the language entries
// Add the language entries
const LCHMTextEncoding * enctable = LCHMFileImpl : : getTextEncodingTable ( ) ;
const LCHMTextEncoding * enctable = LCHMFileImpl : : getTextEncodingTable ( ) ;
@ -197,7 +197,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
if ( ! menu_sublang )
if ( ! menu_sublang )
{
{
menu_sublang = new KTQPopupMenu ( menu_langlist ) ;
menu_sublang = new KTQPopupMenu ( menu_langlist ) ;
connect ( menu_sublang , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT ( onMenuActivated ( int ) ) ) ;
connect ( menu_sublang , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT ( onMenuActivated ( int ) ) ) ;
}
}
menu_sublang - > insertItem ( item - > sublanguage , idx ) ;
menu_sublang - > insertItem ( item - > sublanguage , idx ) ;
@ -225,7 +225,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
TQMap < TQString , bool > addedCharsets ;
TQMap < TQString , bool > addedCharsets ;
menu_enclist = new KTQPopupMenu ( parent ) ;
menu_enclist = new KTQPopupMenu ( parent ) ;
connect ( menu_enclist , TQ T _SIGNAL( activated ( int ) ) , this , TQ T _SLOT ( onMenuActivated ( int ) ) ) ;
connect ( menu_enclist , TQ _SIGNAL( activated ( int ) ) , this , TQ _SLOT ( onMenuActivated ( int ) ) ) ;
// Add the codepage entries
// Add the codepage entries
for ( idx = 0 ; ( enctable + idx ) - > language ; idx + + )
for ( idx = 0 ; ( enctable + idx ) - > language ; idx + + )