Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PresentationBrowser Class Reference

QCanvasView descendent that handles parsing and rendering of document. More...

#include <pbrowser.h>

List of all members.

Signals

void renderProgressStart (int)
 signals when rendering starts

void renderProgressUpdate (int)
 signals for internal rendering step

void offFullscreen ()
 signals when changing from fullscreen mode

void keyPressedInFullscreenEvent (QKeyEvent *)
 signals when keypressed in fullscreen mode


Public Methods

 PresentationBrowser (QCanvas *c, QWidget *w, const char *name, WFlags fl=0)
 Constructor.

 ~PresentationBrowser ()
 Deconstructor.

void parseFiles (const DocLnk &lnkDoc)
 Parses files into into pXmlNode tree's.

int pageCount ()
 The page count of the current document.

void renderPage (int i)
 renders the given page to canvas

void clearPage ()
 clears the canvas

void setFactor (int f)
 Sets the scale factor 0 = Scale factor 1x 1 = Scale factor 2x 2 = Scale factor 3x 3 = Scale factor full page.

void setReplace (bool r)
 Sets the boolean replace objects flag.

void resizeEvent (QResizeEvent *e)
 Event handler for resize events.

void focusInEvent (QFocusEvent *e)
 Event handler for focus in events.

void enableFullscreen ()
 Enables fullscreen mode.

void setFullscreen (bool)
 Sets internal fullsize mode flag.

void showFullscreenPixmap ()
 Displays Canvas to fullscreen as a pixmap.


Public Attributes

PParserhandler
 XML handler for document.

QList< QByteArray > objectfilelist
 list of subobject documents files.

QList< QString > objectnamelist
 list of all subobject documents names.


Protected Methods

void contentsMousePressEvent (QMouseEvent *e)
 Event handler for mouse press events.


Private Methods

void keyPressEvent (QKeyEvent *e)
 Event handler for keypress events.


Private Attributes

int pages
 internal page counter

float factor
 Internal rendering factor.

int thispage
 current page number

bool replaceitems
 replace items flag

bool fullscreen
 fullscreen mode flag


Detailed Description

Author:
Ryan Rusaw

Definition at line 37 of file pbrowser.h.


Constructor & Destructor Documentation

PresentationBrowser::PresentationBrowser QCanvas *    c,
QWidget *    w,
const char *    name,
WFlags    fl = 0
 

Parameters:
c  canvas
w  parent widget
name  name of PresentationBrowser
fl  widget flags

PresentationBrowser::~PresentationBrowser   [inline]
 

Definition at line 53 of file pbrowser.h.

00053 { };


Member Function Documentation

void PresentationBrowser::clearPage  
 

void PresentationBrowser::contentsMousePressEvent QMouseEvent *    e [protected]
 

Parameters:
e  event

void PresentationBrowser::enableFullscreen  
 

void PresentationBrowser::focusInEvent QFocusEvent *    e
 

Parameters:
e  Event

void PresentationBrowser::keyPressedInFullscreenEvent QKeyEvent *    [signal]
 

void PresentationBrowser::keyPressEvent QKeyEvent *    e [private]
 

Parameters:
e  event

void PresentationBrowser::offFullscreen   [signal]
 

int PresentationBrowser::pageCount  
 

Returns:
the # of pages

void PresentationBrowser::parseFiles const DocLnk &    lnkDoc
 

Parameters:
lnkDoc  DocLnk to .sxi file to parse

void PresentationBrowser::renderPage int    i
 

Parameters:
i  page number to render

void PresentationBrowser::renderProgressStart int    [signal]
 

void PresentationBrowser::renderProgressUpdate int    [signal]
 

void PresentationBrowser::resizeEvent QResizeEvent *    e
 

Parameters:
e  Event

void PresentationBrowser::setFactor int    f
 

Parameters:
f  scale factor

void PresentationBrowser::setFullscreen bool   
 

void PresentationBrowser::setReplace bool    r
 

Parameters:
r  value to set flag to

void PresentationBrowser::showFullscreenPixmap  
 


Member Data Documentation

float PresentationBrowser::factor [private]
 

Definition at line 130 of file pbrowser.h.

bool PresentationBrowser::fullscreen [private]
 

Definition at line 142 of file pbrowser.h.

PParser* PresentationBrowser::handler
 

Definition at line 90 of file pbrowser.h.

QList<QByteArray> PresentationBrowser::objectfilelist
 

Definition at line 94 of file pbrowser.h.

QList<QString> PresentationBrowser::objectnamelist
 

Definition at line 98 of file pbrowser.h.

int PresentationBrowser::pages [private]
 

Definition at line 126 of file pbrowser.h.

bool PresentationBrowser::replaceitems [private]
 

Definition at line 138 of file pbrowser.h.

int PresentationBrowser::thispage [private]
 

Definition at line 134 of file pbrowser.h.


The documentation for this class was generated from the following file:
Generated on Sun Feb 2 21:28:30 2003 for PoqetPresenter by doxygen1.2.18