#include <KoCanvasBase.h>
Graphe d'héritage de KoCanvasBase:
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 KoShapeManager * | shapeManager () const=0 |
virtual void | updateCanvas (const QRectF &rc)=0 |
virtual KoToolProxy * | toolProxy ()=0 |
virtual KoViewConverter * | viewConverter ()=0 |
virtual QWidget * | canvasWidget ()=0 |
virtual KoUnit::Unit | unit ()=0 |
virtual QPoint | documentOrigin () |
KoCanvasResourceProvider * | resourceProvider () |
Attributs privés | |
KoCanvasResourceProvider * | m_resourceProvider |
Définition à la ligne 47 du fichier KoCanvasBase.h.
KoCanvasBase::KoCanvasBase | ( | ) |
KoCanvasBase::~KoCanvasBase | ( | ) | [virtual] |
virtual void KoCanvasBase::gridSize | ( | double * | horizontal, | |
double * | vertical | |||
) | const [pure virtual] |
retrieve the grid size setting. The grid spacing will be provided in pt.
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.
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.
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
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.
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.
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 :
Définition à la ligne 288 du fichier KoCanvasBase.h.
Référencé par KoCanvasBase(), resourceProvider(), et ~KoCanvasBase().