// --- ---------- -----------------------------------------------------------
// 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"
return;
Global::penWidth = value;
- emit WidthSelected(Global::penWidth);
}
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)
r = value;
Global::penColor = (r << 16) | (g << 8) | b;
- emit ColorSelected(Global::penColor);
}
void PenWidget::HandleGreenSelected(QString text)
g = value;
Global::penColor = (r << 16) | (g << 8) | b;
- emit ColorSelected(Global::penColor);
}
void PenWidget::HandleBlueSelected(QString text)
b = value;
Global::penColor = (r << 16) | (g << 8) | b;
- emit ColorSelected(Global::penColor);
}