Exemple #1
0
    def __init__(self, *args, **kwargs):
        super(Popup, self).__init__(*args, **kwargs)

        pm = QtGui.QPixmap(IDABUDDY_AVATAR_PATH)
        transform = QtGui.QTransform()
        transform.scale(0.5, 0.5)
        self.pm = pm.transformed(transform)

        self.slide = Slide(self)

        self.image_label = QtWidgets.QLabel(self.slide)
        self.image_label.setPixmap(self.pm)

        self.image_label.setFixedSize(self.pm.size())
        self.image_label.setAlignment(QtCore.Qt.AlignTop)
        self.slide.initialize()
        self.talk_bubble = TalkBubble(self)

        self.talk_bubble.move(TALKBUBBLE_X_MOVE, TALKBUBBLE_Y_MOVE)
        self.talk_bubble.hide()
        self.slide.move(size_to_point(self.talk_bubble.size()))

        self.setFixedSize(self.talk_bubble.size() + self.slide.size() +
                          get_extra_size())

        connect_method_to_signal(self.talk_bubble, 'linkActivated(QString)',
                                 self.linkActivatedHandler)
        self._handlers = {}
        self._default_handler = None
Exemple #2
0
    def __init__(self, *args, **kwargs):
        super(Popup, self).__init__(*args, **kwargs)

        pm = QtGui.QPixmap(IDABUDDY_AVATAR_PATH)
        transform = QtGui.QTransform()
        transform.scale(0.5, 0.5)
        self.pm = pm.transformed(transform)

        self.slide = Slide(self)

        self.image_label = QtWidgets.QLabel(self.slide)
        self.image_label.setPixmap(self.pm)

        self.image_label.setFixedSize(self.pm.size())
        self.image_label.setAlignment(QtCore.Qt.AlignTop)
        self.slide.initialize()
        self.talk_bubble = TalkBubble(self)

        self.talk_bubble.move(TALKBUBBLE_X_MOVE, TALKBUBBLE_Y_MOVE)
        self.talk_bubble.hide()
        self.slide.move(size_to_point(self.talk_bubble.size()))

        self.setFixedSize(self.talk_bubble.size() + self.slide.size() + get_extra_size())

        connect_method_to_signal(self.talk_bubble, 'linkActivated(QString)', self.linkActivatedHandler)
        self._handlers = {}
        self._default_handler = None
Exemple #3
0
    def __init__(self, *args, **kwargs):
        super(AutoPopup, self).__init__(*args, **kwargs)

        self._auto_timer = QtCore.QTimer()
        connect_method_to_signal(self._auto_timer, 'timeout()', self._on_timer)

        self._callbacks = []
        self._count = 0
Exemple #4
0
    def __init__(self, *args, **kwargs):
        super(AutoPopup, self).__init__(*args, **kwargs)

        self._auto_timer = QtCore.QTimer()
        connect_method_to_signal(self._auto_timer, 'timeout()', self._on_timer)

        self._callbacks = []
        self._count = 0
Exemple #5
0
 def __init__(self):
     self._installed_views = set()
     if idaapi.IDA_SDK_VERSION >= 670:
         self._hooks = self._create_hooks(self._install_idabuddy)
         self._install_timer = None
     else:
         self._install_timer = QtCore.QTimer()
         connect_method_to_signal(self._install_timer, 'timeout()', self._on_install_timer)
         self._hooks = None
Exemple #6
0
 def set_on_animation_end(self, callback):
     connect_method_to_signal(self.animation_group, 'finished()', callback)
Exemple #7
0
 def set_on_animation_end(self, callback):
     connect_method_to_signal(self.animation_group, 'finished()', callback)