libs/flake
KoPasteController Class Reference
This class takes care of the paste actions integration into flake. More...
#include <KoPasteController.h>
Inheritance diagram for KoPasteController:

Signals | |
| void | pasteRequested () |
Public Member Functions | |
| KoPasteController (KoCanvasBase *canvas, QAction *pasteAction) | |
| ~KoPasteController () | |
Detailed Description
This class takes care of the paste actions integration into flake.
Whenever the paste (KStandardAction::Paste) action is triggered the controller will use the currently selected tool and try to paste using that tool. Additionally; when the tool does not allow pasting (KoTool::hasSelection() returns false) the signal pasteRequested will be emitted for applications to connect to.
Definition at line 36 of file KoPasteController.h.
Constructor & Destructor Documentation
| KoPasteController::KoPasteController | ( | KoCanvasBase * | canvas, | |
| QAction * | pasteAction | |||
| ) |
Constructor.
- Parameters:
-
canvas the canvas this controller will work on. pasteAction 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 52 of file KoPasteController.cpp.
| KoPasteController::~KoPasteController | ( | ) |
Definition at line 60 of file KoPasteController.cpp.
Member Function Documentation
| void KoPasteController::pasteRequested | ( | ) | [signal] |
emitted when the user pressed paste and the current tool had no selection.
The documentation for this class was generated from the following files:
