Skip to content

Commit

Permalink
updatet python IDE for ida pro 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
techbliss committed Aug 11, 2019
1 parent d2f541a commit 5538f1b
Show file tree
Hide file tree
Showing 87 changed files with 30,421 additions and 0 deletions.
Binary file added 7.2/Add to ida python folder/PyQt5/Qsci.dll
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qsci.pyd
Binary file not shown.
3,617 changes: 3,617 additions & 0 deletions 7.2/Add to ida python folder/PyQt5/Qsci.pyi

Large diffs are not rendered by default.

Binary file added 7.2/Add to ida python folder/PyQt5/Qt.dll
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qt.pyd
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qt5Core.dll
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qt5Gui.dll
Binary file not shown.
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qt5OpenGL.dll
Binary file not shown.
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qt5Widgets.dll
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/Qt5Xml.dll
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtCore.pyd
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtGui.pyd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtNetwork.pyd
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtOpenGL.pyd
Binary file not shown.
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtSvg.dll
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtSvg.pyd
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtTest.pyd
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtWidgets.pyd
Binary file not shown.
Binary file not shown.
Binary file added 7.2/Add to ida python folder/PyQt5/QtXml.pyd
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions 7.2/Add to ida python folder/PyQt5/__init__.py
@@ -0,0 +1,16 @@
# Copyright (c) 2017 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Binary file not shown.
20 changes: 20 additions & 0 deletions 7.2/Add to ida python folder/PyQt5/uic/Compiler/__init__.py
@@ -0,0 +1,20 @@
#############################################################################
##
## Copyright (c) 2017 Riverbank Computing Limited <info@riverbankcomputing.com>
##
## This file is part of PyQt5.
##
## This file may be used under the terms of the GNU General Public License
## version 3.0 as published by the Free Software Foundation and appearing in
## the file LICENSE included in the packaging of this file. Please review the
## following information to ensure the GNU General Public License version 3.0
## requirements will be met: http://www.gnu.org/copyleft/gpl.html.
##
## If you do not wish to use this file under the terms of the GPL version 3.0
## then you may purchase a commercial license. For more information contact
## info@riverbankcomputing.com.
##
## This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
## WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
##
#############################################################################
125 changes: 125 additions & 0 deletions 7.2/Add to ida python folder/PyQt5/uic/Compiler/compiler.py
@@ -0,0 +1,125 @@
#############################################################################
##
## Copyright (C) 2016 Riverbank Computing Limited.
## Copyright (C) 2006 Thorsten Marek.
## All right reserved.
##
## This file is part of PyQt.
##
## You may use this file under the terms of the GPL v2 or the revised BSD
## license as follows:
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are
## met:
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in
## the documentation and/or other materials provided with the
## distribution.
## * Neither the name of the Riverbank Computing Limited nor the names
## of its contributors may be used to endorse or promote products
## derived from this software without specific prior written
## permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
##
#############################################################################


import sys

from ..properties import Properties
from ..uiparser import UIParser
from . import qtproxies
from .indenter import createCodeIndenter, getIndenter, write_code
from .qobjectcreator import CompilerCreatorPolicy


class UICompiler(UIParser):
def __init__(self):
UIParser.__init__(self, qtproxies.QtCore, qtproxies.QtGui,
qtproxies.QtWidgets, CompilerCreatorPolicy())

def reset(self):
qtproxies.i18n_strings = []
UIParser.reset(self)

def setContext(self, context):
qtproxies.i18n_context = context

def createToplevelWidget(self, classname, widgetname):
indenter = getIndenter()
indenter.level = 0

indenter.write("from PyQt5 import QtCore, QtGui, QtWidgets")
indenter.write("")

indenter.write("class Ui_%s(object):" % self.uiname)
indenter.indent()
indenter.write("def setupUi(self, %s):" % widgetname)
indenter.indent()
w = self.factory.createQObject(classname, widgetname, (),
is_attribute = False,
no_instantiation = True)
w.baseclass = classname
w.uiclass = "Ui_%s" % self.uiname
return w

def setDelayedProps(self):
write_code("")
write_code("self.retranslateUi(%s)" % self.toplevelWidget)
UIParser.setDelayedProps(self)

def finalize(self):
indenter = getIndenter()
indenter.level = 1
indenter.write("")
indenter.write("def retranslateUi(self, %s):" % self.toplevelWidget)

indenter.indent()

if qtproxies.i18n_strings:
indenter.write("_translate = QtCore.QCoreApplication.translate")
for s in qtproxies.i18n_strings:
indenter.write(s)
else:
indenter.write("pass")

indenter.dedent()
indenter.dedent()

# Keep a reference to the resource modules to import because the parser
# will reset() before returning.
self._resources = self.resources
self._resources.sort()

def compileUi(self, input_stream, output_stream, from_imports, resource_suffix, import_from):
createCodeIndenter(output_stream)
w = self.parse(input_stream, resource_suffix)

indenter = getIndenter()
indenter.write("")

self.factory._cpolicy._writeOutImports()

for res in self._resources:
if from_imports:
write_code("from %s import %s" % (import_from, res))
else:
write_code("import %s" % res)

return {"widgetname": str(w),
"uiclass" : w.uiclass,
"baseclass" : w.baseclass}
77 changes: 77 additions & 0 deletions 7.2/Add to ida python folder/PyQt5/uic/Compiler/indenter.py
@@ -0,0 +1,77 @@
#############################################################################
##
## Copyright (C) 2014 Riverbank Computing Limited.
## Copyright (C) 2006 Thorsten Marek.
## All right reserved.
##
## This file is part of PyQt.
##
## You may use this file under the terms of the GPL v2 or the revised BSD
## license as follows:
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are
## met:
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in
## the documentation and/or other materials provided with the
## distribution.
## * Neither the name of the Riverbank Computing Limited nor the names
## of its contributors may be used to endorse or promote products
## derived from this software without specific prior written
## permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
##
#############################################################################


indentwidth = 4

_indenter = None

class _IndentedCodeWriter(object):
def __init__(self, output):
self.level = 0
self.output = output

def indent(self):
self.level += 1

def dedent(self):
self.level -= 1

def write(self, line):
if line.strip():
if indentwidth > 0:
indent = " " * indentwidth
line = line.replace("\t", indent)
else:
indent = "\t"

self.output.write("%s%s\n" % (indent * self.level, line))
else:
self.output.write("\n")


def createCodeIndenter(output):
global _indenter
_indenter = _IndentedCodeWriter(output)

def getIndenter():
return _indenter

def write_code(string):
_indenter.write(string)
59 changes: 59 additions & 0 deletions 7.2/Add to ida python folder/PyQt5/uic/Compiler/misc.py
@@ -0,0 +1,59 @@
#############################################################################
##
## Copyright (C) 2016 Riverbank Computing Limited.
## Copyright (C) 2006 Thorsten Marek.
## All right reserved.
##
## This file is part of PyQt.
##
## You may use this file under the terms of the GPL v2 or the revised BSD
## license as follows:
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are
## met:
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above copyright
## notice, this list of conditions and the following disclaimer in
## the documentation and/or other materials provided with the
## distribution.
## * Neither the name of the Riverbank Computing Limited nor the names
## of its contributors may be used to endorse or promote products
## derived from this software without specific prior written
## permission.
##
## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
##
#############################################################################


def moduleMember(module, name):
if module:
return "%s.%s" % (module, name)

return name


class Literal(object):
"""Literal(string) -> new literal
string will not be quoted when put into an argument list"""
def __init__(self, string):
self.string = string

def __str__(self):
return self.string

def __or__(self, r_op):
return Literal("%s|%s" % (self, r_op))

0 comments on commit 5538f1b

Please sign in to comment.