casa
$Rev:20696$
|
Dialog for creating a new region shape. More...
#include <QtNewRegionShape.qo.h>
Signals | |
void | shapeCreated (RegionShape *createdShape) |
Emitted whenever the user creates a shape. | |
Public Member Functions | |
QtNewRegionShape (QtRegionShapeManager *manager, bool includeComposite=true, bool deleteOnClose=true) | |
Non-Static Members //. | |
~QtNewRegionShape () | |
Destructor. | |
void | showCloseButton (bool show=true) |
Shows/hides the close button. | |
Static Public Member Functions | |
static vector< pair< String, RegionShape * > > | creationShapes (bool includeComposite=true) |
Static Members //. | |
Private Slots | |
void | create () |
When the "create" button is clicked. | |
Static Private Member Functions | |
static RegionShape * | creationShape (int i) |
static RegionShape * | creationShape (unsigned int i) |
static String | creationName (int i) |
static String | creationName (unsigned int i) |
Private Attributes | |
QtRegionShapeManager * | m_manager |
vector< RegionShape * > | m_shapes |
QStackedLayout * | m_widgets |
Dialog for creating a new region shape.
For now basically a wrapper with a shape chooser around a QtEditRegionShape widget. For more complex shapes (polygon, composite) this will have to be changed.
Definition at line 49 of file QtNewRegionShape.qo.h.
casa::QtNewRegionShape::QtNewRegionShape | ( | QtRegionShapeManager * | manager, |
bool | includeComposite = true , |
||
bool | deleteOnClose = true |
||
) |
Non-Static Members //.
Constructor that takes parent.
Destructor.
void casa::QtNewRegionShape::create | ( | ) | [private, slot] |
When the "create" button is clicked.
static String casa::QtNewRegionShape::creationName | ( | int | i | ) | [inline, static, private] |
Definition at line 105 of file QtNewRegionShape.qo.h.
Referenced by creationName(), and creationShapes().
static String casa::QtNewRegionShape::creationName | ( | unsigned int | i | ) | [inline, static, private] |
Definition at line 118 of file QtNewRegionShape.qo.h.
References creationName().
static RegionShape* casa::QtNewRegionShape::creationShape | ( | int | i | ) | [inline, static, private] |
Definition at line 88 of file QtNewRegionShape.qo.h.
References casa::Display::X.
Referenced by creationShape(), and creationShapes().
static RegionShape* casa::QtNewRegionShape::creationShape | ( | unsigned int | i | ) | [inline, static, private] |
Definition at line 101 of file QtNewRegionShape.qo.h.
References creationShape().
static vector<pair<String, RegionShape*> > casa::QtNewRegionShape::creationShapes | ( | bool | includeComposite = true | ) | [inline, static] |
Static Members //.
Returns creation widgets.
Definition at line 57 of file QtNewRegionShape.qo.h.
References creationName(), and creationShape().
void casa::QtNewRegionShape::shapeCreated | ( | RegionShape * | createdShape | ) | [signal] |
Emitted whenever the user creates a shape.
After this signal is emitted the newly created shape is replaced in the widget with a blank one.
void casa::QtNewRegionShape::showCloseButton | ( | bool | show = true | ) |
Shows/hides the close button.
Definition at line 84 of file QtNewRegionShape.qo.h.
vector<RegionShape*> casa::QtNewRegionShape::m_shapes [private] |
Definition at line 85 of file QtNewRegionShape.qo.h.
QStackedLayout* casa::QtNewRegionShape::m_widgets [private] |
Definition at line 86 of file QtNewRegionShape.qo.h.