SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Slots | Public Member Functions | List of all members
smtk::extension::qtAttributeEditorDialog Class Reference

Provides a mechanism to edit an attribute using a dialog mechanism instead of a panel. More...

#include <qtAttributeEditorDialog.h>

Inheritance diagram for smtk::extension::qtAttributeEditorDialog:
[legend]
Collaboration diagram for smtk::extension::qtAttributeEditorDialog:
[legend]

Public Slots

void attributeNameChanged ()
 

Public Member Functions

 qtAttributeEditorDialog (const smtk::attribute::AttributePtr &attribute, smtk::extension::qtUIManager *uiManager, QWidget *Parent)
 
 qtAttributeEditorDialog (const qtAttributeEditorDialog &)=delete
 
qtAttributeEditorDialogoperator= (const qtAttributeEditorDialog &)=delete
 
void hideCancel ()
 
void showCancel ()
 

Detailed Description

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.


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