| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tlp::CopyPropertyDialog Class ReferenceProvide a dialog that allow user to copy a property in an existing property or in a new one. More...
Public Types
Public Member Functions
Static Public Member Functions
Detailed DescriptionProvide a dialog that allow user to copy a property in an existing property or in a new one. The easiest way to use this class is to use the copyProperty static function. Graph* g; PropertyInterface* source = g->getLocalProperty<BooleanProperty>("viewSelection"); QWidget* parent; PropertyInterface* clonedProperty = PropertyCreationDialog::createNewProperty(g,souce,parent); Member Enumeration DocumentationConstructor & Destructor Documentation
Member Function Documentation
This is a convenience static function that copy property in function of user parameters. If the user presses Cancel or an error occur, it returns a null pointer. The function creates a modal property copy dialog with the given source property, graph and parent widget.
Perform the copy of the property in function of the parameters given by user. If parameters are invalid return a null pointer and fill the errorMsg with the description of the error. This function don't hold observers during the copy process. It's up to user to call Observable::holdObserver and Observable::unholdObserver before and after calling this funtion.
Get the name of the destintation property.
Return the scope where the new property will be created.
Init dialog with required parameters. To make the copy this dialog need to have a valid source property and destination graph. |
Tulip Software by LaBRI Visualization Team 2001 - 2012 |