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

FontControl Class Reference

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

Collaboration diagram for FontControl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void FixGraphics (bool _b)
bool FixGraphics ()
void setBaseSize (unsigned char _s)
unsigned char getBaseSize ()
int gzoom ()
 FontControl (QString n="helvetica", int size=10)
 ~FontControl ()
void hasCourier (bool _b, const QString &_nm)
QStringfixedfontname ()
bool hasCourier ()
QString name ()
int currentsize ()
int getsize (const CStyle &size)
int getsize (int _offset)
int ascent ()
int ascent (const CStyle &ch)
int descent ()
int descent (const CStyle &ch)
int lineSpacing ()
int lineSpacing (const CStyle &ch)
bool decreasesize ()
bool increasesize ()
bool ChangeFont (QString &n)
bool ChangeFont (QString &n, int tgt)
void setlead (int _lead)
int getlead ()
void setextraspace (int _lead)
int getextraspace ()

Private Attributes

int * m_fontsizes
int m_size
int g_size
QString m_fontname
QString m_fixedfontname
int m_maxsize
bool m_hasCourier
int m_leading
int m_extraspace
unsigned char m_basesize
bool m_fixgraphics

Constructor & Destructor Documentation

FontControl::FontControl QString  n = "helvetica",
int  size = 10
[inline]
 

Definition at line 30 of file FontControl.h.

References ChangeFont(), and size.

FontControl::~FontControl  )  [inline]
 

Definition at line 36 of file FontControl.h.

References m_fontsizes, and NULL.


Member Function Documentation

int FontControl::ascent const CStyle ch  )  [inline]
 

Definition at line 72 of file FontControl.h.

References f, getsize(), and name().

int FontControl::ascent  )  [inline]
 

Definition at line 66 of file FontControl.h.

References currentsize(), f, and name().

Referenced by CDrawBuffer::render(), CDrawBuffer::resize(), and QTReader::setfont().

bool FontControl::ChangeFont QString n,
int  tgt
 

Definition at line 34 of file FontControl.cpp.

References abs, QValueList< T >::begin(), QValueList< T >::count(), QValueList< T >::end(), g_size, i, m_fontname, m_fontsizes, m_maxsize, m_size, and NULL.

bool FontControl::ChangeFont QString n  )  [inline]
 

Definition at line 149 of file FontControl.h.

References currentsize().

Referenced by QTReader::ChangeFont(), and FontControl().

int FontControl::currentsize  )  [inline]
 

Definition at line 48 of file FontControl.h.

References m_fontsizes, m_size, and NULL.

Referenced by ascent(), ChangeFont(), descent(), QTReaderApp::do_saveconfig(), lineSpacing(), QTReader::mouseReleaseEvent(), QTReader::setfont(), QTReaderApp::setfontHelper(), QTReader::setmono(), QTReaderApp::showinfo(), and QTReaderApp::UpdateStatus().

bool FontControl::decreasesize  )  [inline]
 

Definition at line 102 of file FontControl.h.

References g_size, m_fixgraphics, and m_size.

Referenced by QTReader::zoomout().

int FontControl::descent const CStyle ch  )  [inline]
 

Definition at line 84 of file FontControl.h.

References f, getsize(), and name().

int FontControl::descent  )  [inline]
 

Definition at line 78 of file FontControl.h.

References currentsize(), f, and name().

Referenced by CDrawBuffer::resize(), and QTReader::setfont().

QString& FontControl::fixedfontname  )  [inline]
 

Definition at line 45 of file FontControl.h.

References m_fixedfontname.

Referenced by CDrawBuffer::charwidth(), CDrawBuffer::render(), and CDrawBuffer::width().

bool FontControl::FixGraphics  )  [inline]
 

Definition at line 23 of file FontControl.h.

References m_fixgraphics.

void FontControl::FixGraphics bool  _b  )  [inline]
 

Definition at line 19 of file FontControl.h.

References m_fixgraphics.

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

unsigned char FontControl::getBaseSize  )  [inline]
 

Definition at line 28 of file FontControl.h.

References m_basesize.

Referenced by QTReader::getBaseSize().

int FontControl::getextraspace  )  [inline]
 

Definition at line 166 of file FontControl.h.

References m_extraspace.

Referenced by QTReader::getextraspace(), and CDrawBuffer::resize().

int FontControl::getlead  )  [inline]
 

Definition at line 158 of file FontControl.h.

References m_leading.

Referenced by QTReader::getlead(), and CDrawBuffer::resize().

int FontControl::getsize int  _offset  )  [inline]
 

Definition at line 53 of file FontControl.h.

References m_fontsizes, m_maxsize, and m_size.

int FontControl::getsize const CStyle size  )  [inline]
 

Definition at line 49 of file FontControl.h.

Referenced by ascent(), CDrawBuffer::charwidth(), descent(), CDrawBuffer::leftMargin(), lineSpacing(), CDrawBuffer::render(), CDrawBuffer::resize(), CDrawBuffer::rightMargin(), CDrawBuffer::width(), QTReaderApp::zoomin(), and QTReaderApp::zoomout().

int FontControl::gzoom  ) 
 

Definition at line 5 of file FontControl.cpp.

References f, g_size, m_basesize, m_fixgraphics, m_fontsizes, m_maxsize, and m_size.

Referenced by CDrawBuffer::charwidth(), CDrawBuffer::render(), CDrawBuffer::resize(), and CDrawBuffer::width().

bool FontControl::hasCourier  )  [inline]
 

Definition at line 46 of file FontControl.h.

References m_hasCourier.

void FontControl::hasCourier bool  _b,
const QString _nm
[inline]
 

Definition at line 40 of file FontControl.h.

References m_fixedfontname, and m_hasCourier.

Referenced by CDrawBuffer::charwidth(), CDrawBuffer::render(), and CDrawBuffer::width().

bool FontControl::increasesize  )  [inline]
 

Definition at line 126 of file FontControl.h.

References g_size, m_fixgraphics, m_maxsize, and m_size.

Referenced by QTReader::zoomin().

int FontControl::lineSpacing const CStyle ch  )  [inline]
 

Definition at line 96 of file FontControl.h.

References f, getsize(), and name().

int FontControl::lineSpacing  )  [inline]
 

Definition at line 90 of file FontControl.h.

References currentsize(), f, and name().

Referenced by CDrawBuffer::resize(), and QTReader::setfont().

QString FontControl::name  )  [inline]
 

Definition at line 47 of file FontControl.h.

References m_fontname.

Referenced by ascent(), CDrawBuffer::charwidth(), descent(), lineSpacing(), CDrawBuffer::render(), and CDrawBuffer::width().

void FontControl::setBaseSize unsigned char  _s  )  [inline]
 

Definition at line 27 of file FontControl.h.

References m_basesize.

Referenced by QTReader::setBaseSize().

void FontControl::setextraspace int  _lead  )  [inline]
 

Definition at line 162 of file FontControl.h.

References m_extraspace.

Referenced by QTReader::setextraspace().

void FontControl::setlead int  _lead  )  [inline]
 

Definition at line 154 of file FontControl.h.

References m_leading.

Referenced by QTReader::setlead().


Member Data Documentation

int FontControl::g_size [private]
 

Definition at line 10 of file FontControl.h.

Referenced by ChangeFont(), decreasesize(), gzoom(), and increasesize().

unsigned char FontControl::m_basesize [private]
 

Definition at line 16 of file FontControl.h.

Referenced by getBaseSize(), gzoom(), and setBaseSize().

int FontControl::m_extraspace [private]
 

Definition at line 15 of file FontControl.h.

Referenced by getextraspace(), and setextraspace().

QString FontControl::m_fixedfontname [private]
 

Definition at line 12 of file FontControl.h.

Referenced by fixedfontname(), and hasCourier().

bool FontControl::m_fixgraphics [private]
 

Definition at line 17 of file FontControl.h.

Referenced by decreasesize(), FixGraphics(), gzoom(), and increasesize().

QString FontControl::m_fontname [private]
 

Definition at line 11 of file FontControl.h.

Referenced by ChangeFont(), and name().

int* FontControl::m_fontsizes [private]
 

Definition at line 9 of file FontControl.h.

Referenced by ChangeFont(), currentsize(), getsize(), gzoom(), and ~FontControl().

bool FontControl::m_hasCourier [private]
 

Definition at line 14 of file FontControl.h.

Referenced by hasCourier().

int FontControl::m_leading [private]
 

Definition at line 15 of file FontControl.h.

Referenced by getlead(), and setlead().

int FontControl::m_maxsize [private]
 

Definition at line 13 of file FontControl.h.

Referenced by ChangeFont(), getsize(), gzoom(), and increasesize().

int FontControl::m_size [private]
 

Definition at line 10 of file FontControl.h.

Referenced by ChangeFont(), currentsize(), decreasesize(), getsize(), gzoom(), and increasesize().


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