DrawManager Class Reference

#include <DrawManager.h>

List of all members.

Public Member Functions

 DrawManager (void)
 DrawManager (QWidget *srcFrame)
 ~DrawManager (void)
void setNewFocus (string focus)
void setNewFocus (StringTreeNode *focus)
void processTextData (StringTreeNode *actNode, QFont &fontInfo, QPen &penProps, QBrush &brushProps, QPointF leftJoint, unsigned int topCoordinate, unsigned int bottomCoordinate, unsigned int leftMargin)
void resizeEvent (QResizeEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void setNewProcessor (StringProcessor *proc)
void previousElement ()
void nextElement ()

Private Member Functions

void cleanup (list< StringTreeNode * >::iterator first, list< StringTreeNode * >::iterator last)

Private Attributes

list< StringTreeNode * > rootElementHistory
list< StringTreeNode * >::iterator actElem
StringProcessorprocessor
QGraphicsScene myScene


Detailed Description

This widget is responsible for drawing the processed content

Constructor & Destructor Documentation

DrawManager::DrawManager ( void   ) 

Default constructor

DrawManager::DrawManager ( QWidget *  srcFrame  ) 

srcFrame : the source widget

DrawManager::~DrawManager ( void   ) 


Member Function Documentation

void DrawManager::cleanup ( list< StringTreeNode * >::iterator  first,
list< StringTreeNode * >::iterator  last 
) [private]

void DrawManager::mouseReleaseEvent ( QMouseEvent *  event  ) 

Handles a mouse click on an item in this widget. In case a string was clicked, this string is being set as the new search term, event being the data with the position changes

void DrawManager::nextElement (  ) 

Sets the new processor to the next cached term, if there is any

void DrawManager::previousElement (  ) 

Sets the focus term to the previous cached term, if there is any

void DrawManager::processTextData ( StringTreeNode actNode,
QFont &  fontInfo,
QPen &  penProps,
QBrush &  brushProps,
QPointF  leftJoint,
unsigned int  topCoordinate,
unsigned int  bottomCoordinate,
unsigned int  leftMargin 
)

Recursive function, building up the whole graphical representation. actNode is the currently processed node of the string tree, fontInfo gives us information about the desired text font, penProps and brushProps describe the graphical properties of the tree branches, in form of splines, leftJoint is the start coordinate of the spline, topCoordinate is the top boundary of the currently available graphical space, bottom coordinate is the bottom boundary of the currently available graphical space, leftMargin is the left boundary of the currently available graphical space

}

void DrawManager::resizeEvent ( QResizeEvent *  event  ) 

Resizes the widget to the given size, event being the data with the changes

void DrawManager::setNewFocus ( StringTreeNode focus  ) 

Sets a new focus term, caching the old one, where 'focus' is the new node.

void DrawManager::setNewFocus ( string  focus  ) 

Sets a new focus term, caching the old one, where 'focus' is the new term.

void DrawManager::setNewProcessor ( StringProcessor proc  ) 

Sets the new processor for the new text


Member Data Documentation

list< StringTreeNode* >::iterator DrawManager::actElem [private]

QGraphicsScene DrawManager::myScene [private]


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

Generated on Tue Jun 8 15:23:24 2010 for WordTree by  doxygen 1.5.7.1