Caf: Removed the const constrain on defineUiOrdering

To make this be able to change visibility and names etc of fields, and generally be a "make sure you are updated" entry.
p4#: 21168
This commit is contained in:
Jacob Støren 2013-04-08 12:09:43 +02:00
parent 64899f62c2
commit c6f2b52216
2 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@ void PdmObject::addFieldNoDefault(PdmFieldHandle* field, const QString& keyword,
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void PdmObject::uiOrdering(QString uiConfigName, PdmUiOrdering& uiOrdering) const void PdmObject::uiOrdering(QString uiConfigName, PdmUiOrdering& uiOrdering)
{ {
this->defineUiOrdering(uiConfigName, uiOrdering); this->defineUiOrdering(uiConfigName, uiOrdering);
if (!uiOrdering.forgetRemainingFields()) if (!uiOrdering.forgetRemainingFields())

View File

@ -138,7 +138,7 @@ public:
/// Method to be called from the Ui classes creating Auto Gui to get the group information /// Method to be called from the Ui classes creating Auto Gui to get the group information
/// supplied by the \sa defineUiOrdering method that can be reimplemented /// supplied by the \sa defineUiOrdering method that can be reimplemented
void uiOrdering(QString uiConfigName, PdmUiOrdering& uiOrdering) const; void uiOrdering(QString uiConfigName, PdmUiOrdering& uiOrdering) ;
/// For a specific field, return editor specific parameters used to customize the editor behavior.. /// For a specific field, return editor specific parameters used to customize the editor behavior..
void editorAttribute(const PdmFieldHandle* field, QString uiConfigName, PdmUiEditorAttribute * attribute); void editorAttribute(const PdmFieldHandle* field, QString uiConfigName, PdmUiEditorAttribute * attribute);
@ -169,7 +169,7 @@ protected: // Virtual
/// Override to customize the order and grouping of the Gui. /// Override to customize the order and grouping of the Gui.
/// Fill up the uiOrdering object with groups and field references to create the gui structure /// Fill up the uiOrdering object with groups and field references to create the gui structure
/// If the uiOrdering is empty, it is interpreted as meaning all fields w/o grouping. /// If the uiOrdering is empty, it is interpreted as meaning all fields w/o grouping.
virtual void defineUiOrdering(QString uiConfigName, PdmUiOrdering& uiOrdering) const {} virtual void defineUiOrdering(QString uiConfigName, PdmUiOrdering& uiOrdering) {}
/// Override to provide editor specific data for the field and uiConfigName /// Override to provide editor specific data for the field and uiConfigName
virtual void defineEditorAttribute(const PdmFieldHandle* field, QString uiConfigName, PdmUiEditorAttribute * attribute) {} virtual void defineEditorAttribute(const PdmFieldHandle* field, QString uiConfigName, PdmUiEditorAttribute * attribute) {}