diff --git a/optiondialog.cpp b/optiondialog.cpp index 30f082f7b..0e2fe73e2 100644 --- a/optiondialog.cpp +++ b/optiondialog.cpp @@ -33,6 +33,8 @@ #include #include #include +#include +#include #include "fontpool.h" #include "optiondialog.h" @@ -114,12 +116,17 @@ void OptionDialog::makeFontPage() QLabel *label = new QLabel( i18n("Metafont mode:"), page ); mFont.metafontMode = new KComboBox( page ); + QToolTip::add( mFont.metafontMode, i18n("LaserJet 4 is usually a good choice.") ); + QWhatsThis::add( mFont.metafontMode, i18n("Chooses the type of bitmap fonts used for the display. As a general rule, the higher the dpi value, the better quality of the output. On the other hand, large dpi fonts use more resources and make KDVI slower. \nIf you are low on hard disk space, or have a slow machine, you may want to choose the same setting that is also used by dvips. That way you avoid to generate several bitmap versions of the same font.") ); + glay->addWidget( label, 0, 0 ); glay->addWidget( mFont.metafontMode, 0, 1 ); glay->addRowSpacing( 2, spacingHint()*2 ); mFont.fontPathCheck = new QCheckBox( i18n("Generate missing fonts"), page ); + QToolTip::add( mFont.fontPathCheck, i18n("If in doubt, switch on!") ); + QWhatsThis::add( mFont.fontPathCheck, i18n("Allows KDVI to use MetaFont to produce bitmap fonts. Unless you have a very specific reason, you probably want to switch this on.") ); glay->addMultiCellWidget( mFont.fontPathCheck, 3, 3, 0, 1 ); topLayout->addStretch(1); @@ -132,10 +139,12 @@ void OptionDialog::makeRenderingPage() QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); mRender.pageIndex = pageIndex(page); - mRender.showSpecialCheck = - new QCheckBox( i18n("Show PostScript specials"), page ); - mRender.showHyperLinksCheck = - new QCheckBox( i18n("Show Hyperlinks"), page ); + mRender.showSpecialCheck = new QCheckBox( i18n("Show PostScript specials"), page ); + QToolTip::add( mRender.showSpecialCheck, i18n("If in doubt, switch on!") ); + QWhatsThis::add( mRender.showSpecialCheck, i18n("Some DVI files contain PostScript graphics. If switched on, KDVI will use the ghostview PostScript interpreter to display these. You probably want to switch this option on, unless you have a DVI-file whose PostScript part is broken, or too large for your machine.") ); + mRender.showHyperLinksCheck = new QCheckBox( i18n("Show Hyperlinks"), page ); + QToolTip::add( mRender.showHyperLinksCheck, i18n("If in doubt, switch on!") ); + QWhatsThis::add( mRender.showHyperLinksCheck, i18n("For your convenience, some DVI files contain hyperlinks which are corss-references or point to external documents. You probably want to switch this option on, unless you are annoyed by the blue underlines which KDVI uses to mark the hyperlinks.") ); topLayout->addWidget( mRender.showSpecialCheck ); topLayout->addWidget( mRender.showHyperLinksCheck );