casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Signals | Public Member Functions | Static Public Member Functions | Private Slots | Static Private Member Functions | Private Attributes
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

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

Non-Static Members //.

Constructor that takes parent.

Destructor.


Member Function Documentation

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.


Member Data Documentation

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

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

QStackedLayout* casa::QtNewRegionShape::m_widgets [private]

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


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