[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Classes | Public Types | Public Slots | Public Member Functions | Protected Slots | List of all members
KLFSettings Class Reference

A settings dialog. More...

#include <klfsettings.h>

Inheritance diagram for KLFSettings:
Inheritance graph
[legend]
Collaboration diagram for KLFSettings:
Collaboration graph
[legend]

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)
 
- Public Member Functions inherited from QDialog
 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)
 

Detailed Description

A settings dialog.

See also KLFConfig and klfconfig.

Definition at line 46 of file klfsettings.h.

Member Enumeration Documentation

Enumerator
AppLanguage 
AppFonts 
Preview 
TooltipPreview 
SyntaxHighlighting 
ExecutablePaths 
ExpandEPSBBox 
ExportProfiles 
LibrarySettings 
ManageAddOns 
ManagePlugins 
PluginsConfig 

Definition at line 51 of file klfsettings.h.

Constructor & Destructor Documentation

KLFSettings::KLFSettings ( KLFMainWin parent = 0)
KLFSettings::~KLFSettings ( )

Definition at line 281 of file klfsettings.cpp.

Member Function Documentation

void KLFSettings::accept ( )
protectedvirtualslot

Definition at line 1201 of file klfsettings.cpp.

References QDialog::accept(), and apply().

Referenced by KLFSettings().

void KLFSettings::apply ( )
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().

bool KLFSettings::eventFilter ( QObject object,
QEvent event 
)

Definition at line 433 of file klfsettings.cpp.

References treeMaybeUnselect().

void KLFSettings::help ( )
slot

Definition at line 1209 of file klfsettings.cpp.

References QWhatsThis::enterWhatsThisMode().

void KLFSettings::importAddOn ( )
slot
void KLFSettings::importAddOn ( const QString fileName,
bool  uiSuggestRestart = true 
)
slot
void KLFSettings::initPluginControls ( )
protectedslot
void KLFSettings::populateExportProfilesCombos ( )
protectedslot

Definition at line 309 of file klfsettings.cpp.

References KLFMimeExportProfile::exportProfileList(), and QList::size().

Referenced by KLFSettings(), and show().

void KLFSettings::populateLocaleCombo ( )
protectedslot
void KLFSettings::refreshAddOnList ( )
protectedslot
void KLFSettings::refreshAddOnSelected ( )
protectedslot
void KLFSettings::refreshPluginSelected ( )
protectedslot
void KLFSettings::removeAddOn ( )
slot
void KLFSettings::removePlugin ( )
slot
void KLFSettings::removePlugin ( const QString fname)
slot
Warning
This method provides NO USER CONFIRMATION and NO AFTER-OPERATION REFRESH

Definition at line 695 of file klfsettings.cpp.

References QMessageBox::critical(), klf_plugins, klfDbg, KLFSETTINGS_ROLE_PLUGINDEX, and QFile::remove().

void KLFSettings::reset ( )
slot
Todo:
.... these settings should be shown in double when the corresponding functionality will be implemented in klfbackend.

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().

void KLFSettings::resetPluginControls ( )
protectedslot
void KLFSettings::retranslateUi ( bool  alsoBaseUi = true)
slot

Definition at line 257 of file klfsettings.cpp.

References QMap::contains(), QAction::data(), KLF_ASSERT_CONDITION, and QList::size().

Referenced by KLFSettings().

void KLFSettings::setDefaultPaths ( )
slot
void KLFSettings::show ( )
slot
void KLFSettings::showControl ( int  controlNum)
slot
void KLFSettings::showControl ( const QString controlName)
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.

void KLFSettings::slotChangeFont ( QPushButton btn,
const QFont f 
)
protectedslot

Definition at line 1020 of file klfsettings.cpp.

Referenced by slotChangeFontPresetSender(), and slotChangeFontSender().

void KLFSettings::slotChangeFontPresetSender ( )
protectedslot

Definition at line 996 of file klfsettings.cpp.

References QMap::contains(), QAction::data(), KLF_ASSERT_CONDITION, klfDbg, and slotChangeFont().

Referenced by KLFSettings().

void KLFSettings::slotChangeFontSender ( )
protectedslot

Definition at line 1012 of file klfsettings.cpp.

References QFontDialog::getFont(), and slotChangeFont().

Referenced by KLFSettings().


The documentation for this class was generated from the following files:

Generated by doxygen 1.8.8