Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

QTReader Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-reader/QTReader.h>

Collaboration diagram for QTReader:

Collaboration graph
[legend]
List of all members.

Signals

void OnRedraw ()
void OnWordSelected (const QString &, size_t, size_t, const QString &)
void OnShowPicture (QImage &)
void OnURLSelected (const QString &, const size_t)
void NewFileRequest (const QString &)
void HandleKeyRequest (QKeyEvent *)
void SetScrollState (bool)
void RefreshBitmap ()

Public Member Functions

 QTReader (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~QTReader ()
QString about ()
void readAloud ()
CList< Bkmk > * Bkmklist ()
void setBackground (const QColor &_c)
void setForeground (const QColor &_c)
void zoomin ()
void zoomout ()
void setSaveData (unsigned char *&data, unsigned short &len, unsigned char *src, unsigned short srclen)
void putSaveData (unsigned char *&src, unsigned short &srclen)
bool empty ()
void setContinuous (bool _b)
void toggle_autoscroll ()
void setautoscroll (bool)
void disableAutoscroll ()
void copy ()
void clear ()
void setText (const QString &n, const QString &s, unsigned int lcn=0)
void setlead (int _lead)
int getlead ()
void setextraspace (int _lead)
int getextraspace ()
void setpagemode (bool _b)
void setmono (bool _b)
void setencoding (int _f)
MarkupType PreferredMarkup ()
CEncodinggetencoding ()
CFilterChaingetfilter ()
bool doOutput (const QString &wrd)
void setDoUpdates (bool b)
void setStripCR (bool b)
void NavUp ()
void NavDown ()
tchar getch ()
bool synch (size_t, size_t)
bool load_file (const char *newfile, unsigned int lcn=0)
CList< Bkmk > * getbkmklist ()
bool locate (unsigned long n)
void jumpto (unsigned long n)
unsigned long locate ()
unsigned long explocate ()
unsigned long pagelocate ()
void getNextLink ()
void setfilter (CFilterChain *f)
void restore ()
void goUp ()
void refresh (bool full=false)
void goDown ()
int textsize ()
void textsize (int ts)
bool fillbuffer (int ru=0, int ht=-1, int newht=-1)
void CalculateScrollParameters ()
unsigned int screenlines ()
void sizes (unsigned long &fs, unsigned long &ts)
QString firstword ()
void reset_bg ()
void setInverse (bool b)

Public Attributes

HighlightFilterm_highlightfilter
bool tight
BuffDoc buffdoc
unsigned long mylastpos
int m_ascent
int m_descent
int m_linespacing
int m_topmargin
int m_bottommargin
int m_abstopmargin
int m_absbottommargin
QFontMetrics * m_fm
bool hyphenate

Static Public Attributes

static const char * fonts []

Private Slots

void actionDrag ()
void dopageup ()
void lineDown ()
void lineUp ()
void dopagedn ()
void goHome ()
void goBack ()
void goForward ()
void doscroll ()
void paintEvent (QPaintEvent *)
void resizeEvent (QResizeEvent *p)
void keyPressEvent (QKeyEvent *)

Private Member Functions

bool checkoutput ()
void drawSingleLine (int lineno)
void gotoLink ()
void emitRedraw ()
void blitRot (int dx, int sx, int sw, int sh, CDrawBuffer *txt)
void setBackgroundBitmap (const QPixmap &_pm, bground bg)
void setHyphenThreshold (int _v)
void ResetScroll ()
void increaseScroll ()
void reduceScroll ()
void drawText (QPainter &p, int x, int y, tchar *text)
void DrawScroll (QPainter *p, int w, int h)
void dorollingscroll (bool)
void doinplacescroll ()
void dostaticscroll ()
void suspend ()
void redrawScroll (QPainter *p)
void drawBackground (QPainter *)
void setrotated (bool)
void autoscroll ()
void focusInEvent (QFocusEvent *)
void focusOutEvent (QFocusEvent *)
void processmousepositionevent (QMouseEvent *_e)
void processmousewordevent (size_t startpos, size_t startoffset, QMouseEvent *_e, int lineno)
bool ChangeFont (int)
bool getline (CDrawBuffer *)
void setBaseSize (unsigned char _s)
unsigned char getBaseSize ()
void redrawall ()
void drawFonts ()
void DrawStraight (QPainter *p, int w, int h)
void setTwoTouch (bool _b)
void init ()
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void setfont ()
void setDoubleBuffer (bool _b)
linkType getcurrentpos (int x, int y, int w, int h, int &lineno, size_t &start, size_t &offset, size_t &tgt, size_t &tgtoffset, size_t &pictgt, QImage *&, size_t &)
void dopageup (unsigned int)
long real_delay ()

Private Attributes

QTimer * m_dragtimer
unsigned long m_dragtarget
COutputm_output
bool m_outofdate
bool m_drageligible
QPixmap * dbuff
QPainter * dbp
CStylem_currentlinkstyle
int m_currentlink
int m_currentlinkoffset
QPixmap m_bgpm
bool m_bgIsScaled
bground m_bgtype
int m_scrollpos
unsigned short m_scrollstep
QColor m_bg
QColor m_default_bg
QColor m_default_fg
QColor m_negative_fg
CList< Bkmk > * pBkmklist
int m_delay
int m_scrolltype
unsigned int m_overlap
bool m_autoScroll
bool m_swapmouse
bool m_rotated
QTimer * timer
int m_scrolldy1
int m_scrolldy2
int m_encd
int m_scrollpart
int m_totalscroll
int m_charWidth
int m_charpc
unsigned short m_absleft_border
unsigned short m_absright_border
unsigned short m_left_border
unsigned short m_right_border
FontControl m_fontControl
QString m_outputName
QColor m_scrollcolor
QColor m_scrollbarcolor
QString m_string
QString m_fontname
QString m_reparastring
bool m_doubleBuffered
int m_scrolldy
bool mouseUpOn
bool m_twotouch
bool m_touchone
size_t m_startpos
size_t m_startoffset
int m_textsize
int m_lastwidth
int m_lastheight
CBufferFace< CDrawBuffer * > textarray
CBufferFace< size_t > locnarray
unsigned int numlines
bool bstripcr
bool btextfmt
bool bstriphtml
bool bdehyphen
bool bdepluck
bool bdejpluck
bool bunindent
bool brepara
bool bdblspce
bool btight
bool bmakebold
bool bremap
bool bpeanut
bool bautofmt
bool bonespace
bool bfulljust
bool bInverse
bool bNoInlineTables
bool bkern
bool brepalm
bool bunderlineLink
bool m_bpagemode
bool m_bMonoSpaced
bool m_continuousDocument
unsigned char bindenter
QString m_lastfile
size_t m_lastposn
bool bDoUpdates

Static Private Attributes

static tchar pluckernextpart [] = { 'C','l','i','c','k',' ','h','e','r','e',' ','f','o','r',' ','t','h','e',' ','n','e','x','t',' ','p','a','r','t',0 }
static tchar jplucknextpart [] = { 'N','e','x','t',' ','P','a','r','t',' ','>','>',0 }

Friends

class QTReaderApp

Constructor & Destructor Documentation

QTReader::QTReader QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 56 of file QTReader.cpp.

References dbp, dbuff, m_output, m_overlap, and NULL.

QTReader::~QTReader  ) 
 

Definition at line 2238 of file QTReader.cpp.

References dbp, dbuff, QPEApplication::Enable, m_autoScroll, m_output, and NULL.


Member Function Documentation

QString QTReader::about  ) 
 

Definition at line 3142 of file QTReader.cpp.

References COutput::about(), BuffDoc::about(), buffdoc, m_output, and NULL.

Referenced by QTReaderApp::showinfo().

void QTReader::actionDrag  )  [private, slot]
 

Definition at line 648 of file QTReader.cpp.

References buffdoc, dopagedn(), dopageup(), drawFonts(), BuffDoc::endSection(), height, locate(), locnarray, m_drageligible, m_dragtarget, m_dragtimer, m_textsize, numlines, BuffDoc::startSection(), and width.

Referenced by init().

void QTReader::autoscroll  )  [private]
 

Definition at line 1793 of file QTReader.cpp.

References dbp, dbuff, drawBackground(), m_scrolltype, NULL, readAloud(), real_delay(), and timer.

Referenced by setautoscroll().

CList<Bkmk>* QTReader::Bkmklist  )  [inline]
 

Definition at line 112 of file QTReader.h.

References pBkmklist.

Referenced by HighlightFilter::getch(), and HighlightFilter::refresh().

void QTReader::blitRot int  dx,
int  sx,
int  sw,
int  sh,
CDrawBuffer txt
[private]
 

Definition at line 3085 of file QTReader.cpp.

References bitBlt(), dbuff, CDrawBuffer::descent(), CDrawBuffer::lineExtraSpacing(), CDrawBuffer::lineSpacing(), m_autoScroll, m_bg, m_bgpm, m_bMonoSpaced, m_bottommargin, m_charWidth, m_left_border, m_right_border, m_scrolltype, m_topmargin, m_totalscroll, NULL, qDebug(), CDrawBuffer::render(), and width.

Referenced by doinplacescroll(), dorollingscroll(), drawSingleLine(), and redrawScroll().

void QTReader::CalculateScrollParameters  ) 
 

Definition at line 1158 of file QTReader.cpp.

References _SBARHEIGHT, height, i, m_bottommargin, m_rotated, m_scrolldy, m_scrolldy1, m_scrolldy2, m_scrollpos, m_scrolltype, m_topmargin, m_totalscroll, numlines, textarray, and width.

Referenced by dopageup(), fillbuffer(), and setautoscroll().

bool QTReader::ChangeFont int   )  [private]
 

Definition at line 2214 of file QTReader.cpp.

References FontControl::ChangeFont(), m_fontControl, and m_fontname.

Referenced by init(), QTReaderApp::setfontHelper(), and setmono().

bool QTReader::checkoutput  )  [private]
 

Definition at line 3478 of file QTReader.cpp.

References m_output, m_outputName, NULL, PROGNAME, and warning().

Referenced by QTReaderApp::OnWordSelected(), and setautoscroll().

void QTReader::clear  )  [inline]
 

Definition at line 158 of file QTReader.h.

Referenced by QTReaderApp::clear().

void QTReader::copy  )  [inline]
 

Definition at line 143 of file QTReader.h.

void QTReader::disableAutoscroll  )  [inline]
 

Definition at line 142 of file QTReader.h.

References m_autoScroll.

Referenced by QTReaderApp::fileOpen2(), and QTReaderApp::forceopen().

void QTReader::doinplacescroll  )  [private]
 

Definition at line 1306 of file QTReader.cpp.

References _SBARHEIGHT, bitBlt(), blitRot(), data, dbuff, emitRedraw(), QPEApplication::Enable, getline(), height, i, QString::isEmpty(), locate(), locnarray, m_autoScroll, m_bg, m_bgpm, m_bMonoSpaced, m_bottommargin, m_charWidth, m_fontControl, m_left_border, m_right_border, m_rotated, m_scrollcolor, m_scrolldy, m_scrolldy1, m_scrolldy2, m_scrollpos, m_scrollstep, m_topmargin, mylastpos, NULL, numlines, p, redrawScroll(), SetScrollState(), textarray, timer, and width.

Referenced by doscroll().

bool QTReader::doOutput const QString wrd  ) 
 

Definition at line 3465 of file QTReader.cpp.

References m_output, NULL, and COutput::output().

Referenced by QTReaderApp::OnWordSelected(), and readAloud().

void QTReader::dopagedn  )  [private, slot]
 

Definition at line 2455 of file QTReader.cpp.

References drawFonts(), CDrawBuffer::eof(), fillbuffer(), i, jumpto(), locate(), locnarray, m_overlap, m_topmargin, mylastpos, NULL, numlines, qDebug(), ResetScroll(), and textarray.

Referenced by actionDrag(), QTReaderApp::doAction(), getNextLink(), goDown(), mousePressEvent(), and readAloud().

void QTReader::dopageup unsigned  int  )  [private]
 

Definition at line 2514 of file QTReader.cpp.

References buffdoc, CalculateScrollParameters(), drawFonts(), getline(), height, i, jumpto(), loc, locate(), locnarray, m_bottommargin, m_continuousDocument, m_fontControl, m_rotated, m_topmargin, mylastpos, NULL, numlines, pagelocate(), qDebug(), ResetScroll(), BuffDoc::startSection(), synch(), textarray, and width.

void QTReader::dopageup  )  [private, slot]
 

Definition at line 2494 of file QTReader.cpp.

References locnarray, m_overlap, and numlines.

Referenced by actionDrag(), QTReaderApp::actionscroll(), QTReaderApp::doAction(), fillbuffer(), QTReaderApp::gotoEnd(), goUp(), lineUp(), mousePressEvent(), and NavDown().

void QTReader::dorollingscroll bool   )  [private]
 

Definition at line 1470 of file QTReader.cpp.

References _SBARHEIGHT, bitBlt(), blitRot(), data, dbuff, emitRedraw(), QPEApplication::Enable, getline(), height, i, QString::isEmpty(), locate(), locnarray, m_autoScroll, m_bg, m_bgpm, m_bMonoSpaced, m_bottommargin, m_charWidth, m_fontControl, m_left_border, m_right_border, m_rotated, m_scrolldy1, m_scrolldy2, m_scrollpos, m_scrollstep, m_topmargin, m_totalscroll, mylastpos, NULL, numlines, p, redrawScroll(), SetScrollState(), textarray, timer, and width.

Referenced by doscroll().

void QTReader::doscroll  )  [private, slot]
 

Definition at line 1282 of file QTReader.cpp.

References doinplacescroll(), dorollingscroll(), dostaticscroll(), m_autoScroll, m_scrolltype, and timer.

Referenced by init().

void QTReader::dostaticscroll  )  [private]
 

Definition at line 1605 of file QTReader.cpp.

References data, emitRedraw(), QPEApplication::Enable, getline(), i, QString::isEmpty(), locate(), locnarray, m_autoScroll, m_fontControl, m_scrolldy1, m_scrolldy2, m_scrollstep, mylastpos, NULL, numlines, redrawall(), SetScrollState(), textarray, and timer.

Referenced by doscroll().

void QTReader::drawBackground QPainter *   )  [private]
 

Definition at line 3010 of file QTReader.cpp.

References bgCentred, bgStretched, bgTiled, dbuff, height, m_bg, m_bgIsScaled, m_bgpm, m_bgtype, m_rotated, NULL, qDebug(), and width.

Referenced by autoscroll(), drawFonts(), redrawall(), and resizeEvent().

void QTReader::drawFonts  )  [private]
 

Definition at line 1915 of file QTReader.cpp.

References _SBARHEIGHT, bDoUpdates, buffdoc, dbp, dbuff, drawBackground(), emitRedraw(), BuffDoc::empty(), fillbuffer(), height, i, jumpto(), BuffDoc::locate(), locnarray, m_bottommargin, m_lastheight, m_lastwidth, m_left_border, m_right_border, m_rotated, m_scrolldy, m_scrolldy1, m_scrollpos, m_topmargin, mylastpos, NULL, numlines, p, pagelocate(), qDebug(), redrawall(), setfont(), BuffDoc::setwidth(), textarray, and width.

Referenced by actionDrag(), dopagedn(), dopageup(), and paintEvent().

void QTReader::DrawScroll QPainter *  p,
int  w,
int  h
[private]
 

Definition at line 2011 of file QTReader.cpp.

References buffdoc, BuffDoc::empty(), BuffDoc::endSection(), locnarray, m_rotated, m_scrollbarcolor, m_scrollpos, numlines, and BuffDoc::startSection().

Referenced by DrawStraight(), and redrawScroll().

void QTReader::drawSingleLine int  lineno  )  [private]
 

Definition at line 3216 of file QTReader.cpp.

References bitBlt(), blitRot(), dbuff, height, i, m_bg, m_bgpm, m_bMonoSpaced, m_bottommargin, m_charWidth, m_left_border, m_right_border, m_rotated, m_topmargin, numlines, p, textarray, and width.

Referenced by getNextLink().

void QTReader::DrawStraight QPainter *  p,
int  w,
int  h
[private]
 

Definition at line 1821 of file QTReader.cpp.

References DrawScroll(), i, m_bg, m_bMonoSpaced, m_bottommargin, m_charWidth, m_left_border, m_right_border, m_rotated, m_scrollcolor, m_scrolldy, m_scrolldy1, m_topmargin, numlines, and textarray.

Referenced by redrawall().

void QTReader::drawText QPainter &  p,
int  x,
int  y,
tchar text
[private]
 

void QTReader::emitRedraw  )  [private]
 

Definition at line 3208 of file QTReader.cpp.

References m_currentlink, m_currentlinkoffset, m_currentlinkstyle, NULL, and OnRedraw().

Referenced by doinplacescroll(), dorollingscroll(), dostaticscroll(), and drawFonts().

bool QTReader::empty  ) 
 

Definition at line 2910 of file QTReader.cpp.

References buffdoc, and BuffDoc::empty().

Referenced by QTReaderApp::addanno(), and QTReaderApp::showinfo().

unsigned long QTReader::explocate  )  [inline]
 

Definition at line 306 of file QTReader.h.

References buffdoc, and BuffDoc::explocate().

Referenced by QTReaderApp::editCopy().

bool QTReader::fillbuffer int  ru = 0,
int  ht = -1,
int  newht = -1
 

Definition at line 2386 of file QTReader.cpp.

References _SBARHEIGHT, buffdoc, CalculateScrollParameters(), dopageup(), BuffDoc::empty(), BuffDoc::endSection(), getline(), height, locate(), locnarray, m_autoScroll, m_bottommargin, m_fontControl, m_lastheight, m_rotated, m_scrollpart, m_scrollpos, m_topmargin, mylastpos, NULL, numlines, qDebug(), textarray, and width.

Referenced by dopagedn(), drawFonts(), gotoLink(), and mouseReleaseEvent().

QString QTReader::firstword  ) 
 

Definition at line 2182 of file QTReader.cpp.

References data, end, QString::isEmpty(), len, CBufferFace< T >::length(), m_bMonoSpaced, numlines, start, and textarray.

Referenced by QTReaderApp::addbkmk().

void QTReader::focusInEvent QFocusEvent *   )  [private]
 

Definition at line 985 of file QTReader.cpp.

References m_autoScroll, m_scrolltype, real_delay(), and timer.

void QTReader::focusOutEvent QFocusEvent *   )  [private]
 

Definition at line 991 of file QTReader.cpp.

References m_autoScroll, m_scrolltype, and timer.

unsigned char QTReader::getBaseSize  )  [inline, private]
 

Definition at line 98 of file QTReader.h.

References FontControl::getBaseSize(), and m_fontControl.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

CList<Bkmk>* QTReader::getbkmklist  )  [inline]
 

Definition at line 302 of file QTReader.h.

References buffdoc, and BuffDoc::getbkmklist().

Referenced by QTReaderApp::readbkmks().

tchar QTReader::getch  )  [inline]
 

Definition at line 297 of file QTReader.h.

References buffdoc, and BuffDoc::getch().

Referenced by QTReaderApp::editCopy(), processmousewordevent(), and synch().

linkType QTReader::getcurrentpos int  x,
int  y,
int  w,
int  h,
int &  lineno,
size_t &  start,
size_t &  offset,
size_t &  tgt,
size_t &  tgtoffset,
size_t &  pictgt,
QImage *&  ,
size_t & 
[private]
 

Definition at line 443 of file QTReader.cpp.

References height, i, CBufferFace< T >::length(), locnarray, m_bMonoSpaced, m_bottommargin, m_charWidth, m_left_border, m_right_border, m_rotated, m_scrolldy, m_scrolldy1, m_topmargin, numlines, CDrawBuffer::offset(), t, textarray, CDrawBuffer::width(), and width.

Referenced by mousePressEvent(), and mouseReleaseEvent().

CEncoding* QTReader::getencoding  )  [inline]
 

Definition at line 206 of file QTReader.h.

References m_encd, and MAX_ENCODING.

Referenced by getfilter().

int QTReader::getextraspace  )  [inline]
 

Definition at line 186 of file QTReader.h.

References FontControl::getextraspace(), and m_fontControl.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

CFilterChain * QTReader::getfilter  ) 
 

Definition at line 3382 of file QTReader.cpp.

References CFilterChain::addfilter(), bautofmt, bdblspce, bdehyphen, bdejpluck, bdepluck, bfulljust, bindenter, bInverse, bkern, bmakebold, bNoInlineTables, bonespace, bpeanut, bremap, brepalm, brepara, bstripcr, bstriphtml, btextfmt, bunderlineLink, bunindent, cCHM, cHTML, cPML, cTEXT, f, ExternFilter::filter(), g, getencoding(), jplucknextpart, m_default_bg, m_default_fg, m_highlightfilter, m_lastfile, m_reparastring, pluckernextpart, PreferredMarkup(), and striphtml::setchm().

Referenced by QTReaderApp::do_reparastring(), init(), load_file(), QTReaderApp::readconfig(), setencoding(), QTReaderApp::setinverted(), and QTReaderApp::showprefs().

int QTReader::getlead  )  [inline]
 

Definition at line 178 of file QTReader.h.

References FontControl::getlead(), and m_fontControl.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::getline CDrawBuffer  )  [private]
 

Definition at line 1266 of file QTReader.cpp.

References buffdoc, BuffDoc::getline(), height, hyphenate, m_bMonoSpaced, m_bottommargin, m_charWidth, m_left_border, m_right_border, m_rotated, m_topmargin, CDrawBuffer::resize(), and width.

Referenced by doinplacescroll(), dopageup(), dorollingscroll(), dostaticscroll(), fillbuffer(), QTReaderApp::findNext(), and lineDown().

void QTReader::getNextLink  ) 
 

Definition at line 3152 of file QTReader.cpp.

References dopagedn(), drawSingleLine(), i, m_currentlink, m_currentlinkoffset, m_currentlinkstyle, m_scrolldy, NULL, numlines, qDebug(), redraw(), redrawall(), ResetScroll(), setautoscroll(), and textarray.

Referenced by QTReaderApp::doAction().

void QTReader::goBack  )  [private, slot]
 

Definition at line 398 of file QTReader.cpp.

References BuffDoc::back(), buffdoc, eFile, eLink, BuffDoc::hasnavigation(), locate(), m_lastfile, NewFileRequest(), pagelocate(), and BuffDoc::writeposn().

Referenced by QTReaderApp::doAction(), and processmousepositionevent().

void QTReader::goDown  ) 
 

Definition at line 1013 of file QTReader.cpp.

References dopagedn(), lineDown(), and m_bpagemode.

Referenced by NavDown(), and processmousepositionevent().

void QTReader::goForward  )  [private, slot]
 

Definition at line 421 of file QTReader.cpp.

References buffdoc, eFile, eLink, BuffDoc::forward(), BuffDoc::hasnavigation(), locate(), m_lastfile, NewFileRequest(), and pagelocate().

Referenced by QTReaderApp::doAction(), and processmousepositionevent().

void QTReader::goHome  )  [private, slot]
 

Definition at line 382 of file QTReader.cpp.

References buffdoc, BuffDoc::getHome(), BuffDoc::hasnavigation(), locate(), m_lastfile, pagelocate(), and BuffDoc::saveposn().

Referenced by QTReaderApp::doAction(), and processmousepositionevent().

void QTReader::gotoLink  )  [private]
 

Definition at line 3266 of file QTReader.cpp.

References buffdoc, eFile, eLink, ePicture, fillbuffer(), BuffDoc::findanchor(), CStyle::getData(), BuffDoc::getFile(), CStyle::getOffset(), BuffDoc::getPicture(), BuffDoc::hyperlink(), QString::isEmpty(), m_currentlink, m_currentlinkoffset, m_currentlinkstyle, m_lastfile, m_outofdate, NewFileRequest(), NULL, OnShowPicture(), OnURLSelected(), pagelocate(), qDebug(), refresh(), BuffDoc::resetPos(), ResetScroll(), BuffDoc::saveposn(), and textarray.

Referenced by QTReaderApp::doAction().

void QTReader::goUp  ) 
 

Definition at line 1025 of file QTReader.cpp.

References dopageup(), lineUp(), and m_bpagemode.

Referenced by NavUp(), and processmousepositionevent().

void QTReader::HandleKeyRequest QKeyEvent *   )  [signal]
 

Referenced by keyPressEvent().

void QTReader::increaseScroll  )  [private]
 

Definition at line 1112 of file QTReader.cpp.

References m_delay, real_delay(), and timer.

Referenced by QTReaderApp::doAction().

void QTReader::init  )  [private]
 

Definition at line 2219 of file QTReader.cpp.

References actionDrag(), buffdoc, ChangeFont(), doscroll(), getfilter(), m_bg, m_dragtimer, m_textsize, BuffDoc::setfilter(), setfont(), and timer.

void QTReader::jumpto unsigned long  n  )  [inline]
 

Definition at line 304 of file QTReader.h.

References buffdoc, and BuffDoc::locate().

Referenced by QTReaderApp::do_autogen(), dopagedn(), dopageup(), drawFonts(), QTReaderApp::editCopy(), QTReaderApp::findNext(), mouseReleaseEvent(), processmousewordevent(), readAloud(), restore(), and synch().

void QTReader::keyPressEvent QKeyEvent *   )  [private, slot]
 

Definition at line 1125 of file QTReader.cpp.

References QPEApplication::Enable, HandleKeyRequest(), m_autoScroll, NULL, real_delay(), SetScrollState(), and timer.

void QTReader::lineDown  )  [private, slot]
 

Definition at line 2683 of file QTReader.cpp.

References getline(), height, i, locate(), locnarray, m_fontControl, m_outofdate, m_rotated, m_topmargin, mylastpos, NULL, numlines, ResetScroll(), textarray, and width.

Referenced by QTReaderApp::doAction(), goDown(), and mousePressEvent().

void QTReader::lineUp  )  [private, slot]
 

Definition at line 2815 of file QTReader.cpp.

References dopageup(), locnarray, and numlines.

Referenced by QTReaderApp::doAction(), goUp(), and mousePressEvent().

bool QTReader::load_file const char *  newfile,
unsigned int  lcn = 0
 

Definition at line 2644 of file QTReader.cpp.

References bDoUpdates, buffdoc, getfilter(), height, locate(), m_continuousDocument, m_lastfile, m_lastheight, m_lastposn, m_lastwidth, m_left_border, m_right_border, m_rotated, BuffDoc::openfile(), qDebug(), ResetScroll(), BuffDoc::setContinuous(), setfilter(), BuffDoc::setwidth(), and width.

Referenced by setText().

unsigned long QTReader::locate  )  [inline]
 

Definition at line 305 of file QTReader.h.

References buffdoc, and BuffDoc::locate().

Referenced by actionDrag(), doinplacescroll(), dopagedn(), dopageup(), dorollingscroll(), dostaticscroll(), fillbuffer(), goBack(), goForward(), goHome(), lineDown(), load_file(), mouseMoveEvent(), mouseReleaseEvent(), NavUp(), processmousewordevent(), refresh(), setfilter(), and setmono().

bool QTReader::locate unsigned long  n  ) 
 

Definition at line 2355 of file QTReader.cpp.

References locnarray, m_lastwidth, m_outofdate, and ResetScroll().

Referenced by QTReaderApp::actionscroll(), QTReaderApp::do_autogen(), QTReaderApp::do_jump(), QTReaderApp::editCopy(), QTReaderApp::findNextBookmark(), QTReaderApp::gotobkmk(), QTReaderApp::gotoStart(), and QTReaderApp::OnRedraw().

void QTReader::mouseMoveEvent QMouseEvent *   )  [private]
 

Definition at line 694 of file QTReader.cpp.

References buffdoc, BuffDoc::endSection(), height, locate(), m_drageligible, m_dragtarget, m_dragtimer, m_rotated, m_scrollpos, BuffDoc::startSection(), and width.

void QTReader::mousePressEvent QMouseEvent *   )  [private]
 

Definition at line 139 of file QTReader.cpp.

References buffdoc, dopagedn(), dopageup(), BuffDoc::endSection(), getcurrentpos(), height, lineDown(), lineUp(), locnarray, m_bottommargin, m_drageligible, m_left_border, m_right_border, m_rotated, m_scrollpos, m_swapmouse, m_topmargin, mouseUpOn, numlines, processmousepositionevent(), processmousewordevent(), qDebug(), BuffDoc::startSection(), width, Opie::MM::x, and Opie::MM::y.

void QTReader::mouseReleaseEvent QMouseEvent *   )  [private]
 

Definition at line 754 of file QTReader.cpp.

References bNoInlineTables, buffdoc, FontControl::currentsize(), eFile, eLink, ePicture, eTable, f, fillbuffer(), BuffDoc::findanchor(), getcurrentpos(), BuffDoc::getFile(), BuffDoc::getPicture(), BuffDoc::getTableAsHtml(), height, BuffDoc::hyperlink(), QString::isEmpty(), jumpto(), locate(), m_currentlink, m_currentlinkoffset, m_currentlinkstyle, m_drageligible, m_fontControl, m_fontname, m_lastfile, m_outofdate, m_rotated, m_swapmouse, mouseUpOn, NewFileRequest(), NULL, OnShowPicture(), OnURLSelected(), pagelocate(), processmousepositionevent(), processmousewordevent(), PROGNAME, qDebug(), BuffDoc::resetPos(), ResetScroll(), BuffDoc::saveposn(), textarray, warning(), width, Opie::MM::x, and Opie::MM::y.

void QTReader::NavDown  ) 
 

Definition at line 1056 of file QTReader.cpp.

References buffdoc, dopageup(), BuffDoc::endSection(), goDown(), and BuffDoc::hasnavigation().

Referenced by QTReaderApp::pagedn().

void QTReader::NavUp  ) 
 

Definition at line 1037 of file QTReader.cpp.

References buffdoc, goUp(), BuffDoc::hasnavigation(), locate(), and BuffDoc::startSection().

Referenced by QTReaderApp::pageup().

void QTReader::NewFileRequest const QString  )  [signal]
 

Referenced by goBack(), goForward(), gotoLink(), and mouseReleaseEvent().

void QTReader::OnRedraw  )  [signal]
 

Referenced by emitRedraw().

void QTReader::OnShowPicture QImage &   )  [signal]
 

Referenced by gotoLink(), and mouseReleaseEvent().

void QTReader::OnURLSelected const QString ,
const   size_t
[signal]
 

Referenced by gotoLink(), and mouseReleaseEvent().

void QTReader::OnWordSelected const QString ,
size_t  ,
size_t  ,
const QString
[signal]
 

Referenced by processmousewordevent().

unsigned long QTReader::pagelocate  )  [inline]
 

Definition at line 307 of file QTReader.h.

References locnarray.

Referenced by QTReaderApp::addanno(), QTReaderApp::do_addbkmk(), QTReaderApp::do_saveconfig(), dopageup(), drawFonts(), QTReaderApp::editCopy(), QTReaderApp::editFind(), QTReaderApp::editMark(), QTReaderApp::findNext(), goBack(), goForward(), goHome(), QTReaderApp::gotobkmk(), gotoLink(), QTReaderApp::jump(), mouseReleaseEvent(), QTReaderApp::OnRedraw(), readAloud(), refresh(), setfilter(), setmono(), QTReaderApp::showinfo(), QTReaderApp::updatefileinfo(), and QTReaderApp::UpdateStatus().

void QTReader::paintEvent QPaintEvent *   )  [private, slot]
 

Definition at line 2283 of file QTReader.cpp.

References bitBlt(), dbuff, drawFonts(), height, m_outofdate, m_rotated, NULL, qDebug(), and width.

MarkupType QTReader::PreferredMarkup  ) 
 

Definition at line 2915 of file QTReader.cpp.

References buffdoc, cHTML, cTEXT, QString::findRev(), QString::left(), QString::length(), m_lastfile, BuffDoc::PreferredMarkup(), QString::right(), and QString::upper().

Referenced by getfilter().

void QTReader::processmousepositionevent QMouseEvent *  _e  )  [private]
 

Definition at line 326 of file QTReader.cpp.

References buffdoc, goBack(), goDown(), goForward(), goHome(), goUp(), BuffDoc::hasnavigation(), height, m_rotated, width, Opie::MM::x, and Opie::MM::y.

Referenced by mousePressEvent(), and mouseReleaseEvent().

void QTReader::processmousewordevent size_t  startpos,
size_t  startoffset,
QMouseEvent *  _e,
int  lineno
[private]
 

Definition at line 545 of file QTReader.cpp.

References buffdoc, CBufferFace< T >::data(), data, BuffDoc::explocate(), getch(), height, i, QString::isEmpty(), jumpto(), QString::length(), locate(), locnarray, m_bg, m_bMonoSpaced, m_bottommargin, m_charWidth, m_left_border, m_right_border, m_rotated, m_startoffset, m_startpos, m_topmargin, m_touchone, m_twotouch, CDrawBuffer::offset(), OnWordSelected(), qDebug(), t, textarray, CDrawBuffer::width(), and width.

Referenced by mousePressEvent(), and mouseReleaseEvent().

void QTReader::putSaveData unsigned char *&  src,
unsigned short &  srclen
[inline]
 

Definition at line 134 of file QTReader.h.

References buffdoc, and BuffDoc::putSaveData().

Referenced by QTReaderApp::openfrombkmk().

void QTReader::readAloud  ) 
 

Definition at line 3438 of file QTReader.cpp.

References buffdoc, CBufferFace< T >::data(), doOutput(), dopagedn(), BuffDoc::explocate(), BuffDoc::getpara(), jumpto(), CBufferFace< T >::length(), m_autoScroll, mylastpos, pagelocate(), and qApp.

Referenced by autoscroll().

long QTReader::real_delay  )  [private]
 

Definition at line 134 of file QTReader.cpp.

References m_delay, m_linespacing, and m_scrollstep.

Referenced by autoscroll(), focusInEvent(), increaseScroll(), keyPressEvent(), and reduceScroll().

void QTReader::redrawall  )  [private]
 

Definition at line 1865 of file QTReader.cpp.

References bitBlt(), dbp, dbuff, drawBackground(), DrawStraight(), height, m_rotated, NULL, p, qDebug(), and width.

Referenced by dostaticscroll(), drawFonts(), and getNextLink().

void QTReader::redrawScroll QPainter *  p  )  [private]
 

Definition at line 1681 of file QTReader.cpp.

References _SBARHEIGHT, bitBlt(), blitRot(), dbuff, DrawScroll(), height, m_bg, m_bgpm, m_bottommargin, m_left_border, m_right_border, m_rotated, m_scrollpos, m_scrolltype, m_totalscroll, NULL, width, and Opie::MM::x.

Referenced by doinplacescroll(), and dorollingscroll().

void QTReader::reduceScroll  )  [private]
 

Definition at line 1099 of file QTReader.cpp.

References m_delay, real_delay(), and timer.

Referenced by QTReaderApp::doAction().

void QTReader::refresh bool  full = false  ) 
 

Definition at line 3352 of file QTReader.cpp.

References height, locate(), m_absbottommargin, m_absleft_border, m_absright_border, m_abstopmargin, m_bottommargin, m_highlightfilter, m_left_border, m_outofdate, m_right_border, m_rotated, m_topmargin, pagelocate(), qDebug(), HighlightFilter::refresh(), and width.

Referenced by QTReaderApp::clearBkmkList(), QTReaderApp::do_addbkmk(), QTReaderApp::do_autogen(), QTReaderApp::do_setencoding(), QTReaderApp::do_setfont(), QTReaderApp::gotobkmk(), gotoLink(), QTReaderApp::readconfig(), QTReaderApp::setinverted(), QTReaderApp::setrotated(), QTReaderApp::showprefs(), zoomin(), and zoomout().

void QTReader::RefreshBitmap  )  [signal]
 

Referenced by resizeEvent().

void QTReader::reset_bg  )  [inline]
 

Definition at line 330 of file QTReader.h.

References bInverse, g, m_bg, and m_default_bg.

Referenced by setBackground(), and setInverse().

void QTReader::ResetScroll  )  [private]
 

Definition at line 2804 of file QTReader.cpp.

References m_autoScroll, m_bgpm, m_scrolldy, m_scrolldy1, m_scrolltype, m_topmargin, m_totalscroll, and setautoscroll().

Referenced by dopagedn(), dopageup(), getNextLink(), gotoLink(), lineDown(), load_file(), locate(), and mouseReleaseEvent().

void QTReader::resizeEvent QResizeEvent *  p  )  [private, slot]
 

Definition at line 2933 of file QTReader.cpp.

References bgStretched, buffdoc, dbp, dbuff, drawBackground(), BuffDoc::empty(), m_absbottommargin, m_absleft_border, m_absright_border, m_abstopmargin, m_bgIsScaled, m_bgtype, m_bottommargin, m_left_border, m_outofdate, m_right_border, m_rotated, m_topmargin, NULL, qDebug(), and RefreshBitmap().

void QTReader::restore  )  [inline]
 

Definition at line 311 of file QTReader.h.

References jumpto(), and mylastpos.

unsigned int QTReader::screenlines  ) 
 

Definition at line 2379 of file QTReader.cpp.

References height, and m_linespacing.

void QTReader::setautoscroll bool   ) 
 

Definition at line 1221 of file QTReader.cpp.

References autoscroll(), CalculateScrollParameters(), checkoutput(), QPEApplication::Disable, QPEApplication::Enable, CDrawBuffer::eof(), m_autoScroll, m_outofdate, m_scrolltype, NULL, numlines, and textarray.

Referenced by QTReaderApp::autoScroll(), QTReaderApp::doAction(), getNextLink(), ResetScroll(), zoomin(), and zoomout().

void QTReader::setBackground const QColor &  _c  )  [inline]
 

Definition at line 113 of file QTReader.h.

References m_default_bg, and reset_bg().

Referenced by QTReaderApp::readconfig(), and QTReaderApp::showprefs().

void QTReader::setBackgroundBitmap const QPixmap &  _pm,
bground  bg
[inline, private]
 

Definition at line 55 of file QTReader.h.

References m_bgIsScaled, m_bgpm, and m_bgtype.

Referenced by QTReaderApp::setBackgroundBitmap().

void QTReader::setBaseSize unsigned char  _s  )  [inline, private]
 

Definition at line 97 of file QTReader.h.

References m_fontControl, and FontControl::setBaseSize().

Referenced by QTReaderApp::readconfig(), and QTReaderApp::showprefs().

void QTReader::setContinuous bool  _b  ) 
 

Definition at line 540 of file QTReader.cpp.

References buffdoc, m_continuousDocument, and BuffDoc::setContinuous().

Referenced by QTReaderApp::readconfig(), and QTReaderApp::showprefs().

void QTReader::setDoubleBuffer bool  _b  )  [private]
 

Definition at line 502 of file QTReader.cpp.

References dbp, dbuff, height, m_doubleBuffered, m_outofdate, m_rotated, NULL, and width.

Referenced by QTReaderApp::readconfig(), setrotated(), and QTReaderApp::showprefs().

void QTReader::setDoUpdates bool  b  )  [inline]
 

Definition at line 293 of file QTReader.h.

References bDoUpdates.

Referenced by QTReaderApp::QTReaderApp().

void QTReader::setencoding int  _f  )  [inline]
 

Definition at line 200 of file QTReader.h.

References getfilter(), m_encd, and setfilter().

Referenced by QTReaderApp::do_setencoding().

void QTReader::setextraspace int  _lead  )  [inline]
 

Definition at line 182 of file QTReader.h.

References m_fontControl, and FontControl::setextraspace().

Referenced by QTReaderApp::readconfig(), and QTReaderApp::showprefs().

void QTReader::setfilter CFilterChain f  )  [inline]
 

Definition at line 310 of file QTReader.h.

References bDoUpdates, buffdoc, locate(), pagelocate(), and BuffDoc::setfilter().

Referenced by QTReaderApp::do_reparastring(), load_file(), QTReaderApp::readconfig(), setencoding(), QTReaderApp::setinverted(), and QTReaderApp::showprefs().

void QTReader::setfont  )  [private]
 

Definition at line 1811 of file QTReader.cpp.

References FontControl::ascent(), FontControl::currentsize(), FontControl::descent(), FontControl::lineSpacing(), m_ascent, m_charpc, m_charWidth, m_descent, m_fontControl, and m_linespacing.

Referenced by drawFonts(), init(), zoomin(), and zoomout().

void QTReader::setForeground const QColor &  _c  )  [inline]
 

Definition at line 118 of file QTReader.h.

References g, m_default_fg, and m_negative_fg.

Referenced by QTReaderApp::readconfig(), and QTReaderApp::showprefs().

void QTReader::setHyphenThreshold int  _v  )  [inline, private]
 

Definition at line 66 of file QTReader.h.

References buffdoc, and BuffDoc::setHyphenThreshold().

void QTReader::setInverse bool  b  )  [inline]
 

Definition at line 352 of file QTReader.h.

References bInverse, and reset_bg().

Referenced by QTReaderApp::setinverted().

void QTReader::setlead int  _lead  )  [inline]
 

Definition at line 174 of file QTReader.h.

References m_fontControl, and FontControl::setlead().

Referenced by QTReaderApp::readconfig(), and QTReaderApp::showprefs().

void QTReader::setmono bool  _b  )  [inline]
 

Definition at line 194 of file QTReader.h.

References ChangeFont(), FontControl::currentsize(), locate(), m_bMonoSpaced, m_fontControl, and pagelocate().

Referenced by QTReaderApp::monospace().

void QTReader::setpagemode bool  _b  )  [inline]
 

Definition at line 190 of file QTReader.h.

References m_bpagemode.

Referenced by QTReaderApp::pagemode().

void QTReader::setrotated bool   )  [private]
 

Definition at line 2979 of file QTReader.cpp.

References m_bgIsScaled, m_doubleBuffered, m_outofdate, m_rotated, qDebug(), and setDoubleBuffer().

Referenced by QTReaderApp::setrotated().

void QTReader::setSaveData unsigned char *&  data,
unsigned short &  len,
unsigned char *  src,
unsigned short  srclen
[inline]
 

Definition at line 130 of file QTReader.h.

References buffdoc, and BuffDoc::setSaveData().

Referenced by QTReaderApp::updatefileinfo().

void QTReader::SetScrollState bool   )  [signal]
 

Referenced by doinplacescroll(), dorollingscroll(), dostaticscroll(), and keyPressEvent().

void QTReader::setStripCR bool  b  )  [inline]
 

Definition at line 294 of file QTReader.h.

References bstripcr.

void QTReader::setText const QString n,
const QString s,
unsigned int  lcn = 0
[inline]
 

Definition at line 159 of file QTReader.h.

References load_file(), and m_string.

Referenced by QTReaderApp::openFile().

void QTReader::setTwoTouch bool  _b  )  [private]
 

Definition at line 534 of file QTReader.cpp.

References m_bg, m_touchone, and m_twotouch.

Referenced by QTReaderApp::readconfig(), QTReaderApp::setTwoTouch(), and QTReaderApp::showprefs().

void QTReader::sizes unsigned long &  fs,
unsigned long &  ts
[inline]
 

Definition at line 321 of file QTReader.h.

References buffdoc, and BuffDoc::sizes().

Referenced by QTReaderApp::do_autogen(), QTReaderApp::showinfo(), and QTReaderApp::UpdateStatus().

void QTReader::suspend  )  [private]
 

Definition at line 491 of file QTReader.cpp.

References buffdoc, and BuffDoc::suspend().

Referenced by QTReaderApp::suspend().

bool QTReader::synch size_t  ,
size_t 
 

Definition at line 2499 of file QTReader.cpp.

References getch(), jumpto(), and UEOF.

Referenced by dopageup().

void QTReader::textsize int  ts  )  [inline]
 

Definition at line 317 of file QTReader.h.

References m_textsize.

int QTReader::textsize  )  [inline]
 

Definition at line 316 of file QTReader.h.

References m_textsize.

void QTReader::toggle_autoscroll  ) 
 

void QTReader::zoomin  ) 
 

Definition at line 1075 of file QTReader.cpp.

References FontControl::increasesize(), m_autoScroll, m_fontControl, refresh(), setautoscroll(), and setfont().

Referenced by QTReaderApp::zoomin().

void QTReader::zoomout  ) 
 

Definition at line 1087 of file QTReader.cpp.

References FontControl::decreasesize(), m_autoScroll, m_fontControl, refresh(), setautoscroll(), and setfont().

Referenced by QTReaderApp::zoomout().


Friends And Related Function Documentation

friend class QTReaderApp [friend]
 

Definition at line 32 of file QTReader.h.


Member Data Documentation

bool QTReader::bautofmt [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bdblspce [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bdehyphen [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bdejpluck [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bdepluck [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bDoUpdates [private]
 

Definition at line 290 of file QTReader.h.

Referenced by QTReaderApp::do_regaction(), QTReaderApp::do_regedit(), QTReaderApp::do_reparastring(), drawFonts(), load_file(), setDoUpdates(), setfilter(), and QTReaderApp::setfullscreen().

bool QTReader::bfulljust [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

unsigned char QTReader::bindenter [private]
 

Definition at line 287 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bInverse [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::doAction(), getfilter(), QTReaderApp::readconfig(), reset_bg(), and setInverse().

bool QTReader::bkern [private]
 

Definition at line 285 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bmakebold [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bNoInlineTables [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), mouseReleaseEvent(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bonespace [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bpeanut [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bremap [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::brepalm [private]
 

Definition at line 285 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::brepara [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_reparastring(), QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bstripcr [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), setStripCR(), and QTReaderApp::showprefs().

bool QTReader::bstriphtml [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::btextfmt [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::btight [private]
 

Definition at line 284 of file QTReader.h.

BuffDoc QTReader::buffdoc
 

Definition at line 301 of file QTReader.h.

Referenced by about(), actionDrag(), QTReaderApp::actionscroll(), QTReaderApp::do_autogen(), QTReaderApp::do_jump(), dopageup(), drawFonts(), DrawScroll(), empty(), explocate(), fillbuffer(), getbkmklist(), getch(), getline(), goBack(), goForward(), goHome(), QTReaderApp::gotobkmk(), QTReaderApp::gotoEnd(), gotoLink(), QTReaderApp::gotoStart(), init(), jumpto(), load_file(), locate(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), NavDown(), NavUp(), QTReaderApp::OnRedraw(), PreferredMarkup(), processmousepositionevent(), processmousewordevent(), putSaveData(), readAloud(), resizeEvent(), setContinuous(), setfilter(), setHyphenThreshold(), setSaveData(), QTReaderApp::showinfo(), sizes(), suspend(), and QTReaderApp::UpdateStatus().

bool QTReader::bunderlineLink [private]
 

Definition at line 285 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

bool QTReader::bunindent [private]
 

Definition at line 284 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

QPainter* QTReader::dbp [private]
 

Definition at line 42 of file QTReader.h.

Referenced by autoscroll(), drawFonts(), QTReader(), redrawall(), resizeEvent(), setDoubleBuffer(), and ~QTReader().

QPixmap* QTReader::dbuff [private]
 

Definition at line 41 of file QTReader.h.

Referenced by autoscroll(), blitRot(), doinplacescroll(), dorollingscroll(), drawBackground(), drawFonts(), drawSingleLine(), paintEvent(), QTReader(), redrawall(), redrawScroll(), resizeEvent(), setDoubleBuffer(), and ~QTReader().

const char* QTReader::fonts[] [static]
 

Definition at line 322 of file QTReader.h.

bool QTReader::hyphenate
 

Definition at line 329 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), getline(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

tchar QTReader::jplucknextpart = { 'N','e','x','t',' ','P','a','r','t',' ','>','>',0 } [static, private]
 

Definition at line 53 of file QTReader.cpp.

Referenced by getfilter().

CBufferFace<size_t> QTReader::locnarray [private]
 

Definition at line 281 of file QTReader.h.

Referenced by actionDrag(), doinplacescroll(), dopagedn(), dopageup(), dorollingscroll(), dostaticscroll(), drawFonts(), DrawScroll(), fillbuffer(), getcurrentpos(), lineDown(), lineUp(), locate(), mousePressEvent(), pagelocate(), and processmousewordevent().

int QTReader::m_absbottommargin
 

Definition at line 326 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), refresh(), resizeEvent(), and QTReaderApp::showprefs().

unsigned short QTReader::m_absleft_border [private]
 

Definition at line 94 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), refresh(), resizeEvent(), and QTReaderApp::showprefs().

unsigned short QTReader::m_absright_border [private]
 

Definition at line 94 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), refresh(), resizeEvent(), and QTReaderApp::showprefs().

int QTReader::m_abstopmargin
 

Definition at line 326 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), refresh(), resizeEvent(), and QTReaderApp::showprefs().

int QTReader::m_ascent
 

Definition at line 324 of file QTReader.h.

Referenced by setfont().

bool QTReader::m_autoScroll [private]
 

Definition at line 79 of file QTReader.h.

Referenced by QTReaderApp::autoScroll(), blitRot(), disableAutoscroll(), QTReaderApp::doAction(), doinplacescroll(), dorollingscroll(), doscroll(), dostaticscroll(), fillbuffer(), focusInEvent(), focusOutEvent(), keyPressEvent(), readAloud(), ResetScroll(), setautoscroll(), zoomin(), zoomout(), and ~QTReader().

QColor QTReader::m_bg [private]
 

Definition at line 62 of file QTReader.h.

Referenced by blitRot(), doinplacescroll(), dorollingscroll(), drawBackground(), drawSingleLine(), DrawStraight(), init(), processmousewordevent(), redrawScroll(), reset_bg(), and setTwoTouch().

bool QTReader::m_bgIsScaled [private]
 

Definition at line 50 of file QTReader.h.

Referenced by drawBackground(), resizeEvent(), setBackgroundBitmap(), and setrotated().

QPixmap QTReader::m_bgpm [private]
 

Definition at line 49 of file QTReader.h.

Referenced by blitRot(), doinplacescroll(), dorollingscroll(), drawBackground(), drawSingleLine(), redrawScroll(), ResetScroll(), and setBackgroundBitmap().

bground QTReader::m_bgtype [private]
 

Definition at line 51 of file QTReader.h.

Referenced by drawBackground(), resizeEvent(), and setBackgroundBitmap().

bool QTReader::m_bMonoSpaced [private]
 

Definition at line 286 of file QTReader.h.

Referenced by blitRot(), QTReaderApp::do_saveconfig(), doinplacescroll(), dorollingscroll(), drawSingleLine(), DrawStraight(), firstword(), getcurrentpos(), getline(), processmousewordevent(), QTReaderApp::readconfig(), setmono(), and QTReaderApp::showprefs().

int QTReader::m_bottommargin
 

Definition at line 325 of file QTReader.h.

Referenced by blitRot(), CalculateScrollParameters(), doinplacescroll(), dopageup(), dorollingscroll(), drawFonts(), drawSingleLine(), DrawStraight(), fillbuffer(), getcurrentpos(), getline(), mousePressEvent(), processmousewordevent(), redrawScroll(), refresh(), and resizeEvent().

bool QTReader::m_bpagemode [private]
 

Definition at line 286 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), goDown(), goUp(), QTReaderApp::readconfig(), and setpagemode().

int QTReader::m_charpc [private]
 

Definition at line 93 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), setfont(), and QTReaderApp::showprefs().

int QTReader::m_charWidth [private]
 

Definition at line 92 of file QTReader.h.

Referenced by blitRot(), doinplacescroll(), dorollingscroll(), drawSingleLine(), DrawStraight(), getcurrentpos(), getline(), processmousewordevent(), and setfont().

bool QTReader::m_continuousDocument [private]
 

Definition at line 286 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), dopageup(), load_file(), QTReaderApp::readconfig(), setContinuous(), and QTReaderApp::showprefs().

int QTReader::m_currentlink [private]
 

Definition at line 47 of file QTReader.h.

Referenced by emitRedraw(), getNextLink(), gotoLink(), and mouseReleaseEvent().

int QTReader::m_currentlinkoffset [private]
 

Definition at line 48 of file QTReader.h.

Referenced by emitRedraw(), getNextLink(), gotoLink(), and mouseReleaseEvent().

CStyle* QTReader::m_currentlinkstyle [private]
 

Definition at line 46 of file QTReader.h.

Referenced by emitRedraw(), getNextLink(), gotoLink(), and mouseReleaseEvent().

QColor QTReader::m_default_bg [private]
 

Definition at line 62 of file QTReader.h.

Referenced by getfilter(), reset_bg(), and setBackground().

QColor QTReader::m_default_fg [private]
 

Definition at line 62 of file QTReader.h.

Referenced by getfilter(), and setForeground().

int QTReader::m_delay [private]
 

Definition at line 77 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), increaseScroll(), QTReaderApp::readconfig(), real_delay(), and reduceScroll().

int QTReader::m_descent
 

Definition at line 324 of file QTReader.h.

Referenced by setfont().

bool QTReader::m_doubleBuffered [private]
 

Definition at line 264 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), setDoubleBuffer(), setrotated(), and QTReaderApp::showprefs().

bool QTReader::m_drageligible [private]
 

Definition at line 40 of file QTReader.h.

Referenced by actionDrag(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().

unsigned long QTReader::m_dragtarget [private]
 

Definition at line 36 of file QTReader.h.

Referenced by actionDrag(), and mouseMoveEvent().

QTimer* QTReader::m_dragtimer [private]
 

Definition at line 35 of file QTReader.h.

Referenced by actionDrag(), init(), and mouseMoveEvent().

int QTReader::m_encd [private]
 

Definition at line 85 of file QTReader.h.

Referenced by QTReaderApp::chooseencoding(), QTReaderApp::do_saveconfig(), getencoding(), QTReaderApp::readconfig(), setencoding(), and QTReaderApp::showprefs().

QFontMetrics* QTReader::m_fm
 

Definition at line 327 of file QTReader.h.

FontControl QTReader::m_fontControl [private]
 

Definition at line 96 of file QTReader.h.

Referenced by ChangeFont(), QTReaderApp::do_saveconfig(), doinplacescroll(), dopageup(), dorollingscroll(), dostaticscroll(), fillbuffer(), QTReaderApp::findNext(), getBaseSize(), getextraspace(), getlead(), lineDown(), mouseReleaseEvent(), QTReaderApp::readconfig(), setBaseSize(), setextraspace(), setfont(), QTReaderApp::setfontHelper(), setlead(), setmono(), QTReaderApp::showinfo(), QTReaderApp::showprefs(), QTReaderApp::UpdateStatus(), QTReaderApp::zoomin(), zoomin(), QTReaderApp::zoomout(), and zoomout().

QString QTReader::m_fontname [private]
 

Definition at line 262 of file QTReader.h.

Referenced by ChangeFont(), QTReaderApp::do_saveconfig(), mouseReleaseEvent(), QTReaderApp::readconfig(), QTReaderApp::setfont(), QTReaderApp::setfontHelper(), QTReaderApp::showprefs(), QTReaderApp::zoomin(), and QTReaderApp::zoomout().

HighlightFilter* QTReader::m_highlightfilter
 

Definition at line 230 of file QTReader.h.

Referenced by getfilter(), and refresh().

QString QTReader::m_lastfile [private]
 

Definition at line 288 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), QTReaderApp::fileClose(), getfilter(), goBack(), goForward(), goHome(), QTReaderApp::gotobkmk(), gotoLink(), QTReaderApp::listbkmk(), load_file(), mouseReleaseEvent(), QTReaderApp::openFile(), PreferredMarkup(), QTReaderApp::readbkmks(), QTReaderApp::readconfig(), QTReaderApp::updatefileinfo(), and QTReaderApp::usefilebrowser().

int QTReader::m_lastheight [private]
 

Definition at line 279 of file QTReader.h.

Referenced by drawFonts(), fillbuffer(), and load_file().

size_t QTReader::m_lastposn [private]
 

Definition at line 289 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), load_file(), QTReaderApp::openfrombkmk(), and QTReaderApp::readconfig().

int QTReader::m_lastwidth [private]
 

Definition at line 279 of file QTReader.h.

Referenced by drawFonts(), load_file(), and locate().

unsigned short QTReader::m_left_border [private]
 

Definition at line 95 of file QTReader.h.

Referenced by blitRot(), doinplacescroll(), dorollingscroll(), drawFonts(), drawSingleLine(), DrawStraight(), getcurrentpos(), getline(), load_file(), mousePressEvent(), processmousewordevent(), redrawScroll(), refresh(), and resizeEvent().

int QTReader::m_linespacing
 

Definition at line 324 of file QTReader.h.

Referenced by real_delay(), screenlines(), and setfont().

QColor QTReader::m_negative_fg [private]
 

Definition at line 62 of file QTReader.h.

Referenced by setForeground().

bool QTReader::m_outofdate [private]
 

Definition at line 40 of file QTReader.h.

Referenced by gotoLink(), lineDown(), locate(), mouseReleaseEvent(), paintEvent(), refresh(), resizeEvent(), setautoscroll(), setDoubleBuffer(), and setrotated().

COutput* QTReader::m_output [private]
 

Definition at line 38 of file QTReader.h.

Referenced by about(), checkoutput(), doOutput(), QTReader(), QTReaderApp::showprefs(), and ~QTReader().

QString QTReader::m_outputName [private]
 

Definition at line 99 of file QTReader.h.

Referenced by checkoutput(), QTReaderApp::do_saveconfig(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

unsigned int QTReader::m_overlap [private]
 

Definition at line 78 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), dopagedn(), dopageup(), QTReader(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

QString QTReader::m_reparastring [private]
 

Definition at line 262 of file QTReader.h.

Referenced by QTReaderApp::do_reparastring(), QTReaderApp::do_saveconfig(), getfilter(), QTReaderApp::readconfig(), and QTReaderApp::reparastring().

unsigned short QTReader::m_right_border [private]
 

Definition at line 95 of file QTReader.h.

Referenced by blitRot(), doinplacescroll(), dorollingscroll(), drawFonts(), drawSingleLine(), DrawStraight(), getcurrentpos(), getline(), load_file(), mousePressEvent(), processmousewordevent(), redrawScroll(), refresh(), and resizeEvent().

bool QTReader::m_rotated [private]
 

Definition at line 81 of file QTReader.h.

Referenced by QTReaderApp::actionscroll(), CalculateScrollParameters(), QTReaderApp::do_saveconfig(), QTReaderApp::doAction(), doinplacescroll(), dopageup(), dorollingscroll(), drawBackground(), drawFonts(), DrawScroll(), drawSingleLine(), DrawStraight(), fillbuffer(), getcurrentpos(), getline(), lineDown(), load_file(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), QTReaderApp::OnRedraw(), paintEvent(), processmousepositionevent(), processmousewordevent(), QTReaderApp::readconfig(), redrawall(), redrawScroll(), refresh(), resizeEvent(), setDoubleBuffer(), setrotated(), and QTReaderApp::showtoolbarprefs().

QColor QTReader::m_scrollbarcolor [private]
 

Definition at line 255 of file QTReader.h.

Referenced by DrawScroll(), and QTReaderApp::setscrollbarcolour().

QColor QTReader::m_scrollcolor [private]
 

Definition at line 255 of file QTReader.h.

Referenced by doinplacescroll(), DrawStraight(), and QTReaderApp::setscrollcolour().

int QTReader::m_scrolldy [private]
 

Definition at line 270 of file QTReader.h.

Referenced by CalculateScrollParameters(), doinplacescroll(), drawFonts(), DrawStraight(), getcurrentpos(), getNextLink(), and ResetScroll().

int QTReader::m_scrolldy1 [private]
 

Definition at line 85 of file QTReader.h.

Referenced by CalculateScrollParameters(), doinplacescroll(), dorollingscroll(), dostaticscroll(), drawFonts(), DrawStraight(), getcurrentpos(), and ResetScroll().

int QTReader::m_scrolldy2 [private]
 

Definition at line 85 of file QTReader.h.

Referenced by CalculateScrollParameters(), doinplacescroll(), dorollingscroll(), and dostaticscroll().

int QTReader::m_scrollpart [private]
 

Definition at line 85 of file QTReader.h.

Referenced by fillbuffer().

int QTReader::m_scrollpos [private]
 

Definition at line 52 of file QTReader.h.

Referenced by CalculateScrollParameters(), QTReaderApp::doAction(), doinplacescroll(), dorollingscroll(), drawFonts(), DrawScroll(), fillbuffer(), mouseMoveEvent(), mousePressEvent(), redrawScroll(), and QTReaderApp::showtoolbarprefs().

unsigned short QTReader::m_scrollstep [private]
 

Definition at line 53 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), doinplacescroll(), dorollingscroll(), dostaticscroll(), QTReaderApp::readconfig(), real_delay(), and QTReaderApp::showprefs().

int QTReader::m_scrolltype [private]
 

Definition at line 77 of file QTReader.h.

Referenced by autoscroll(), blitRot(), CalculateScrollParameters(), QTReaderApp::do_saveconfig(), doscroll(), focusInEvent(), focusOutEvent(), QTReaderApp::readconfig(), redrawScroll(), ResetScroll(), setautoscroll(), and QTReaderApp::showprefs().

size_t QTReader::m_startoffset [private]
 

Definition at line 275 of file QTReader.h.

Referenced by processmousewordevent().

size_t QTReader::m_startpos [private]
 

Definition at line 275 of file QTReader.h.

Referenced by processmousewordevent().

QString QTReader::m_string [private]
 

Definition at line 262 of file QTReader.h.

Referenced by QTReaderApp::fileClose(), QTReaderApp::OnURLSelected(), QTReaderApp::openFile(), QTReaderApp::readbkmks(), QTReaderApp::savebkmks(), QTReaderApp::SaveConfig(), setText(), QTReaderApp::updateCaption(), and QTReaderApp::updatefileinfo().

bool QTReader::m_swapmouse [private]
 

Definition at line 79 of file QTReader.h.

Referenced by QTReaderApp::do_saveconfig(), mousePressEvent(), mouseReleaseEvent(), QTReaderApp::readconfig(), and QTReaderApp::showprefs().

int QTReader::m_textsize [private]
 

Definition at line 278 of file QTReader.h.

Referenced by actionDrag(), init(), QTReaderApp::readconfig(), and textsize().

int QTReader::m_topmargin
 

Definition at line 325 of file QTReader.h.

Referenced by blitRot(), CalculateScrollParameters(), doinplacescroll(), dopagedn(), dopageup(), dorollingscroll(), drawFonts(), drawSingleLine(), DrawStraight(), fillbuffer(), getcurrentpos(), getline(), lineDown(), mousePressEvent(), processmousewordevent(), refresh(), ResetScroll(), and resizeEvent().

int QTReader::m_totalscroll [private]
 

Definition at line 85 of file QTReader.h.

Referenced by blitRot(), CalculateScrollParameters(), dorollingscroll(), redrawScroll(), and ResetScroll().

bool QTReader::m_touchone [private]
 

Definition at line 274 of file QTReader.h.

Referenced by processmousewordevent(), and setTwoTouch().

bool QTReader::m_twotouch [private]
 

Definition at line 274 of file QTReader.h.

Referenced by processmousewordevent(), and setTwoTouch().

bool QTReader::mouseUpOn [private]
 

Definition at line 272 of file QTReader.h.

Referenced by mousePressEvent(), and mouseReleaseEvent().

unsigned long QTReader::mylastpos
 

Definition at line 308 of file QTReader.h.

Referenced by doinplacescroll(), dopagedn(), dopageup(), dorollingscroll(), dostaticscroll(), drawFonts(), fillbuffer(), lineDown(), readAloud(), and restore().

unsigned int QTReader::numlines [private]
 

Definition at line 282 of file QTReader.h.

Referenced by actionDrag(), CalculateScrollParameters(), doinplacescroll(), dopagedn(), dopageup(), dorollingscroll(), dostaticscroll(), drawFonts(), DrawScroll(), drawSingleLine(), DrawStraight(), fillbuffer(), firstword(), getcurrentpos(), getNextLink(), lineDown(), lineUp(), mousePressEvent(), and setautoscroll().

CList<Bkmk>* QTReader::pBkmklist [private]
 

Definition at line 65 of file QTReader.h.

Referenced by QTReaderApp::addAnno(), Bkmklist(), QTReaderApp::clearBkmkList(), QTReaderApp::closeEvent(), QTReaderApp::do_addbkmk(), QTReaderApp::do_autogen(), QTReaderApp::fileOpen2(), and QTReaderApp::readbkmks().

tchar QTReader::pluckernextpart = { 'C','l','i','c','k',' ','h','e','r','e',' ','f','o','r',' ','t','h','e',' ','n','e','x','t',' ','p','a','r','t',0 } [static, private]
 

Definition at line 52 of file QTReader.cpp.

Referenced by getfilter().

CBufferFace<CDrawBuffer*> QTReader::textarray [private]
 

Definition at line 280 of file QTReader.h.

Referenced by CalculateScrollParameters(), doinplacescroll(), dopagedn(), dopageup(), dorollingscroll(), dostaticscroll(), drawFonts(), drawSingleLine(), DrawStraight(), fillbuffer(), firstword(), getcurrentpos(), getNextLink(), gotoLink(), lineDown(), mouseReleaseEvent(), processmousewordevent(), and setautoscroll().

bool QTReader::tight
 

Definition at line 299 of file QTReader.h.

QTimer* QTReader::timer [private]
 

Definition at line 84 of file QTReader.h.

Referenced by autoscroll(), doinplacescroll(), dorollingscroll(), doscroll(), dostaticscroll(), focusInEvent(), focusOutEvent(), increaseScroll(), init(), keyPressEvent(), and reduceScroll().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:49:51 2005 for OPIE by  doxygen 1.4.2