casa
5.7.0-16
|
Dialog for creating a new region shape. More...
#include <QtNewRegionShape.qo.h>
Signals | |
void | shapeCreated (RegionShape *createdShape) |
Emitted whenever the user creates a shape. More... | |
Public Member Functions | |
std::string | errorMessage () const |
Non-Static Members //. More... | |
QtNewRegionShape (QtRegionShapeManager *manager, bool includeComposite=true, bool deleteOnClose=true) | |
Constructor that takes parent. More... | |
~QtNewRegionShape () | |
Destructor. More... | |
void | showCloseButton (bool show=true) |
Shows/hides the close button. More... | |
Static Public Member Functions | |
static std::vector< std::pair < casacore::String, RegionShape * > > | creationShapes (bool includeComposite=true) |
Static Members //. More... | |
Private Slots | |
void | create () |
When the "create" button is clicked. More... | |
Static Private Member Functions | |
static RegionShape * | creationShape (int i) |
static RegionShape * | creationShape (unsigned int i) |
static casacore::String | creationName (int i) |
static casacore::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 |
||
) |
Constructor that takes parent.
casa::QtNewRegionShape::~QtNewRegionShape | ( | ) |
Destructor.
|
privateslot |
When the "create" button is clicked.
|
inlinestaticprivate |
Definition at line 106 of file QtNewRegionShape.qo.h.
Referenced by creationName(), and creationShapes().
|
inlinestaticprivate |
Definition at line 119 of file QtNewRegionShape.qo.h.
References creationName().
|
inlinestaticprivate |
Definition at line 89 of file QtNewRegionShape.qo.h.
References casa::Display::X.
Referenced by creationShape(), and creationShapes().
|
inlinestaticprivate |
Definition at line 102 of file QtNewRegionShape.qo.h.
References creationShape().
|
inlinestatic |
Static Members //.
Returns creation widgets.
Definition at line 57 of file QtNewRegionShape.qo.h.
References creationName(), and creationShape().
|
inline |
Non-Static Members //.
Definition at line 67 of file QtNewRegionShape.qo.h.
|
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.
|
private |
Definition at line 85 of file QtNewRegionShape.qo.h.
|
private |
Definition at line 86 of file QtNewRegionShape.qo.h.
|
private |
Definition at line 87 of file QtNewRegionShape.qo.h.