GUI: added/removed warnings and tooltips

svn path=/trunk/kdegraphics/kdvi/; revision=232503
This commit is contained in:
Stefan Kebekus 2003-06-20 08:13:19 +00:00
parent 384bd2934f
commit c21c0c0f48
2 changed files with 14 additions and 9 deletions

View file

@ -214,7 +214,7 @@ QString fontPool::status(void)
type = i18n("regular");
if (fontp->font == 0)
tmp << QString ("<tr><td>%1</td> <td>%2%</td> <td>%3</td> <td>%4</td> <td>%5</td></tr>").arg(fontp->fontname).arg((int)(fontp->enlargement*100 + 0.5)).arg(type).arg(fontp->filename).arg("");
tmp << QString ("<tr><td>%1</td> <td>%2%</td> <td>%3</td> <td>%4</td> <td>%5</td></tr>").arg(fontp->fontname).arg((int)(fontp->enlargement*100 + 0.5)).arg(type).arg(fontp->filename).arg(i18n("Font file not found"));
else
tmp << QString ("<tr><td>%1</td> <td>%2%</td> <td>%3</td> <td>%4</td> <td>%5</td></tr>").arg(fontp->fontname).arg((int)(fontp->enlargement*100 + 0.5)).arg(type).arg(fontp->filename).arg(fontp->font->errorMessage);
fontp=fontList.next();
@ -522,6 +522,7 @@ void fontPool::kpsewhich_terminated(KProcess *)
fontp = fontList.first();
while ( fontp != 0 ) {
if (fontp->filename.isEmpty() == true) {
all_fonts_are_found = false;
break;
}
@ -537,7 +538,7 @@ void fontPool::kpsewhich_terminated(KProcess *)
QString body = i18n("KDVI was not able to locate all the font files "
"which are necessary to display the current DVI file. "
"Your document might be unreadable.");
QString metaf = i18n("\nExperts will find helpful information in the 'MetaFont'-"
QString metaf = i18n("\nExperts will find helpful information in the 'Fonts'-"
"section of the document info dialog");
if (fatal_error_in_kpsewhich == true)

View file

@ -1,5 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>optionDialogFontsWidget_base</class>
<author>Stefan Kebekus</author>
<widget class="QWidget">
<property name="name">
<cstring>optionDialogFontsWidget_base</cstring>
@ -15,12 +16,6 @@
<property name="caption">
<string>TeX Fonts</string>
</property>
<property name="toolTip" stdset="0">
<string>On low-resolution displays, such as a laptop screen, you probably want to switch this on</string>
</property>
<property name="whatsThis" stdset="0">
<string>If this option is set, KDVI will enlarge all characters by 10%. The text will then usually be easier to read, but it may happen that some characters overlap a little.</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
@ -43,6 +38,12 @@
<property name="text">
<string>Use Type 1 fonts if available</string>
</property>
<property name="toolTip" stdset="0">
<string>If in doubt, switch on.</string>
</property>
<property name="whatsThis" stdset="0">
<string>On many modern TeX installations, the typical fonts used in a TeX document are included both in the traditional MetaFont- and in the PostScript Type 1 format. If this box is checked, Type 1 fonts will be used if they are found. This will usually save some time and disk space because it is then no longer necessary to run MetaFont and turn the MetaFont fonts into bitmap files. You probably want to switch this option on, unless you experience difficulties with the PostScript fonts, such as missing or wrong characters, etc.</string>
</property>
</widget>
<widget class="QCheckBox">
<property name="name">
@ -51,8 +52,11 @@
<property name="text">
<string>Use font hinting</string>
</property>
<property name="toolTip" stdset="0">
<string>You should try if the use of font hinting improves readability on your machine.</string>
</property>
<property name="whatsThis" stdset="0">
<string></string>
<string>Many modern fonts contain "font hinting" information which can be used to improve the looks of a font on low-resolution displays, such as a computer monitor, or a notebook screen. However, many people find the "improved" fonts quite ugly and prefer to have this option switched off.</string>
</property>
</widget>
</vbox>