mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
more
This commit is contained in:
parent
07a4a5bf54
commit
731b5c6dbf
@ -38,7 +38,9 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
|
|||||||
self.fichierIn=""
|
self.fichierIn=""
|
||||||
self.fichierOut=""
|
self.fichierOut=""
|
||||||
self.MeshIn=""
|
self.MeshIn=""
|
||||||
|
self.commande=""
|
||||||
self.num=1
|
self.num=1
|
||||||
|
self.__selectedMesh=None
|
||||||
|
|
||||||
# complex whith QResources: not used
|
# complex whith QResources: not used
|
||||||
# The icon are supposed to be located in the $SMESH_ROOT_DIR/share/salome/resources/smesh folder,
|
# The icon are supposed to be located in the $SMESH_ROOT_DIR/share/salome/resources/smesh folder,
|
||||||
@ -154,14 +156,13 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
|
|||||||
self.num+=1
|
self.num+=1
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def PBSavePressed(self, NomHypo=False):
|
def PBSavePressed(self):
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
if NomHypo:
|
if not(self.PrepareLigneCommande()): return
|
||||||
text = "# Params for Hypothese : Hypo_MGCleaner_"+str(self.num - 1)+"\n"
|
text = "# MGCleaner hypothesis parameters\n"
|
||||||
else:
|
|
||||||
text = "# Save intermediate params \n"
|
|
||||||
text += "# Params for mesh : " + self.LE_MeshSmesh.text() +"\n"
|
text += "# Params for mesh : " + self.LE_MeshSmesh.text() +"\n"
|
||||||
text += datetime.now().strftime("# Date : %d/%m/%y %H:%M:%S\n")
|
text += datetime.now().strftime("# Date : %d/%m/%y %H:%M:%S\n")
|
||||||
|
text += "# Command : "+self.commande+"\n"
|
||||||
text += self.getResumeData(separator="\n")
|
text += self.getResumeData(separator="\n")
|
||||||
text += "\n\n"
|
text += "\n\n"
|
||||||
|
|
||||||
@ -343,7 +344,8 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
|
|||||||
QMessageBox.warning( self, "Unknown File", "File doesn't exist")
|
QMessageBox.warning( self, "Unknown File", "File doesn't exist")
|
||||||
|
|
||||||
def meshSmeshNameChanged(self):
|
def meshSmeshNameChanged(self):
|
||||||
self.MeshIn=str(self.LE_MeshSmesh.text())
|
"""only change by GUI mouse selection, otherwise clear"""
|
||||||
|
#self.MeshIn=str(self.LE_MeshSmesh.text())
|
||||||
#print "meshSmeshNameChanged", self.MeshIn
|
#print "meshSmeshNameChanged", self.MeshIn
|
||||||
self.__selectedMesh = None
|
self.__selectedMesh = None
|
||||||
self.MeshIn=""
|
self.MeshIn=""
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2006-2013 EDF R&D
|
# Copyright (C) 2006-2013 EDF R&D
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
@ -34,10 +35,11 @@ def MGCleanerLct(context):
|
|||||||
from PyQt4.QtGui import QFileDialog
|
from PyQt4.QtGui import QFileDialog
|
||||||
from PyQt4.QtGui import QMessageBox
|
from PyQt4.QtGui import QMessageBox
|
||||||
|
|
||||||
|
#prior test to avoid unnecessary user GUI work with ending crash
|
||||||
try :
|
try :
|
||||||
os.environ['DISTENE_LICENCE_FILE_FOR_MGCLEANER']
|
os.environ['DISTENE_LICENCE_FILE_FOR_MGCLEANER']
|
||||||
except:
|
except:
|
||||||
QMessageBox.warning(None,"Products","Distene's products MeshGemCleaner are not installed")
|
QMessageBox.warning(None,"Products","Distene's product MeshGem Cleaner is not installed.\nrequired environment variable:\nDISTENE_LICENCE_FILE_FOR_MGCLEANER='/.../dlim8.var.sh'")
|
||||||
return
|
return
|
||||||
import MGCleanerMonPlugDialog
|
import MGCleanerMonPlugDialog
|
||||||
window=MGCleanerMonPlugDialog.getDialog()
|
window=MGCleanerMonPlugDialog.getDialog()
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
# Copyright (C) 2006-2013 EDF R&D
|
# Copyright (C) 2006-2013 EDF R&D
|
||||||
#
|
#
|
||||||
# This library is free software; you can redistribute it and/or
|
# This library is free software; you can redistribute it and/or
|
||||||
@ -34,10 +35,11 @@ def YamsLct(context):
|
|||||||
from PyQt4.QtGui import QFileDialog
|
from PyQt4.QtGui import QFileDialog
|
||||||
from PyQt4.QtGui import QMessageBox
|
from PyQt4.QtGui import QMessageBox
|
||||||
|
|
||||||
|
#prior test to avoid unnecessary user GUI work with ending crash
|
||||||
try :
|
try :
|
||||||
os.environ['DISTENE_LICENCE_FILE_FOR_YAMS']
|
os.environ['DISTENE_LICENCE_FILE_FOR_YAMS']
|
||||||
except:
|
except:
|
||||||
QMessageBox.warning(None,"Products","Distene's products Yams are not installed")
|
QMessageBox.warning(None,"Products","Distene's product Yams is not installed.\nrequired environment variable:\nDISTENE_LICENCE_FILE_FOR_YAMS='/.../dlim8.var.sh'")
|
||||||
return
|
return
|
||||||
import monYamsPlugDialog
|
import monYamsPlugDialog
|
||||||
window=monYamsPlugDialog.getDialog()
|
window=monYamsPlugDialog.getDialog()
|
||||||
|
Loading…
Reference in New Issue
Block a user