libs/flake

KoPathPointMergeCommand Class Reference

The undo / redo command for merging two subpath end points. More...

#include <KoPathPointMergeCommand.h>

Inheritance diagram for KoPathPointMergeCommand:

List of all members.

Public Member Functions

 KoPathPointMergeCommand (const KoPathPointData &pointData1, const KoPathPointData &pointData2, QUndoCommand *parent=0)
 ~KoPathPointMergeCommand ()
void redo ()
void undo ()

Detailed Description

The undo / redo command for merging two subpath end points.

Definition at line 30 of file KoPathPointMergeCommand.h.


Constructor & Destructor Documentation

KoPathPointMergeCommand::KoPathPointMergeCommand ( const KoPathPointData pointData1,
const KoPathPointData pointData2,
QUndoCommand parent = 0 
)

Command to merge two subpath end points.

How does is work:.

The points have to be from the same path shape.

Parameters:
pointData1 the data of the first point to merge
pointData2 the data of the second point to merge
parent the parent command used for macro commands

The goal is to merge the point that is ending an open subpath with the one starting the same or another open subpath.

Definition at line 107 of file KoPathPointMergeCommand.cpp.

KoPathPointMergeCommand::~KoPathPointMergeCommand (  ) 

Definition at line 155 of file KoPathPointMergeCommand.cpp.


Member Function Documentation

void KoPathPointMergeCommand::redo (  ) 

redo the command

Reimplemented from QUndoCommand.

Definition at line 160 of file KoPathPointMergeCommand.cpp.

void KoPathPointMergeCommand::undo (  ) 

revert the actions done in redo

Reimplemented from QUndoCommand.

Definition at line 202 of file KoPathPointMergeCommand.cpp.


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