#include <klflatexpreviewthread.h>


Public Slots | |
| void | setEnabled (bool enabled) |
| bool | setInput (const KLFBackend::klfInput &input) |
| bool | setSettings (const KLFBackend::klfSettings &settings, bool disableExtraFormats=true) |
| bool | setPreviewSize (const QSize &previewSize) |
| bool | setLargePreviewSize (const QSize &largePreviewSize) |
Signals | |
| void | previewReset () |
| void | outputAvailable (const KLFBackend::klfOutput &output) |
| void | previewAvailable (const QImage &preview, const QImage &largePreview, const QImage &fullPreview) |
| void | previewImageAvailable (const QImage &preview) |
| void | previewLargeImageAvailable (const QImage &largePreview) |
| void | previewFullImageAvailable (const QImage &fullPreview) |
| void | previewError (const QString &errorString, int errorCode) |
| void | compiling (bool isCompiling) |
Public Member Functions | |
| KLFContLatexPreview (KLFLatexPreviewThread *thread=NULL) | |
| bool | enabled () const |
| KLFBackend::klfInput | intput () const |
| KLFBackend::klfSettings | settings () const |
| QSize | previewSize () const |
| QSize | largePreviewSize () const |
| void | setThread (KLFLatexPreviewThread *thread) |
Properties | |
| QSize | previewSize |
| QSize | largePreviewSize |
A helper that runs in a different thread that generates previews in real-time as user types text, without blocking the GUI.
.......... UPDATE DOC FOR NEW THREAD OBJECT STRUCTURE ........
Definition at line 152 of file klflatexpreviewthread.h.
| void KLFContLatexPreview::compiling | ( | bool | isCompiling | ) | [signal] |
Is emitted whenever there currently is a LaTeX formula compiling
| void KLFContLatexPreview::outputAvailable | ( | const KLFBackend::klfOutput & | output | ) | [signal] |
Emitted when a preview was successfully generated (i.e., output.status==0). The full KLFBackend::klfOutput object is given here.
Note that this signal is emitted before the other preview***Available() functions.
| void KLFContLatexPreview::previewAvailable | ( | const QImage & | preview, |
| const QImage & | largePreview, | ||
| const QImage & | fullPreview | ||
| ) | [signal] |
Emitted when a preview was successfully generated. All three images are given here (preview size, large preview size, original image)
| void KLFContLatexPreview::previewError | ( | const QString & | errorString, |
| int | errorCode | ||
| ) | [signal] |
Emitted when generation of the latex preview raised an error. See the error codes defined in klfbackend.h
| void KLFContLatexPreview::previewFullImageAvailable | ( | const QImage & | fullPreview | ) | [signal] |
Emitted when a preview was successfully generated. The original image is given.
| void KLFContLatexPreview::previewImageAvailable | ( | const QImage & | preview | ) | [signal] |
Emitted when a preview was successfully generated. Preview Size image. See also setPreviewSize().
| void KLFContLatexPreview::previewLargeImageAvailable | ( | const QImage & | largePreview | ) | [signal] |
Emitted when a preview was successfully generated. Large preview size image. See also setLargePreviewSize().
| void KLFContLatexPreview::previewReset | ( | ) | [signal] |
Emitted whenever there is no preview to generate (input latex string empty)
| bool KLFContLatexPreview::setInput | ( | const KLFBackend::klfInput & | input | ) | [slot] |
input. The thread will then take care to generate the corresponding preview and emit the previewAvailable() etc. signals. Definition at line 459 of file klflatexpreviewthread.cpp.
References KLF_DEBUG_BLOCK, and KLF_FUNC_NAME.
| bool KLFContLatexPreview::setLargePreviewSize | ( | const QSize & | largePreviewSize | ) | [slot] |
largePreviewSize Definition at line 495 of file klflatexpreviewthread.cpp.
| bool KLFContLatexPreview::setPreviewSize | ( | const QSize & | previewSize | ) | [slot] |
previewSize Definition at line 487 of file klflatexpreviewthread.cpp.
| bool KLFContLatexPreview::setSettings | ( | const KLFBackend::klfSettings & | settings, |
| bool | disableExtraFormats = true |
||
| ) | [slot] |
settings Definition at line 470 of file klflatexpreviewthread.cpp.
References KLFBackend::klfSettings::wantPDF, KLFBackend::klfSettings::wantRaw, and KLFBackend::klfSettings::wantSVG.