#include <klfmainwin.h>


Public Slots | |
| bool | inputChanged (const KLFBackend::klfInput &input) |
| void | settingsChanged (const KLFBackend::klfSettings &settings, int labelwidth, int labelheight) |
Signals | |
| void | previewAvailable (const QImage &preview, bool latexerror) |
Public Member Functions | |
| KLFPreviewBuilderThread (QObject *parent, KLFBackend::klfInput input, KLFBackend::klfSettings settings, int labelwidth, int labelheight) | |
| virtual | ~KLFPreviewBuilderThread () |
| void | run () |
Public Member Functions inherited from QThread | |
| QThread (QObject *parent=0) | |
| currentThread () | |
| HANDLE QThread::currentThreadId() | |
| exec () | |
| exit (int returnCode=0) | |
| finished () | |
| idealThreadCount () | |
| isFinished () | |
| isRunning () | |
| msleep (unsigned long msecs) | |
| priority () | |
| quit () | |
| run () | |
| setPriority (Priority priority) | |
| setStackSize (uint stackSize) | |
| setTerminationEnabled (bool enabled=true) | |
| sleep (unsigned long secs) | |
| stackSize () | |
| start (Priority priority=InheritPriority) | |
| started () | |
| terminate () | |
| terminated () | |
| usleep (unsigned long usecs) | |
| wait (unsigned long time=ULONG_MAX) | |
| finished () | |
| running () | |
Protected Attributes | |
| KLFBackend::klfInput | _input |
| KLFBackend::klfSettings | _settings |
| int | _lwidth |
| int | _lheight |
| QMutex | _mutex |
| QWaitCondition | _condnewinfoavail |
| bool | _hasnewinfo |
| bool | _abort |
A helper that runs in a different thread that generates previews in real-time as user types text, without blocking the GUI.
Definition at line 180 of file klfmainwin.h.
| KLFPreviewBuilderThread::KLFPreviewBuilderThread | ( | QObject * | parent, |
| KLFBackend::klfInput | input, | ||
| KLFBackend::klfSettings | settings, | ||
| int | labelwidth, | ||
| int | labelheight | ||
| ) |
Definition at line 101 of file klfmainwin.cpp.
|
virtual |
Definition at line 108 of file klfmainwin.cpp.
References _abort, _condnewinfoavail, _mutex, QMutex::lock(), QMutex::unlock(), QThread::wait(), and QWaitCondition::wakeOne().
|
slot |
Definition at line 177 of file klfmainwin.cpp.
References _condnewinfoavail, _hasnewinfo, _input, _mutex, and QWaitCondition::wakeOne().
Referenced by KLFMainWin::updatePreviewBuilderThreadInput().
|
signal |
Referenced by run().
| void KLFPreviewBuilderThread::run | ( | ) |
Definition at line 117 of file klfmainwin.cpp.
References _abort, _condnewinfoavail, _hasnewinfo, _input, _lheight, _lwidth, _mutex, _settings, KLFBackend::klfSettings::epstopdfexec, KLFBackend::getLatexFormula(), QImage::height(), KLFBackend::klfInput::latex, QMutex::lock(), previewAvailable(), KLFBackend::klfOutput::result, QImage::scaled(), KLFBackend::klfOutput::status, QString::trimmed(), QMutex::unlock(), QWaitCondition::wait(), and QImage::width().
|
slot |
Definition at line 188 of file klfmainwin.cpp.
References _condnewinfoavail, _hasnewinfo, _lheight, _lwidth, _mutex, _settings, QMutex::lock(), QMutex::unlock(), and QWaitCondition::wakeOne().
Referenced by KLFMainWin::saveSettings().
|
protected |
Definition at line 206 of file klfmainwin.h.
Referenced by run(), and ~KLFPreviewBuilderThread().
|
protected |
Definition at line 203 of file klfmainwin.h.
Referenced by inputChanged(), run(), settingsChanged(), and ~KLFPreviewBuilderThread().
|
protected |
Definition at line 205 of file klfmainwin.h.
Referenced by inputChanged(), run(), and settingsChanged().
|
protected |
Definition at line 198 of file klfmainwin.h.
Referenced by inputChanged(), and run().
|
protected |
Definition at line 200 of file klfmainwin.h.
Referenced by run(), and settingsChanged().
|
protected |
Definition at line 200 of file klfmainwin.h.
Referenced by run(), and settingsChanged().
|
protected |
Definition at line 202 of file klfmainwin.h.
Referenced by inputChanged(), run(), settingsChanged(), and ~KLFPreviewBuilderThread().
|
protected |
Definition at line 199 of file klfmainwin.h.
Referenced by run(), and settingsChanged().