Пример #1
0
    def _menuViewLayoutsLoad(self):
        fname = getOpenFileName(self, 'Load Layout')
        if fname is None:
            return

        settings = QtCore.QSettings(fname, QtCore.QSettings.IniFormat)
        self.vqRestoreGuiSettings(settings)
Пример #2
0
    def _menuViewLayoutsLoad(self):
        fname = getOpenFileName(self, 'Load Layout')
        if fname == None:
            return

        settings = QtCore.QSettings(fname, QtCore.QSettings.IniFormat)
        self.vqRestoreGuiSettings(settings)
Пример #3
0
 def _menuFileOpen(self):
     # TODO: Add something to change the workspace storage name,
     # and also to list the currently loaded files
     # Right now it'll successively create storage files
     fname = getOpenFileName(self, 'Open...')
     if fname is None or not len(fname):
         return
     self.vw.vprint('Opening %s' % fname)
     self.setWindowTitle('Vivisect: %s' % fname)
     self.vw.loadFromFile(str(fname))
     self.vw.vprint('Analyzing %s' % fname)
     self.vw.analyze()
     self.vw.vprint('%s is ready!' % fname)