Esempio n. 1
0
 def publicDocListener(self, item):
     clickTarget = item.text()
     origin = ""
     for key in self.publicFile:
         if self.publicFile[key] is not None:
             if clickTarget in self.publicFile[key]:
                 origin = key
                 break
     openfile('', origin, clickTarget, '')
     self.viewonlyWindow = QtWidgets.QDialog()
     self.viewonly = viewOnlyEditor.Ui_viewOnly()
     self.viewonly.setupUi(self.viewonlyWindow, origin, clickTarget)
     self.viewonlyWindow.exec_()
     os.remove('../cache')
    def mostviewClickListener(self, item):
        clickTarget = item.text()
        clickTarget = re.findall(r'"([^"]*)"', clickTarget)

        origin = ""
        self.notPrivate = Document.notPrivateFile()
        for key in self.notPrivate:
            if self.notPrivate[key] is not None:
                if clickTarget[0] in self.notPrivate[key]:
                    origin = key
                    break

        self.userObject.openDoc(origin, clickTarget[0], '')
        self.viewonlyWindow = QtWidgets.QDialog()
        self.viewonly = viewOnlyEditor.Ui_viewOnly()
        self.viewonly.setupUi(self.viewonlyWindow, origin, clickTarget[0])
        self.viewonlyWindow.exec_()
        os.remove('../cache')
Esempio n. 3
0
    def mostViewDocListener(self, item):
        clickTarget = item.text()
        clickTarget = re.findall(r'"([^"]*)"', clickTarget)

        origin = ""
        self.notPrivate = notPrivateFile()
        for key in self.notPrivate:
            if self.notPrivate[key] is not None:
                if clickTarget[0] in self.notPrivate[key]:
                    origin = key
                    break
        print(self.publicFile)
        print("key:" + origin)
        openfile('', origin, clickTarget[0], '')
        self.viewonlyWindow = QtWidgets.QDialog()
        self.viewonly = viewOnlyEditor.Ui_viewOnly()
        self.viewonly.setupUi(self.viewonlyWindow, origin, clickTarget[0])
        self.viewonlyWindow.exec_()
        os.remove('../cache')