Référence de la classe KoCanvasBase

#include <KoCanvasBase.h>

Graphe d'héritage de KoCanvasBase:

[légende]
Graphe de collaboration de KoCanvasBase:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoCanvasBase ()
virtual ~KoCanvasBase ()
virtual void gridSize (double *horizontal, double *vertical) const =0
virtual bool snapToGrid () const=0
virtual void addCommand (KCommand *command, bool execute=true)=0
virtual KoShapeManagershapeManager () const=0
virtual void updateCanvas (const QRectF &rc)=0
virtual KoToolProxytoolProxy ()=0
virtual KoViewConverterviewConverter ()=0
virtual QWidget * canvasWidget ()=0
virtual KoUnit::Unit unit ()=0
virtual QPoint documentOrigin ()
KoCanvasResourceProviderresourceProvider ()

Attributs privés

KoCanvasResourceProviderm_resourceProvider

Description détaillée

KoCanvasBase is the interface actual application canvas classes should implement. Flake tools know about the canvas, so they can do things like scroll, redraw, set a cursor etc.

Définition à la ligne 47 du fichier KoCanvasBase.h.


Documentation des contructeurs et destructeur

KoCanvasBase::KoCanvasBase (  ) 

Définition à la ligne 24 du fichier KoCanvasBase.cpp.

Références m_resourceProvider.

KoCanvasBase::~KoCanvasBase (  )  [virtual]

Définition à la ligne 29 du fichier KoCanvasBase.cpp.

Références m_resourceProvider.


Documentation des fonctions membres

virtual void KoCanvasBase::gridSize ( double *  horizontal,
double *  vertical 
) const [pure virtual]

retrieve the grid size setting. The grid spacing will be provided in pt.

Paramètres:
horizontal a pointer to a double that will be filled with the horizontal grid-spacing
vertical a pointer to a double that will be filled with the vertical grid-spacing

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoInteractionStrategy::applyGrid(), et KoPathTool::snapToGrid().

Voici le graphe d'appel pour cette fonction :

virtual bool KoCanvasBase::snapToGrid (  )  const [pure virtual]

return if snap to grid is enabled.

Renvoie:
if snap to grid is enabled.

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoShapeResizeStrategy::handleMouseMove(), KoShapeMoveStrategy::handleMouseMove(), et KoPathTool::snapToGrid().

Voici le graphe d'appel pour cette fonction :

virtual void KoCanvasBase::addCommand ( KCommand *  command,
bool  execute = true 
) [pure virtual]

Adds a command to the history. Call this for each command you create. Unless you set execute to false, this will also execute the command. This means, most of the application's code will look like MyCommand * cmd = new MyCommand( parameters ); canvas.addCommand( cmd );

Note that the command history takes ownership of the command, it will delete it when the undo limit is reached, or when deleting the command history itself.

Paramètres:
command the command to add
execute if true, the commands execute method will be called

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoPathTool::keyPressEvent(), KoInteractionTool::keyPressEvent(), KoPathTool::ActivePointHandle::mousePressEvent(), KoPathTool::mouseReleaseEvent(), et KoInteractionTool::mouseReleaseEvent().

Voici le graphe d'appel pour cette fonction :

virtual KoShapeManager* KoCanvasBase::shapeManager (  )  const [pure virtual]

return the current shapeManager

Renvoie:
the current shapeManager

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoTextTool::activate(), KFormula::FormulaTool::activate(), KoPathTool::activate(), KoCreateShapeStrategy::createCommand(), KoInteractionStrategy::createStrategy(), KoShapeRubberSelectStrategy::finishInteraction(), KoShapeShearStrategy::handleMouseMove(), KoShapeRotateStrategy::handleMouseMove(), KoShapeMoveStrategy::handleMouseMove(), KoPathTool::keyPressEvent(), KoShapeMoveStrategy::KoShapeMoveStrategy(), KoShapeResizeStrategy::KoShapeResizeStrategy(), KoShapeRotateStrategy::KoShapeRotateStrategy(), KoShapeShearStrategy::KoShapeShearStrategy(), KoPathTool::mouseMoveEvent(), KoTextTool::mousePressEvent(), MoveTool::mousePressEvent(), KoToolManager::movedFocus(), KoShapeShearStrategy::paint(), KoShapeRotateStrategy::paint(), KoShapeResizeStrategy::paint(), KoShapeMoveStrategy::paint(), KoPathTool::paint(), KoInteractionTool::selection(), KoPathTool::selectPoints(), et KoToolManager::toolActivated().

Voici le graphe d'appel pour cette fonction :

virtual void KoCanvasBase::updateCanvas ( const QRectF &  rc  )  [pure virtual]

Tell the canvas to repaint the specified rectangle. The coordinates are document coordinates, not view coordinates.

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoShapeRubberSelectStrategy::finishInteraction(), KoPathPointRubberSelectStrategy::finishInteraction(), KoCreateShapeStrategy::finishInteraction(), KoShapeRubberSelectStrategy::handleMouseMove(), KoTextTool::repaint(), KoShapeManager::repaint(), KoPathTool::repaint(), et KoInteractionTool::repaintDecorations().

Voici le graphe d'appel pour cette fonction :

virtual KoToolProxy* KoCanvasBase::toolProxy (  )  [pure virtual]

Return the proxy to the active tool (determining which tool is really, really active is hard when tablets are involved, so leave that to others.

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoShapeManager::repaint().

Voici le graphe d'appel pour cette fonction :

virtual KoViewConverter* KoCanvasBase::viewConverter (  )  [pure virtual]

Return the viewConverter for this view.

Renvoie:
the viewConverter for this view.

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoCanvasController::ensureVisible(), KoInteractionTool::handleAt(), et KoInteractionTool::handlesSize().

Voici le graphe d'appel pour cette fonction :

virtual QWidget* KoCanvasBase::canvasWidget (  )  [pure virtual]

Return the widget that will be added to the scrollArea.

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoCanvasController::canvasOffsetX(), KoCanvasController::canvasOffsetY(), KoCreateShapeStrategy::createCommand(), KoCanvasController::ensureVisible(), KoCanvasController::eventFilter(), KoToolManager::movedFocus(), KoCanvasController::setCanvas(), KoToolManager::switchTool(), et KoToolManager::updateCursor().

Voici le graphe d'appel pour cette fonction :

virtual KoUnit::Unit KoCanvasBase::unit (  )  [pure virtual]

Return the unit of the current document for initialization of the widgets created by the flake framework.

Voir également:
KoDocument::unit()

Implémenté dans MockCanvas, et KoShapeSelector::Canvas.

Référencé par KoCreateShapeStrategy::createCommand().

Voici le graphe d'appel pour cette fonction :

virtual QPoint KoCanvasBase::documentOrigin (  )  [inline, virtual]

Return the position of the document origin inside the canvas widget. By default the origin of the canvas widget and the position of the document origin are coincident, thus an empty point is returned.

Définition à la ligne 126 du fichier KoCanvasBase.h.

Référencé par KoCanvasController::ensureVisible().

Voici le graphe d'appel pour cette fonction :

KoCanvasResourceProvider* KoCanvasBase::resourceProvider (  )  [inline]

Return a pointer to the resource provider associated with this canvas. The resource provider contains per-canvas settings such as current foreground and background color.

Définition à la ligne 133 du fichier KoCanvasBase.h.

Références m_resourceProvider.

Référencé par KoTool::KoTool().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KoCanvasResourceProvider* KoCanvasBase::m_resourceProvider [private]

Définition à la ligne 288 du fichier KoCanvasBase.h.

Référencé par KoCanvasBase(), resourceProvider(), et ~KoCanvasBase().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:44:04 2006 pour KPlato par  doxygen 1.5.1-p1