2003-01-29 21:23:55 +00:00
|
|
|
// optionDiologWidget.cpp
|
|
|
|
//
|
|
|
|
// Part of KDVI - A DVI previewer for the KDE desktop environemt
|
|
|
|
//
|
|
|
|
// (C) 2003 Stefan Kebekus
|
|
|
|
// Distributed under the GPL
|
|
|
|
|
|
|
|
// Add header files alphabetically
|
|
|
|
|
|
|
|
#include <kcombobox.h>
|
2003-03-21 09:28:51 +00:00
|
|
|
#include <kdebug.h>
|
2003-01-29 21:23:55 +00:00
|
|
|
#include <klocale.h>
|
2005-06-07 10:36:52 +00:00
|
|
|
#include <q3buttongroup.h>
|
2003-01-29 21:23:55 +00:00
|
|
|
#include <qcheckbox.h>
|
2003-03-21 09:28:51 +00:00
|
|
|
#include <qtooltip.h>
|
2005-06-13 11:02:21 +00:00
|
|
|
|
2003-01-29 21:23:55 +00:00
|
|
|
|
2003-03-21 09:28:51 +00:00
|
|
|
#include "../config.h"
|
2003-01-29 21:23:55 +00:00
|
|
|
#include "fontpool.h"
|
|
|
|
#include "optionDialogFontsWidget.h"
|
|
|
|
|
|
|
|
|
|
|
|
// Constructs a optionDialogWidget_base which is a child of 'parent', with
|
|
|
|
// the name 'name' and widget flags set to 'f'.
|
2005-06-07 10:36:52 +00:00
|
|
|
optionDialogFontsWidget::optionDialogFontsWidget( QWidget* parent, const char* name, Qt::WFlags fl )
|
2003-01-29 21:23:55 +00:00
|
|
|
: optionDialogFontsWidget_base( parent, name, fl )
|
|
|
|
{
|
2004-09-04 14:19:57 +00:00
|
|
|
#ifndef HAVE_FREETYPE
|
|
|
|
kcfg_UseType1Fonts->setChecked(false);
|
|
|
|
kcfg_UseType1Fonts->setEnabled(false);
|
|
|
|
kcfg_UseFontHints->setEnabled(false);
|
|
|
|
kcfg_UseFontHints->setChecked(false);
|
2003-03-21 09:28:51 +00:00
|
|
|
QToolTip::add(PFB_ButtonGroup, i18n("This version of KDVI does not support type 1 fonts."));
|
2005-06-13 11:02:21 +00:00
|
|
|
PFB_ButtonGroup->setWhatsThis( i18n("KDVI needs the FreeType library to access type 1 fonts. This library "
|
2003-03-21 09:28:51 +00:00
|
|
|
"was not present when KDVI was compiled. If you want to use type 1 "
|
|
|
|
"fonts, you must either install the FreeType library and recompile KDVI "
|
|
|
|
"yourself, or find a precompiled software package for your operating "
|
|
|
|
"system."));
|
|
|
|
#endif
|
2003-01-29 21:23:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
optionDialogFontsWidget::~optionDialogFontsWidget()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "optionDialogFontsWidget.moc"
|