Example #1
0
 def destroy_widget(self):
     if self._gui is not None and self._handler is not None:
         self._gui.openCategory.disconnect(self._handler.openCategory)
         self._gui.displayPrev.disconnect(self._handler.displayPrev)
         self._gui.displayNext.disconnect(self._handler.displayNext)
         self._gui.pictureDownloaded.disconnect(self._handler.pictureDownloaded)
         self._gui.setCategoryThumbnail.disconnect(self._handler.setCategoryThumbnail)
         
         self._handler.addCategory.disconnect(self._gui.categoryModel.addCategory)
         self._handler.categoryThumbnailChanged.disconnect(self._gui.categoryModel.categoryThumbnailChanged)
         self._handler.displayImageInGui.disconnect(self._gui.displayImage)
         
     if self._gui is not None:
         self._gui.categoryModel.categoriesChanged.disconnect(self._privacySettingsChanged)
         self._gui.destroyWidget()
     
     if self._handler is not None:
         self._handler.categoriesChanged.disconnect(self._privacySettingsChanged)
         self._handler.finish()
         
     if self._messagesThread is not None:
         self._messagesThread.quit()
         self._messagesThread.wait()
         self._messagesThread.deleteLater()
     
     iface_gui_plugin.destroy_widget(self)
Example #2
0
    def destroy_widget(self):
        if self._dailyTrigger != None:
            self._dailyTrigger.timeout.disconnect(self._updateTimes)
            self._dailyTrigger.stop()
            self._dailyTrigger.deleteLater()

        get_notification_center().disconnectMessagePrepended(self.messagesModel.messagePrepended)
        get_notification_center().disconnectDisplayedPeerNameChanged(self.messagesModel.updateSenders)

        self.messagesModel = None
        self.messagesTable = None

        iface_gui_plugin.destroy_widget(self)
Example #3
0
 def destroy_widget(self):
     for chatWindow in self._openChats.values():
         chatWindow.close()
         
     self.set_hidden_option(u"next_msgid", self._messagesHandler.getNextMessageIDForStorage(), convert=False)
     self._messagesHandler.deactivate()
     if self._messagesThread is not None:
         self._messagesThread.quit()
         self._messagesThread.wait()
         self._messagesThread.deleteLater()
         self._messagesThread = None
     self._messagesHandler = None
     self._storage = None
     self._lock = None
         
     iface_gui_plugin.destroy_widget(self)
Example #4
0
    def destroy_widget(self):
        iface_gui_plugin.destroy_widget(self)
        
        get_notification_center().disconnectPeerAppended(self.membersModel.externalRowAppended)
        get_notification_center().disconnectPeerUpdated(self.membersModel.externalRowUpdated)
        get_notification_center().disconnectPeerRemoved(self.membersModel.externalRowRemoved)

        get_notification_center().disconnectMemberAppended(self._updatePeer)
        get_notification_center().disconnectMemberRemoved(self._updatePeer)
        
        get_notification_center().disconnectDisplayedPeerNameChanged(self._displayedNameChanged)
        
        self._lunchTimeColumnTimer.stop()
        self._lunchTimeColumnTimer.deleteLater()

        self.membersTable = None
        self.membersModel = None
        self.membersProxyModel = None
Example #5
0
 def destroy_widget(self):
     for gui in (self._gui, self._toolWindow):        
         gui.retry.disconnect(self._handler.retrySendFileToPeer)
         gui.cancel.disconnect(self._handler.cancelOutgoingTransfer)
         self._handler.startOutgoingTransfer.disconnect(gui.startOutgoingTransfer)
         self._handler.outgoingTransferStarted.disconnect(gui.outgoingTransferStarted)
         self._handler.outgoingTransferCanceled.disconnect(gui.outgoingTransferCanceled)
         self._handler.incomingTransferStarted.disconnect(gui.incomingTransferStarted)
     
     self._handler.deactivate()
     if self._handlerThread is not None:
         self._handlerThread.quit()
         self._handlerThread.wait()
         self._handlerThread.deleteLater()
         self._handlerThread = None
     self._handler = None
     
     iface_gui_plugin.destroy_widget(self)
Example #6
0
 def destroy_widget(self):
     if self.w != None:
         self.w.destroy_widget()
     iface_gui_plugin.destroy_widget(self)
Example #7
0
 def destroy_widget(self):
     self._initLunchMenu = None
     self._widget = None
     iface_gui_plugin.destroy_widget(self)
Example #8
0
 def destroy_widget(self):
     self._outputField = None
     
     iface_gui_plugin.destroy_widget(self)
Example #9
0
 def destroy_widget(self):
     self._initLunchMenu = None
     self._widget = None
     iface_gui_plugin.destroy_widget(self)