Brief description of class still missing. More...
#include <GraphicObjectGeometryProperties.h>
Public Types | |
| enum | Properties { X, Y, Anchor, Width, Height, ConstantWidthHeightRatio, WidthHeightRatio } |
Public Member Functions | |
| GraphicObjectGeometryProperties (QWidget *parent=0) | |
Static Public Member Functions | |
| static int | anchor2item (GraphicObject::PositionAnchor pa) |
| static GraphicObject::PositionAnchor | item2anchor (int index) |
Brief description of class still missing.
Full description of class still missing
{X, Y, Anchor, Width, Height, ConstantWidthHeightRatio, WidthHeightRatio};
| SciFigs::GraphicObjectGeometryProperties::GraphicObjectGeometryProperties | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References QGpGuiTools::PropertyWidget::addProperty(), Anchor, ConstantWidthHeightRatio, Height, Width, WidthHeightRatio, X, and Y.
: PropertyWidget(parent) { setupUi(this); // Create properties addProperty(X, xEdit, xLabel); addProperty(Y, yEdit, yLabel); addProperty(Anchor, anchorEdit, anchorLabel); addProperty(Width, widthEdit, widthLabel); addProperty(Height, heightEdit, heightLabel); addProperty(ConstantWidthHeightRatio, constantWidthHeightRatio); addProperty(WidthHeightRatio); }
| int SciFigs::GraphicObjectGeometryProperties::anchor2item | ( | GraphicObject::PositionAnchor | pa | ) | [static] |
References SciFigs::GraphicObject::BottomLeft, SciFigs::GraphicObject::BottomRight, SciFigs::GraphicObject::TopRight, and TRACE.
Referenced by SciFigs::GraphicObject::properties().
{
TRACE;
switch (pa) {
case GraphicObject::TopRight:
return 1;
case GraphicObject::BottomLeft:
return 2;
case GraphicObject::BottomRight:
return 3;
default:
return 0;
}
}
| GraphicObject::PositionAnchor SciFigs::GraphicObjectGeometryProperties::item2anchor | ( | int | index | ) | [static] |
References SciFigs::GraphicObject::BottomLeft, SciFigs::GraphicObject::BottomRight, SciFigs::GraphicObject::TopLeft, and SciFigs::GraphicObject::TopRight.
Referenced by SciFigs::GraphicObject::setProperty().
{
switch (index) {
case 1:
return GraphicObject::TopRight;
case 2:
return GraphicObject::BottomLeft;
case 3:
return GraphicObject::BottomRight;
default:
return GraphicObject::TopLeft;
}
}