[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Slots | Signals | Public Member Functions | Protected Attributes
KLFPreviewBuilderThread Class Reference

#include <klfmainwin.h>

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

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

KLFPreviewBuilderThread::KLFPreviewBuilderThread ( QObject parent,
KLFBackend::klfInput  input,
KLFBackend::klfSettings  settings,
int  labelwidth,
int  labelheight 
)

Definition at line 101 of file klfmainwin.cpp.

KLFPreviewBuilderThread::~KLFPreviewBuilderThread ( )
virtual

Member Function Documentation

bool KLFPreviewBuilderThread::inputChanged ( const KLFBackend::klfInput input)
slot
void KLFPreviewBuilderThread::previewAvailable ( const QImage preview,
bool  latexerror 
)
signal

Referenced by run().

void KLFPreviewBuilderThread::run ( )
void KLFPreviewBuilderThread::settingsChanged ( const KLFBackend::klfSettings settings,
int  labelwidth,
int  labelheight 
)
slot

Member Data Documentation

bool KLFPreviewBuilderThread::_abort
protected

Definition at line 206 of file klfmainwin.h.

Referenced by run(), and ~KLFPreviewBuilderThread().

QWaitCondition KLFPreviewBuilderThread::_condnewinfoavail
protected

Definition at line 203 of file klfmainwin.h.

Referenced by inputChanged(), run(), settingsChanged(), and ~KLFPreviewBuilderThread().

bool KLFPreviewBuilderThread::_hasnewinfo
protected

Definition at line 205 of file klfmainwin.h.

Referenced by inputChanged(), run(), and settingsChanged().

KLFBackend::klfInput KLFPreviewBuilderThread::_input
protected

Definition at line 198 of file klfmainwin.h.

Referenced by inputChanged(), and run().

int KLFPreviewBuilderThread::_lheight
protected

Definition at line 200 of file klfmainwin.h.

Referenced by run(), and settingsChanged().

int KLFPreviewBuilderThread::_lwidth
protected

Definition at line 200 of file klfmainwin.h.

Referenced by run(), and settingsChanged().

QMutex KLFPreviewBuilderThread::_mutex
protected

Definition at line 202 of file klfmainwin.h.

Referenced by inputChanged(), run(), settingsChanged(), and ~KLFPreviewBuilderThread().

KLFBackend::klfSettings KLFPreviewBuilderThread::_settings
protected

Definition at line 199 of file klfmainwin.h.

Referenced by run(), and settingsChanged().


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

Generated by doxygen 1.8.1