@@ -0,0 +1,2279 @@
+from PyQt4.QtGui import *%0Afrom PyQt4.QtCore import *%0Afrom i18n import _%0A%0Aclass ReceivingWidget(QTreeWidget):%0A%0A    def toggle_used(self):%0A        if self.hide_used:%0A            self.hide_used = False%0A            self.setColumnHidden(2, False)%0A        else:%0A            self.hide_used = True%0A            self.setColumnHidden(2, True)%0A        self.update_list()%0A%0A    def edit_label(self, item, column):%0A      if column == 1 and item.isSelected():%0A        self.editing = True%0A        item.setFlags(Qt.ItemIsEditable%7CQt.ItemIsSelectable %7C Qt.ItemIsUserCheckable %7C Qt.ItemIsEnabled %7C Qt.ItemIsDragEnabled)%0A        self.editItem(item, column)%0A        item.setFlags(Qt.ItemIsSelectable %7C Qt.ItemIsUserCheckable %7C Qt.ItemIsEnabled %7C Qt.ItemIsDragEnabled)%0A        self.editing = False%0A%0A    def update_label(self, item, column):%0A      if self.editing: %0A          return%0A      else:%0A          address = str(item.text(0))%0A          label = unicode( item.text(1) )%0A          self.owner.actuator.wallet.labels%5Baddress%5D = label%0A%0A    def copy_address(self):%0A        address = self.currentItem().text(0)%0A        qApp.clipboard().setText(address)%0A        %0A%0A    def update_list(self):%0A%0A        self.clear()%0A        addresses = %5Baddr for addr in self.owner.actuator.wallet.all_addresses() if not self.owner.actuator.wallet.is_change(addr)%5D%0A        for address in addresses:%0A            history = self.owner.actuator.wallet.history.get(address,%5B%5D)%0A%0A            used = %22No%22%0A            for tx_hash, tx_height in history:%0A                tx = self.owner.actuator.wallet.transactions.get(tx_hash)%0A                if tx:%0A                    used = %22Yes%22%0A%0A            if(self.hide_used == True and used == %22No%22) or self.hide_used == False:%0A                label = self.owner.actuator.wallet.labels.get(address,'')%0A                item = QTreeWidgetItem(%5Baddress, label, used%5D)%0A                self.insertTopLevelItem(0, item)%0A%0A    def __init__(self, owner=None):%0A        self.owner = owner%0A        self.editing = False%0A%0A        QTreeWidget.__init__(self, owner)%0A        self.setColumnCount(3)%0A        self.setHeaderLabels(%5B_(%22Address%22), _(%22Label%22), _(%22Used%22)%5D)%0A        self.setIndentation(0)%0A%0A        self.hide_used = True%0A        self.setColumnHidden(2, True)%0A        self.update_list()%0A%0A%0A            %0A%0A%0A%0A

Add receiving widget for lite gui