c_ext/c_ext.py
changeset 738 413946c04c87
parent 734 5c42cafaee15
child 742 41a4a560406c
--- a/c_ext/c_ext.py	Mon May 21 02:49:53 2012 +0200
+++ b/c_ext/c_ext.py	Mon May 21 10:04:27 2012 +0200
@@ -4,6 +4,7 @@
 
 from xmlclass import *
 
+from util import opjimg
 from CFileEditor import CFileEditor
 from PLCControler import UndoBuffer, LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT 
 
@@ -43,6 +44,9 @@
             self.CreateCFileBuffer(False)
             self.OnCTNSave()
 
+    def GetIconPath(self):
+        return opjimg("Cfile")
+
     def CFileName(self):
         return os.path.join(self.CTNPath(), "cfile.xml")
 
@@ -138,13 +142,6 @@
             return self.CFile.publishFunction.gettext()
         return ""
                 
-    ConfNodeMethods = [
-        {"bitmap" : "EditCfile",
-         "name" : _("Edit C File"), 
-         "tooltip" : _("Edit C File"),
-         "method" : "_OpenView"},
-    ]
-
     def CTNTestModified(self):
         return self.ChangesToSave or not self.CFileIsSaved()