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

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

#include <QtNewRegionShape.qo.h>

Inheritance diagram for casa::QtNewRSComposite:

Public Slots

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

Public Member Functions

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

Private Slots

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

Private Member Functions

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

Private Attributes

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

Detailed Description

Specialized widget for creating a new composite.

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

Constructor & Destructor Documentation

casa::QtNewRSComposite::QtNewRSComposite ( RSComposite comp,
QtRegionShapeManager manager 
)

Constructor which takes the composite to modify.

casa::QtNewRSComposite::~QtNewRSComposite ( )

Destructor.

Member Function Documentation

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

Returns the adjusted index (m_existingList => m_existingShapes).

void casa::QtNewRSComposite::apply ( )
slot

Applies the entered values to the RSComposite.

void casa::QtNewRSComposite::eAddShape ( )
privateslot

Existing shapes.

Adds the selected existing shape to the composite.

void casa::QtNewRSComposite::eListDown ( )
privateslot

Moves the selected shape down in the list.

void casa::QtNewRSComposite::eListUp ( )
privateslot

Moves the selected shape up in the list.

bool casa::QtNewRSComposite::enteredValuesAreValid ( casacore::String reason) const

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

Remove the selected shape from the composite.

QWidget* casa::QtNewRSComposite::initFirstScreen ( )
private

GUI initialization methods.

QWidget* casa::QtNewRSComposite::initSecondScreen1 ( )
private
QWidget* casa::QtNewRSComposite::initSecondScreen2 ( )
private
void casa::QtNewRSComposite::nAddShape ( RegionShape shape)
privateslot

New shapes.

Adds a new shape to the composite.

void casa::QtNewRSComposite::next ( )
privateslot

Switches to second page.

void casa::QtNewRSComposite::nListDelete ( )
privateslot

Deletes the selected shape in the list.

void casa::QtNewRSComposite::nListDown ( )
privateslot

Moves the selected shape down in the list.

void casa::QtNewRSComposite::nListUp ( )
privateslot

Moves the selected shape up in the list.

void casa::QtNewRSComposite::updateLists ( )
private

Updated m_existingList and m_moveList based on m_existingShapes and m_movesshapes.

Member Data Documentation

std::vector<RegionShape*> casa::QtNewRSComposite::m_children
private

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

RSComposite* casa::QtNewRSComposite::m_composite
private

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

QRadioButton* casa::QtNewRSComposite::m_dependentChildren
private

First screen.

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

QLabel* casa::QtNewRSComposite::m_dependentLabel1
private

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

QLabel * casa::QtNewRSComposite::m_dependentLabel2
private

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

QComboBox* casa::QtNewRSComposite::m_editChooser
private

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

QStackedLayout* casa::QtNewRSComposite::m_editWidgets
private

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

QListWidget* casa::QtNewRSComposite::m_existingList
private

Second screen: existing shapes.

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

std::vector<RegionShape*> casa::QtNewRSComposite::m_existingShapes
private

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

QStackedLayout* casa::QtNewRSComposite::m_layout
private

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

QtRegionShapeManager* casa::QtNewRSComposite::m_manager
private

Top-lebel members.

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

QListWidget * casa::QtNewRSComposite::m_moveList
private

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

std::vector<RegionShape*> casa::QtNewRSComposite::m_moveShapes
private

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

QListWidget* casa::QtNewRSComposite::m_newShapeList
private

Second screen: new shapes.

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

QRadioButton* casa::QtNewRSComposite::m_newShapes
private

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


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