Made undo tool aware of circle count to decrement. Refactored tool ID's to be enum
This commit is contained in:
committed by
borgmanJeremy
parent
ed4ea1377b
commit
6afa3ca26a
@@ -709,6 +709,10 @@ CaptureWidget::handleButtonSignal(CaptureTool::Request r)
|
||||
incrementCircleCount();
|
||||
break;
|
||||
|
||||
case CaptureTool::REQ_DECREMENT_CIRCLE_COUNT:
|
||||
decrementCircleCount();
|
||||
break;
|
||||
|
||||
case CaptureTool::REQ_CLOSE_GUI:
|
||||
close();
|
||||
break;
|
||||
@@ -796,6 +800,12 @@ CaptureWidget::incrementCircleCount()
|
||||
m_context.circleCount++;
|
||||
}
|
||||
|
||||
void
|
||||
CaptureWidget::decrementCircleCount()
|
||||
{
|
||||
m_context.circleCount--;
|
||||
}
|
||||
|
||||
void
|
||||
CaptureWidget::setDrawThickness(const int& t)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user