casa::QtNewRegionShape Class Reference

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

#include <QtNewRegionShape.qo.h>

List of all members.

Signals

void shapeCreated (RegionShape *createdShape)
 Emitted whenever the user creates a shape.

Public Member Functions

std::string errorMessage () const
 Non-Static Members //.
 QtNewRegionShape (QtRegionShapeManager *manager, bool includeComposite=true, bool deleteOnClose=true)
 Constructor that takes parent.
 ~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

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 (  )  [private, slot]

When the "create" button is clicked.

static String casa::QtNewRegionShape::creationName ( unsigned int  i  )  [inline, static, private]

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

References creationName().

static String casa::QtNewRegionShape::creationName ( int  i  )  [inline, static, private]

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

Referenced by creationName(), and creationShapes().

static RegionShape* casa::QtNewRegionShape::creationShape ( unsigned int  i  )  [inline, static, private]

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

References creationShape().

static RegionShape* casa::QtNewRegionShape::creationShape ( int  i  )  [inline, static, private]

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

References casa::Display::X.

Referenced by creationShape(), and creationShapes().

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().

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

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1