casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Static Public Member Functions | Private Slots | Static Private Member Functions | Private Attributes | List of all members
casa::QtNewRegionShape Class Reference

Dialog for creating a new region shape. More...

#include <QtNewRegionShape.qo.h>

Inheritance diagram for casa::QtNewRegionShape:

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 RegionShapecreationShape (int i)
 
static RegionShapecreationShape (unsigned int i)
 
static casacore::String creationName (int i)
 
static casacore::String creationName (unsigned int i)
 

Private Attributes

QtRegionShapeManagerm_manager
 
vector< RegionShape * > m_shapes
 
QStackedLayout * m_widgets
 

Detailed Description

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.

Constructor & Destructor Documentation

casa::QtNewRegionShape::QtNewRegionShape ( QtRegionShapeManager manager,
bool  includeComposite = true,
bool  deleteOnClose = true 
)

Constructor that takes parent.

casa::QtNewRegionShape::~QtNewRegionShape ( )

Destructor.

Member Function Documentation

void casa::QtNewRegionShape::create ( )
privateslot

When the "create" button is clicked.

static casacore::String casa::QtNewRegionShape::creationName ( int  i)
inlinestaticprivate

Definition at line 106 of file QtNewRegionShape.qo.h.

Referenced by creationName(), and creationShapes().

static casacore::String casa::QtNewRegionShape::creationName ( unsigned int  i)
inlinestaticprivate

Definition at line 119 of file QtNewRegionShape.qo.h.

References creationName().

static RegionShape* casa::QtNewRegionShape::creationShape ( int  i)
inlinestaticprivate

Definition at line 89 of file QtNewRegionShape.qo.h.

References casa::Display::X.

Referenced by creationShape(), and creationShapes().

static RegionShape* casa::QtNewRegionShape::creationShape ( unsigned int  i)
inlinestaticprivate

Definition at line 102 of file QtNewRegionShape.qo.h.

References creationShape().

static std::vector<std::pair<casacore::String, RegionShape*> > casa::QtNewRegionShape::creationShapes ( bool  includeComposite = true)
inlinestatic

Static Members //.

Returns creation widgets.

Definition at line 57 of file QtNewRegionShape.qo.h.

References creationName(), and creationShape().

std::string casa::QtNewRegionShape::errorMessage ( ) const
inline

Non-Static Members //.

Definition at line 67 of file QtNewRegionShape.qo.h.

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.

Member Data Documentation

QtRegionShapeManager* casa::QtNewRegionShape::m_manager
private

Definition at line 85 of file QtNewRegionShape.qo.h.

vector<RegionShape*> casa::QtNewRegionShape::m_shapes
private

Definition at line 86 of file QtNewRegionShape.qo.h.

QStackedLayout* casa::QtNewRegionShape::m_widgets
private

Definition at line 87 of file QtNewRegionShape.qo.h.


The documentation for this class was generated from the following file: