self.eficas_editor = None # Editor object from Eficas
+ def isOk(self):
+ if self.eficas_editor.jdc:
+ return self.eficas_editor.jdc.isvalid()
+ return False
+
def createYACSFile(self):
rtn = ""
if (self.filename == ""):
"""
return "ADAO_small.png"
+def studyItemPixmapOk():
+ """
+ Get the reference pixmap for items of this module.
+ """
+ return "ADAO_small_vert.png"
+
+def studyItemPixmapNOk():
+ """
+ Get the reference pixmap for items of this module.
+ """
+ return "ADAO_small_rouge.png"
+
__verbose__ = None
def verbose():
global __verbose__
itemValue = adaoCase.filename
itemType = ADAO_ITEM_TYPES.ADAO_CASE
+ icon = adaoModuleHelper.studyItemPixmapNOk()
+ if adaoCase.isOk():
+ icon = adaoModuleHelper.studyItemPixmapOk()
+
salomeStudyItem = studyEditor.createItem(
adaoRootEntry, itemName,
comment = itemValue,
- typeId = itemType)
+ typeId = itemType,
+ icon = icon)
return salomeStudyItem
itemName = salomeStudyItem.GetName()
itemValue = adaoCase.get_filename()
+ icon = adaoModuleHelper.studyItemPixmapNOk()
+ if adaoCase.isOk():
+ icon = adaoModuleHelper.studyItemPixmapOk()
+
studyEditor.setItem(salomeStudyItem,
name = itemName,
- comment = itemValue)
+ comment = itemValue,
+ icon = icon)
def removeItem(salomeStudyId, item):
"""