[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Classes | Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties

KLFMainWin Class Reference

#include <klfmainwin.h>

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

List of all members.

Classes

struct  HelpLinkAction

Public Types

enum  altersetting_which {
  altersetting_LBorderOffset = 100, altersetting_TBorderOffset, altersetting_RBorderOffset, altersetting_BBorderOffset,
  altersetting_TempDir, altersetting_Latex, altersetting_Dvips, altersetting_Gs,
  altersetting_Epstopdf, altersetting_OutlineFonts
}

Public Slots

void slotEvaluate ()
void slotClear ()
void slotClearLatex ()
void slotClearAll ()
void slotLibrary (bool showlib)
void slotLibraryButtonRefreshState (bool on)
void slotSymbols (bool showsymbs=true)
void slotSymbolsButtonRefreshState (bool on)
void slotExpandOrShrink ()
void slotExpand (bool expanded=true)
void slotSetLatex (const QString &latex)
void slotSetMathMode (const QString &mathmode)
void slotSetPreamble (const QString &preamble)
void slotEnsurePreambleCmd (const QString &line)
void slotSetDPI (int DPI)
void slotSetFgColor (const QColor &fgcolor)
void slotSetFgColor (const QString &fgcolor)
void slotSetBgColor (const QColor &bgcolor)
void slotSetBgColor (const QString &bgcolor)
void slotEvaluateAndSave (const QString &output, const QString &format)
bool openFile (const QString &file)
bool openFiles (const QStringList &fileList)
bool openData (const QMimeData *mimeData, bool *openerFound=NULL)
bool openData (const QByteArray &data)
bool openLibFiles (const QStringList &files, bool showLibrary=true)
bool openLibFile (const QString &file, bool showLibrary=true)
void setApplicationLocale (const QString &locale)
void retranslateUi (bool alsoBaseUi=true)
bool loadDefaultStyle ()
bool loadNamedStyle (const QString &sty)
void slotDrag ()
void slotCopy ()
void slotSave (const QString &suggestedFname=QString::null)
void slotSetExportProfile (const QString &exportProfile)
void slotActivateEditor ()
void slotActivateEditorSelectAll ()
void slotShowBigPreview ()
void slotPresetDPISender ()
void slotLoadStyle (int stylenum)
void slotLoadStyle (const KLFStyle &style)
void slotSaveStyle ()
void slotStyleManager ()
void slotSettings ()
void refreshWindowSizes ()
void refreshShowCorrectClearButton ()
void refreshStylePopupMenus ()
void loadStyles ()
void loadLibrary ()
void loadLibrarySavedState ()
void saveStyles ()
void restoreFromLibrary (const KLFLibEntry &entry, uint restoreflags)
void insertSymbol (const KLFLatexSymbol &symbol)
void insertDelimiter (const QString &delim, int charsBack=1)
void saveSettings ()
void saveLibraryState ()
void loadSettings ()
void addWhatsNewText (const QString &htmlSnipplet)
void showAbout ()
void showWhatsNew ()
void showSettingsHelpLinkAction (const QUrl &link)
void helpLinkAction (const QUrl &link)
void setWidgetStyle (const QString &qtstyle)
void setTxtLatexFont (const QFont &f)
void setTxtPreambleFont (const QFont &f)
void showRealTimePreview (const QImage &preview, bool latexerror)
void updatePreviewBuilderThreadInput ()
void displayError (const QString &errormsg)
void setWindowShownStatus (const QHash< QWidget *, bool > &windowshownflags)
void refreshAllWindowStyleSheets ()
void setQuitOnClose (bool quitOnClose)
void quit ()

Signals

void evaluateFinished (const KLFBackend::klfOutput &output)
void stylesChanged ()
void applicationLocaleChanged (const QString &newLocale)

Public Member Functions

 KLFMainWin ()
virtual ~KLFMainWin ()
void startupFinished ()
bool eventFilter (QObject *obj, QEvent *event)
KLFStyle currentStyle () const
KLFBackend::klfSettings backendSettings () const
virtual QFont txtLatexFont () const
virtual QFont txtPreambleFont () const
KLFBackend::klfSettings currentSettings () const
void applySettings (const KLFBackend::klfSettings &s)
KLFBackend::klfOutput currentKLFBackendOutput () const
void alterSetting (altersetting_which, int ivalue)
void alterSetting (altersetting_which, QString svalue)
KLFLibBrowserlibBrowserWidget ()
KLFLatexSymbolslatexSymbolsWidget ()
KLFStyleManagerstyleManagerWidget ()
KLFSettingssettingsDialog ()
QMenustyleMenu ()
KLFLatexEditlatexEdit ()
KLFLatexSyntaxHighlightersyntaxHighlighter ()
KLFLatexSyntaxHighlighterpreambleSyntaxHighlighter ()
KLFConfigklfConfig ()
QHash< QWidget *, bool > currentWindowShownStatus (bool mainWindowToo=false)
QHash< QWidget *, bool > prepareAllWindowShownStatus (bool visibleStatus, bool mainWindowToo=false)
QString widgetStyle () const
void registerHelpLinkAction (const QString &path, QObject *object, const char *member, bool wantUrlParam)
void registerOutputSaver (KLFAbstractOutputSaver *outputsaver)
void unregisterOutputSaver (KLFAbstractOutputSaver *outputsaver)
void registerDataOpener (KLFAbstractDataOpener *dataopener)
void unregisterDataOpener (KLFAbstractDataOpener *dataopener)
bool canOpenFile (const QString &fileName)
bool canOpenData (const QByteArray &data)
bool canOpenData (const QMimeData *mimeData)

Protected Member Functions

bool try_load_style_list (const QString &fileName)
void showExportMsgLabel (const QString &msg, int timeout=3000)
KLFBackend::klfInput collectInput (bool isFinal)
bool event (QEvent *e)
void childEvent (QChildEvent *e)
void closeEvent (QCloseEvent *e)
void hideEvent (QHideEvent *e)
void showEvent (QShowEvent *e)
void timerEvent (QTimerEvent *e)
void getMissingCmdsFor (const QString &symbol, QStringList *missingCmds, QString *guiText, bool wantHtmlText=true)

Protected Attributes

Ui::KLFMainWin * u
KLFLibBrowsermLibBrowser
KLFLatexSymbolsmLatexSymbols
KLFStyleManagermStyleManager
KLFSettingsmSettingsDialog
KLFAboutDialogmAboutDialog
KLFWhatsNewDialogmWhatsNewDialog
KLFMainWinPopupmPopup
QList< HelpLinkActionmHelpLinkActions
KLFLibResourceEnginemHistoryLibResource
KLFStyleList _styles
QMenumStyleMenu
bool _loadedlibrary
bool _firstshow
KLFBackend::klfSettings _settings
bool _settings_altered
KLFBackend::klfOutput _output
bool _evaloutput_uptodate
KLFPreviewBuilderThreadmPreviewBuilderThread
QLabelmExportMsgLabel
int pExportMsgLabelTimerId
QList< QAction * > pExportProfileQuickMenuActionList
QSize _shrinkedsize
QSize _expandedsize
bool _ignore_close_event
QList< QWidget * > pWindowList
QHash< QWidget *, bool > pLastWindowShownStatus
QHash< QWidget *, QRectpLastWindowGeometries
QHash< QWidget *, bool > pSavedWindowShownStatus
QString _widgetstyle
QList< KLFAbstractOutputSaver * > pOutputSavers
QList< KLFAbstractDataOpener * > pDataOpeners

Properties

QString widgetStyle

Detailed Description

KLatexFormula Main Window

Author:
Philippe Faist <philippe.faist@bluewin.ch>

Definition at line 218 of file klfmainwin.h.


Member Enumeration Documentation

Enumerator:
altersetting_LBorderOffset 
altersetting_TBorderOffset 
altersetting_RBorderOffset 
altersetting_BBorderOffset 
altersetting_TempDir 
altersetting_Latex 
altersetting_Dvips 
altersetting_Gs 
altersetting_Epstopdf 
altersetting_OutlineFonts 

bool given as an int value

Definition at line 245 of file klfmainwin.h.


Constructor & Destructor Documentation

KLFMainWin::KLFMainWin ( )

Definition at line 204 of file klfmainwin.cpp.

References _evaloutput_uptodate, _firstshow, _loadedlibrary, _output, _settings, _shrinkedsize, _styles, QMenu::addAction(), QGridLayout::addItem(), addWhatsNewText(), QGridLayout::addWidget(), KLFConfig::applicationFont, applicationLocaleChanged(), KLFConfig::checkExePaths(), collectInput(), KLFConfig::Core, KLFConfig::customMathModes, KLFConfig::enableRealTimePreview, KLFConfig::enableToolTipPreview, KLFBackend::klfOutput::errorstr, QFontInfo::family(), QWidget::fontInfo(), KLFConfig::glowEffect, KLFConfig::glowEffectColor, KLFConfig::glowEffectRadius, QSize::height(), helpLinkAction(), insertSymbol(), klfconfig, klfDbg, KLFConfig::labelOutputFixedSize, KLFConfig::latexEditFont, loadDefaultStyle(), loadLibrary(), loadSettings(), loadStyles(), mAboutDialog, mExportMsgLabel, mHelpLinkActions, mLatexSymbols, mLibBrowser, mPopup, mPreviewBuilderThread, mSettingsDialog, mStyleManager, mWhatsNewDialog, pExportMsgLabelTimerId, KLFConfig::preambleEditFont, quit(), refreshShowCorrectClearButton(), refreshStylePopupMenus(), refreshWindowSizes(), registerDataOpener(), restoreFromLibrary(), retranslateUi(), saveStyles(), QLabel::setAlignment(), QWidget::setAttribute(), QPalette::setColor(), QWidget::setFixedSize(), QFont::setPointSize(), QGridLayout::setSpacing(), showAbout(), showRealTimePreview(), slotActivateEditor(), slotActivateEditorSelectAll(), slotClearAll(), slotClearLatex(), slotCopy(), slotDrag(), slotEvaluate(), slotExpandOrShrink(), slotLibrary(), slotLoadStyle(), slotPresetDPISender(), slotSave(), slotSaveStyle(), slotSettings(), slotShowBigPreview(), slotSymbols(), QThread::start(), QTimer::start(), KLFBackend::klfOutput::status, stylesChanged(), KLFConfig::thisVersionMajMinFirstRun, u, KLFConfig::UI, updatePreviewBuilderThreadInput(), and QSize::width().

KLFMainWin::~KLFMainWin ( ) [virtual]

Member Function Documentation

void KLFMainWin::addWhatsNewText ( const QString htmlSnipplet) [slot]

Definition at line 1437 of file klfmainwin.cpp.

References KLFHelpDialogCommon::addExtraText(), and mWhatsNewDialog.

Referenced by KLFMainWin().

void KLFMainWin::alterSetting ( altersetting_which  which,
int  ivalue 
)

This function allows to temporarily modify a given setting with a new value. KLatexFormula will NOT remember the new setting in later executions.

Used eg. for command-line mode.

Note you have to use the correct function for each setting, if the setting requires an int use this function, if it requires a string use alterSetting(altersetting_which, QString).

Definition at line 1768 of file klfmainwin.cpp.

References _settings, _settings_altered, altersetting_BBorderOffset, altersetting_LBorderOffset, altersetting_OutlineFonts, altersetting_RBorderOffset, altersetting_TBorderOffset, KLFBackend::klfSettings::bborderoffset, KLFBackend::klfSettings::lborderoffset, KLFBackend::klfSettings::outlineFonts, KLFBackend::klfSettings::rborderoffset, and KLFBackend::klfSettings::tborderoffset.

Referenced by main(), KLFDBusAppAdaptor::setAlterSetting_i(), and KLFDBusAppAdaptor::setAlterSetting_s().

void KLFMainWin::alterSetting ( altersetting_which  which,
QString  svalue 
)
void KLFMainWin::applicationLocaleChanged ( const QString newLocale) [signal]

Referenced by KLFMainWin(), and setApplicationLocale().

void KLFMainWin::applySettings ( const KLFBackend::klfSettings s)

Definition at line 1823 of file klfmainwin.cpp.

References _settings, and _settings_altered.

Referenced by KLFSettings::apply().

KLFBackend::klfSettings KLFMainWin::backendSettings ( ) const [inline]

Definition at line 234 of file klfmainwin.h.

bool KLFMainWin::canOpenData ( const QByteArray data)
bool KLFMainWin::canOpenData ( const QMimeData mimeData)
bool KLFMainWin::canOpenFile ( const QString fileName)

Definition at line 2189 of file klfmainwin.cpp.

References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, pDataOpeners, and QList::size().

void KLFMainWin::childEvent ( QChildEvent e) [protected]
void KLFMainWin::closeEvent ( QCloseEvent e) [protected]

Reimplemented from QWidget.

Definition at line 2802 of file klfmainwin.cpp.

References _ignore_close_event, QWidget::hide(), and quit().

KLFBackend::klfInput KLFMainWin::collectInput ( bool  isFinal) [protected]

Returns the input corresponding to the current GUI state. If isFinal is TRUE, then the input data may be "remembered" as used (the exact effect depends on the setting), eg. math mode is memorized into combo box choices. Typically isFinal is TRUE when called from slotEvaluate() and FALSE when called to update the preview builder thread.

Definition at line 1865 of file klfmainwin.cpp.

References KLFBackend::klfInput::bg_color, KLFConfig::customMathModes, KLFBackend::klfInput::dpi, KLFBackend::klfInput::fg_color, klfconfig, KLFBackend::klfInput::latex, KLFBackend::klfInput::mathmode, KLFBackend::klfInput::preamble, u, and KLFConfig::UI.

Referenced by KLFMainWin(), saveSettings(), slotEvaluate(), and updatePreviewBuilderThreadInput().

KLFBackend::klfOutput KLFMainWin::currentKLFBackendOutput ( ) const [inline]

Definition at line 243 of file klfmainwin.h.

KLFBackend::klfSettings KLFMainWin::currentSettings ( ) const [inline]

Definition at line 239 of file klfmainwin.h.

Referenced by KLFSettings::apply(), and KLFSettings::reset().

KLFStyle KLFMainWin::currentStyle ( ) const
QHash< QWidget *, bool > KLFMainWin::currentWindowShownStatus ( bool  mainWindowToo = false)

Definition at line 1675 of file klfmainwin.cpp.

References pWindowList, and QList::size().

Referenced by hideEvent().

void KLFMainWin::displayError ( const QString errormsg) [slot]

Definition at line 1829 of file klfmainwin.cpp.

References QMessageBox::critical().

void KLFMainWin::evaluateFinished ( const KLFBackend::klfOutput output) [signal]

Referenced by slotEvaluate().

bool KLFMainWin::event ( QEvent e) [protected]
bool KLFMainWin::eventFilter ( QObject obj,
QEvent event 
)
void KLFMainWin::getMissingCmdsFor ( const QString symbol,
QStringList missingCmds,
QString guiText,
bool  wantHtmlText = true 
) [protected]
void KLFMainWin::helpLinkAction ( const QUrl link) [slot]
void KLFMainWin::hideEvent ( QHideEvent e) [protected]
void KLFMainWin::insertDelimiter ( const QString delim,
int  charsBack = 1 
) [slot]

Inserts a delimiter delim, and brings the cursor charsBack characters back. Eg. you can insert "\mathrm{}" and bring the cursor 1 space back.

Definition at line 1143 of file klfmainwin.cpp.

References u.

void KLFMainWin::insertSymbol ( const KLFLatexSymbol symbol) [slot]
KLFConfig* KLFMainWin::klfConfig ( ) [inline]

Definition at line 277 of file klfmainwin.h.

References klfconfig.

KLFLatexEdit * KLFMainWin::latexEdit ( )

Definition at line 1806 of file klfmainwin.cpp.

References u.

KLFLatexSymbols* KLFMainWin::latexSymbolsWidget ( ) [inline]

Definition at line 269 of file klfmainwin.h.

KLFLibBrowser* KLFMainWin::libBrowserWidget ( ) [inline]

Definition at line 268 of file klfmainwin.h.

bool KLFMainWin::loadDefaultStyle ( ) [slot]

Definition at line 580 of file klfmainwin.cpp.

References loadNamedStyle().

Referenced by KLFMainWin(), and slotClearAll().

void KLFMainWin::loadLibrary ( ) [slot]
void KLFMainWin::loadLibrarySavedState ( ) [slot]
bool KLFMainWin::loadNamedStyle ( const QString sty) [slot]

Definition at line 590 of file klfmainwin.cpp.

References _styles, QList::size(), and slotLoadStyle().

Referenced by loadDefaultStyle().

void KLFMainWin::loadSettings ( ) [slot]
void KLFMainWin::loadStyles ( ) [slot]
bool KLFMainWin::openData ( const QMimeData mimeData,
bool *  openerFound = NULL 
) [slot]
bool KLFMainWin::openData ( const QByteArray data) [slot]
bool KLFMainWin::openFile ( const QString file) [slot]
bool KLFMainWin::openFiles ( const QStringList fileList) [slot]
bool KLFMainWin::openLibFile ( const QString file,
bool  showLibrary = true 
) [slot]
bool KLFMainWin::openLibFiles ( const QStringList files,
bool  showLibrary = true 
) [slot]
KLFLatexSyntaxHighlighter * KLFMainWin::preambleSyntaxHighlighter ( )

Definition at line 1814 of file klfmainwin.cpp.

References u.

QHash< QWidget *, bool > KLFMainWin::prepareAllWindowShownStatus ( bool  visibleStatus,
bool  mainWindowToo = false 
)

Definition at line 1685 of file klfmainwin.cpp.

References pWindowList, and QList::size().

Referenced by hideEvent().

void KLFMainWin::quit ( ) [slot]
void KLFMainWin::refreshAllWindowStyleSheets ( ) [slot]

Definition at line 1665 of file klfmainwin.cpp.

References pWindowList, and QList::size().

Referenced by KLFSettings::apply().

void KLFMainWin::refreshShowCorrectClearButton ( ) [slot]

Definition at line 572 of file klfmainwin.cpp.

References KLFConfig::clearLatexOnly, klfconfig, u, and KLFConfig::UI.

Referenced by KLFSettings::apply(), and KLFMainWin().

void KLFMainWin::refreshStylePopupMenus ( ) [slot]
void KLFMainWin::refreshWindowSizes ( ) [slot]
void KLFMainWin::registerDataOpener ( KLFAbstractDataOpener dataopener)

Definition at line 1462 of file klfmainwin.cpp.

References QList::append(), KLF_ASSERT_NOT_NULL, and pDataOpeners.

Referenced by KLFMainWin().

void KLFMainWin::registerHelpLinkAction ( const QString path,
QObject object,
const char *  member,
bool  wantUrlParam 
)

Definition at line 1443 of file klfmainwin.cpp.

References mHelpLinkActions.

void KLFMainWin::registerOutputSaver ( KLFAbstractOutputSaver outputsaver)

Definition at line 1450 of file klfmainwin.cpp.

References QList::append(), KLF_ASSERT_NOT_NULL, and pOutputSavers.

void KLFMainWin::restoreFromLibrary ( const KLFLibEntry entry,
uint  restoreflags 
) [slot]
void KLFMainWin::retranslateUi ( bool  alsoBaseUi = true) [slot]

Definition at line 482 of file klfmainwin.cpp.

References QString::fromUtf8(), refreshStylePopupMenus(), and u.

Referenced by KLFMainWin().

void KLFMainWin::saveLibraryState ( ) [slot]
void KLFMainWin::saveSettings ( ) [slot]

Definition at line 621 of file klfmainwin.cpp.

References _settings, _settings_altered, KLFConfig::BackendSettings, KLFBackend::klfSettings::bborderoffset, KLFConfig::bborderoffset, collectInput(), KLFConfig::colorChooseWidgetCustom, KLFConfig::colorChooseWidgetRecent, KLFColorChooser::colorList(), KLFConfig::copyExportProfile, KLFColorChooseWidget::customColors(), KLFConfig::dragExportProfile, KLFBackend::klfSettings::dvipsexec, KLFConfig::enableRealTimePreview, KLFConfig::enableToolTipPreview, KLFBackend::klfSettings::epstopdfexec, KLFConfig::execDvips, KLFBackend::klfSettings::execenv, KLFConfig::execenv, KLFConfig::execEpstopdf, KLFConfig::execGs, KLFConfig::execLatex, KLFConfig::glowEffect, KLFConfig::glowEffectColor, KLFConfig::glowEffectRadius, KLFBackend::klfSettings::gsexec, QSize::height(), QThread::isRunning(), klfconfig, klfDbg, KLFConfig::labelOutputFixedSize, KLFBackend::klfSettings::latexexec, KLFBackend::klfSettings::lborderoffset, KLFConfig::lborderoffset, KLFConfig::menuExportProfileAffectsCopy, KLFConfig::menuExportProfileAffectsDrag, mPreviewBuilderThread, KLFBackend::klfSettings::outlineFonts, KLFConfig::outlineFonts, pExportProfileQuickMenuActionList, KLFBackend::klfSettings::rborderoffset, KLFConfig::rborderoffset, KLFColorChooseWidget::recentColors(), KLFPreviewBuilderThread::settingsChanged(), QList::size(), QThread::start(), KLFBackend::klfSettings::tborderoffset, KLFConfig::tborderoffset, KLFBackend::klfSettings::tempdir, KLFConfig::tempDir, u, KLFConfig::UI, KLFConfig::userColorList, QSize::width(), and KLFConfig::writeToConfig().

Referenced by KLFSettings::apply(), slotSetExportProfile(), and ~KLFMainWin().

void KLFMainWin::saveStyles ( ) [slot]
void KLFMainWin::setApplicationLocale ( const QString locale) [slot]

Definition at line 2341 of file klfmainwin.cpp.

References applicationLocaleChanged(), and klf_reload_translations().

Referenced by KLFSettings::apply().

void KLFMainWin::setQuitOnClose ( bool  quitOnClose) [slot]

Definition at line 1505 of file klfmainwin.cpp.

References _ignore_close_event.

KLFSettings* KLFMainWin::settingsDialog ( ) [inline]

Definition at line 271 of file klfmainwin.h.

Referenced by KLFAddOnDataOpener::openFile().

void KLFMainWin::setTxtLatexFont ( const QFont f) [slot]

Definition at line 1843 of file klfmainwin.cpp.

References u.

Referenced by KLFSettings::apply().

void KLFMainWin::setTxtPreambleFont ( const QFont f) [slot]

Definition at line 1847 of file klfmainwin.cpp.

References u.

Referenced by KLFSettings::apply().

void KLFMainWin::setWidgetStyle ( const QString qtstyle) [slot]
void KLFMainWin::setWindowShownStatus ( const QHash< QWidget *, bool > &  windowshownflags) [slot]

Definition at line 1696 of file klfmainwin.cpp.

References QHash::begin(), QHash::end(), and QMetaObject::invokeMethod().

Referenced by hideEvent(), and showEvent().

void KLFMainWin::showAbout ( ) [slot]

Definition at line 1378 of file klfmainwin.cpp.

References mAboutDialog, and KLFAboutDialog::show().

Referenced by KLFMainWin().

void KLFMainWin::showEvent ( QShowEvent e) [protected]
void KLFMainWin::showExportMsgLabel ( const QString msg,
int  timeout = 3000 
) [protected]

Definition at line 695 of file klfmainwin.cpp.

References mExportMsgLabel, and pExportMsgLabelTimerId.

Referenced by slotCopy().

void KLFMainWin::showRealTimePreview ( const QImage preview,
bool  latexerror 
) [slot]

Definition at line 1852 of file klfmainwin.cpp.

References _evaloutput_uptodate, klfDbg, QImage::size(), and u.

Referenced by KLFMainWin().

void KLFMainWin::showSettingsHelpLinkAction ( const QUrl link) [slot]
void KLFMainWin::showWhatsNew ( ) [slot]
void KLFMainWin::slotActivateEditor ( ) [slot]

Definition at line 2634 of file klfmainwin.cpp.

References QWidget::activateWindow(), and u.

Referenced by KLFMainWin(), and slotActivateEditorSelectAll().

void KLFMainWin::slotActivateEditorSelectAll ( ) [slot]

Definition at line 2641 of file klfmainwin.cpp.

References slotActivateEditor(), and u.

Referenced by KLFMainWin().

void KLFMainWin::slotClear ( ) [inline, slot]

Definition at line 308 of file klfmainwin.h.

void KLFMainWin::slotClearAll ( ) [slot]

Definition at line 2041 of file klfmainwin.cpp.

References loadDefaultStyle(), and slotClearLatex().

Referenced by KLFMainWin().

void KLFMainWin::slotClearLatex ( ) [slot]

Definition at line 2037 of file klfmainwin.cpp.

References u.

Referenced by KLFMainWin(), and slotClearAll().

void KLFMainWin::slotCopy ( ) [slot]
void KLFMainWin::slotDrag ( ) [slot]
void KLFMainWin::slotEnsurePreambleCmd ( const QString line) [slot]

If line is already in the preamble, then does nothing. Otherwise appends line to the preamble text.

Definition at line 2107 of file klfmainwin.cpp.

References QTextCursor::beginEditBlock(), QTextCursor::endEditBlock(), QString::indexOf(), QTextCursor::insertText(), QString::length(), QTextCursor::movePosition(), and u.

Referenced by insertSymbol().

void KLFMainWin::slotEvaluate ( ) [slot]

Definition at line 1892 of file klfmainwin.cpp.

References _evaloutput_uptodate, _output, _settings, KLFBackend::klfSettings::bborderoffset, KLFLibEntry::category(), KLFLibEntry::Category, collectInput(), QMessageBox::critical(), QDateTime::currentDateTime(), currentStyle(), KLFLibEntry::DateTime, KLFLibResourceEngine::defaultSubResource(), KLFBackend::klfOutput::errorstr, evaluateFinished(), KLFSettings::ExecutablePaths, KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, KLFLibResourceEngine::QueryResult::FillRawEntryList, QPixmap::fromImage(), KLFBackend::getLatexFormula(), QSize::height(), QImage::height(), KLFLibResourceEngine::insertEntry(), KLFLibResourceEngine::isReadOnly(), klfconfig, KLFERR_NODVIPSPROG, KLFERR_NOEPSTOPDFPROG, KLFERR_NOGSPROG, KLFERR_NOLATEXPROG, KLFConfig::labelOutputFixedSize, KLFLibEntry::latex(), KLFLibEntry::Latex, KLFBackend::klfInput::latex, KLFBackend::klfSettings::lborderoffset, KLFLibResourceEngine::Query::limit, KLFLibResourceEngine::locked(), KLFLibResourceEngine::Query::matchCondition, mHistoryLibResource, KLFLib::EntryMatchCondition::mkMatchAll(), mSettingsDialog, KLFLibResourceEngine::Query::orderDirection, KLFLibResourceEngine::Query::orderPropId, KLFConfig::previewTooltipMaxSize, KLFLibResourceEngine::query(), KLFBackend::klfSettings::rborderoffset, KLFBackend::klfOutput::result, QImage::scaled(), KLFLibResourceEngine::setLocked(), KLFLibResourceEngine::setSubResourceProperty(), KLFSettings::show(), KLFSettings::showControl(), KLFProgErr::showError(), QImage::size(), KLFLibResourceEngine::Query::skip, KLFBackend::klfOutput::status, KLFLibEntry::style(), KLFLibEntry::Style, KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropLocked, KLFLibResourceEngine::supportedFeatureFlags(), KLFLibEntry::tags(), KLFLibEntry::Tags, KLFBackend::klfSettings::tborderoffset, QPixmap::toImage(), u, KLFConfig::UI, KLFLibResourceEngine::Query::wantedEntryProperties, QMessageBox::warning(), QSize::width(), and QImage::width().

Referenced by eventFilter(), KLFMainWin(), and slotEvaluateAndSave().

void KLFMainWin::slotEvaluateAndSave ( const QString output,
const QString format 
) [slot]
void KLFMainWin::slotExpand ( bool  expanded = true) [slot]

Definition at line 2081 of file klfmainwin.cpp.

References slotExpandOrShrink(), and u.

Referenced by eventFilter().

void KLFMainWin::slotExpandOrShrink ( ) [slot]

Definition at line 2067 of file klfmainwin.cpp.

References _expandedsize, _shrinkedsize, QWidget::setFixedSize(), and u.

Referenced by KLFMainWin(), and slotExpand().

void KLFMainWin::slotLibrary ( bool  showlib) [slot]
void KLFMainWin::slotLibraryButtonRefreshState ( bool  on) [slot]

Definition at line 1112 of file klfmainwin.cpp.

References u.

Referenced by eventFilter().

void KLFMainWin::slotLoadStyle ( int  stylenum) [slot]

Definition at line 2736 of file klfmainwin.cpp.

References _styles, and QList::size().

Referenced by KLFMainWin(), loadNamedStyle(), and restoreFromLibrary().

void KLFMainWin::slotLoadStyle ( const KLFStyle style) [slot]
void KLFMainWin::slotPresetDPISender ( ) [slot]

Definition at line 2663 of file klfmainwin.cpp.

References QAction::data(), and slotSetDPI().

Referenced by KLFMainWin().

void KLFMainWin::slotSave ( const QString suggestedFname = QString::null) [slot]
void KLFMainWin::slotSaveStyle ( ) [slot]
void KLFMainWin::slotSetBgColor ( const QString bgcolor) [slot]

Definition at line 2147 of file klfmainwin.cpp.

References QColor::setNamedColor(), QColor::setRgb(), and slotSetBgColor().

void KLFMainWin::slotSetBgColor ( const QColor bgcolor) [slot]

Definition at line 2143 of file klfmainwin.cpp.

References u.

Referenced by main(), KLFDBusAppAdaptor::setInputData(), and slotSetBgColor().

void KLFMainWin::slotSetDPI ( int  DPI) [slot]

Definition at line 2128 of file klfmainwin.cpp.

References u.

Referenced by main(), KLFDBusAppAdaptor::setInputData(), and slotPresetDPISender().

void KLFMainWin::slotSetExportProfile ( const QString exportProfile) [slot]
void KLFMainWin::slotSetFgColor ( const QColor fgcolor) [slot]

Definition at line 2133 of file klfmainwin.cpp.

References u.

Referenced by main(), KLFDBusAppAdaptor::setInputData(), and slotSetFgColor().

void KLFMainWin::slotSetFgColor ( const QString fgcolor) [slot]

Definition at line 2137 of file klfmainwin.cpp.

References QColor::setNamedColor(), and slotSetFgColor().

void KLFMainWin::slotSetLatex ( const QString latex) [slot]

Definition at line 2090 of file klfmainwin.cpp.

References u.

Referenced by main(), restoreFromLibrary(), and KLFDBusAppAdaptor::setInputData().

void KLFMainWin::slotSetMathMode ( const QString mathmode) [slot]

Definition at line 2095 of file klfmainwin.cpp.

References QString::simplified(), and u.

Referenced by main(), and KLFDBusAppAdaptor::setInputData().

void KLFMainWin::slotSetPreamble ( const QString preamble) [slot]

Definition at line 2102 of file klfmainwin.cpp.

References u.

Referenced by main(), KLFDBusAppAdaptor::setInputData(), and slotLoadStyle().

void KLFMainWin::slotSettings ( ) [slot]

Definition at line 2796 of file klfmainwin.cpp.

References mSettingsDialog, and KLFSettings::show().

Referenced by KLFMainWin().

void KLFMainWin::slotShowBigPreview ( ) [slot]

Definition at line 2647 of file klfmainwin.cpp.

References QString::arg(), QWhatsThis::showText(), and u.

Referenced by KLFMainWin().

void KLFMainWin::slotStyleManager ( ) [slot]

Definition at line 2790 of file klfmainwin.cpp.

References mStyleManager, and QWidget::show().

Referenced by refreshStylePopupMenus().

void KLFMainWin::slotSymbols ( bool  showsymbs = true) [slot]
void KLFMainWin::slotSymbolsButtonRefreshState ( bool  on) [slot]

Definition at line 1373 of file klfmainwin.cpp.

References u.

Referenced by eventFilter(), and slotSymbols().

void KLFMainWin::startupFinished ( )
KLFStyleManager* KLFMainWin::styleManagerWidget ( ) [inline]

Definition at line 270 of file klfmainwin.h.

QMenu* KLFMainWin::styleMenu ( ) [inline]

Definition at line 272 of file klfmainwin.h.

void KLFMainWin::stylesChanged ( ) [signal]

Referenced by KLFMainWin(), and slotSaveStyle().

KLFLatexSyntaxHighlighter * KLFMainWin::syntaxHighlighter ( )

Definition at line 1810 of file klfmainwin.cpp.

References u.

void KLFMainWin::timerEvent ( QTimerEvent e) [protected]
bool KLFMainWin::try_load_style_list ( const QString fileName) [protected]
QFont KLFMainWin::txtLatexFont ( ) const [virtual]

Definition at line 2694 of file klfmainwin.cpp.

References u.

QFont KLFMainWin::txtPreambleFont ( ) const [virtual]

Definition at line 2698 of file klfmainwin.cpp.

References u.

void KLFMainWin::unregisterDataOpener ( KLFAbstractDataOpener dataopener)

Definition at line 1468 of file klfmainwin.cpp.

References pDataOpeners, and QList::removeAll().

void KLFMainWin::unregisterOutputSaver ( KLFAbstractOutputSaver outputsaver)

Definition at line 1457 of file klfmainwin.cpp.

References pOutputSavers, and QList::removeAll().

void KLFMainWin::updatePreviewBuilderThreadInput ( ) [slot]
QString KLFMainWin::widgetStyle ( ) const [inline]

Definition at line 282 of file klfmainwin.h.


Member Data Documentation

If TRUE, then the output contained in _output is up-to-date, meaning that we favor displaying _output.result instead of the image given by mPreviewBuilderThread.

Definition at line 465 of file klfmainwin.h.

Referenced by KLFMainWin(), showRealTimePreview(), slotEvaluate(), and updatePreviewBuilderThreadInput().

Definition at line 482 of file klfmainwin.h.

Referenced by refreshWindowSizes(), and slotExpandOrShrink().

bool KLFMainWin::_firstshow [protected]

Definition at line 455 of file klfmainwin.h.

Referenced by KLFMainWin(), and showEvent().

Definition at line 494 of file klfmainwin.h.

Referenced by closeEvent(), and setQuitOnClose().

bool KLFMainWin::_loadedlibrary [protected]

Definition at line 454 of file klfmainwin.h.

Referenced by KLFMainWin().

Definition at line 458 of file klfmainwin.h.

Referenced by alterSetting(), applySettings(), loadSettings(), and saveSettings().

Definition at line 481 of file klfmainwin.h.

Referenced by KLFMainWin(), refreshWindowSizes(), and slotExpandOrShrink().

Definition at line 508 of file klfmainwin.h.

Referenced by setWidgetStyle().

Definition at line 430 of file klfmainwin.h.

Referenced by KLFMainWin(), and showAbout().

Definition at line 469 of file klfmainwin.h.

Referenced by KLFMainWin(), showExportMsgLabel(), and timerEvent().

Definition at line 444 of file klfmainwin.h.

Referenced by helpLinkAction(), KLFMainWin(), and registerHelpLinkAction().

Definition at line 446 of file klfmainwin.h.

Referenced by loadLibrary(), and slotEvaluate().

Definition at line 427 of file klfmainwin.h.

Referenced by eventFilter(), KLFMainWin(), quit(), slotSymbols(), and ~KLFMainWin().

Definition at line 433 of file klfmainwin.h.

Referenced by eventFilter(), and KLFMainWin().

The Thread that will create real-time previews of formulas.

Definition at line 467 of file klfmainwin.h.

Referenced by KLFMainWin(), saveSettings(), updatePreviewBuilderThreadInput(), and ~KLFMainWin().

Definition at line 428 of file klfmainwin.h.

Referenced by KLFMainWin(), quit(), and slotStyleManager().

Definition at line 452 of file klfmainwin.h.

Referenced by loadStyles(), refreshStylePopupMenus(), and ~KLFMainWin().

Definition at line 431 of file klfmainwin.h.

Referenced by addWhatsNewText(), KLFMainWin(), and showWhatsNew().

Definition at line 471 of file klfmainwin.h.

Referenced by KLFMainWin(), showExportMsgLabel(), and timerEvent().

Definition at line 479 of file klfmainwin.h.

Referenced by saveSettings(), and startupFinished().

Definition at line 500 of file klfmainwin.h.

Referenced by eventFilter(), hideEvent(), and showEvent().

"last" window status flags are used in eventFilter() to detect individual dialog geometries resetting

Definition at line 499 of file klfmainwin.h.

Referenced by eventFilter().

Definition at line 513 of file klfmainwin.h.

Referenced by registerOutputSaver(), slotSave(), and unregisterOutputSaver().

"saved" window status flags are used in hideEvent() to save the individual dialog visible states, as the "last" status flags will be overridden by all the windows hiding.

Definition at line 503 of file klfmainwin.h.

Referenced by hideEvent(), and showEvent().

Ui::KLFMainWin* KLFMainWin::u [protected]

Property Documentation

QString KLFMainWin::widgetStyle [read, write]

Definition at line 221 of file klfmainwin.h.


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

Generated by doxygen 1.7.3