]> Shamusworld >> Repos - architektonas/blobdiff - src/penwidget.cpp
Fixed click selection and pen functionality.
[architektonas] / src / penwidget.cpp
index a20c0a22951d7805ca63bdf1ecd402a355a68dd3..65da6bb6034ea689b02778cdcfa5ffd30ef04116 100644 (file)
@@ -11,9 +11,8 @@
 // ---  ----------  -----------------------------------------------------------
 // JLH  05/07/2017  Created this file
 //
-//maybe add a button to have it stamp attributes on all objects clicked on? [added Global::penStamp to facilitate this.]
-//need to add to drawingview the ability to use attributes on new objects [DONE]
-//need to override the selection so you can see the attributes effects immediately when they are changed instead of having to deselect them to see [IN PROGRESS]
+// Maybe add a "pen" pallete, to hold most frequently used pen colors/styles
+//
 
 #include "penwidget.h"
 
@@ -118,7 +117,6 @@ void PenWidget::HandleWidthSelected(QString text)
                return;
 
        Global::penWidth = value;
-       emit WidthSelected(Global::penWidth);
 }
 
 void PenWidget::HandleStyleSelected(int selected)
@@ -130,7 +128,6 @@ void PenWidget::HandleStyleSelected(int selected)
        // Styles are 1-based, but the combobox is 0-based, so we compensate for
        // that here
        Global::penStyle = selected + 1;
-       emit StyleSelected(Global::penStyle);
 }
 
 void PenWidget::HandleRedSelected(QString text)
@@ -144,7 +141,6 @@ void PenWidget::HandleRedSelected(QString text)
 
        r = value;
        Global::penColor = (r << 16) | (g << 8) | b;
-       emit ColorSelected(Global::penColor);
 }
 
 void PenWidget::HandleGreenSelected(QString text)
@@ -158,7 +154,6 @@ void PenWidget::HandleGreenSelected(QString text)
 
        g = value;
        Global::penColor = (r << 16) | (g << 8) | b;
-       emit ColorSelected(Global::penColor);
 }
 
 void PenWidget::HandleBlueSelected(QString text)
@@ -172,5 +167,4 @@ void PenWidget::HandleBlueSelected(QString text)
 
        b = value;
        Global::penColor = (r << 16) | (g << 8) | b;
-       emit ColorSelected(Global::penColor);
 }