+ QString& theErrorMsg,
+ QStringList& theBrowseObjectsEntries )
+{
+ bool aRes = false;
+
+ if ( myDlg ) {
+ Handle(HYDROData_Document) aDoc = doc();
+ if( !aDoc.IsNull() ) {
+ HYDROGUI_ListModel::ObjectList anObjects = myDlg->getObjects();
+ HYDROData_SequenceOfObjects anOrderedObjects;
+ foreach ( const Handle(HYDROData_Entity) anObject, anObjects ) {
+ anOrderedObjects.Append( anObject );
+ }
+
+ aDoc->SetObjectsLayerOrder( anOrderedObjects );
+
+ theUpdateFlags = UF_Model | UF_OCCViewer;
+ aRes = true;
+ }
+ }
+
+ return aRes;
+}
+
+/**
+*/
+bool HYDROGUI_ZLevelsOp::isGranted() const
+{
+ return true;
+}
+
+/**
+*/
+void HYDROGUI_ZLevelsOp::processCancel()
+{
+ // Delete the dialog
+ if ( myDlg ) {
+ delete myDlg;
+ myDlg = 0;
+ }
+}
+
+void HYDROGUI_ZLevelsOp::onApplyAndClose()