-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Milestone
Description
Several things to consider:
- we should have a "generic" code in
PropertiesWindowdisplaying different widgets based on theShapetype. Each of these widget should handle their sole properties and take for granted that the right ShapeType is used. I think that this is important because thePropertiesWindowclass will grow into a monster after we added a few dozen properties. - Right now we have ShapeType, from the
PropertiesWindowviewpoint, it doesn't matter that we are working with a Canvas/Rectangle/Ellipse. What matters is that it's aShapeBezieror aShapeText.
A possible solution could be to used a bitfield to store ShapeBezier and ShapeCanvas. The test would look like:
if(shapeType & ShapeType::Bezier) {
...
}Reactions are currently unavailable