casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Slots | Public Member Functions | Private Slots | Private Attributes
casa::QtNewRSPolygon Class Reference

Specialized widget for creating a new polygon. More...

#include <QtNewRegionShape.qo.h>

List of all members.

Public Slots

void apply ()
 Applies the entered values to the RSPolygon.

Public Member Functions

 QtNewRSPolygon (RSPolygon *poly, QtRegionShapeManager *manager)
 Constructor which takes the polygon to modify.
 ~QtNewRSPolygon ()
 Destructor.
bool enteredCoordinatesAreValid (String &reason) const
 See QtEditRegionShape::enteredCoordinatesAreValid.

Private Slots

void addCoordinates ()
 Add the values entered in the line edits to the coord list.
void listMoveUp ()
 Moves the selected coordinate up in the list.
void listMoveDown ()
 Moves the selected coordinate down in the list.
void listDelete ()
 Deletes the selected coordinate in the list.

Private Attributes

RSPolygonm_polygon
QtEditRegionShapem_editor
QListWidget * m_coordList
QFrame * m_coordFrame
vector< pair< QString, QString > > m_enteredCoords
QLineEdit * m_coordXEdit
QLineEdit * m_coordYEdit

Detailed Description

Specialized widget for creating a new polygon.

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


Constructor & Destructor Documentation

Constructor which takes the polygon to modify.

Destructor.


Member Function Documentation

void casa::QtNewRSPolygon::addCoordinates ( ) [private, slot]

Add the values entered in the line edits to the coord list.

void casa::QtNewRSPolygon::apply ( ) [slot]

Applies the entered values to the RSPolygon.

void casa::QtNewRSPolygon::listDelete ( ) [private, slot]

Deletes the selected coordinate in the list.

void casa::QtNewRSPolygon::listMoveDown ( ) [private, slot]

Moves the selected coordinate down in the list.

void casa::QtNewRSPolygon::listMoveUp ( ) [private, slot]

Moves the selected coordinate up in the list.


Member Data Documentation

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

QListWidget* casa::QtNewRSPolygon::m_coordList [private]

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

QLineEdit* casa::QtNewRSPolygon::m_coordXEdit [private]

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

QLineEdit * casa::QtNewRSPolygon::m_coordYEdit [private]

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

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

vector<pair<QString, QString> > casa::QtNewRSPolygon::m_enteredCoords [private]

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

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


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