def __init__(self): Script.__init__(self, "extract") EventHandler.__init__(self) self.vfs = vfs.vfs() self.extractor = Extract() self.extractor.connection(self)
def __init__(self, parent=None, mode=ADVANCED): EventHandler.__init__(self) super(QWidget, self).__init__(parent) self.setupUi(self) self.type = "filebrowser" self.icon = None self.name = "nodebrowser" self.setObjectName(self.name) #Define browser functions self.mode = mode self.mainwindow = QApplication.instance().mainWindow # Main layout self.mainlayout = QVBoxLayout() self.mainlayout.setSpacing(0) self.mainlayout.setMargin(0) self.createSelection() self.attributes = PropertyTable(self) if mode == ADVANCED: self.createNavigationHeader() self.createToolbar() self.createViewPan() self.createViews() self.setLayout(self.mainlayout) self.VFS = VFS.Get() self.VFS.connection(self) self.connect(self, SIGNAL("refreshList"), self.refreshList) self.bookManager = BookmarkManager(self.model()) self.timelinerThread = None
def __init__(self, file): QThread.__init__(self) EventHandler.__init__(self) self.file = file self.file.connection(self) self.pattern = "" self.wild = ""
def __init__(self, parent, outputpath=None): QSplitter.__init__(self) EventHandler.__init__(self) self.reportManager = ReportManager() self.reportManager.connection(self) self.parent = parent self.name = self.tr("Report Editor") self.reportView = ReportEditorView(self) self.reportTree = ReportEditorTree(self) self.connect(self.reportTree, SIGNAL("itemClicked"), self.reportView.displayItem) treeWidget = QWidget() vbox = QVBoxLayout() vbox.addWidget(self.reportTree) buttonPreview = QPushButton(self.tr("&Generate preview"), treeWidget) self.connect(buttonPreview, SIGNAL("clicked()"), self.reportView.showReportPreview) vbox.addWidget(buttonPreview) buttonExport = QPushButton(self.tr("&Export"), treeWidget) self.connect(buttonExport, SIGNAL("clicked()"), self.reportTree.export) vbox.addWidget(buttonExport) treeWidget.setLayout(vbox) self.addWidget(treeWidget) self.addWidget(self.reportView) self.setStretchFactor(1, 2)
def __init__(self, category, title, options=None): EventHandler.__init__(self) self.__title = title self.__category = category self.__options = options self.fragments = [] self.__selected = True
def __init__(self, parent=None, mode=ADVANCED): EventHandler.__init__(self) super(QWidget, self).__init__(parent) self.setupUi(self) self.type = "filebrowser" self.icon = None self.name = "nodebrowser" self.setObjectName(self.name) #Define browser functions self.mode = mode self.mainwindow = QApplication.instance().mainWindow # Main layout self.mainlayout = QVBoxLayout() self.mainlayout.setSpacing(0) self.mainlayout.setMargin(0) self.createSelection() self.attributes = PropertyTable(self) if mode == ADVANCED: self.createNavigationHeader() self.createToolbar() self.createViewPan() self.createViews() self.setLayout(self.mainlayout) self.VFS = VFS.Get() self.VFS.connection(self) self.connect(self, SIGNAL("refreshList"), self.refreshList) self.bookManager = BookmarkManager(self.model())
def __init__(self): EventHandler.__init__(self) self.loader = loader.loader() self.processusManager = ProcessusManager() self.VFS = VFS.Get() self.VFS.connection(self) self.ppModules = ModulesConfig() self.ppAnalyses = ModulesConfig()
def __init__(self, parent=None): EventHandler.__init__(self) QThread.__init__(self) self.__parent = parent self.nodes = [] self.filters = Filter("search") self.filters.connection(self) self.model = None self.listmode = False
def __init__(self): EventHandler.__init__(self) self.__extracted = {} self.__errors = {} self.total_files = 0 self.total_folders = 0 self.extracted_files = 0 self.extracted_folders = 0 self.files_errors = 0 self.folders_errors = 0 self.ommited_files = 0 self.ommited_folders = 0
def __init__(self): EventHandler.__init__(self) self.__fsEncoding = sys.getfilesystemencoding() self.__vfsRoot = VFS.Get().root self.__extracted = {} self.__errors = {} self.total_files = 0 self.total_folders = 0 self.extracted_files = 0 self.extracted_folders = 0 self.files_errors = 0 self.folders_errors = 0 self.ommited_files = 0 self.ommited_folders = 0
def __init__(self, selector, vnode): QWidget.__init__(self) EventHandler.__init__(self) self.vnode = vnode.value() self.filesize = self.vnode.size() self.tm = TaskManager() self.selector = selector self.setLayout(QVBoxLayout()) self.factor = 1 self.parsetime = 0 self.time = time.time() self.starttime = time.time() self.createStartOffset() self.createButtons() self.createStateInfo()
def __init__(self, __parent = None, selection=None): QStandardItemModel.__init__(self, __parent) EventHandler.__init__(self) self.__parent = __parent self.VFS = VFS.Get() # init translation self.translation() self.indexmap = {} self.createRootItems() self.currentIndex = self.root_item self.ch = True self.selection = selection self.VFS.connection(self) # keep track of index - node pointers self.connect(self, SIGNAL("refreshModel"), self.refreshModel)
def __init__(self): QDialog.__init__(self, None) EventHandler.__init__(self) self.reportManager = ReportManager() self.reportManager.connection(self) self.setModal(True) self.detail = False self.items = ReportExportProgressItems() self.__optionsDialog = None self.elements = ReportExportProgress( self.tr("of elements"), ReportPageFragment.EventWriteElements, ReportPageFragment.EventWriteElementStart, ReportPageFragment.EventWriteElementFinish) self.fragments = ReportExportProgress( self.tr("of fragments"), ReportPage.EventExportFragments, ReportPageFragment.EventWriteStart, ReportPageFragment.EventWriteFinish, self.elements) self.pages = ReportExportProgress(self.tr("of pages"), ReportManager.EventExportPages, ReportPage.EventExportStart, ReportPage.EventExportFinish, self.fragments) self.category = ReportExportProgress( self.tr("of category"), ReportManager.EventExportCategories, ReportManager.EventExportCategoryStart, ReportManager.EventExportCategoryFinish, self.pages) self.progresses = [ self.category, self.pages, self.fragments, self.elements ] self.detailButton = QPushButton("<<< " + self.tr("Show details")) self.connect(self.detailButton, SIGNAL("clicked()"), self.showDetail) self.cancelButton = QPushButton("&" + self.tr("Cancel")) self.connect(self.cancelButton, SIGNAL("clicked()"), self.cancel) self.hboxLayout = QVBoxLayout(self) self.hboxLayout.addWidget(self.items.label) self.hboxLayout.addWidget(self.items.bar) for progress in self.progresses: self.hboxLayout.addWidget(progress.label) progress.label.hide() self.hboxLayout.addWidget(progress.bar) progress.bar.hide() self.hboxLayout.addWidget(self.detailButton) self.hboxLayout.addWidget(self.cancelButton) self.setLayout(self.hboxLayout)
def __init__(self, __parent=None, selection=None, root=None): QStandardItemModel.__init__(self, __parent) EventHandler.__init__(self) self.__parent = __parent self.VFS = VFS.Get() # init translation self.root_node = root self.__root_uids = [] self.translation() self.itemmap = {} self.createRootItems() self.currentIndex = self.root_item self.ch = True self.displayCount = True self.selection = selection if self.selection != None: self.connect(self.selection, SIGNAL("selectionChanged"), self.updateSelected) self.VFS.connection(self) # keep track of index - node pointers self.connect(self, SIGNAL("refreshModel"), self.refreshModel)
def __init__(self): Script.__init__(self, "find") EventHandler.__init__(self) self.nodes = [] self.nodescount = 1 self.oldcur = 0
def __init__(self, title): self.title = title if type(self.title) == unicode: self.title = title.encode('UTF-8', 'replace') EventHandler.__init__(self)
def __init__(self): EventHandler.__init__(self) self.__categories = [] self.__exportCancel = False self.setExportPath()