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

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

#include <QtNewRegionShape.qo.h>

List of all members.

Public Slots

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

Public Member Functions

 QtNewRSComposite (RSComposite *comp, QtRegionShapeManager *manager)
 Constructor which takes the composite to modify.
 ~QtNewRSComposite ()
 Destructor.
bool enteredValuesAreValid (String &reason) const
 Returns whether the entered values are valid or not.

Private Slots

void next ()
 Switches to second page.
void nAddShape (RegionShape *shape)
 New shapes.
void nListUp ()
 Moves the selected shape up in the list.
void nListDown ()
 Moves the selected shape down in the list.
void nListDelete ()
 Deletes the selected shape in the list.
void eAddShape ()
 Existing shapes.
void eRemoveShape ()
 Remove the selected shape from the composite.
void eListUp ()
 Moves the selected shape up in the list.
void eListDown ()
 Moves the selected shape down in the list.

Private Member Functions

QWidget * initFirstScreen ()
 GUI initialization methods.
QWidget * initSecondScreen1 ()
QWidget * initSecondScreen2 ()
void updateLists ()
 Updated m_existingList and m_moveList based on m_existingShapes and m_movesshapes.
unsigned int adjustedIndex (int row)
 Returns the adjusted index (m_existingList => m_existingShapes).

Private Attributes

QtRegionShapeManagerm_manager
 Top-lebel members.
RSCompositem_composite
vector< RegionShape * > m_children
QStackedLayout * m_layout
QRadioButton * m_dependentChildren
 First screen.
QRadioButton * m_newShapes
QLabel * m_dependentLabel1
QLabel * m_dependentLabel2
QListWidget * m_newShapeList
 Second screen: new shapes.
QComboBox * m_editChooser
QStackedLayout * m_editWidgets
QListWidget * m_existingList
 Second screen: existing shapes.
QListWidget * m_moveList
vector< RegionShape * > m_existingShapes
vector< RegionShape * > m_moveShapes

Detailed Description

Specialized widget for creating a new composite.

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


Constructor & Destructor Documentation

Constructor which takes the composite to modify.

Destructor.


Member Function Documentation

unsigned int casa::QtNewRSComposite::adjustedIndex ( int  row) [private]

Returns the adjusted index (m_existingList => m_existingShapes).

Applies the entered values to the RSComposite.

void casa::QtNewRSComposite::eAddShape ( ) [private, slot]

Existing shapes.

Adds the selected existing shape to the composite.

void casa::QtNewRSComposite::eListDown ( ) [private, slot]

Moves the selected shape down in the list.

void casa::QtNewRSComposite::eListUp ( ) [private, slot]

Moves the selected shape up in the list.

Returns whether the entered values are valid or not.

Returns true if at least one child is entered, and all children have valid coordinates.

void casa::QtNewRSComposite::eRemoveShape ( ) [private, slot]

Remove the selected shape from the composite.

GUI initialization methods.

void casa::QtNewRSComposite::nAddShape ( RegionShape shape) [private, slot]

New shapes.

Adds a new shape to the composite.

void casa::QtNewRSComposite::next ( ) [private, slot]

Switches to second page.

void casa::QtNewRSComposite::nListDelete ( ) [private, slot]

Deletes the selected shape in the list.

void casa::QtNewRSComposite::nListDown ( ) [private, slot]

Moves the selected shape down in the list.

void casa::QtNewRSComposite::nListUp ( ) [private, slot]

Moves the selected shape up in the list.

Updated m_existingList and m_moveList based on m_existingShapes and m_movesshapes.


Member Data Documentation

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

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

First screen.

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

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

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

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

QStackedLayout* casa::QtNewRSComposite::m_editWidgets [private]

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

Second screen: existing shapes.

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

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

QStackedLayout* casa::QtNewRSComposite::m_layout [private]

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

Top-lebel members.

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

QListWidget * casa::QtNewRSComposite::m_moveList [private]

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

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

Second screen: new shapes.

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

QRadioButton* casa::QtNewRSComposite::m_newShapes [private]

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


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