|
|
@ -43,8 +43,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
static KTQPopupMenu *menu_langlist, *menu_enclist;
|
|
|
|
static KTQPopupMenu *menu_langlist, *menu_enclist;
|
|
|
|
|
|
|
|
|
|
|
|
KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * tqparent )
|
|
|
|
KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * parent )
|
|
|
|
: TQToolBar (tqparent)
|
|
|
|
: TQToolBar (parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Toolbar label
|
|
|
|
// Toolbar label
|
|
|
|
setLabel( i18n( "Find in page") );
|
|
|
|
setLabel( i18n( "Find in page") );
|
|
|
@ -149,8 +149,8 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * tqparent )
|
|
|
|
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.") );
|
|
|
|
|
|
|
|
|
|
|
|
// Create the approptiate menu entries in 'View' main menu
|
|
|
|
// Create the approptiate menu entries in 'View' main menu
|
|
|
|
m_MenuView = new KTQPopupMenu( tqparent );
|
|
|
|
m_MenuView = new KTQPopupMenu( parent );
|
|
|
|
tqparent->menuBar()->insertItem( i18n( "&View"), m_MenuView );
|
|
|
|
parent->menuBar()->insertItem( i18n( "&View"), m_MenuView );
|
|
|
|
|
|
|
|
|
|
|
|
m_MenuView->insertItem( i18n( "&Increase font"), this, TQT_SLOT(onBtnFontInc()), CTRL+Key_Plus );
|
|
|
|
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( "&Decrease font"), this, TQT_SLOT(onBtnFontDec()), CTRL+Key_Minus );
|
|
|
@ -172,7 +172,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * tqparent )
|
|
|
|
m_MenuView->insertSeparator();
|
|
|
|
m_MenuView->insertSeparator();
|
|
|
|
|
|
|
|
|
|
|
|
// Create the language selection menu.
|
|
|
|
// Create the language selection menu.
|
|
|
|
menu_langlist = new KTQPopupMenu( tqparent );
|
|
|
|
menu_langlist = new KTQPopupMenu( parent );
|
|
|
|
KTQPopupMenu * menu_sublang = 0;
|
|
|
|
KTQPopupMenu * menu_sublang = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// 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.
|
|
|
@ -223,7 +223,7 @@ KCHMSearchAndViewToolbar::KCHMSearchAndViewToolbar( KCHMMainWindow * tqparent )
|
|
|
|
|
|
|
|
|
|
|
|
// Special menu for very smart people just to select codepage
|
|
|
|
// Special menu for very smart people just to select codepage
|
|
|
|
TQMap<TQString,bool> addedCharsets;
|
|
|
|
TQMap<TQString,bool> addedCharsets;
|
|
|
|
menu_enclist = new KTQPopupMenu( tqparent );
|
|
|
|
menu_enclist = new KTQPopupMenu( parent );
|
|
|
|
|
|
|
|
|
|
|
|
connect (menu_enclist, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) ));
|
|
|
|
connect (menu_enclist, TQT_SIGNAL( activated(int) ), this, TQT_SLOT ( onMenuActivated(int) ));
|
|
|
|
|
|
|
|
|
|
|
|