diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kdvi/optionDialogFontsWidget.cpp | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdvi/optionDialogFontsWidget.cpp')
-rw-r--r-- | kdvi/optionDialogFontsWidget.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/kdvi/optionDialogFontsWidget.cpp b/kdvi/optionDialogFontsWidget.cpp new file mode 100644 index 00000000..a3a76425 --- /dev/null +++ b/kdvi/optionDialogFontsWidget.cpp @@ -0,0 +1,47 @@ +// 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 <config.h> + +#include <kcombobox.h> +#include <kdebug.h> +#include <klocale.h> +#include <qbuttongroup.h> +#include <qcheckbox.h> +#include <qtooltip.h> +#include <qwhatsthis.h> + +#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'. +optionDialogFontsWidget::optionDialogFontsWidget( QWidget* parent, const char* name, WFlags fl ) + : optionDialogFontsWidget_base( parent, name, fl ) +{ +#ifndef HAVE_FREETYPE + kcfg_UseType1Fonts->setChecked(false); + kcfg_UseType1Fonts->setEnabled(false); + kcfg_UseFontHints->setEnabled(false); + kcfg_UseFontHints->setChecked(false); + QToolTip::add(PFB_ButtonGroup, i18n("This version of KDVI does not support type 1 fonts.")); + QWhatsThis::add(PFB_ButtonGroup, i18n("KDVI needs the FreeType library to access type 1 fonts. This library " + "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 +} + +optionDialogFontsWidget::~optionDialogFontsWidget() +{ +} + +#include "optionDialogFontsWidget.moc" |