Beispiel #1
0
 def build_cpp_class(self, checked):
     print(self.itemClicked.get_res_data(), "****************************", checked)
     resGroup = self.itemClicked.get_res_group()
     if len(resGroup) > 0:
         # 包含多个资源转换节点
         pass
     else:
         # 只有一个资源节点
         resData = self.itemClicked.get_res_data()
         print(resData["EntryMapFile"])
         from convert.generateCSharpCode import CSharpGenerator
         test = CSharpGenerator()
         test.generate("data/" + resData["EntryMapFile"])
         pass
     pass
Beispiel #2
0
    def build_csharp_class(self, checked):
        # print(self.itemClicked.get_res_data(), "****************************", checked)
        resGroup = self.itemClicked.get_res_group()
        if len(resGroup) > 0:
            # 包含多个资源转换节点
            pass
        else:
            # 只有一个资源节点
            resData = self.itemClicked.get_res_data()
            # print(resData["EntryMapFile"])
            from convert.generateCSharpCode import CSharpGenerator
            test = CSharpGenerator()
            code = test.generate("data/" + resData["EntryMapFile"])

            from ui.preViewClass import PreViewClass
            dialog = PreViewClass(self)
            dialog.prev_view_code(code, "CSharp")
            if dialog.exec_():

                print("test")

            print("test1")
        pass