SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Provides a mechanism to edit an attribute using a dialog mechanism instead of a panel. More...
#include <qtAttributeEditorDialog.h>
Public Slots | |
void | attributeNameChanged () |
Public Member Functions | |
qtAttributeEditorDialog (const smtk::attribute::AttributePtr &attribute, smtk::extension::qtUIManager *uiManager, QWidget *Parent) | |
qtAttributeEditorDialog (const qtAttributeEditorDialog &)=delete | |
qtAttributeEditorDialog & | operator= (const qtAttributeEditorDialog &)=delete |
void | hideCancel () |
void | showCancel () |
Provides a mechanism to edit an attribute using a dialog mechanism instead of a panel.
The dialog uses a qtInstanceVuew internally though we hope to make this more general in the future. Note that canceling or ok'ing the dialog results in the attribute being modified thoough the value returned using exec() does indicate whether the user accepted or canceled the changes. This limitation works with the initial use for the dialog which is creating new expression attributes for Value Items without changing Views. In this case, canceling means delete the newly created attribute so there is no issue with having modifying the attribute previously. There is an option to hide the cancel button which also gets around this limitation.