A settings dialog. More...
#include <klfsettings.h>
Public Types | |
enum | SettingsControl { AppLanguage = 1, AppFonts, Preview, TooltipPreview, SyntaxHighlighting, ExecutablePaths, ExpandEPSBBox, ExportProfiles, LibrarySettings, ManageAddOns, ManagePlugins, PluginsConfig } |
Public Slots | |
void | reset () |
void | show () |
void | showControl (int controlNum) |
void | showControl (const QString &controlName) |
void | apply () |
void | help () |
void | setDefaultPaths () |
void | importAddOn () |
void | importAddOn (const QString &fileName, bool uiSuggestRestart=true) |
void | removeAddOn () |
void | removePlugin () |
void | removePlugin (const QString &fname) |
void | retranslateUi (bool alsoBaseUi=true) |
Public Member Functions | |
KLFSettings (KLFMainWin *parent=0) | |
~KLFSettings () | |
bool | eventFilter (QObject *object, QEvent *event) |
![]() | |
QDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
accept () | |
accepted () | |
done (int r) | |
exec () | |
finished (int result) | |
reject () | |
rejected () | |
result () | |
setResult (int i) | |
QDialog (QWidget *parent, const char *name, bool modal=false, Qt::WindowFlags f=0) | |
Protected Slots | |
void | populateLocaleCombo () |
void | populateExportProfilesCombos () |
void | initPluginControls () |
void | resetPluginControls () |
void | refreshPluginSelected () |
void | refreshAddOnList () |
void | refreshAddOnSelected () |
virtual void | accept () |
void | slotChangeFontPresetSender () |
void | slotChangeFontSender () |
void | slotChangeFont (QPushButton *btn, const QFont &f) |
Enumerator | |
---|---|
AppLanguage | |
AppFonts | |
Preview | |
TooltipPreview | |
SyntaxHighlighting | |
ExecutablePaths | |
ExpandEPSBBox | |
ExportProfiles | |
LibrarySettings | |
ManageAddOns | |
ManagePlugins | |
PluginsConfig |
Definition at line 51 of file klfsettings.h.
KLFSettings::KLFSettings | ( | KLFMainWin * | parent = 0 | ) |
Definition at line 73 of file klfsettings.cpp.
References accept(), QMenu::addAction(), apply(), KLFConfig::defaultCMUFont, KLFConfig::defaultStdFont, KLFConfig::defaultTTFont, QFontDatabase::families(), importAddOn(), klf_addons_canimport, klfconfig, populateExportProfilesCombos(), populateLocaleCombo(), refreshAddOnList(), refreshAddOnSelected(), refreshPluginSelected(), REG_SH_TEXTFORMATENSEMBLE, QDialog::reject(), removeAddOn(), reset(), retranslateUi(), QAction::setData(), setDefaultPaths(), QFont::setPointSize(), slotChangeFontPresetSender(), and slotChangeFontSender().
KLFSettings::~KLFSettings | ( | ) |
Definition at line 281 of file klfsettings.cpp.
|
protectedvirtualslot |
Definition at line 1201 of file klfsettings.cpp.
References QDialog::accept(), and apply().
Referenced by KLFSettings().
|
slot |
Definition at line 1030 of file klfsettings.cpp.
References KLFConfig::applicationFont, KLFMainWin::applySettings(), KLFBackend::klfSettings::bborderoffset, KLFConfig::clearLatexOnly, KLFConfig::configFlags, KLFConfig::confirmClose, KLFConfig::copyExportProfile, KLFMainWin::currentSettings(), KLFConfig::defaultStdFont, KLFConfig::dragExportProfile, KLFBackend::klfSettings::dvipsexec, KLFLatexSyntaxHighlighter::Enabled, KLFConfig::enableRealTimePreview, KLFConfig::enableToolTipPreview, KLFBackend::klfSettings::epstopdfexec, QDir::fromNativeSeparators(), KLFConfig::getPluginConfigAccess(), KLFConfig::glowEffect, KLFBackend::klfSettings::gsexec, KLFLatexSyntaxHighlighter::HighlightLonelyParen, KLFLatexSyntaxHighlighter::HighlightParensOnly, KLFConfig::historyTagCopyToArchive, KLFConfig::iconViewFlow, QMessageBox::information(), QString::isEmpty(), QColor::isValid(), klf_detect_execenv(), klf_plugins, klfconfig, klfDbg, KLFSETTINGS_ROLE_PLUGINDEX, KLFSETTINGS_ROLE_PLUGNAME, KLFConfig::labelOutputFixedSize, KLFConfig::latexEditFont, KLFBackend::klfSettings::latexexec, KLFBackend::klfSettings::lborderoffset, KLFConfig::LibraryBrowser, KLFConfig::locale, KLFConfig::menuExportProfileAffectsCopy, KLFConfig::menuExportProfileAffectsDrag, KLFBackend::klfSettings::outlineFonts, KLFConfig::pluginConfig, KLFConfig::Plugins, KLFConfig::preambleEditFont, KLFConfig::previewTooltipMaxSize, KLFBackend::klfSettings::rborderoffset, KLFMainWin::refreshAllWindowStyleSheets(), KLFMainWin::refreshShowCorrectClearButton(), KLFMainWin::refreshWindowSizes(), reset(), KLFConfig::restoreURLs, KLFMainWin::saveSettings(), KLFMainWin::setApplicationLocale(), QLocale::setDefault(), KLFMainWin::setTxtLatexFont(), KLFMainWin::setTxtPreambleFont(), KLFConfig::showHintPopups, QList::size(), KLFConfig::SyntaxHighlighter, KLFBackend::klfSettings::tborderoffset, KLFBackend::klfSettings::tempdir, KLFConfig::UI, and KLFConfig::useSystemAppFont.
Referenced by accept(), importAddOn(), and KLFSettings().
Definition at line 433 of file klfsettings.cpp.
References treeMaybeUnselect().
|
slot |
Definition at line 1209 of file klfsettings.cpp.
References QWhatsThis::enterWhatsThisMode().
|
slot |
Definition at line 839 of file klfsettings.cpp.
References QFileDialog::getOpenFileNames(), and QMessageBox::information().
Referenced by KLFSettings().
|
slot |
Definition at line 855 of file klfsettings.cpp.
References apply(), QFile::copy(), QMessageBox::critical(), QFile::exists(), QFileInfo::exists(), QFileInfo::fileName(), KLFConfig::homeConfigDirRCCResources, QMessageBox::information(), QString::isEmpty(), QFileInfo::isReadable(), klf_add_avail_translation(), klf_addons, klf_avail_translations, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, klfDbg, KLFAddOnInfo::klfminversion(), klfVersionCompareLessThan(), KLFI18nFile::locale, populateLocaleCombo(), QMessageBox::question(), KLFAddOnInfo::rccmountroot(), refreshAddOnList(), and KLFAddOnInfo::translations().
|
protectedslot |
Definition at line 535 of file klfsettings.cpp.
References KLFPluginGenericInterface::createConfigWidget(), KLFConfig::getPluginConfigAccess(), klf_plugins, klfconfig, KLFSETTINGS_ROLE_PLUGINDEX, KLFSETTINGS_ROLE_PLUGNAME, KLFPluginGenericInterface::loadFromConfig(), KLFConfig::pluginConfig, KLFConfig::Plugins, QTreeWidgetItem::setCheckState(), QTreeWidgetItem::setData(), and QTreeWidgetItem::setText().
Referenced by show().
|
protectedslot |
Definition at line 309 of file klfsettings.cpp.
References KLFMimeExportProfile::exportProfileList(), and QList::size().
Referenced by KLFSettings(), and show().
|
protectedslot |
Definition at line 286 of file klfsettings.cpp.
References klf_avail_translations, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, klfDbg, KLFConfig::locale, KLFTranslationInfo::localename, KLFTranslationInfo::translatedname, and KLFConfig::UI.
Referenced by importAddOn(), and KLFSettings().
|
protectedslot |
Definition at line 770 of file klfsettings.cpp.
References klf_addons, KLFSETTINGS_ROLE_ADDONINDEX, QTreeWidgetItem::setBackground(), QTreeWidgetItem::setData(), and QTreeWidgetItem::setText().
Referenced by importAddOn(), KLFSettings(), removeAddOn(), and removePlugin().
|
protectedslot |
Definition at line 797 of file klfsettings.cpp.
References klf_addons, KLFSETTINGS_ROLE_ADDONINDEX, QFontInfo::pointSize(), QDir::separator(), QList::size(), and QDir::toNativeSeparators().
Referenced by KLFSettings(), removeAddOn(), and removePlugin().
|
protectedslot |
Definition at line 610 of file klfsettings.cpp.
References klf_plugins, KLFSETTINGS_ROLE_PLUGINDEX, QFontInfo::pointSize(), QList::size(), and QDir::toNativeSeparators().
Referenced by KLFSettings().
|
slot |
Definition at line 935 of file klfsettings.cpp.
References QString::arg(), QMessageBox::critical(), QMessageBox::exec(), QMessageBox::information(), QStringList::join(), klf_addons, KLFSETTINGS_ROLE_ADDONINDEX, refreshAddOnList(), refreshAddOnSelected(), QFile::remove(), removePlugin(), QMessageBox::setDefaultButton(), QMessageBox::setEscapeButton(), QMessageBox::setWindowTitle(), and QList::size().
Referenced by KLFSettings().
|
slot |
Definition at line 643 of file klfsettings.cpp.
References QMessageBox::critical(), QTreeWidgetItem::data(), QMessageBox::exec(), QMessageBox::information(), klf_plugins, KLFSETTINGS_ROLE_PLUGINDEX, refreshAddOnList(), refreshAddOnSelected(), QFile::remove(), QMessageBox::setDefaultButton(), QMessageBox::setEscapeButton(), QMessageBox::setWindowTitle(), and QList::size().
Referenced by removeAddOn().
|
slot |
Definition at line 695 of file klfsettings.cpp.
References QMessageBox::critical(), QMessageBox::exec(), QString::isEmpty(), klf_plugins, klfDbg, KLFSETTINGS_ROLE_PLUGINDEX, KLFPathChooser::path, QFile::remove(), QMessageBox::setDefaultButton(), QMessageBox::setEscapeButton(), and KLFPathChooser::setPath().
|
slot |
Definition at line 448 of file klfsettings.cpp.
References KLFConfig::applicationFont, KLFBackend::klfSettings::bborderoffset, KLFConfig::clearLatexOnly, KLFConfig::configFlags, KLFConfig::confirmClose, KLFConfig::copyExportProfile, KLFMainWin::currentSettings(), KLFConfig::dragExportProfile, KLFBackend::klfSettings::dvipsexec, KLFLatexSyntaxHighlighter::Enabled, KLFConfig::enableRealTimePreview, KLFConfig::enableToolTipPreview, KLFBackend::klfSettings::epstopdfexec, KLFConfig::glowEffect, KLFBackend::klfSettings::gsexec, QSize::height(), KLFLatexSyntaxHighlighter::HighlightLonelyParen, KLFLatexSyntaxHighlighter::HighlightParensOnly, KLFConfig::historyTagCopyToArchive, KLFConfig::iconViewFlow, QString::isEmpty(), klfconfig, KLFConfig::labelOutputFixedSize, KLFConfig::latexEditFont, KLFBackend::klfSettings::latexexec, KLFBackend::klfSettings::lborderoffset, KLFConfig::LibraryBrowser, KLFConfig::locale, KLFConfig::menuExportProfileAffectsCopy, KLFConfig::menuExportProfileAffectsDrag, KLFBackend::klfSettings::outlineFonts, KLFConfig::preambleEditFont, KLFConfig::previewTooltipMaxSize, KLFBackend::klfSettings::rborderoffset, KLFConfig::restoreURLs, KLFConfig::showHintPopups, QList::size(), KLFConfig::SyntaxHighlighter, KLFBackend::klfSettings::tborderoffset, KLFBackend::klfSettings::tempdir, QDir::toNativeSeparators(), KLFConfig::UI, KLFConfig::useSystemAppFont, and QSize::width().
Referenced by apply(), KLFSettings(), and show().
|
protectedslot |
Definition at line 580 of file klfsettings.cpp.
References QMap::contains(), KLFConfig::getPluginConfigAccess(), KLF_ASSERT_CONDITION, KLF_FUNC_NAME, klf_plugins, klfconfig, KLFPluginGenericInterface::loadFromConfig(), KLFConfig::pluginConfig, and KLFConfig::Plugins.
Referenced by show().
|
slot |
Definition at line 257 of file klfsettings.cpp.
References QMap::contains(), QAction::data(), KLF_ASSERT_CONDITION, and QList::size().
Referenced by KLFSettings().
|
slot |
Definition at line 756 of file klfsettings.cpp.
References KLFBackend::detectSettings(), KLFBackend::klfSettings::dvipsexec, KLFBackend::klfSettings::epstopdfexec, KLFBackend::klfSettings::gsexec, KLFBackend::klfSettings::latexexec, KLFBackend::klfSettings::tempdir, and QDir::toNativeSeparators().
Referenced by KLFSettings().
|
slot |
Definition at line 323 of file klfsettings.cpp.
References initPluginControls(), klfDbg, populateExportProfilesCombos(), reset(), and resetPluginControls().
Referenced by KLFMainWin::showSettingsHelpLinkAction(), KLFMainWin::slotEvaluate(), and KLFMainWin::slotSettings().
|
slot |
controlNum
is one of the values of the SettingsControl enum.
Definition at line 344 of file klfsettings.cpp.
References __KLF_SHOW_SETTINGS_CONTROL, AppFonts, AppLanguage, ExecutablePaths, ExpandEPSBBox, ExportProfiles, KLF_FUNC_NAME, LibrarySettings, ManageAddOns, ManagePlugins, PluginsConfig, Preview, SyntaxHighlighting, and TooltipPreview.
Referenced by KLFMainWin::showSettingsHelpLinkAction(), and KLFMainWin::slotEvaluate().
|
slot |
controlName
is the name (string) of one of the controls listed in the SettingsControl
enum, eg. "AppFonts"
or "ManageAddOns"
.
Definition at line 395 of file klfsettings.cpp.
References __KLF_SETTINGS_TEST_STR_CONTROL, AppFonts, AppLanguage, ExecutablePaths, ExpandEPSBBox, LibrarySettings, ManageAddOns, ManagePlugins, PluginsConfig, Preview, SyntaxHighlighting, and TooltipPreview.
|
protectedslot |
Definition at line 1020 of file klfsettings.cpp.
Referenced by slotChangeFontPresetSender(), and slotChangeFontSender().
|
protectedslot |
Definition at line 996 of file klfsettings.cpp.
References QMap::contains(), QAction::data(), KLF_ASSERT_CONDITION, klfDbg, and slotChangeFont().
Referenced by KLFSettings().
|
protectedslot |
Definition at line 1012 of file klfsettings.cpp.
References QFontDialog::getFont(), and slotChangeFont().
Referenced by KLFSettings().