casa
$Rev:20696$
|
Specialized widget for creating a new composite. More...
#include <QtNewRegionShape.qo.h>
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 | |
QtRegionShapeManager * | m_manager |
Top-lebel members. | |
RSComposite * | m_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 |
Specialized widget for creating a new composite.
Definition at line 170 of file QtNewRegionShape.qo.h.
casa::QtNewRSComposite::QtNewRSComposite | ( | RSComposite * | comp, |
QtRegionShapeManager * | manager | ||
) |
Constructor which takes the composite to modify.
Destructor.
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 | ( | ) | [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.
bool casa::QtNewRSComposite::enteredValuesAreValid | ( | 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 | ( | ) | [private, slot] |
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 | ) | [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.
void casa::QtNewRSComposite::updateLists | ( | ) | [private] |
Updated m_existingList and m_moveList based on m_existingShapes and m_movesshapes.
vector<RegionShape*> casa::QtNewRSComposite::m_children [private] |
Definition at line 193 of file QtNewRegionShape.qo.h.
RSComposite* casa::QtNewRSComposite::m_composite [private] |
Definition at line 192 of file QtNewRegionShape.qo.h.
QRadioButton* casa::QtNewRSComposite::m_dependentChildren [private] |
First screen.
Definition at line 199 of file QtNewRegionShape.qo.h.
QLabel* casa::QtNewRSComposite::m_dependentLabel1 [private] |
Definition at line 201 of file QtNewRegionShape.qo.h.
QLabel * casa::QtNewRSComposite::m_dependentLabel2 [private] |
Definition at line 201 of file QtNewRegionShape.qo.h.
QComboBox* casa::QtNewRSComposite::m_editChooser [private] |
Definition at line 207 of file QtNewRegionShape.qo.h.
QStackedLayout* casa::QtNewRSComposite::m_editWidgets [private] |
Definition at line 208 of file QtNewRegionShape.qo.h.
QListWidget* casa::QtNewRSComposite::m_existingList [private] |
Second screen: existing shapes.
Definition at line 213 of file QtNewRegionShape.qo.h.
vector<RegionShape*> casa::QtNewRSComposite::m_existingShapes [private] |
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.
vector<RegionShape*> casa::QtNewRSComposite::m_moveShapes [private] |
Definition at line 214 of file QtNewRegionShape.qo.h.
QListWidget* casa::QtNewRSComposite::m_newShapeList [private] |
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.