Add Text tool

closes #11
Add an initial version of the text tool.
This commit adds:
- Basic text tool.
- On demand thickness and color update.
- Generalized logic for future widget based tools.
This commit is contained in:
lupoDharkael
2018-05-06 13:56:45 +02:00
parent 40605ab6b5
commit 5432614651
34 changed files with 666 additions and 57 deletions

View File

@@ -34,6 +34,7 @@
#include "blur/blurtool.h"
#include "redo/redotool.h"
#include "pin/pintool.h"
#include "text/texttool.h"
ToolFactory::ToolFactory(QObject *parent) : QObject(parent) {
@@ -99,6 +100,9 @@ CaptureTool* ToolFactory::CreateTool(
case CaptureButton::TYPE_PIN:
tool = new PinTool(parent);
break;
case CaptureButton::TYPE_TEXT:
tool = new TextTool(parent);
break;
default:
tool = nullptr;
break;