libs/flake

KoCutController Class Reference

This class takes care of the cut actions integration into flake. More...

#include <KoCutController.h>

Inheritance diagram for KoCutController:

List of all members.

Public Member Functions

 KoCutController (KoCanvasBase *canvas, QAction *cutAction)

Detailed Description

This class takes care of the cut actions integration into flake.

Whenever the copy (KStandardAction::Cut) action is triggered the controller will use the currently selected tool and try to cut to the clipboard using that tool. Additionally; when the tool does not allow copying (KoTool::hasSelection() returns false) the signal copyRequested will be emitted for applications to connect to.

Definition at line 32 of file KoCutController.h.


Constructor & Destructor Documentation

KoCutController::KoCutController ( KoCanvasBase canvas,
QAction cutAction 
)

Constructor.

Parameters:
canvas the canvas this controller will work on.
cutAction the action that we will listen to and respond to when it is activated. Additionally, the action is used as a parent for the QObject for memory management purposes.

Definition at line 24 of file KoCutController.cpp.


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