make interface look more like an e-mail programm, not yet functional
This commit is contained in:
parent
8198e1922a
commit
44414c2e88
|
@ -199,13 +199,11 @@ class MyForm(QtGui.QMainWindow):
|
||||||
QtCore.SIGNAL(
|
QtCore.SIGNAL(
|
||||||
"triggered()"),
|
"triggered()"),
|
||||||
self.click_actionRegenerateDeterministicAddresses)
|
self.click_actionRegenerateDeterministicAddresses)
|
||||||
QtCore.QObject.connect(self.ui.actionJoinChan, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.pushButtonAddChanel, QtCore.SIGNAL(
|
||||||
"triggered()"),
|
"clicked()"),
|
||||||
self.click_actionJoinChan) # also used for creating chans.
|
self.click_actionJoinChan) # also used for creating chans.
|
||||||
QtCore.QObject.connect(self.ui.pushButtonNewAddress, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.pushButtonNewAddress, QtCore.SIGNAL(
|
||||||
"clicked()"), self.click_NewAddressDialog)
|
"clicked()"), self.click_NewAddressDialog)
|
||||||
QtCore.QObject.connect(self.ui.comboBoxSendFrom, QtCore.SIGNAL(
|
|
||||||
"activated(int)"), self.redrawLabelFrom)
|
|
||||||
QtCore.QObject.connect(self.ui.pushButtonAddAddressBook, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.pushButtonAddAddressBook, QtCore.SIGNAL(
|
||||||
"clicked()"), self.click_pushButtonAddAddressBook)
|
"clicked()"), self.click_pushButtonAddAddressBook)
|
||||||
QtCore.QObject.connect(self.ui.pushButtonAddSubscription, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.pushButtonAddSubscription, QtCore.SIGNAL(
|
||||||
|
@ -216,12 +214,8 @@ class MyForm(QtGui.QMainWindow):
|
||||||
"clicked()"), self.click_pushButtonTTL)
|
"clicked()"), self.click_pushButtonTTL)
|
||||||
QtCore.QObject.connect(self.ui.pushButtonSend, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.pushButtonSend, QtCore.SIGNAL(
|
||||||
"clicked()"), self.click_pushButtonSend)
|
"clicked()"), self.click_pushButtonSend)
|
||||||
QtCore.QObject.connect(self.ui.pushButtonLoadFromAddressBook,
|
#QtCore.QObject.connect(self.ui.pushButtonFetchNamecoinID, QtCore.SIGNAL(
|
||||||
QtCore.SIGNAL(
|
#"clicked()"), self.click_pushButtonFetchNamecoinID)
|
||||||
"clicked()"),
|
|
||||||
self.click_pushButtonLoadFromAddressBook)
|
|
||||||
QtCore.QObject.connect(self.ui.pushButtonFetchNamecoinID, QtCore.SIGNAL(
|
|
||||||
"clicked()"), self.click_pushButtonFetchNamecoinID)
|
|
||||||
QtCore.QObject.connect(self.ui.radioButtonBlacklist, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.radioButtonBlacklist, QtCore.SIGNAL(
|
||||||
"clicked()"), self.click_radioButtonBlacklist)
|
"clicked()"), self.click_radioButtonBlacklist)
|
||||||
QtCore.QObject.connect(self.ui.radioButtonWhitelist, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.radioButtonWhitelist, QtCore.SIGNAL(
|
||||||
|
@ -299,12 +293,14 @@ class MyForm(QtGui.QMainWindow):
|
||||||
_translate(
|
_translate(
|
||||||
"MainWindow", "Special address behavior..."),
|
"MainWindow", "Special address behavior..."),
|
||||||
self.on_action_SpecialAddressBehaviorDialog)
|
self.on_action_SpecialAddressBehaviorDialog)
|
||||||
|
|
||||||
self.ui.tableWidgetYourIdentities.setContextMenuPolicy(
|
self.ui.tableWidgetYourIdentities.setContextMenuPolicy(
|
||||||
QtCore.Qt.CustomContextMenu)
|
QtCore.Qt.CustomContextMenu)
|
||||||
if connectSignal:
|
if connectSignal:
|
||||||
self.connect(self.ui.tableWidgetYourIdentities, QtCore.SIGNAL(
|
self.connect(self.ui.tableWidgetYourIdentities, QtCore.SIGNAL(
|
||||||
'customContextMenuRequested(const QPoint&)'),
|
'customContextMenuRequested(const QPoint&)'),
|
||||||
self.on_context_menuYourIdentities)
|
self.on_context_menuYourIdentities)
|
||||||
|
|
||||||
self.popMenu = QtGui.QMenu(self)
|
self.popMenu = QtGui.QMenu(self)
|
||||||
self.popMenu.addAction(self.actionNew)
|
self.popMenu.addAction(self.actionNew)
|
||||||
self.popMenu.addSeparator()
|
self.popMenu.addSeparator()
|
||||||
|
@ -407,12 +403,6 @@ class MyForm(QtGui.QMainWindow):
|
||||||
self.actionForceSend = self.ui.sentContextMenuToolbar.addAction(
|
self.actionForceSend = self.ui.sentContextMenuToolbar.addAction(
|
||||||
_translate(
|
_translate(
|
||||||
"MainWindow", "Force send"), self.on_action_ForceSend)
|
"MainWindow", "Force send"), self.on_action_ForceSend)
|
||||||
self.ui.tableWidgetSent.setContextMenuPolicy(
|
|
||||||
QtCore.Qt.CustomContextMenu)
|
|
||||||
if connectSignal:
|
|
||||||
self.connect(self.ui.tableWidgetSent, QtCore.SIGNAL(
|
|
||||||
'customContextMenuRequested(const QPoint&)'),
|
|
||||||
self.on_context_menuSent)
|
|
||||||
# self.popMenuSent = QtGui.QMenu( self )
|
# self.popMenuSent = QtGui.QMenu( self )
|
||||||
# self.popMenuSent.addAction( self.actionSentClipboard )
|
# self.popMenuSent.addAction( self.actionSentClipboard )
|
||||||
# self.popMenuSent.addAction( self.actionTrashSentMessage )
|
# self.popMenuSent.addAction( self.actionTrashSentMessage )
|
||||||
|
@ -500,8 +490,6 @@ class MyForm(QtGui.QMainWindow):
|
||||||
self.totalNumberOfBytesReceived = 0
|
self.totalNumberOfBytesReceived = 0
|
||||||
self.totalNumberOfBytesSent = 0
|
self.totalNumberOfBytesSent = 0
|
||||||
|
|
||||||
self.ui.labelSendBroadcastWarning.setVisible(False)
|
|
||||||
|
|
||||||
self.timer = QtCore.QTimer()
|
self.timer = QtCore.QTimer()
|
||||||
self.timer.start(2000) # milliseconds
|
self.timer.start(2000) # milliseconds
|
||||||
QtCore.QObject.connect(self.timer, QtCore.SIGNAL("timeout()"), self.runEveryTwoSeconds)
|
QtCore.QObject.connect(self.timer, QtCore.SIGNAL("timeout()"), self.runEveryTwoSeconds)
|
||||||
|
@ -514,7 +502,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
self.init_sent_popup_menu()
|
self.init_sent_popup_menu()
|
||||||
self.init_blacklist_popup_menu()
|
self.init_blacklist_popup_menu()
|
||||||
|
|
||||||
# Initialize the user's list of addresses on the 'Your Identities' tab.
|
# Initialize the user's list of addresses on the 'Your Identities' table.
|
||||||
configSections = shared.config.sections()
|
configSections = shared.config.sections()
|
||||||
for addressInKeysFile in configSections:
|
for addressInKeysFile in configSections:
|
||||||
if addressInKeysFile != 'bitmessagesettings':
|
if addressInKeysFile != 'bitmessagesettings':
|
||||||
|
@ -548,6 +536,26 @@ class MyForm(QtGui.QMainWindow):
|
||||||
status, addressVersionNumber, streamNumber, hash = decodeAddress(
|
status, addressVersionNumber, streamNumber, hash = decodeAddress(
|
||||||
addressInKeysFile)
|
addressInKeysFile)
|
||||||
|
|
||||||
|
# Initialize the user's list of addresses on the 'Received' tab.
|
||||||
|
configSections = shared.config.sections()
|
||||||
|
for addressInKeysFile in configSections:
|
||||||
|
if addressInKeysFile != 'bitmessagesettings':
|
||||||
|
isEnabled = shared.config.getboolean(
|
||||||
|
addressInKeysFile, 'enabled')
|
||||||
|
|
||||||
|
if isEnabled and not shared.safeConfigGetBoolean(addressInKeysFile, 'chan') and not shared.safeConfigGetBoolean(addressInKeysFile, 'mailinglist'):
|
||||||
|
newItem = QtGui.QTreeWidgetItem(self.ui.treeWidgetYourIdentities)
|
||||||
|
newItem.setIcon(0, avatarize(addressInKeysFile))
|
||||||
|
newItem.setText(0, unicode(
|
||||||
|
shared.config.get(addressInKeysFile, 'label'), 'utf-8)')
|
||||||
|
+ ' (' + addressInKeysFile + ')')
|
||||||
|
newSubItem = QtGui.QTreeWidgetItem(newItem)
|
||||||
|
newSubItem.setText(0, _translate("MainWindow", "inbox"))
|
||||||
|
newSubItem = QtGui.QTreeWidgetItem(newItem)
|
||||||
|
newSubItem.setText(0, _translate("MainWindow", "sent"))
|
||||||
|
newSubItem = QtGui.QTreeWidgetItem(newItem)
|
||||||
|
newSubItem.setText(0, _translate("MainWindow", "trash"))
|
||||||
|
|
||||||
# Load inbox from messages database file
|
# Load inbox from messages database file
|
||||||
self.loadInbox()
|
self.loadInbox()
|
||||||
|
|
||||||
|
@ -564,10 +572,6 @@ class MyForm(QtGui.QMainWindow):
|
||||||
QtCore.QObject.connect(self.ui.inboxSearchLineEdit, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.inboxSearchLineEdit, QtCore.SIGNAL(
|
||||||
"returnPressed()"), self.inboxSearchLineEditPressed)
|
"returnPressed()"), self.inboxSearchLineEditPressed)
|
||||||
|
|
||||||
# Initialize the sent search
|
|
||||||
QtCore.QObject.connect(self.ui.sentSearchLineEdit, QtCore.SIGNAL(
|
|
||||||
"returnPressed()"), self.sentSearchLineEditPressed)
|
|
||||||
|
|
||||||
# Initialize the Blacklist or Whitelist
|
# Initialize the Blacklist or Whitelist
|
||||||
if shared.config.get('bitmessagesettings', 'blackwhitelist') == 'white':
|
if shared.config.get('bitmessagesettings', 'blackwhitelist') == 'white':
|
||||||
self.ui.tabWidget.setTabText(6, 'Whitelist')
|
self.ui.tabWidget.setTabText(6, 'Whitelist')
|
||||||
|
@ -582,8 +586,6 @@ class MyForm(QtGui.QMainWindow):
|
||||||
"itemChanged(QTableWidgetItem *)"), self.tableWidgetSubscriptionsItemChanged)
|
"itemChanged(QTableWidgetItem *)"), self.tableWidgetSubscriptionsItemChanged)
|
||||||
QtCore.QObject.connect(self.ui.tableWidgetInbox, QtCore.SIGNAL(
|
QtCore.QObject.connect(self.ui.tableWidgetInbox, QtCore.SIGNAL(
|
||||||
"itemSelectionChanged ()"), self.tableWidgetInboxItemClicked)
|
"itemSelectionChanged ()"), self.tableWidgetInboxItemClicked)
|
||||||
QtCore.QObject.connect(self.ui.tableWidgetSent, QtCore.SIGNAL(
|
|
||||||
"itemSelectionChanged ()"), self.tableWidgetSentItemClicked)
|
|
||||||
|
|
||||||
# Put the colored icon on the status bar
|
# Put the colored icon on the status bar
|
||||||
# self.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/yellowicon.png"))
|
# self.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/yellowicon.png"))
|
||||||
|
@ -598,8 +600,8 @@ class MyForm(QtGui.QMainWindow):
|
||||||
# Set the icon sizes for the identicons
|
# Set the icon sizes for the identicons
|
||||||
identicon_size = 3*7
|
identicon_size = 3*7
|
||||||
self.ui.tableWidgetInbox.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
self.ui.tableWidgetInbox.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
||||||
self.ui.tableWidgetSent.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
|
||||||
self.ui.tableWidgetYourIdentities.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
self.ui.tableWidgetYourIdentities.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
||||||
|
self.ui.treeWidgetYourIdentities.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
||||||
self.ui.tableWidgetSubscriptions.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
self.ui.tableWidgetSubscriptions.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
||||||
self.ui.tableWidgetAddressBook.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
self.ui.tableWidgetAddressBook.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
||||||
self.ui.tableWidgetBlacklist.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
self.ui.tableWidgetBlacklist.setIconSize(QtCore.QSize(identicon_size, identicon_size))
|
||||||
|
@ -671,28 +673,12 @@ class MyForm(QtGui.QMainWindow):
|
||||||
options["user"] = shared.config.get('bitmessagesettings', 'namecoinrpcuser')
|
options["user"] = shared.config.get('bitmessagesettings', 'namecoinrpcuser')
|
||||||
options["password"] = shared.config.get('bitmessagesettings', 'namecoinrpcpassword')
|
options["password"] = shared.config.get('bitmessagesettings', 'namecoinrpcpassword')
|
||||||
nc = namecoinConnection(options)
|
nc = namecoinConnection(options)
|
||||||
if nc.test()[0] == 'failed':
|
#if nc.test()[0] == 'failed':
|
||||||
self.ui.pushButtonFetchNamecoinID.hide()
|
#self.ui.pushButtonFetchNamecoinID.hide()
|
||||||
except:
|
except:
|
||||||
print 'There was a problem testing for a Namecoin daemon. Hiding the Fetch Namecoin ID button'
|
print 'There was a problem testing for a Namecoin daemon. Hiding the Fetch Namecoin ID button'
|
||||||
self.ui.pushButtonFetchNamecoinID.hide()
|
#self.ui.pushButtonFetchNamecoinID.hide()
|
||||||
|
|
||||||
def updateTTL(self, sliderPosition):
|
|
||||||
TTL = int(sliderPosition ** 3.199 + 3600)
|
|
||||||
self.updateHumanFriendlyTTLDescription(TTL)
|
|
||||||
shared.config.set('bitmessagesettings', 'ttl', str(TTL))
|
|
||||||
shared.writeKeysFile()
|
|
||||||
|
|
||||||
def updateHumanFriendlyTTLDescription(self, TTL):
|
|
||||||
numberOfHours = int(round(TTL / (60*60)))
|
|
||||||
if numberOfHours < 48:
|
|
||||||
if numberOfHours == 1:
|
|
||||||
self.ui.labelHumanFriendlyTTLDescription.setText(_translate("MainWindow", "1 hour"))
|
|
||||||
else:
|
|
||||||
self.ui.labelHumanFriendlyTTLDescription.setText(_translate("MainWindow", "%1 hours").arg(numberOfHours))
|
|
||||||
else:
|
|
||||||
numberOfDays = int(round(TTL / (24*60*60)))
|
|
||||||
self.ui.labelHumanFriendlyTTLDescription.setText(_translate("MainWindow", "%1 days").arg(numberOfDays))
|
|
||||||
|
|
||||||
# Show or hide the application window after clicking an item within the
|
# Show or hide the application window after clicking an item within the
|
||||||
# tray icon or, on Windows, the try icon itself.
|
# tray icon or, on Windows, the try icon itself.
|
||||||
|
@ -781,12 +767,12 @@ class MyForm(QtGui.QMainWindow):
|
||||||
# Show the program window and select subscriptions tab
|
# Show the program window and select subscriptions tab
|
||||||
def appIndicatorSubscribe(self):
|
def appIndicatorSubscribe(self):
|
||||||
self.appIndicatorShow()
|
self.appIndicatorShow()
|
||||||
self.ui.tabWidget.setCurrentIndex(4)
|
self.ui.tabWidget.setCurrentIndex(2)
|
||||||
|
|
||||||
# Show the program window and select the address book tab
|
# Show the program window and select chanels tab
|
||||||
def appIndicatorAddressBook(self):
|
def appIndicatorChanel(self):
|
||||||
self.appIndicatorShow()
|
self.appIndicatorShow()
|
||||||
self.ui.tabWidget.setCurrentIndex(5)
|
self.ui.tabWidget.setCurrentIndex(3)
|
||||||
|
|
||||||
# Load Sent items from database
|
# Load Sent items from database
|
||||||
def loadSent(self, where="", what=""):
|
def loadSent(self, where="", what=""):
|
||||||
|
@ -808,8 +794,8 @@ class MyForm(QtGui.QMainWindow):
|
||||||
ORDER BY lastactiontime
|
ORDER BY lastactiontime
|
||||||
''' % (where,)
|
''' % (where,)
|
||||||
|
|
||||||
while self.ui.tableWidgetSent.rowCount() > 0:
|
while self.ui.tableWidgetInbox.rowCount() > 0:
|
||||||
self.ui.tableWidgetSent.removeRow(0)
|
self.ui.tableWidgetInbox.removeRow(0)
|
||||||
|
|
||||||
queryreturn = sqlQuery(sqlStatement, what)
|
queryreturn = sqlQuery(sqlStatement, what)
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
|
@ -843,14 +829,14 @@ class MyForm(QtGui.QMainWindow):
|
||||||
if toLabel == '':
|
if toLabel == '':
|
||||||
toLabel = toAddress
|
toLabel = toAddress
|
||||||
|
|
||||||
self.ui.tableWidgetSent.insertRow(0)
|
self.ui.tableWidgetInbox.insertRow(0)
|
||||||
toAddressItem = QtGui.QTableWidgetItem(unicode(toLabel, 'utf-8'))
|
toAddressItem = QtGui.QTableWidgetItem(unicode(toLabel, 'utf-8'))
|
||||||
toAddressItem.setToolTip(unicode(toLabel, 'utf-8'))
|
toAddressItem.setToolTip(unicode(toLabel, 'utf-8'))
|
||||||
toAddressItem.setIcon(avatarize(toAddress))
|
toAddressItem.setIcon(avatarize(toAddress))
|
||||||
toAddressItem.setData(Qt.UserRole, str(toAddress))
|
toAddressItem.setData(Qt.UserRole, str(toAddress))
|
||||||
toAddressItem.setFlags(
|
toAddressItem.setFlags(
|
||||||
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
||||||
self.ui.tableWidgetSent.setItem(0, 0, toAddressItem)
|
self.ui.tableWidgetInbox.setItem(0, 0, toAddressItem)
|
||||||
|
|
||||||
if fromLabel == '':
|
if fromLabel == '':
|
||||||
fromLabel = fromAddress
|
fromLabel = fromAddress
|
||||||
|
@ -860,13 +846,13 @@ class MyForm(QtGui.QMainWindow):
|
||||||
fromAddressItem.setData(Qt.UserRole, str(fromAddress))
|
fromAddressItem.setData(Qt.UserRole, str(fromAddress))
|
||||||
fromAddressItem.setFlags(
|
fromAddressItem.setFlags(
|
||||||
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
||||||
self.ui.tableWidgetSent.setItem(0, 1, fromAddressItem)
|
self.ui.tableWidgetInbox.setItem(0, 1, fromAddressItem)
|
||||||
|
|
||||||
subjectItem = QtGui.QTableWidgetItem(unicode(subject, 'utf-8'))
|
subjectItem = QtGui.QTableWidgetItem(unicode(subject, 'utf-8'))
|
||||||
subjectItem.setToolTip(unicode(subject, 'utf-8'))
|
subjectItem.setToolTip(unicode(subject, 'utf-8'))
|
||||||
subjectItem.setFlags(
|
subjectItem.setFlags(
|
||||||
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
||||||
self.ui.tableWidgetSent.setItem(0, 2, subjectItem)
|
self.ui.tableWidgetInbox.setItem(0, 2, subjectItem)
|
||||||
|
|
||||||
if status == 'awaitingpubkey':
|
if status == 'awaitingpubkey':
|
||||||
statusText = _translate(
|
statusText = _translate(
|
||||||
|
@ -913,9 +899,9 @@ class MyForm(QtGui.QMainWindow):
|
||||||
newItem.setData(33, int(lastactiontime))
|
newItem.setData(33, int(lastactiontime))
|
||||||
newItem.setFlags(
|
newItem.setFlags(
|
||||||
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)
|
||||||
self.ui.tableWidgetSent.setItem(0, 3, newItem)
|
self.ui.tableWidgetInbox.setItem(0, 3, newItem)
|
||||||
self.ui.tableWidgetSent.sortItems(3, Qt.DescendingOrder)
|
self.ui.tableWidgetInbox.sortItems(3, Qt.DescendingOrder)
|
||||||
self.ui.tableWidgetSent.keyPressEvent = self.tableWidgetSentKeyPressEvent
|
self.ui.tableWidgetInbox.keyPressEvent = self.tableWidgetInboxKeyPressEvent
|
||||||
|
|
||||||
# Load inbox from messages database file
|
# Load inbox from messages database file
|
||||||
def loadInbox(self, where="", what=""):
|
def loadInbox(self, where="", what=""):
|
||||||
|
@ -1065,11 +1051,11 @@ class MyForm(QtGui.QMainWindow):
|
||||||
actionSubscribe.triggered.connect(self.appIndicatorSubscribe)
|
actionSubscribe.triggered.connect(self.appIndicatorSubscribe)
|
||||||
m.addAction(actionSubscribe)
|
m.addAction(actionSubscribe)
|
||||||
|
|
||||||
# Address book
|
# Chanels
|
||||||
actionAddressBook = QtGui.QAction(_translate(
|
actionSubscribe = QtGui.QAction(_translate(
|
||||||
"MainWindow", "Address Book"), m, checkable=False)
|
"MainWindow", "Chanel"), m, checkable=False)
|
||||||
actionAddressBook.triggered.connect(self.appIndicatorAddressBook)
|
actionSubscribe.triggered.connect(self.appIndicatorChanel)
|
||||||
m.addAction(actionAddressBook)
|
m.addAction(actionSubscribe)
|
||||||
|
|
||||||
# separator
|
# separator
|
||||||
actionSeparator = QtGui.QAction('', m, checkable=False)
|
actionSeparator = QtGui.QAction('', m, checkable=False)
|
||||||
|
@ -1346,16 +1332,13 @@ class MyForm(QtGui.QMainWindow):
|
||||||
else:
|
else:
|
||||||
self.tray.showMessage(title, subtitle, 1, 2000)
|
self.tray.showMessage(title, subtitle, 1, 2000)
|
||||||
|
|
||||||
|
# set delete key in inbox
|
||||||
def tableWidgetInboxKeyPressEvent(self, event):
|
def tableWidgetInboxKeyPressEvent(self, event):
|
||||||
if event.key() == QtCore.Qt.Key_Delete:
|
if event.key() == QtCore.Qt.Key_Delete:
|
||||||
self.on_action_InboxTrash()
|
self.on_action_InboxTrash()
|
||||||
return QtGui.QTableWidget.keyPressEvent(self.ui.tableWidgetInbox, event)
|
return QtGui.QTableWidget.keyPressEvent(self.ui.tableWidgetInbox, event)
|
||||||
|
|
||||||
def tableWidgetSentKeyPressEvent(self, event):
|
# menu button 'manage keys'
|
||||||
if event.key() == QtCore.Qt.Key_Delete:
|
|
||||||
self.on_action_SentTrash()
|
|
||||||
return QtGui.QTableWidget.keyPressEvent(self.ui.tableWidgetSent, event)
|
|
||||||
|
|
||||||
def click_actionManageKeys(self):
|
def click_actionManageKeys(self):
|
||||||
if 'darwin' in sys.platform or 'linux' in sys.platform:
|
if 'darwin' in sys.platform or 'linux' in sys.platform:
|
||||||
if shared.appdata == '':
|
if shared.appdata == '':
|
||||||
|
@ -1379,11 +1362,13 @@ class MyForm(QtGui.QMainWindow):
|
||||||
if reply == QtGui.QMessageBox.Yes:
|
if reply == QtGui.QMessageBox.Yes:
|
||||||
shared.openKeysFile()
|
shared.openKeysFile()
|
||||||
|
|
||||||
|
# menu button 'delete all treshed messages'
|
||||||
def click_actionDeleteAllTrashedMessages(self):
|
def click_actionDeleteAllTrashedMessages(self):
|
||||||
if QtGui.QMessageBox.question(self, _translate("MainWindow", "Delete trash?"), _translate("MainWindow", "Are you sure you want to delete all trashed messages?"), QtGui.QMessageBox.Yes, QtGui.QMessageBox.No) == QtGui.QMessageBox.No:
|
if QtGui.QMessageBox.question(self, _translate("MainWindow", "Delete trash?"), _translate("MainWindow", "Are you sure you want to delete all trashed messages?"), QtGui.QMessageBox.Yes, QtGui.QMessageBox.No) == QtGui.QMessageBox.No:
|
||||||
return
|
return
|
||||||
sqlStoredProcedure('deleteandvacuume')
|
sqlStoredProcedure('deleteandvacuume')
|
||||||
|
|
||||||
|
# menu botton 'regenerate deterministic addresses'
|
||||||
def click_actionRegenerateDeterministicAddresses(self):
|
def click_actionRegenerateDeterministicAddresses(self):
|
||||||
self.regenerateAddressesDialogInstance = regenerateAddressesDialog(
|
self.regenerateAddressesDialogInstance = regenerateAddressesDialog(
|
||||||
self)
|
self)
|
||||||
|
@ -1409,6 +1394,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
), self.regenerateAddressesDialogInstance.ui.lineEditPassphrase.text().toUtf8(), self.regenerateAddressesDialogInstance.ui.checkBoxEighteenByteRipe.isChecked()))
|
), self.regenerateAddressesDialogInstance.ui.lineEditPassphrase.text().toUtf8(), self.regenerateAddressesDialogInstance.ui.checkBoxEighteenByteRipe.isChecked()))
|
||||||
self.ui.tabWidget.setCurrentIndex(3)
|
self.ui.tabWidget.setCurrentIndex(3)
|
||||||
|
|
||||||
|
# opens 'join chan' dialog
|
||||||
def click_actionJoinChan(self):
|
def click_actionJoinChan(self):
|
||||||
self.newChanDialogInstance = newChanDialog(self)
|
self.newChanDialogInstance = newChanDialog(self)
|
||||||
if self.newChanDialogInstance.exec_():
|
if self.newChanDialogInstance.exec_():
|
||||||
|
@ -1533,7 +1519,6 @@ class MyForm(QtGui.QMainWindow):
|
||||||
shared.numberOfBytesSent = 0
|
shared.numberOfBytesSent = 0
|
||||||
|
|
||||||
def updateNetworkStatusTab(self):
|
def updateNetworkStatusTab(self):
|
||||||
# print 'updating network status tab'
|
|
||||||
totalNumberOfConnectionsFromAllStreams = 0 # One would think we could use len(sendDataQueues) for this but the number doesn't always match: just because we have a sendDataThread running doesn't mean that the connection has been fully established (with the exchange of version messages).
|
totalNumberOfConnectionsFromAllStreams = 0 # One would think we could use len(sendDataQueues) for this but the number doesn't always match: just because we have a sendDataThread running doesn't mean that the connection has been fully established (with the exchange of version messages).
|
||||||
streamNumberTotals = {}
|
streamNumberTotals = {}
|
||||||
for host, streamNumber in shared.connectedHostsList.items():
|
for host, streamNumber in shared.connectedHostsList.items():
|
||||||
|
@ -1694,41 +1679,43 @@ class MyForm(QtGui.QMainWindow):
|
||||||
cnt, = row
|
cnt, = row
|
||||||
return int(cnt)
|
return int(cnt)
|
||||||
|
|
||||||
def updateSentItemStatusByToAddress(self, toAddress, textToDisplay):
|
def updateSentItemStatusByHash(self, toRipe, textToDisplay):
|
||||||
for i in range(self.ui.tableWidgetSent.rowCount()):
|
for i in range(self.ui.tableWidgetInbox.rowCount()):
|
||||||
rowAddress = str(self.ui.tableWidgetSent.item(
|
toAddress = str(self.ui.tableWidgetInbox.item(
|
||||||
i, 0).data(Qt.UserRole).toPyObject())
|
i, 0).data(Qt.UserRole).toPyObject())
|
||||||
if toAddress == rowAddress:
|
status, addressVersionNumber, streamNumber, ripe = decodeAddress(
|
||||||
self.ui.tableWidgetSent.item(i, 3).setToolTip(textToDisplay)
|
toAddress)
|
||||||
|
if ripe == toRipe:
|
||||||
|
self.ui.tableWidgetInbox.item(i, 3).setToolTip(textToDisplay)
|
||||||
try:
|
try:
|
||||||
newlinePosition = textToDisplay.indexOf('\n')
|
newlinePosition = textToDisplay.indexOf('\n')
|
||||||
except: # If someone misses adding a "_translate" to a string before passing it to this function, this function won't receive a qstring which will cause an exception.
|
except: # If someone misses adding a "_translate" to a string before passing it to this function, this function won't receive a qstring which will cause an exception.
|
||||||
newlinePosition = 0
|
newlinePosition = 0
|
||||||
if newlinePosition > 1:
|
if newlinePosition > 1:
|
||||||
self.ui.tableWidgetSent.item(i, 3).setText(
|
self.ui.tableWidgetInbox.item(i, 3).setText(
|
||||||
textToDisplay[:newlinePosition])
|
textToDisplay[:newlinePosition])
|
||||||
else:
|
else:
|
||||||
self.ui.tableWidgetSent.item(i, 3).setText(textToDisplay)
|
self.ui.tableWidgetInbox.item(i, 3).setText(textToDisplay)
|
||||||
|
|
||||||
def updateSentItemStatusByAckdata(self, ackdata, textToDisplay):
|
def updateSentItemStatusByAckdata(self, ackdata, textToDisplay):
|
||||||
for i in range(self.ui.tableWidgetSent.rowCount()):
|
for i in range(self.ui.tableWidgetInbox.rowCount()):
|
||||||
toAddress = str(self.ui.tableWidgetSent.item(
|
toAddress = str(self.ui.tableWidgetInbox.item(
|
||||||
i, 0).data(Qt.UserRole).toPyObject())
|
i, 0).data(Qt.UserRole).toPyObject())
|
||||||
tableAckdata = self.ui.tableWidgetSent.item(
|
tableAckdata = self.ui.tableWidgetInbox.item(
|
||||||
i, 3).data(Qt.UserRole).toPyObject()
|
i, 3).data(Qt.UserRole).toPyObject()
|
||||||
status, addressVersionNumber, streamNumber, ripe = decodeAddress(
|
status, addressVersionNumber, streamNumber, ripe = decodeAddress(
|
||||||
toAddress)
|
toAddress)
|
||||||
if ackdata == tableAckdata:
|
if ackdata == tableAckdata:
|
||||||
self.ui.tableWidgetSent.item(i, 3).setToolTip(textToDisplay)
|
self.ui.tableWidgetInbox.item(i, 3).setToolTip(textToDisplay)
|
||||||
try:
|
try:
|
||||||
newlinePosition = textToDisplay.indexOf('\n')
|
newlinePosition = textToDisplay.indexOf('\n')
|
||||||
except: # If someone misses adding a "_translate" to a string before passing it to this function, this function won't receive a qstring which will cause an exception.
|
except: # If someone misses adding a "_translate" to a string before passing it to this function, this function won't receive a qstring which will cause an exception.
|
||||||
newlinePosition = 0
|
newlinePosition = 0
|
||||||
if newlinePosition > 1:
|
if newlinePosition > 1:
|
||||||
self.ui.tableWidgetSent.item(i, 3).setText(
|
self.ui.tableWidgetInbox.item(i, 3).setText(
|
||||||
textToDisplay[:newlinePosition])
|
textToDisplay[:newlinePosition])
|
||||||
else:
|
else:
|
||||||
self.ui.tableWidgetSent.item(i, 3).setText(textToDisplay)
|
self.ui.tableWidgetInbox.item(i, 3).setText(textToDisplay)
|
||||||
|
|
||||||
def removeInboxRowByMsgid(self, msgid): # msgid and inventoryHash are the same thing
|
def removeInboxRowByMsgid(self, msgid): # msgid and inventoryHash are the same thing
|
||||||
for i in range(self.ui.tableWidgetInbox.rowCount()):
|
for i in range(self.ui.tableWidgetInbox.rowCount()):
|
||||||
|
@ -1809,22 +1796,22 @@ class MyForm(QtGui.QMainWindow):
|
||||||
i, 0).setTextColor(QApplication.palette().text().color())
|
i, 0).setTextColor(QApplication.palette().text().color())
|
||||||
|
|
||||||
def rerenderSentFromLabels(self):
|
def rerenderSentFromLabels(self):
|
||||||
for i in range(self.ui.tableWidgetSent.rowCount()):
|
for i in range(self.ui.tableWidgetInbox.rowCount()):
|
||||||
fromAddress = str(self.ui.tableWidgetSent.item(
|
fromAddress = str(self.ui.tableWidgetInbox.item(
|
||||||
i, 1).data(Qt.UserRole).toPyObject())
|
i, 1).data(Qt.UserRole).toPyObject())
|
||||||
# Message might be from an address we own like a chan address. Let's look for that label.
|
# Message might be from an address we own like a chan address. Let's look for that label.
|
||||||
if shared.config.has_section(fromAddress):
|
if shared.config.has_section(fromAddress):
|
||||||
fromLabel = shared.config.get(fromAddress, 'label')
|
fromLabel = shared.config.get(fromAddress, 'label')
|
||||||
else:
|
else:
|
||||||
fromLabel = fromAddress
|
fromLabel = fromAddress
|
||||||
self.ui.tableWidgetSent.item(
|
self.ui.tableWidgetInbox.item(
|
||||||
i, 1).setText(unicode(fromLabel, 'utf-8'))
|
i, 1).setText(unicode(fromLabel, 'utf-8'))
|
||||||
self.ui.tableWidgetSent.item(
|
self.ui.tableWidgetInbox.item(
|
||||||
i, 1).setIcon(avatarize(fromAddress))
|
i, 1).setIcon(avatarize(fromAddress))
|
||||||
|
|
||||||
def rerenderSentToLabels(self):
|
def rerenderSentToLabels(self):
|
||||||
for i in range(self.ui.tableWidgetSent.rowCount()):
|
for i in range(self.ui.tableWidgetInbox.rowCount()):
|
||||||
addressToLookup = str(self.ui.tableWidgetSent.item(
|
addressToLookup = str(self.ui.tableWidgetInbox.item(
|
||||||
i, 0).data(Qt.UserRole).toPyObject())
|
i, 0).data(Qt.UserRole).toPyObject())
|
||||||
toLabel = ''
|
toLabel = ''
|
||||||
queryreturn = sqlQuery(
|
queryreturn = sqlQuery(
|
||||||
|
@ -1839,7 +1826,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
toLabel = shared.config.get(addressToLookup, 'label')
|
toLabel = shared.config.get(addressToLookup, 'label')
|
||||||
if toLabel == '':
|
if toLabel == '':
|
||||||
toLabel = addressToLookup
|
toLabel = addressToLookup
|
||||||
self.ui.tableWidgetSent.item(
|
self.ui.tableWidgetInbox.item(
|
||||||
i, 0).setText(unicode(toLabel, 'utf-8'))
|
i, 0).setText(unicode(toLabel, 'utf-8'))
|
||||||
|
|
||||||
def rerenderAddressBook(self):
|
def rerenderAddressBook(self):
|
||||||
|
@ -1906,7 +1893,6 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
def click_pushButtonSend(self):
|
def click_pushButtonSend(self):
|
||||||
self.statusBar().showMessage('')
|
self.statusBar().showMessage('')
|
||||||
toAddresses = str(self.ui.lineEditTo.text())
|
toAddresses = str(self.ui.lineEditTo.text())
|
||||||
fromAddress = str(self.ui.labelFrom.text())
|
|
||||||
subject = str(self.ui.lineEditSubject.text().toUtf8())
|
subject = str(self.ui.lineEditSubject.text().toUtf8())
|
||||||
message = str(
|
message = str(
|
||||||
self.ui.textEditMessage.document().toPlainText().toUtf8())
|
self.ui.textEditMessage.document().toPlainText().toUtf8())
|
||||||
|
@ -2008,12 +1994,11 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
shared.workerQueue.put(('sendmessage', toAddress))
|
shared.workerQueue.put(('sendmessage', toAddress))
|
||||||
|
|
||||||
self.ui.comboBoxSendFrom.setCurrentIndex(0)
|
self.ui.comboBoxSendFrom.setCurrentIndex(0)
|
||||||
self.ui.labelFrom.setText('')
|
|
||||||
self.ui.lineEditTo.setText('')
|
self.ui.lineEditTo.setText('')
|
||||||
self.ui.lineEditSubject.setText('')
|
self.ui.lineEditSubject.setText('')
|
||||||
self.ui.textEditMessage.setText('')
|
self.ui.textEditMessage.setText('')
|
||||||
self.ui.tabWidget.setCurrentIndex(2)
|
self.ui.tabWidget.setCurrentIndex(2)
|
||||||
self.ui.tableWidgetSent.setCurrentCell(0, 0)
|
self.ui.tableWidgetInbox.setCurrentCell(0, 0)
|
||||||
else:
|
else:
|
||||||
self.statusBar().showMessage(_translate(
|
self.statusBar().showMessage(_translate(
|
||||||
"MainWindow", "Your \'To\' field is empty."))
|
"MainWindow", "Your \'To\' field is empty."))
|
||||||
|
@ -2056,12 +2041,11 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
shared.workerQueue.put(('sendbroadcast', ''))
|
shared.workerQueue.put(('sendbroadcast', ''))
|
||||||
|
|
||||||
self.ui.comboBoxSendFrom.setCurrentIndex(0)
|
self.ui.comboBoxSendFrom.setCurrentIndex(0)
|
||||||
self.ui.labelFrom.setText('')
|
|
||||||
self.ui.lineEditTo.setText('')
|
self.ui.lineEditTo.setText('')
|
||||||
self.ui.lineEditSubject.setText('')
|
self.ui.lineEditSubject.setText('')
|
||||||
self.ui.textEditMessage.setText('')
|
self.ui.textEditMessage.setText('')
|
||||||
self.ui.tabWidget.setCurrentIndex(2)
|
self.ui.tabWidget.setCurrentIndex(2)
|
||||||
self.ui.tableWidgetSent.setCurrentCell(0, 0)
|
self.ui.tableWidgetInbox.setCurrentCell(0, 0)
|
||||||
|
|
||||||
def click_pushButtonLoadFromAddressBook(self):
|
def click_pushButtonLoadFromAddressBook(self):
|
||||||
self.ui.tabWidget.setCurrentIndex(5)
|
self.ui.tabWidget.setCurrentIndex(5)
|
||||||
|
@ -2083,11 +2067,6 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
self.statusBar().showMessage(_translate(
|
self.statusBar().showMessage(_translate(
|
||||||
"MainWindow", "Fetched address from namecoin identity."))
|
"MainWindow", "Fetched address from namecoin identity."))
|
||||||
|
|
||||||
def redrawLabelFrom(self, index):
|
|
||||||
self.ui.labelFrom.setText(
|
|
||||||
self.ui.comboBoxSendFrom.itemData(index).toPyObject())
|
|
||||||
self.setBroadcastEnablementDependingOnWhetherThisIsAChanAddress(self.ui.comboBoxSendFrom.itemData(index).toPyObject())
|
|
||||||
|
|
||||||
def setBroadcastEnablementDependingOnWhetherThisIsAChanAddress(self, address):
|
def setBroadcastEnablementDependingOnWhetherThisIsAChanAddress(self, address):
|
||||||
# If this is a chan then don't let people broadcast because no one
|
# If this is a chan then don't let people broadcast because no one
|
||||||
# should subscribe to chan addresses.
|
# should subscribe to chan addresses.
|
||||||
|
@ -2099,7 +2078,6 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
|
|
||||||
def rerenderComboBoxSendFrom(self):
|
def rerenderComboBoxSendFrom(self):
|
||||||
self.ui.comboBoxSendFrom.clear()
|
self.ui.comboBoxSendFrom.clear()
|
||||||
self.ui.labelFrom.setText('')
|
|
||||||
configSections = shared.config.sections()
|
configSections = shared.config.sections()
|
||||||
for addressInKeysFile in configSections:
|
for addressInKeysFile in configSections:
|
||||||
if addressInKeysFile != 'bitmessagesettings':
|
if addressInKeysFile != 'bitmessagesettings':
|
||||||
|
@ -2111,7 +2089,6 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
self.ui.comboBoxSendFrom.insertItem(0, '', '')
|
self.ui.comboBoxSendFrom.insertItem(0, '', '')
|
||||||
if(self.ui.comboBoxSendFrom.count() == 2):
|
if(self.ui.comboBoxSendFrom.count() == 2):
|
||||||
self.ui.comboBoxSendFrom.setCurrentIndex(1)
|
self.ui.comboBoxSendFrom.setCurrentIndex(1)
|
||||||
self.redrawLabelFrom(self.ui.comboBoxSendFrom.currentIndex())
|
|
||||||
else:
|
else:
|
||||||
self.ui.comboBoxSendFrom.setCurrentIndex(0)
|
self.ui.comboBoxSendFrom.setCurrentIndex(0)
|
||||||
|
|
||||||
|
@ -2129,8 +2106,8 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
if fromLabel == '':
|
if fromLabel == '':
|
||||||
fromLabel = fromAddress
|
fromLabel = fromAddress
|
||||||
|
|
||||||
self.ui.tableWidgetSent.setSortingEnabled(False)
|
self.ui.tableWidgetInbox.setSortingEnabled(False)
|
||||||
self.ui.tableWidgetSent.insertRow(0)
|
self.ui.tableWidgetInbox.insertRow(0)
|
||||||
if toLabel == '':
|
if toLabel == '':
|
||||||
newItem = QtGui.QTableWidgetItem(unicode(toAddress, 'utf-8'))
|
newItem = QtGui.QTableWidgetItem(unicode(toAddress, 'utf-8'))
|
||||||
newItem.setToolTip(unicode(toAddress, 'utf-8'))
|
newItem.setToolTip(unicode(toAddress, 'utf-8'))
|
||||||
|
@ -2139,7 +2116,7 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
newItem.setToolTip(unicode(toLabel, 'utf-8'))
|
newItem.setToolTip(unicode(toLabel, 'utf-8'))
|
||||||
newItem.setData(Qt.UserRole, str(toAddress))
|
newItem.setData(Qt.UserRole, str(toAddress))
|
||||||
newItem.setIcon(avatarize(toAddress))
|
newItem.setIcon(avatarize(toAddress))
|
||||||
self.ui.tableWidgetSent.setItem(0, 0, newItem)
|
self.ui.tableWidgetInbox.setItem(0, 0, newItem)
|
||||||
if fromLabel == '':
|
if fromLabel == '':
|
||||||
newItem = QtGui.QTableWidgetItem(unicode(fromAddress, 'utf-8'))
|
newItem = QtGui.QTableWidgetItem(unicode(fromAddress, 'utf-8'))
|
||||||
newItem.setToolTip(unicode(fromAddress, 'utf-8'))
|
newItem.setToolTip(unicode(fromAddress, 'utf-8'))
|
||||||
|
@ -2148,11 +2125,11 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
newItem.setToolTip(unicode(fromLabel, 'utf-8'))
|
newItem.setToolTip(unicode(fromLabel, 'utf-8'))
|
||||||
newItem.setData(Qt.UserRole, str(fromAddress))
|
newItem.setData(Qt.UserRole, str(fromAddress))
|
||||||
newItem.setIcon(avatarize(fromAddress))
|
newItem.setIcon(avatarize(fromAddress))
|
||||||
self.ui.tableWidgetSent.setItem(0, 1, newItem)
|
self.ui.tableWidgetInbox.setItem(0, 1, newItem)
|
||||||
newItem = QtGui.QTableWidgetItem(unicode(subject, 'utf-8)'))
|
newItem = QtGui.QTableWidgetItem(unicode(subject, 'utf-8)'))
|
||||||
newItem.setToolTip(unicode(subject, 'utf-8)'))
|
newItem.setToolTip(unicode(subject, 'utf-8)'))
|
||||||
#newItem.setData(Qt.UserRole, unicode(message, 'utf-8)')) # No longer hold the message in the table; we'll use a SQL query to display it as needed.
|
#newItem.setData(Qt.UserRole, unicode(message, 'utf-8)')) # No longer hold the message in the table; we'll use a SQL query to display it as needed.
|
||||||
self.ui.tableWidgetSent.setItem(0, 2, newItem)
|
self.ui.tableWidgetInbox.setItem(0, 2, newItem)
|
||||||
# newItem = QtGui.QTableWidgetItem('Doing work necessary to send
|
# newItem = QtGui.QTableWidgetItem('Doing work necessary to send
|
||||||
# broadcast...'+
|
# broadcast...'+
|
||||||
# l10n.formatTimestamp())
|
# l10n.formatTimestamp())
|
||||||
|
@ -2160,9 +2137,9 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
newItem.setToolTip(_translate("MainWindow", "Work is queued. %1").arg(l10n.formatTimestamp()))
|
newItem.setToolTip(_translate("MainWindow", "Work is queued. %1").arg(l10n.formatTimestamp()))
|
||||||
newItem.setData(Qt.UserRole, QByteArray(ackdata))
|
newItem.setData(Qt.UserRole, QByteArray(ackdata))
|
||||||
newItem.setData(33, int(time.time()))
|
newItem.setData(33, int(time.time()))
|
||||||
self.ui.tableWidgetSent.setItem(0, 3, newItem)
|
self.ui.tableWidgetInbox.setItem(0, 3, newItem)
|
||||||
self.ui.textEditSentMessage.setPlainText(unicode(message, 'utf-8)'))
|
self.ui.textEditSentMessage.setPlainText(unicode(message, 'utf-8)'))
|
||||||
self.ui.tableWidgetSent.setSortingEnabled(True)
|
self.ui.tableWidgetInbox.setSortingEnabled(True)
|
||||||
|
|
||||||
def displayNewInboxMessage(self, inventoryHash, toAddress, fromAddress, subject, message):
|
def displayNewInboxMessage(self, inventoryHash, toAddress, fromAddress, subject, message):
|
||||||
subject = shared.fixPotentiallyInvalidUTF8Data(subject)
|
subject = shared.fixPotentiallyInvalidUTF8Data(subject)
|
||||||
|
@ -2773,17 +2750,15 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
messageAtCurrentInboxRow, = row
|
messageAtCurrentInboxRow, = row
|
||||||
if toAddressAtCurrentInboxRow == self.str_broadcast_subscribers:
|
if toAddressAtCurrentInboxRow == self.str_broadcast_subscribers:
|
||||||
self.ui.labelFrom.setText('')
|
#TODO what does this if?..
|
||||||
|
a = a
|
||||||
elif not shared.config.has_section(toAddressAtCurrentInboxRow):
|
elif not shared.config.has_section(toAddressAtCurrentInboxRow):
|
||||||
QtGui.QMessageBox.information(self, _translate("MainWindow", "Address is gone"), _translate(
|
QtGui.QMessageBox.information(self, _translate("MainWindow", "Address is gone"), _translate(
|
||||||
"MainWindow", "Bitmessage cannot find your address %1. Perhaps you removed it?").arg(toAddressAtCurrentInboxRow), QMessageBox.Ok)
|
"MainWindow", "Bitmessage cannot find your address %1. Perhaps you removed it?").arg(toAddressAtCurrentInboxRow), QMessageBox.Ok)
|
||||||
self.ui.labelFrom.setText('')
|
|
||||||
elif not shared.config.getboolean(toAddressAtCurrentInboxRow, 'enabled'):
|
elif not shared.config.getboolean(toAddressAtCurrentInboxRow, 'enabled'):
|
||||||
QtGui.QMessageBox.information(self, _translate("MainWindow", "Address disabled"), _translate(
|
QtGui.QMessageBox.information(self, _translate("MainWindow", "Address disabled"), _translate(
|
||||||
"MainWindow", "Error: The address from which you are trying to send is disabled. You\'ll have to enable it on the \'Your Identities\' tab before using it."), QMessageBox.Ok)
|
"MainWindow", "Error: The address from which you are trying to send is disabled. You\'ll have to enable it on the \'Your Identities\' tab before using it."), QMessageBox.Ok)
|
||||||
self.ui.labelFrom.setText('')
|
|
||||||
else:
|
else:
|
||||||
self.ui.labelFrom.setText(toAddressAtCurrentInboxRow)
|
|
||||||
self.setBroadcastEnablementDependingOnWhetherThisIsAChanAddress(toAddressAtCurrentInboxRow)
|
self.setBroadcastEnablementDependingOnWhetherThisIsAChanAddress(toAddressAtCurrentInboxRow)
|
||||||
|
|
||||||
self.ui.lineEditTo.setText(str(fromAddressAtCurrentInboxRow))
|
self.ui.lineEditTo.setText(str(fromAddressAtCurrentInboxRow))
|
||||||
|
@ -2887,23 +2862,23 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
|
|
||||||
# Send item on the Sent tab to trash
|
# Send item on the Sent tab to trash
|
||||||
def on_action_SentTrash(self):
|
def on_action_SentTrash(self):
|
||||||
while self.ui.tableWidgetSent.selectedIndexes() != []:
|
while self.ui.tableWidgetInbox.selectedIndexes() != []:
|
||||||
currentRow = self.ui.tableWidgetSent.selectedIndexes()[0].row()
|
currentRow = self.ui.tableWidgetInbox.selectedIndexes()[0].row()
|
||||||
ackdataToTrash = str(self.ui.tableWidgetSent.item(
|
ackdataToTrash = str(self.ui.tableWidgetInbox.item(
|
||||||
currentRow, 3).data(Qt.UserRole).toPyObject())
|
currentRow, 3).data(Qt.UserRole).toPyObject())
|
||||||
sqlExecute('''UPDATE sent SET folder='trash' WHERE ackdata=?''', ackdataToTrash)
|
sqlExecute('''UPDATE sent SET folder='trash' WHERE ackdata=?''', ackdataToTrash)
|
||||||
self.ui.textEditSentMessage.setPlainText("")
|
self.ui.textEditSentMessage.setPlainText("")
|
||||||
self.ui.tableWidgetSent.removeRow(currentRow)
|
self.ui.tableWidgetInbox.removeRow(currentRow)
|
||||||
self.statusBar().showMessage(_translate(
|
self.statusBar().showMessage(_translate(
|
||||||
"MainWindow", "Moved items to trash. There is no user interface to view your trash, but it is still on disk if you are desperate to get it back."))
|
"MainWindow", "Moved items to trash. There is no user interface to view your trash, but it is still on disk if you are desperate to get it back."))
|
||||||
if currentRow == 0:
|
if currentRow == 0:
|
||||||
self.ui.tableWidgetSent.selectRow(currentRow)
|
self.ui.tableWidgetInbox.selectRow(currentRow)
|
||||||
else:
|
else:
|
||||||
self.ui.tableWidgetSent.selectRow(currentRow - 1)
|
self.ui.tableWidgetInbox.selectRow(currentRow - 1)
|
||||||
|
|
||||||
def on_action_ForceSend(self):
|
def on_action_ForceSend(self):
|
||||||
currentRow = self.ui.tableWidgetSent.currentRow()
|
currentRow = self.ui.tableWidgetInbox.currentRow()
|
||||||
addressAtCurrentRow = str(self.ui.tableWidgetSent.item(
|
addressAtCurrentRow = str(self.ui.tableWidgetInbox.item(
|
||||||
currentRow, 0).data(Qt.UserRole).toPyObject())
|
currentRow, 0).data(Qt.UserRole).toPyObject())
|
||||||
toRipe = decodeAddress(addressAtCurrentRow)[3]
|
toRipe = decodeAddress(addressAtCurrentRow)[3]
|
||||||
sqlExecute(
|
sqlExecute(
|
||||||
|
@ -2917,8 +2892,8 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
shared.workerQueue.put(('sendmessage', ''))
|
shared.workerQueue.put(('sendmessage', ''))
|
||||||
|
|
||||||
def on_action_SentClipboard(self):
|
def on_action_SentClipboard(self):
|
||||||
currentRow = self.ui.tableWidgetSent.currentRow()
|
currentRow = self.ui.tableWidgetInbox.currentRow()
|
||||||
addressAtCurrentRow = str(self.ui.tableWidgetSent.item(
|
addressAtCurrentRow = str(self.ui.tableWidgetInbox.item(
|
||||||
currentRow, 0).data(Qt.UserRole).toPyObject())
|
currentRow, 0).data(Qt.UserRole).toPyObject())
|
||||||
clipboard = QtGui.QApplication.clipboard()
|
clipboard = QtGui.QApplication.clipboard()
|
||||||
clipboard.setText(str(addressAtCurrentRow))
|
clipboard.setText(str(addressAtCurrentRow))
|
||||||
|
@ -3256,15 +3231,15 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
|
|
||||||
# Check to see if this item is toodifficult and display an additional
|
# Check to see if this item is toodifficult and display an additional
|
||||||
# menu option (Force Send) if it is.
|
# menu option (Force Send) if it is.
|
||||||
currentRow = self.ui.tableWidgetSent.currentRow()
|
currentRow = self.ui.tableWidgetInbox.currentRow()
|
||||||
ackData = str(self.ui.tableWidgetSent.item(
|
ackData = str(self.ui.tableWidgetInbox.item(
|
||||||
currentRow, 3).data(Qt.UserRole).toPyObject())
|
currentRow, 3).data(Qt.UserRole).toPyObject())
|
||||||
queryreturn = sqlQuery('''SELECT status FROM sent where ackdata=?''', ackData)
|
queryreturn = sqlQuery('''SELECT status FROM sent where ackdata=?''', ackData)
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
status, = row
|
status, = row
|
||||||
if status == 'toodifficult':
|
if status == 'toodifficult':
|
||||||
self.popMenuSent.addAction(self.actionForceSend)
|
self.popMenuSent.addAction(self.actionForceSend)
|
||||||
self.popMenuSent.exec_(self.ui.tableWidgetSent.mapToGlobal(point))
|
self.popMenuSent.exec_(self.ui.tableWidgetInbox.mapToGlobal(point))
|
||||||
|
|
||||||
def inboxSearchLineEditPressed(self):
|
def inboxSearchLineEditPressed(self):
|
||||||
searchKeyword = self.ui.inboxSearchLineEdit.text().toUtf8().data()
|
searchKeyword = self.ui.inboxSearchLineEdit.text().toUtf8().data()
|
||||||
|
@ -3273,13 +3248,6 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
self.ui.textEditInboxMessage.setPlainText(QString(""))
|
self.ui.textEditInboxMessage.setPlainText(QString(""))
|
||||||
self.loadInbox(searchOption, searchKeyword)
|
self.loadInbox(searchOption, searchKeyword)
|
||||||
|
|
||||||
def sentSearchLineEditPressed(self):
|
|
||||||
searchKeyword = self.ui.sentSearchLineEdit.text().toUtf8().data()
|
|
||||||
searchOption = self.ui.sentSearchOptionCB.currentText().toUtf8().data()
|
|
||||||
self.ui.sentSearchLineEdit.setText(QString(""))
|
|
||||||
self.ui.textEditInboxMessage.setPlainText(QString(""))
|
|
||||||
self.loadSent(searchOption, searchKeyword)
|
|
||||||
|
|
||||||
def tableWidgetInboxItemClicked(self):
|
def tableWidgetInboxItemClicked(self):
|
||||||
currentRow = self.ui.tableWidgetInbox.currentRow()
|
currentRow = self.ui.tableWidgetInbox.currentRow()
|
||||||
if currentRow >= 0:
|
if currentRow >= 0:
|
||||||
|
@ -3327,10 +3295,10 @@ more work your computer must do to send the message. A Time-To-Live of four or f
|
||||||
sqlExecute('''update inbox set read=1 WHERE msgid=?''', inventoryHash)
|
sqlExecute('''update inbox set read=1 WHERE msgid=?''', inventoryHash)
|
||||||
self.changedInboxUnread()
|
self.changedInboxUnread()
|
||||||
|
|
||||||
def tableWidgetSentItemClicked(self):
|
def tableWidgetInboxItemClicked(self):
|
||||||
currentRow = self.ui.tableWidgetSent.currentRow()
|
currentRow = self.ui.tableWidgetInbox.currentRow()
|
||||||
if currentRow >= 0:
|
if currentRow >= 0:
|
||||||
ackdata = str(self.ui.tableWidgetSent.item(
|
ackdata = str(self.ui.tableWidgetInbox.item(
|
||||||
currentRow, 3).data(Qt.UserRole).toPyObject())
|
currentRow, 3).data(Qt.UserRole).toPyObject())
|
||||||
queryreturn = sqlQuery(
|
queryreturn = sqlQuery(
|
||||||
'''select message from sent where ackdata=?''', ackdata)
|
'''select message from sent where ackdata=?''', ackdata)
|
||||||
|
@ -3655,8 +3623,8 @@ class settingsDialog(QtGui.QDialog):
|
||||||
responseStatus = response[0]
|
responseStatus = response[0]
|
||||||
responseText = response[1]
|
responseText = response[1]
|
||||||
self.ui.labelNamecoinTestResult.setText(responseText)
|
self.ui.labelNamecoinTestResult.setText(responseText)
|
||||||
if responseStatus== 'success':
|
#if responseStatus== 'success':
|
||||||
self.parent.ui.pushButtonFetchNamecoinID.show()
|
#self.parent.ui.pushButtonFetchNamecoinID.show()
|
||||||
|
|
||||||
|
|
||||||
class SpecialAddressBehaviorDialog(QtGui.QDialog):
|
class SpecialAddressBehaviorDialog(QtGui.QDialog):
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Form implementation generated from reading ui file 'bitmessageui.ui'
|
# Form implementation generated from reading ui file 'bmail.ui'
|
||||||
#
|
#
|
||||||
# Created: Sun Mar 08 22:07:43 2015
|
# Created: Sun Mar 1 23:18:09 2015
|
||||||
# by: PyQt4 UI code generator 4.10.3
|
# by: PyQt4 UI code generator 4.10.4
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
|
||||||
|
@ -33,9 +33,8 @@ class Ui_MainWindow(object):
|
||||||
MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
|
MainWindow.setTabShape(QtGui.QTabWidget.Rounded)
|
||||||
self.centralwidget = QtGui.QWidget(MainWindow)
|
self.centralwidget = QtGui.QWidget(MainWindow)
|
||||||
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
||||||
self.gridLayout = QtGui.QGridLayout(self.centralwidget)
|
self.gridLayout_10 = QtGui.QGridLayout(self.centralwidget)
|
||||||
self.gridLayout.setMargin(0)
|
self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10"))
|
||||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
|
||||||
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
|
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
@ -52,27 +51,34 @@ class Ui_MainWindow(object):
|
||||||
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
|
||||||
self.inbox = QtGui.QWidget()
|
self.inbox = QtGui.QWidget()
|
||||||
self.inbox.setObjectName(_fromUtf8("inbox"))
|
self.inbox.setObjectName(_fromUtf8("inbox"))
|
||||||
self.verticalLayout_2 = QtGui.QVBoxLayout(self.inbox)
|
self.gridLayout = QtGui.QGridLayout(self.inbox)
|
||||||
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||||
|
self.horizontalLayout_3 = QtGui.QHBoxLayout()
|
||||||
|
self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
|
||||||
|
self.verticalLayout_12 = QtGui.QVBoxLayout()
|
||||||
|
self.verticalLayout_12.setObjectName(_fromUtf8("verticalLayout_12"))
|
||||||
|
self.treeWidgetYourIdentities = QtGui.QTreeWidget(self.inbox)
|
||||||
|
self.treeWidgetYourIdentities.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
|
self.treeWidgetYourIdentities.setObjectName(_fromUtf8("treeWidgetYourIdentities"))
|
||||||
|
icon1 = QtGui.QIcon()
|
||||||
|
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/identities.png")), QtGui.QIcon.Selected, QtGui.QIcon.Off)
|
||||||
|
self.treeWidgetYourIdentities.headerItem().setIcon(0, icon1)
|
||||||
|
self.verticalLayout_12.addWidget(self.treeWidgetYourIdentities)
|
||||||
|
self.pushButtonNewAddress = QtGui.QPushButton(self.inbox)
|
||||||
|
self.pushButtonNewAddress.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
|
self.pushButtonNewAddress.setObjectName(_fromUtf8("pushButtonNewAddress"))
|
||||||
|
self.verticalLayout_12.addWidget(self.pushButtonNewAddress)
|
||||||
|
self.horizontalLayout_3.addLayout(self.verticalLayout_12)
|
||||||
|
self.verticalLayout_11 = QtGui.QVBoxLayout()
|
||||||
|
self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11"))
|
||||||
self.horizontalLayoutSearch = QtGui.QHBoxLayout()
|
self.horizontalLayoutSearch = QtGui.QHBoxLayout()
|
||||||
self.horizontalLayoutSearch.setContentsMargins(-1, 0, -1, -1)
|
self.horizontalLayoutSearch.setContentsMargins(-1, 0, -1, -1)
|
||||||
self.horizontalLayoutSearch.setObjectName(_fromUtf8("horizontalLayoutSearch"))
|
self.horizontalLayoutSearch.setObjectName(_fromUtf8("horizontalLayoutSearch"))
|
||||||
self.inboxSearchLineEdit = QtGui.QLineEdit(self.inbox)
|
self.inboxSearchLineEdit = QtGui.QLineEdit(self.inbox)
|
||||||
self.inboxSearchLineEdit.setObjectName(_fromUtf8("inboxSearchLineEdit"))
|
self.inboxSearchLineEdit.setObjectName(_fromUtf8("inboxSearchLineEdit"))
|
||||||
self.horizontalLayoutSearch.addWidget(self.inboxSearchLineEdit)
|
self.horizontalLayoutSearch.addWidget(self.inboxSearchLineEdit)
|
||||||
self.inboxSearchOptionCB = QtGui.QComboBox(self.inbox)
|
self.verticalLayout_11.addLayout(self.horizontalLayoutSearch)
|
||||||
self.inboxSearchOptionCB.setObjectName(_fromUtf8("inboxSearchOptionCB"))
|
self.tableWidgetInbox = QtGui.QTableWidget(self.inbox)
|
||||||
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
|
||||||
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
|
||||||
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
|
||||||
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
|
||||||
self.inboxSearchOptionCB.addItem(_fromUtf8(""))
|
|
||||||
self.horizontalLayoutSearch.addWidget(self.inboxSearchOptionCB)
|
|
||||||
self.verticalLayout_2.addLayout(self.horizontalLayoutSearch)
|
|
||||||
self.splitter = QtGui.QSplitter(self.inbox)
|
|
||||||
self.splitter.setOrientation(QtCore.Qt.Vertical)
|
|
||||||
self.splitter.setObjectName(_fromUtf8("splitter"))
|
|
||||||
self.tableWidgetInbox = QtGui.QTableWidget(self.splitter)
|
|
||||||
self.tableWidgetInbox.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
self.tableWidgetInbox.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
||||||
self.tableWidgetInbox.setAlternatingRowColors(True)
|
self.tableWidgetInbox.setAlternatingRowColors(True)
|
||||||
self.tableWidgetInbox.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
self.tableWidgetInbox.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||||
|
@ -97,191 +103,212 @@ class Ui_MainWindow(object):
|
||||||
self.tableWidgetInbox.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetInbox.horizontalHeader().setStretchLastSection(True)
|
||||||
self.tableWidgetInbox.verticalHeader().setVisible(False)
|
self.tableWidgetInbox.verticalHeader().setVisible(False)
|
||||||
self.tableWidgetInbox.verticalHeader().setDefaultSectionSize(26)
|
self.tableWidgetInbox.verticalHeader().setDefaultSectionSize(26)
|
||||||
self.textEditInboxMessage = QtGui.QTextEdit(self.splitter)
|
self.verticalLayout_11.addWidget(self.tableWidgetInbox)
|
||||||
|
self.textEditInboxMessage = QtGui.QTextEdit(self.inbox)
|
||||||
self.textEditInboxMessage.setBaseSize(QtCore.QSize(0, 500))
|
self.textEditInboxMessage.setBaseSize(QtCore.QSize(0, 500))
|
||||||
self.textEditInboxMessage.setReadOnly(True)
|
self.textEditInboxMessage.setReadOnly(True)
|
||||||
self.textEditInboxMessage.setObjectName(_fromUtf8("textEditInboxMessage"))
|
self.textEditInboxMessage.setObjectName(_fromUtf8("textEditInboxMessage"))
|
||||||
self.verticalLayout_2.addWidget(self.splitter)
|
self.verticalLayout_11.addWidget(self.textEditInboxMessage)
|
||||||
icon1 = QtGui.QIcon()
|
self.horizontalLayout_3.addLayout(self.verticalLayout_11)
|
||||||
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/inbox.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
self.gridLayout.addLayout(self.horizontalLayout_3, 0, 0, 1, 1)
|
||||||
self.tabWidget.addTab(self.inbox, icon1, _fromUtf8(""))
|
icon2 = QtGui.QIcon()
|
||||||
|
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/inbox.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
|
self.tabWidget.addTab(self.inbox, icon2, _fromUtf8(""))
|
||||||
self.send = QtGui.QWidget()
|
self.send = QtGui.QWidget()
|
||||||
self.send.setObjectName(_fromUtf8("send"))
|
self.send.setObjectName(_fromUtf8("send"))
|
||||||
self.gridLayout_2 = QtGui.QGridLayout(self.send)
|
self.gridLayout_11 = QtGui.QGridLayout(self.send)
|
||||||
|
self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11"))
|
||||||
|
self.horizontalLayout = QtGui.QHBoxLayout()
|
||||||
|
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
||||||
|
self.verticalLayout_2 = QtGui.QVBoxLayout()
|
||||||
|
self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
|
||||||
|
self.tableWidgetAddressBook = QtGui.QTableWidget(self.send)
|
||||||
|
self.tableWidgetAddressBook.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
|
self.tableWidgetAddressBook.setAlternatingRowColors(True)
|
||||||
|
self.tableWidgetAddressBook.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||||
|
self.tableWidgetAddressBook.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
||||||
|
self.tableWidgetAddressBook.setObjectName(_fromUtf8("tableWidgetAddressBook"))
|
||||||
|
self.tableWidgetAddressBook.setColumnCount(2)
|
||||||
|
self.tableWidgetAddressBook.setRowCount(0)
|
||||||
|
item = QtGui.QTableWidgetItem()
|
||||||
|
icon3 = QtGui.QIcon()
|
||||||
|
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/addressbook.png")), QtGui.QIcon.Selected, QtGui.QIcon.Off)
|
||||||
|
item.setIcon(icon3)
|
||||||
|
self.tableWidgetAddressBook.setHorizontalHeaderItem(0, item)
|
||||||
|
item = QtGui.QTableWidgetItem()
|
||||||
|
self.tableWidgetAddressBook.setHorizontalHeaderItem(1, item)
|
||||||
|
self.tableWidgetAddressBook.horizontalHeader().setCascadingSectionResizes(True)
|
||||||
|
self.tableWidgetAddressBook.horizontalHeader().setDefaultSectionSize(200)
|
||||||
|
self.tableWidgetAddressBook.horizontalHeader().setHighlightSections(False)
|
||||||
|
self.tableWidgetAddressBook.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.tableWidgetAddressBook.verticalHeader().setVisible(False)
|
||||||
|
self.verticalLayout_2.addWidget(self.tableWidgetAddressBook)
|
||||||
|
self.pushButtonAddAddressBook = QtGui.QPushButton(self.send)
|
||||||
|
self.pushButtonAddAddressBook.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
|
self.pushButtonAddAddressBook.setObjectName(_fromUtf8("pushButtonAddAddressBook"))
|
||||||
|
self.verticalLayout_2.addWidget(self.pushButtonAddAddressBook)
|
||||||
|
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
||||||
|
self.tabWidget_2 = QtGui.QTabWidget(self.send)
|
||||||
|
self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2"))
|
||||||
|
self.tab = QtGui.QWidget()
|
||||||
|
self.tab.setObjectName(_fromUtf8("tab"))
|
||||||
|
self.gridLayout_8 = QtGui.QGridLayout(self.tab)
|
||||||
|
self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8"))
|
||||||
|
self.verticalLayout = QtGui.QVBoxLayout()
|
||||||
|
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
||||||
|
self.gridLayout_2 = QtGui.QGridLayout()
|
||||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||||
self.pushButtonLoadFromAddressBook = QtGui.QPushButton(self.send)
|
self.comboBoxSendFrom = QtGui.QComboBox(self.tab)
|
||||||
font = QtGui.QFont()
|
|
||||||
font.setPointSize(7)
|
|
||||||
self.pushButtonLoadFromAddressBook.setFont(font)
|
|
||||||
self.pushButtonLoadFromAddressBook.setObjectName(_fromUtf8("pushButtonLoadFromAddressBook"))
|
|
||||||
self.gridLayout_2.addWidget(self.pushButtonLoadFromAddressBook, 3, 2, 1, 1)
|
|
||||||
self.label_3 = QtGui.QLabel(self.send)
|
|
||||||
self.label_3.setObjectName(_fromUtf8("label_3"))
|
|
||||||
self.gridLayout_2.addWidget(self.label_3, 4, 0, 1, 1)
|
|
||||||
self.pushButtonSend = QtGui.QPushButton(self.send)
|
|
||||||
self.pushButtonSend.setObjectName(_fromUtf8("pushButtonSend"))
|
|
||||||
self.gridLayout_2.addWidget(self.pushButtonSend, 7, 8, 1, 1)
|
|
||||||
self.horizontalSliderTTL = QtGui.QSlider(self.send)
|
|
||||||
self.horizontalSliderTTL.setMinimumSize(QtCore.QSize(35, 0))
|
|
||||||
self.horizontalSliderTTL.setMaximumSize(QtCore.QSize(70, 16777215))
|
|
||||||
self.horizontalSliderTTL.setOrientation(QtCore.Qt.Horizontal)
|
|
||||||
self.horizontalSliderTTL.setInvertedAppearance(False)
|
|
||||||
self.horizontalSliderTTL.setInvertedControls(False)
|
|
||||||
self.horizontalSliderTTL.setObjectName(_fromUtf8("horizontalSliderTTL"))
|
|
||||||
self.gridLayout_2.addWidget(self.horizontalSliderTTL, 7, 6, 1, 1)
|
|
||||||
spacerItem = QtGui.QSpacerItem(20, 297, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
|
||||||
self.gridLayout_2.addItem(spacerItem, 6, 0, 1, 1)
|
|
||||||
self.comboBoxSendFrom = QtGui.QComboBox(self.send)
|
|
||||||
self.comboBoxSendFrom.setMinimumSize(QtCore.QSize(300, 0))
|
self.comboBoxSendFrom.setMinimumSize(QtCore.QSize(300, 0))
|
||||||
self.comboBoxSendFrom.setObjectName(_fromUtf8("comboBoxSendFrom"))
|
self.comboBoxSendFrom.setObjectName(_fromUtf8("comboBoxSendFrom"))
|
||||||
self.gridLayout_2.addWidget(self.comboBoxSendFrom, 2, 1, 1, 1)
|
self.gridLayout_2.addWidget(self.comboBoxSendFrom, 0, 1, 1, 1)
|
||||||
self.labelHumanFriendlyTTLDescription = QtGui.QLabel(self.send)
|
self.label = QtGui.QLabel(self.tab)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Preferred)
|
|
||||||
sizePolicy.setHorizontalStretch(0)
|
|
||||||
sizePolicy.setVerticalStretch(0)
|
|
||||||
sizePolicy.setHeightForWidth(self.labelHumanFriendlyTTLDescription.sizePolicy().hasHeightForWidth())
|
|
||||||
self.labelHumanFriendlyTTLDescription.setSizePolicy(sizePolicy)
|
|
||||||
self.labelHumanFriendlyTTLDescription.setMinimumSize(QtCore.QSize(45, 0))
|
|
||||||
self.labelHumanFriendlyTTLDescription.setMaximumSize(QtCore.QSize(45, 16777215))
|
|
||||||
self.labelHumanFriendlyTTLDescription.setObjectName(_fromUtf8("labelHumanFriendlyTTLDescription"))
|
|
||||||
self.gridLayout_2.addWidget(self.labelHumanFriendlyTTLDescription, 7, 7, 1, 1)
|
|
||||||
self.label_4 = QtGui.QLabel(self.send)
|
|
||||||
self.label_4.setObjectName(_fromUtf8("label_4"))
|
|
||||||
self.gridLayout_2.addWidget(self.label_4, 5, 0, 1, 1)
|
|
||||||
self.label = QtGui.QLabel(self.send)
|
|
||||||
self.label.setObjectName(_fromUtf8("label"))
|
self.label.setObjectName(_fromUtf8("label"))
|
||||||
self.gridLayout_2.addWidget(self.label, 3, 0, 1, 1)
|
self.gridLayout_2.addWidget(self.label, 1, 0, 1, 1)
|
||||||
self.radioButtonSpecific = QtGui.QRadioButton(self.send)
|
self.lineEditTo = QtGui.QLineEdit(self.tab)
|
||||||
self.radioButtonSpecific.setChecked(True)
|
|
||||||
self.radioButtonSpecific.setObjectName(_fromUtf8("radioButtonSpecific"))
|
|
||||||
self.gridLayout_2.addWidget(self.radioButtonSpecific, 0, 1, 1, 1)
|
|
||||||
self.labelSendBroadcastWarning = QtGui.QLabel(self.send)
|
|
||||||
self.labelSendBroadcastWarning.setEnabled(True)
|
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Preferred)
|
|
||||||
sizePolicy.setHorizontalStretch(0)
|
|
||||||
sizePolicy.setVerticalStretch(0)
|
|
||||||
sizePolicy.setHeightForWidth(self.labelSendBroadcastWarning.sizePolicy().hasHeightForWidth())
|
|
||||||
self.labelSendBroadcastWarning.setSizePolicy(sizePolicy)
|
|
||||||
self.labelSendBroadcastWarning.setIndent(-1)
|
|
||||||
self.labelSendBroadcastWarning.setObjectName(_fromUtf8("labelSendBroadcastWarning"))
|
|
||||||
self.gridLayout_2.addWidget(self.labelSendBroadcastWarning, 7, 1, 1, 4)
|
|
||||||
self.radioButtonBroadcast = QtGui.QRadioButton(self.send)
|
|
||||||
self.radioButtonBroadcast.setObjectName(_fromUtf8("radioButtonBroadcast"))
|
|
||||||
self.gridLayout_2.addWidget(self.radioButtonBroadcast, 1, 1, 1, 2)
|
|
||||||
self.pushButtonTTL = QtGui.QPushButton(self.send)
|
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
|
|
||||||
sizePolicy.setHorizontalStretch(0)
|
|
||||||
sizePolicy.setVerticalStretch(0)
|
|
||||||
sizePolicy.setHeightForWidth(self.pushButtonTTL.sizePolicy().hasHeightForWidth())
|
|
||||||
self.pushButtonTTL.setSizePolicy(sizePolicy)
|
|
||||||
self.pushButtonTTL.setMaximumSize(QtCore.QSize(32, 16777215))
|
|
||||||
palette = QtGui.QPalette()
|
|
||||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 255))
|
|
||||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
||||||
palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush)
|
|
||||||
brush = QtGui.QBrush(QtGui.QColor(0, 0, 255))
|
|
||||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
||||||
palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush)
|
|
||||||
brush = QtGui.QBrush(QtGui.QColor(120, 120, 120))
|
|
||||||
brush.setStyle(QtCore.Qt.SolidPattern)
|
|
||||||
palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush)
|
|
||||||
self.pushButtonTTL.setPalette(palette)
|
|
||||||
font = QtGui.QFont()
|
|
||||||
font.setUnderline(True)
|
|
||||||
self.pushButtonTTL.setFont(font)
|
|
||||||
self.pushButtonTTL.setFlat(True)
|
|
||||||
self.pushButtonTTL.setObjectName(_fromUtf8("pushButtonTTL"))
|
|
||||||
self.gridLayout_2.addWidget(self.pushButtonTTL, 7, 5, 1, 1)
|
|
||||||
self.label_2 = QtGui.QLabel(self.send)
|
|
||||||
self.label_2.setObjectName(_fromUtf8("label_2"))
|
|
||||||
self.gridLayout_2.addWidget(self.label_2, 2, 0, 1, 1)
|
|
||||||
self.lineEditTo = QtGui.QLineEdit(self.send)
|
|
||||||
self.lineEditTo.setObjectName(_fromUtf8("lineEditTo"))
|
self.lineEditTo.setObjectName(_fromUtf8("lineEditTo"))
|
||||||
self.gridLayout_2.addWidget(self.lineEditTo, 3, 1, 1, 1)
|
self.gridLayout_2.addWidget(self.lineEditTo, 1, 1, 1, 1)
|
||||||
self.textEditMessage = QtGui.QTextEdit(self.send)
|
self.label_3 = QtGui.QLabel(self.tab)
|
||||||
self.textEditMessage.setObjectName(_fromUtf8("textEditMessage"))
|
self.label_3.setObjectName(_fromUtf8("label_3"))
|
||||||
self.gridLayout_2.addWidget(self.textEditMessage, 5, 1, 2, 8)
|
self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
|
||||||
self.pushButtonFetchNamecoinID = QtGui.QPushButton(self.send)
|
self.label_2 = QtGui.QLabel(self.tab)
|
||||||
font = QtGui.QFont()
|
self.label_2.setObjectName(_fromUtf8("label_2"))
|
||||||
font.setPointSize(7)
|
self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
|
||||||
self.pushButtonFetchNamecoinID.setFont(font)
|
self.lineEditSubject = QtGui.QLineEdit(self.tab)
|
||||||
self.pushButtonFetchNamecoinID.setObjectName(_fromUtf8("pushButtonFetchNamecoinID"))
|
|
||||||
self.gridLayout_2.addWidget(self.pushButtonFetchNamecoinID, 3, 3, 1, 1)
|
|
||||||
self.labelFrom = QtGui.QLabel(self.send)
|
|
||||||
self.labelFrom.setText(_fromUtf8(""))
|
|
||||||
self.labelFrom.setObjectName(_fromUtf8("labelFrom"))
|
|
||||||
self.gridLayout_2.addWidget(self.labelFrom, 2, 2, 1, 7)
|
|
||||||
self.lineEditSubject = QtGui.QLineEdit(self.send)
|
|
||||||
self.lineEditSubject.setText(_fromUtf8(""))
|
self.lineEditSubject.setText(_fromUtf8(""))
|
||||||
self.lineEditSubject.setObjectName(_fromUtf8("lineEditSubject"))
|
self.lineEditSubject.setObjectName(_fromUtf8("lineEditSubject"))
|
||||||
self.gridLayout_2.addWidget(self.lineEditSubject, 4, 1, 1, 8)
|
self.gridLayout_2.addWidget(self.lineEditSubject, 2, 1, 1, 1)
|
||||||
icon2 = QtGui.QIcon()
|
self.verticalLayout.addLayout(self.gridLayout_2)
|
||||||
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/send.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
self.textEditMessage = QtGui.QTextEdit(self.tab)
|
||||||
self.tabWidget.addTab(self.send, icon2, _fromUtf8(""))
|
self.textEditMessage.setObjectName(_fromUtf8("textEditMessage"))
|
||||||
self.sent = QtGui.QWidget()
|
self.verticalLayout.addWidget(self.textEditMessage)
|
||||||
self.sent.setObjectName(_fromUtf8("sent"))
|
self.pushButtonSend = QtGui.QPushButton(self.tab)
|
||||||
self.verticalLayout = QtGui.QVBoxLayout(self.sent)
|
self.pushButtonSend.setObjectName(_fromUtf8("pushButtonSend"))
|
||||||
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
|
self.verticalLayout.addWidget(self.pushButtonSend)
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout()
|
self.gridLayout_8.addLayout(self.verticalLayout, 0, 0, 1, 1)
|
||||||
self.horizontalLayout.setContentsMargins(-1, 0, -1, -1)
|
self.tabWidget_2.addTab(self.tab, _fromUtf8(""))
|
||||||
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
|
self.tab_2 = QtGui.QWidget()
|
||||||
self.sentSearchLineEdit = QtGui.QLineEdit(self.sent)
|
self.tab_2.setObjectName(_fromUtf8("tab_2"))
|
||||||
self.sentSearchLineEdit.setObjectName(_fromUtf8("sentSearchLineEdit"))
|
self.gridLayout_9 = QtGui.QGridLayout(self.tab_2)
|
||||||
self.horizontalLayout.addWidget(self.sentSearchLineEdit)
|
self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9"))
|
||||||
self.sentSearchOptionCB = QtGui.QComboBox(self.sent)
|
self.verticalLayout_5 = QtGui.QVBoxLayout()
|
||||||
self.sentSearchOptionCB.setObjectName(_fromUtf8("sentSearchOptionCB"))
|
self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5"))
|
||||||
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
self.gridLayout_5 = QtGui.QGridLayout()
|
||||||
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
|
||||||
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
self.label_8 = QtGui.QLabel(self.tab_2)
|
||||||
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
self.label_8.setObjectName(_fromUtf8("label_8"))
|
||||||
self.sentSearchOptionCB.addItem(_fromUtf8(""))
|
self.gridLayout_5.addWidget(self.label_8, 0, 0, 1, 1)
|
||||||
self.horizontalLayout.addWidget(self.sentSearchOptionCB)
|
self.lineEditSubject_2 = QtGui.QLineEdit(self.tab_2)
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout)
|
self.lineEditSubject_2.setText(_fromUtf8(""))
|
||||||
self.splitter_2 = QtGui.QSplitter(self.sent)
|
self.lineEditSubject_2.setObjectName(_fromUtf8("lineEditSubject_2"))
|
||||||
self.splitter_2.setOrientation(QtCore.Qt.Vertical)
|
self.gridLayout_5.addWidget(self.lineEditSubject_2, 1, 1, 1, 1)
|
||||||
self.splitter_2.setObjectName(_fromUtf8("splitter_2"))
|
self.label_7 = QtGui.QLabel(self.tab_2)
|
||||||
self.tableWidgetSent = QtGui.QTableWidget(self.splitter_2)
|
self.label_7.setObjectName(_fromUtf8("label_7"))
|
||||||
self.tableWidgetSent.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
self.gridLayout_5.addWidget(self.label_7, 1, 0, 1, 1)
|
||||||
self.tableWidgetSent.setDragDropMode(QtGui.QAbstractItemView.DragDrop)
|
self.comboBoxSendFrom_2 = QtGui.QComboBox(self.tab_2)
|
||||||
self.tableWidgetSent.setAlternatingRowColors(True)
|
self.comboBoxSendFrom_2.setMinimumSize(QtCore.QSize(300, 0))
|
||||||
self.tableWidgetSent.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
self.comboBoxSendFrom_2.setObjectName(_fromUtf8("comboBoxSendFrom_2"))
|
||||||
self.tableWidgetSent.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
self.gridLayout_5.addWidget(self.comboBoxSendFrom_2, 0, 1, 1, 1)
|
||||||
self.tableWidgetSent.setWordWrap(False)
|
self.verticalLayout_5.addLayout(self.gridLayout_5)
|
||||||
self.tableWidgetSent.setObjectName(_fromUtf8("tableWidgetSent"))
|
self.textEditMessage_2 = QtGui.QTextEdit(self.tab_2)
|
||||||
self.tableWidgetSent.setColumnCount(4)
|
self.textEditMessage_2.setObjectName(_fromUtf8("textEditMessage_2"))
|
||||||
self.tableWidgetSent.setRowCount(0)
|
self.verticalLayout_5.addWidget(self.textEditMessage_2)
|
||||||
|
self.pushButtonSend_3 = QtGui.QPushButton(self.tab_2)
|
||||||
|
self.pushButtonSend_3.setObjectName(_fromUtf8("pushButtonSend_3"))
|
||||||
|
self.verticalLayout_5.addWidget(self.pushButtonSend_3)
|
||||||
|
self.gridLayout_9.addLayout(self.verticalLayout_5, 0, 0, 1, 1)
|
||||||
|
self.tabWidget_2.addTab(self.tab_2, _fromUtf8(""))
|
||||||
|
self.horizontalLayout.addWidget(self.tabWidget_2)
|
||||||
|
self.gridLayout_11.addLayout(self.horizontalLayout, 0, 0, 1, 1)
|
||||||
|
icon4 = QtGui.QIcon()
|
||||||
|
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/send.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
|
self.tabWidget.addTab(self.send, icon4, _fromUtf8(""))
|
||||||
|
self.subscriptions = QtGui.QWidget()
|
||||||
|
self.subscriptions.setObjectName(_fromUtf8("subscriptions"))
|
||||||
|
self.gridLayout_4 = QtGui.QGridLayout(self.subscriptions)
|
||||||
|
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
|
||||||
|
self.horizontalLayout_2 = QtGui.QHBoxLayout()
|
||||||
|
self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
|
||||||
|
self.verticalLayout_3 = QtGui.QVBoxLayout()
|
||||||
|
self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
|
||||||
|
self.tableWidgetSubscriptions = QtGui.QTableWidget(self.subscriptions)
|
||||||
|
self.tableWidgetSubscriptions.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
|
self.tableWidgetSubscriptions.setAlternatingRowColors(True)
|
||||||
|
self.tableWidgetSubscriptions.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
|
||||||
|
self.tableWidgetSubscriptions.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
||||||
|
self.tableWidgetSubscriptions.setObjectName(_fromUtf8("tableWidgetSubscriptions"))
|
||||||
|
self.tableWidgetSubscriptions.setColumnCount(2)
|
||||||
|
self.tableWidgetSubscriptions.setRowCount(0)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSent.setHorizontalHeaderItem(0, item)
|
icon5 = QtGui.QIcon()
|
||||||
|
icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/subscriptions.png")), QtGui.QIcon.Selected, QtGui.QIcon.Off)
|
||||||
|
item.setIcon(icon5)
|
||||||
|
self.tableWidgetSubscriptions.setHorizontalHeaderItem(0, item)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSent.setHorizontalHeaderItem(1, item)
|
self.tableWidgetSubscriptions.setHorizontalHeaderItem(1, item)
|
||||||
|
self.tableWidgetSubscriptions.horizontalHeader().setCascadingSectionResizes(True)
|
||||||
|
self.tableWidgetSubscriptions.horizontalHeader().setDefaultSectionSize(200)
|
||||||
|
self.tableWidgetSubscriptions.horizontalHeader().setHighlightSections(False)
|
||||||
|
self.tableWidgetSubscriptions.horizontalHeader().setSortIndicatorShown(False)
|
||||||
|
self.tableWidgetSubscriptions.horizontalHeader().setStretchLastSection(True)
|
||||||
|
self.tableWidgetSubscriptions.verticalHeader().setVisible(False)
|
||||||
|
self.verticalLayout_3.addWidget(self.tableWidgetSubscriptions)
|
||||||
|
self.pushButtonAddSubscription = QtGui.QPushButton(self.subscriptions)
|
||||||
|
self.pushButtonAddSubscription.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
|
self.pushButtonAddSubscription.setObjectName(_fromUtf8("pushButtonAddSubscription"))
|
||||||
|
self.verticalLayout_3.addWidget(self.pushButtonAddSubscription)
|
||||||
|
self.horizontalLayout_2.addLayout(self.verticalLayout_3)
|
||||||
|
self.verticalLayout_4 = QtGui.QVBoxLayout()
|
||||||
|
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
|
||||||
|
self.inboxSearchLineSubscriptions = QtGui.QLineEdit(self.subscriptions)
|
||||||
|
self.inboxSearchLineSubscriptions.setObjectName(_fromUtf8("inboxSearchLineSubscriptions"))
|
||||||
|
self.verticalLayout_4.addWidget(self.inboxSearchLineSubscriptions)
|
||||||
|
self.tableWidgetInboxSubscriptions = QtGui.QTableWidget(self.subscriptions)
|
||||||
|
self.tableWidgetInboxSubscriptions.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
||||||
|
self.tableWidgetInboxSubscriptions.setAlternatingRowColors(True)
|
||||||
|
self.tableWidgetInboxSubscriptions.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||||
|
self.tableWidgetInboxSubscriptions.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
||||||
|
self.tableWidgetInboxSubscriptions.setWordWrap(False)
|
||||||
|
self.tableWidgetInboxSubscriptions.setObjectName(_fromUtf8("tableWidgetInboxSubscriptions"))
|
||||||
|
self.tableWidgetInboxSubscriptions.setColumnCount(4)
|
||||||
|
self.tableWidgetInboxSubscriptions.setRowCount(0)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSent.setHorizontalHeaderItem(2, item)
|
self.tableWidgetInboxSubscriptions.setHorizontalHeaderItem(0, item)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSent.setHorizontalHeaderItem(3, item)
|
self.tableWidgetInboxSubscriptions.setHorizontalHeaderItem(1, item)
|
||||||
self.tableWidgetSent.horizontalHeader().setCascadingSectionResizes(True)
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSent.horizontalHeader().setDefaultSectionSize(130)
|
self.tableWidgetInboxSubscriptions.setHorizontalHeaderItem(2, item)
|
||||||
self.tableWidgetSent.horizontalHeader().setHighlightSections(False)
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSent.horizontalHeader().setSortIndicatorShown(False)
|
self.tableWidgetInboxSubscriptions.setHorizontalHeaderItem(3, item)
|
||||||
self.tableWidgetSent.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetInboxSubscriptions.horizontalHeader().setCascadingSectionResizes(True)
|
||||||
self.tableWidgetSent.verticalHeader().setVisible(False)
|
self.tableWidgetInboxSubscriptions.horizontalHeader().setDefaultSectionSize(200)
|
||||||
self.tableWidgetSent.verticalHeader().setStretchLastSection(False)
|
self.tableWidgetInboxSubscriptions.horizontalHeader().setHighlightSections(False)
|
||||||
self.textEditSentMessage = QtGui.QTextEdit(self.splitter_2)
|
self.tableWidgetInboxSubscriptions.horizontalHeader().setMinimumSectionSize(27)
|
||||||
self.textEditSentMessage.setReadOnly(True)
|
self.tableWidgetInboxSubscriptions.horizontalHeader().setSortIndicatorShown(False)
|
||||||
self.textEditSentMessage.setObjectName(_fromUtf8("textEditSentMessage"))
|
self.tableWidgetInboxSubscriptions.horizontalHeader().setStretchLastSection(True)
|
||||||
self.verticalLayout.addWidget(self.splitter_2)
|
self.tableWidgetInboxSubscriptions.verticalHeader().setVisible(False)
|
||||||
icon3 = QtGui.QIcon()
|
self.tableWidgetInboxSubscriptions.verticalHeader().setDefaultSectionSize(26)
|
||||||
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/sent.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
self.verticalLayout_4.addWidget(self.tableWidgetInboxSubscriptions)
|
||||||
self.tabWidget.addTab(self.sent, icon3, _fromUtf8(""))
|
self.textEditInboxSubscriptions = QtGui.QTextEdit(self.subscriptions)
|
||||||
self.youridentities = QtGui.QWidget()
|
self.textEditInboxSubscriptions.setBaseSize(QtCore.QSize(0, 500))
|
||||||
self.youridentities.setObjectName(_fromUtf8("youridentities"))
|
self.textEditInboxSubscriptions.setReadOnly(True)
|
||||||
self.gridLayout_3 = QtGui.QGridLayout(self.youridentities)
|
self.textEditInboxSubscriptions.setObjectName(_fromUtf8("textEditInboxSubscriptions"))
|
||||||
|
self.verticalLayout_4.addWidget(self.textEditInboxSubscriptions)
|
||||||
|
self.horizontalLayout_2.addLayout(self.verticalLayout_4)
|
||||||
|
self.gridLayout_4.addLayout(self.horizontalLayout_2, 0, 0, 1, 1)
|
||||||
|
icon6 = QtGui.QIcon()
|
||||||
|
icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/subscriptions.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
|
self.tabWidget.addTab(self.subscriptions, icon6, _fromUtf8(""))
|
||||||
|
self.tab_3 = QtGui.QWidget()
|
||||||
|
self.tab_3.setObjectName(_fromUtf8("tab_3"))
|
||||||
|
self.gridLayout_3 = QtGui.QGridLayout(self.tab_3)
|
||||||
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
|
self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
|
||||||
self.pushButtonNewAddress = QtGui.QPushButton(self.youridentities)
|
self.horizontalLayout_4 = QtGui.QHBoxLayout()
|
||||||
self.pushButtonNewAddress.setObjectName(_fromUtf8("pushButtonNewAddress"))
|
self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
|
||||||
self.gridLayout_3.addWidget(self.pushButtonNewAddress, 0, 0, 1, 1)
|
self.verticalLayout_17 = QtGui.QVBoxLayout()
|
||||||
spacerItem1 = QtGui.QSpacerItem(689, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
self.verticalLayout_17.setObjectName(_fromUtf8("verticalLayout_17"))
|
||||||
self.gridLayout_3.addItem(spacerItem1, 0, 1, 1, 1)
|
self.tableWidgetYourIdentities = QtGui.QTableWidget(self.tab_3)
|
||||||
self.tableWidgetYourIdentities = QtGui.QTableWidget(self.youridentities)
|
self.tableWidgetYourIdentities.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
self.tableWidgetYourIdentities.setFrameShadow(QtGui.QFrame.Sunken)
|
self.tableWidgetYourIdentities.setFrameShadow(QtGui.QFrame.Sunken)
|
||||||
self.tableWidgetYourIdentities.setLineWidth(1)
|
self.tableWidgetYourIdentities.setLineWidth(1)
|
||||||
self.tableWidgetYourIdentities.setAlternatingRowColors(True)
|
self.tableWidgetYourIdentities.setAlternatingRowColors(True)
|
||||||
|
@ -294,13 +321,14 @@ class Ui_MainWindow(object):
|
||||||
font = QtGui.QFont()
|
font = QtGui.QFont()
|
||||||
font.setKerning(True)
|
font.setKerning(True)
|
||||||
item.setFont(font)
|
item.setFont(font)
|
||||||
|
item.setIcon(icon1)
|
||||||
self.tableWidgetYourIdentities.setHorizontalHeaderItem(0, item)
|
self.tableWidgetYourIdentities.setHorizontalHeaderItem(0, item)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetYourIdentities.setHorizontalHeaderItem(1, item)
|
self.tableWidgetYourIdentities.setHorizontalHeaderItem(1, item)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetYourIdentities.setHorizontalHeaderItem(2, item)
|
self.tableWidgetYourIdentities.setHorizontalHeaderItem(2, item)
|
||||||
self.tableWidgetYourIdentities.horizontalHeader().setCascadingSectionResizes(True)
|
self.tableWidgetYourIdentities.horizontalHeader().setCascadingSectionResizes(True)
|
||||||
self.tableWidgetYourIdentities.horizontalHeader().setDefaultSectionSize(346)
|
self.tableWidgetYourIdentities.horizontalHeader().setDefaultSectionSize(200)
|
||||||
self.tableWidgetYourIdentities.horizontalHeader().setMinimumSectionSize(52)
|
self.tableWidgetYourIdentities.horizontalHeader().setMinimumSectionSize(52)
|
||||||
self.tableWidgetYourIdentities.horizontalHeader().setSortIndicatorShown(True)
|
self.tableWidgetYourIdentities.horizontalHeader().setSortIndicatorShown(True)
|
||||||
self.tableWidgetYourIdentities.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetYourIdentities.horizontalHeader().setStretchLastSection(True)
|
||||||
|
@ -308,77 +336,57 @@ class Ui_MainWindow(object):
|
||||||
self.tableWidgetYourIdentities.verticalHeader().setDefaultSectionSize(26)
|
self.tableWidgetYourIdentities.verticalHeader().setDefaultSectionSize(26)
|
||||||
self.tableWidgetYourIdentities.verticalHeader().setSortIndicatorShown(False)
|
self.tableWidgetYourIdentities.verticalHeader().setSortIndicatorShown(False)
|
||||||
self.tableWidgetYourIdentities.verticalHeader().setStretchLastSection(False)
|
self.tableWidgetYourIdentities.verticalHeader().setStretchLastSection(False)
|
||||||
self.gridLayout_3.addWidget(self.tableWidgetYourIdentities, 1, 0, 1, 2)
|
self.verticalLayout_17.addWidget(self.tableWidgetYourIdentities)
|
||||||
icon4 = QtGui.QIcon()
|
self.pushButtonAddChanel = QtGui.QPushButton(self.tab_3)
|
||||||
icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/identities.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
self.pushButtonAddChanel.setMaximumSize(QtCore.QSize(200, 16777215))
|
||||||
self.tabWidget.addTab(self.youridentities, icon4, _fromUtf8(""))
|
self.pushButtonAddChanel.setObjectName(_fromUtf8("pushButtonAddChanel"))
|
||||||
self.subscriptions = QtGui.QWidget()
|
self.verticalLayout_17.addWidget(self.pushButtonAddChanel)
|
||||||
self.subscriptions.setObjectName(_fromUtf8("subscriptions"))
|
self.horizontalLayout_4.addLayout(self.verticalLayout_17)
|
||||||
self.gridLayout_4 = QtGui.QGridLayout(self.subscriptions)
|
self.verticalLayout_13 = QtGui.QVBoxLayout()
|
||||||
self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4"))
|
self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13"))
|
||||||
self.label_5 = QtGui.QLabel(self.subscriptions)
|
self.horizontalLayoutSearch_2 = QtGui.QHBoxLayout()
|
||||||
self.label_5.setWordWrap(True)
|
self.horizontalLayoutSearch_2.setContentsMargins(-1, 0, -1, -1)
|
||||||
self.label_5.setObjectName(_fromUtf8("label_5"))
|
self.horizontalLayoutSearch_2.setObjectName(_fromUtf8("horizontalLayoutSearch_2"))
|
||||||
self.gridLayout_4.addWidget(self.label_5, 0, 0, 1, 2)
|
self.inboxSearchLineEdit_2 = QtGui.QLineEdit(self.tab_3)
|
||||||
self.pushButtonAddSubscription = QtGui.QPushButton(self.subscriptions)
|
self.inboxSearchLineEdit_2.setObjectName(_fromUtf8("inboxSearchLineEdit_2"))
|
||||||
self.pushButtonAddSubscription.setObjectName(_fromUtf8("pushButtonAddSubscription"))
|
self.horizontalLayoutSearch_2.addWidget(self.inboxSearchLineEdit_2)
|
||||||
self.gridLayout_4.addWidget(self.pushButtonAddSubscription, 1, 0, 1, 1)
|
self.verticalLayout_13.addLayout(self.horizontalLayoutSearch_2)
|
||||||
spacerItem2 = QtGui.QSpacerItem(689, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
self.tableWidgetInbox_2 = QtGui.QTableWidget(self.tab_3)
|
||||||
self.gridLayout_4.addItem(spacerItem2, 1, 1, 1, 1)
|
self.tableWidgetInbox_2.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers)
|
||||||
self.tableWidgetSubscriptions = QtGui.QTableWidget(self.subscriptions)
|
self.tableWidgetInbox_2.setAlternatingRowColors(True)
|
||||||
self.tableWidgetSubscriptions.setAlternatingRowColors(True)
|
self.tableWidgetInbox_2.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
||||||
self.tableWidgetSubscriptions.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
|
self.tableWidgetInbox_2.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
||||||
self.tableWidgetSubscriptions.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
self.tableWidgetInbox_2.setWordWrap(False)
|
||||||
self.tableWidgetSubscriptions.setObjectName(_fromUtf8("tableWidgetSubscriptions"))
|
self.tableWidgetInbox_2.setObjectName(_fromUtf8("tableWidgetInbox_2"))
|
||||||
self.tableWidgetSubscriptions.setColumnCount(2)
|
self.tableWidgetInbox_2.setColumnCount(4)
|
||||||
self.tableWidgetSubscriptions.setRowCount(0)
|
self.tableWidgetInbox_2.setRowCount(0)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSubscriptions.setHorizontalHeaderItem(0, item)
|
self.tableWidgetInbox_2.setHorizontalHeaderItem(0, item)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetSubscriptions.setHorizontalHeaderItem(1, item)
|
self.tableWidgetInbox_2.setHorizontalHeaderItem(1, item)
|
||||||
self.tableWidgetSubscriptions.horizontalHeader().setCascadingSectionResizes(True)
|
|
||||||
self.tableWidgetSubscriptions.horizontalHeader().setDefaultSectionSize(400)
|
|
||||||
self.tableWidgetSubscriptions.horizontalHeader().setHighlightSections(False)
|
|
||||||
self.tableWidgetSubscriptions.horizontalHeader().setSortIndicatorShown(False)
|
|
||||||
self.tableWidgetSubscriptions.horizontalHeader().setStretchLastSection(True)
|
|
||||||
self.tableWidgetSubscriptions.verticalHeader().setVisible(False)
|
|
||||||
self.gridLayout_4.addWidget(self.tableWidgetSubscriptions, 2, 0, 1, 2)
|
|
||||||
icon5 = QtGui.QIcon()
|
|
||||||
icon5.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/subscriptions.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
||||||
self.tabWidget.addTab(self.subscriptions, icon5, _fromUtf8(""))
|
|
||||||
self.addressbook = QtGui.QWidget()
|
|
||||||
self.addressbook.setObjectName(_fromUtf8("addressbook"))
|
|
||||||
self.gridLayout_5 = QtGui.QGridLayout(self.addressbook)
|
|
||||||
self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5"))
|
|
||||||
self.label_6 = QtGui.QLabel(self.addressbook)
|
|
||||||
self.label_6.setWordWrap(True)
|
|
||||||
self.label_6.setObjectName(_fromUtf8("label_6"))
|
|
||||||
self.gridLayout_5.addWidget(self.label_6, 0, 0, 1, 2)
|
|
||||||
self.pushButtonAddAddressBook = QtGui.QPushButton(self.addressbook)
|
|
||||||
self.pushButtonAddAddressBook.setObjectName(_fromUtf8("pushButtonAddAddressBook"))
|
|
||||||
self.gridLayout_5.addWidget(self.pushButtonAddAddressBook, 1, 0, 1, 1)
|
|
||||||
spacerItem3 = QtGui.QSpacerItem(689, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
|
||||||
self.gridLayout_5.addItem(spacerItem3, 1, 1, 1, 1)
|
|
||||||
self.tableWidgetAddressBook = QtGui.QTableWidget(self.addressbook)
|
|
||||||
self.tableWidgetAddressBook.setAlternatingRowColors(True)
|
|
||||||
self.tableWidgetAddressBook.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
|
|
||||||
self.tableWidgetAddressBook.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
|
|
||||||
self.tableWidgetAddressBook.setObjectName(_fromUtf8("tableWidgetAddressBook"))
|
|
||||||
self.tableWidgetAddressBook.setColumnCount(2)
|
|
||||||
self.tableWidgetAddressBook.setRowCount(0)
|
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetAddressBook.setHorizontalHeaderItem(0, item)
|
self.tableWidgetInbox_2.setHorizontalHeaderItem(2, item)
|
||||||
item = QtGui.QTableWidgetItem()
|
item = QtGui.QTableWidgetItem()
|
||||||
self.tableWidgetAddressBook.setHorizontalHeaderItem(1, item)
|
self.tableWidgetInbox_2.setHorizontalHeaderItem(3, item)
|
||||||
self.tableWidgetAddressBook.horizontalHeader().setCascadingSectionResizes(True)
|
self.tableWidgetInbox_2.horizontalHeader().setCascadingSectionResizes(True)
|
||||||
self.tableWidgetAddressBook.horizontalHeader().setDefaultSectionSize(400)
|
self.tableWidgetInbox_2.horizontalHeader().setDefaultSectionSize(200)
|
||||||
self.tableWidgetAddressBook.horizontalHeader().setHighlightSections(False)
|
self.tableWidgetInbox_2.horizontalHeader().setHighlightSections(False)
|
||||||
self.tableWidgetAddressBook.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetInbox_2.horizontalHeader().setMinimumSectionSize(27)
|
||||||
self.tableWidgetAddressBook.verticalHeader().setVisible(False)
|
self.tableWidgetInbox_2.horizontalHeader().setSortIndicatorShown(False)
|
||||||
self.gridLayout_5.addWidget(self.tableWidgetAddressBook, 2, 0, 1, 2)
|
self.tableWidgetInbox_2.horizontalHeader().setStretchLastSection(True)
|
||||||
icon6 = QtGui.QIcon()
|
self.tableWidgetInbox_2.verticalHeader().setVisible(False)
|
||||||
icon6.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/addressbook.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
self.tableWidgetInbox_2.verticalHeader().setDefaultSectionSize(26)
|
||||||
self.tabWidget.addTab(self.addressbook, icon6, _fromUtf8(""))
|
self.verticalLayout_13.addWidget(self.tableWidgetInbox_2)
|
||||||
|
self.textEditInboxMessage_2 = QtGui.QTextEdit(self.tab_3)
|
||||||
|
self.textEditInboxMessage_2.setBaseSize(QtCore.QSize(0, 500))
|
||||||
|
self.textEditInboxMessage_2.setReadOnly(True)
|
||||||
|
self.textEditInboxMessage_2.setObjectName(_fromUtf8("textEditInboxMessage_2"))
|
||||||
|
self.verticalLayout_13.addWidget(self.textEditInboxMessage_2)
|
||||||
|
self.horizontalLayout_4.addLayout(self.verticalLayout_13)
|
||||||
|
self.gridLayout_3.addLayout(self.horizontalLayout_4, 0, 0, 1, 1)
|
||||||
|
icon7 = QtGui.QIcon()
|
||||||
|
icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/can-icon-16px.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
|
self.tabWidget.addTab(self.tab_3, icon7, _fromUtf8(""))
|
||||||
self.blackwhitelist = QtGui.QWidget()
|
self.blackwhitelist = QtGui.QWidget()
|
||||||
self.blackwhitelist.setObjectName(_fromUtf8("blackwhitelist"))
|
self.blackwhitelist.setObjectName(_fromUtf8("blackwhitelist"))
|
||||||
self.gridLayout_6 = QtGui.QGridLayout(self.blackwhitelist)
|
self.gridLayout_6 = QtGui.QGridLayout(self.blackwhitelist)
|
||||||
|
@ -393,8 +401,8 @@ class Ui_MainWindow(object):
|
||||||
self.pushButtonAddBlacklist = QtGui.QPushButton(self.blackwhitelist)
|
self.pushButtonAddBlacklist = QtGui.QPushButton(self.blackwhitelist)
|
||||||
self.pushButtonAddBlacklist.setObjectName(_fromUtf8("pushButtonAddBlacklist"))
|
self.pushButtonAddBlacklist.setObjectName(_fromUtf8("pushButtonAddBlacklist"))
|
||||||
self.gridLayout_6.addWidget(self.pushButtonAddBlacklist, 2, 0, 1, 1)
|
self.gridLayout_6.addWidget(self.pushButtonAddBlacklist, 2, 0, 1, 1)
|
||||||
spacerItem4 = QtGui.QSpacerItem(689, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
spacerItem = QtGui.QSpacerItem(689, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||||
self.gridLayout_6.addItem(spacerItem4, 2, 1, 1, 1)
|
self.gridLayout_6.addItem(spacerItem, 2, 1, 1, 1)
|
||||||
self.tableWidgetBlacklist = QtGui.QTableWidget(self.blackwhitelist)
|
self.tableWidgetBlacklist = QtGui.QTableWidget(self.blackwhitelist)
|
||||||
self.tableWidgetBlacklist.setAlternatingRowColors(True)
|
self.tableWidgetBlacklist.setAlternatingRowColors(True)
|
||||||
self.tableWidgetBlacklist.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
|
self.tableWidgetBlacklist.setSelectionMode(QtGui.QAbstractItemView.SingleSelection)
|
||||||
|
@ -413,17 +421,17 @@ class Ui_MainWindow(object):
|
||||||
self.tableWidgetBlacklist.horizontalHeader().setStretchLastSection(True)
|
self.tableWidgetBlacklist.horizontalHeader().setStretchLastSection(True)
|
||||||
self.tableWidgetBlacklist.verticalHeader().setVisible(False)
|
self.tableWidgetBlacklist.verticalHeader().setVisible(False)
|
||||||
self.gridLayout_6.addWidget(self.tableWidgetBlacklist, 3, 0, 1, 2)
|
self.gridLayout_6.addWidget(self.tableWidgetBlacklist, 3, 0, 1, 2)
|
||||||
icon7 = QtGui.QIcon()
|
icon8 = QtGui.QIcon()
|
||||||
icon7.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/blacklist.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/blacklist.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.tabWidget.addTab(self.blackwhitelist, icon7, _fromUtf8(""))
|
self.tabWidget.addTab(self.blackwhitelist, icon8, _fromUtf8(""))
|
||||||
self.networkstatus = QtGui.QWidget()
|
self.networkstatus = QtGui.QWidget()
|
||||||
self.networkstatus.setObjectName(_fromUtf8("networkstatus"))
|
self.networkstatus.setObjectName(_fromUtf8("networkstatus"))
|
||||||
self.pushButtonStatusIcon = QtGui.QPushButton(self.networkstatus)
|
self.pushButtonStatusIcon = QtGui.QPushButton(self.networkstatus)
|
||||||
self.pushButtonStatusIcon.setGeometry(QtCore.QRect(680, 440, 21, 23))
|
self.pushButtonStatusIcon.setGeometry(QtCore.QRect(680, 440, 21, 23))
|
||||||
self.pushButtonStatusIcon.setText(_fromUtf8(""))
|
self.pushButtonStatusIcon.setText(_fromUtf8(""))
|
||||||
icon8 = QtGui.QIcon()
|
icon9 = QtGui.QIcon()
|
||||||
icon8.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/redicon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/redicon.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.pushButtonStatusIcon.setIcon(icon8)
|
self.pushButtonStatusIcon.setIcon(icon9)
|
||||||
self.pushButtonStatusIcon.setFlat(True)
|
self.pushButtonStatusIcon.setFlat(True)
|
||||||
self.pushButtonStatusIcon.setObjectName(_fromUtf8("pushButtonStatusIcon"))
|
self.pushButtonStatusIcon.setObjectName(_fromUtf8("pushButtonStatusIcon"))
|
||||||
self.tableWidgetConnectionCount = QtGui.QTableWidget(self.networkstatus)
|
self.tableWidgetConnectionCount = QtGui.QTableWidget(self.networkstatus)
|
||||||
|
@ -479,13 +487,13 @@ class Ui_MainWindow(object):
|
||||||
self.labelBytesSentCount = QtGui.QLabel(self.networkstatus)
|
self.labelBytesSentCount = QtGui.QLabel(self.networkstatus)
|
||||||
self.labelBytesSentCount.setGeometry(QtCore.QRect(350, 230, 251, 16))
|
self.labelBytesSentCount.setGeometry(QtCore.QRect(350, 230, 251, 16))
|
||||||
self.labelBytesSentCount.setObjectName(_fromUtf8("labelBytesSentCount"))
|
self.labelBytesSentCount.setObjectName(_fromUtf8("labelBytesSentCount"))
|
||||||
icon9 = QtGui.QIcon()
|
icon10 = QtGui.QIcon()
|
||||||
icon9.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/networkstatus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon10.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/images/networkstatus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.tabWidget.addTab(self.networkstatus, icon9, _fromUtf8(""))
|
self.tabWidget.addTab(self.networkstatus, icon10, _fromUtf8(""))
|
||||||
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
|
self.gridLayout_10.addWidget(self.tabWidget, 0, 0, 1, 1)
|
||||||
MainWindow.setCentralWidget(self.centralwidget)
|
MainWindow.setCentralWidget(self.centralwidget)
|
||||||
self.menubar = QtGui.QMenuBar(MainWindow)
|
self.menubar = QtGui.QMenuBar(MainWindow)
|
||||||
self.menubar.setGeometry(QtCore.QRect(0, 0, 885, 21))
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 885, 27))
|
||||||
self.menubar.setObjectName(_fromUtf8("menubar"))
|
self.menubar.setObjectName(_fromUtf8("menubar"))
|
||||||
self.menuFile = QtGui.QMenu(self.menubar)
|
self.menuFile = QtGui.QMenu(self.menubar)
|
||||||
self.menuFile.setObjectName(_fromUtf8("menuFile"))
|
self.menuFile.setObjectName(_fromUtf8("menuFile"))
|
||||||
|
@ -537,7 +545,6 @@ class Ui_MainWindow(object):
|
||||||
self.menuFile.addAction(self.actionManageKeys)
|
self.menuFile.addAction(self.actionManageKeys)
|
||||||
self.menuFile.addAction(self.actionDeleteAllTrashedMessages)
|
self.menuFile.addAction(self.actionDeleteAllTrashedMessages)
|
||||||
self.menuFile.addAction(self.actionRegenerateDeterministicAddresses)
|
self.menuFile.addAction(self.actionRegenerateDeterministicAddresses)
|
||||||
self.menuFile.addAction(self.actionJoinChan)
|
|
||||||
self.menuFile.addAction(self.actionExit)
|
self.menuFile.addAction(self.actionExit)
|
||||||
self.menuSettings.addAction(self.actionSettings)
|
self.menuSettings.addAction(self.actionSettings)
|
||||||
self.menuHelp.addAction(self.actionHelp)
|
self.menuHelp.addAction(self.actionHelp)
|
||||||
|
@ -548,29 +555,16 @@ class Ui_MainWindow(object):
|
||||||
|
|
||||||
self.retranslateUi(MainWindow)
|
self.retranslateUi(MainWindow)
|
||||||
self.tabWidget.setCurrentIndex(0)
|
self.tabWidget.setCurrentIndex(0)
|
||||||
QtCore.QObject.connect(self.radioButtonSpecific, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.lineEditTo.setEnabled)
|
self.tabWidget_2.setCurrentIndex(0)
|
||||||
QtCore.QObject.connect(self.radioButtonSpecific, QtCore.SIGNAL(_fromUtf8("clicked(bool)")), self.labelSendBroadcastWarning.hide)
|
|
||||||
QtCore.QObject.connect(self.radioButtonBroadcast, QtCore.SIGNAL(_fromUtf8("clicked()")), self.labelSendBroadcastWarning.show)
|
|
||||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||||
MainWindow.setTabOrder(self.tabWidget, self.tableWidgetInbox)
|
|
||||||
MainWindow.setTabOrder(self.tableWidgetInbox, self.textEditInboxMessage)
|
MainWindow.setTabOrder(self.tableWidgetInbox, self.textEditInboxMessage)
|
||||||
MainWindow.setTabOrder(self.textEditInboxMessage, self.radioButtonSpecific)
|
MainWindow.setTabOrder(self.textEditInboxMessage, self.comboBoxSendFrom)
|
||||||
MainWindow.setTabOrder(self.radioButtonSpecific, self.radioButtonBroadcast)
|
|
||||||
MainWindow.setTabOrder(self.radioButtonBroadcast, self.comboBoxSendFrom)
|
|
||||||
MainWindow.setTabOrder(self.comboBoxSendFrom, self.lineEditTo)
|
MainWindow.setTabOrder(self.comboBoxSendFrom, self.lineEditTo)
|
||||||
MainWindow.setTabOrder(self.lineEditTo, self.pushButtonLoadFromAddressBook)
|
MainWindow.setTabOrder(self.lineEditTo, self.lineEditSubject)
|
||||||
MainWindow.setTabOrder(self.pushButtonLoadFromAddressBook, self.lineEditSubject)
|
|
||||||
MainWindow.setTabOrder(self.lineEditSubject, self.textEditMessage)
|
MainWindow.setTabOrder(self.lineEditSubject, self.textEditMessage)
|
||||||
MainWindow.setTabOrder(self.textEditMessage, self.pushButtonSend)
|
MainWindow.setTabOrder(self.textEditMessage, self.pushButtonSend)
|
||||||
MainWindow.setTabOrder(self.pushButtonSend, self.tableWidgetSent)
|
MainWindow.setTabOrder(self.pushButtonSend, self.pushButtonAddSubscription)
|
||||||
MainWindow.setTabOrder(self.tableWidgetSent, self.textEditSentMessage)
|
MainWindow.setTabOrder(self.pushButtonAddSubscription, self.radioButtonBlacklist)
|
||||||
MainWindow.setTabOrder(self.textEditSentMessage, self.pushButtonNewAddress)
|
|
||||||
MainWindow.setTabOrder(self.pushButtonNewAddress, self.tableWidgetYourIdentities)
|
|
||||||
MainWindow.setTabOrder(self.tableWidgetYourIdentities, self.pushButtonAddSubscription)
|
|
||||||
MainWindow.setTabOrder(self.pushButtonAddSubscription, self.tableWidgetSubscriptions)
|
|
||||||
MainWindow.setTabOrder(self.tableWidgetSubscriptions, self.pushButtonAddAddressBook)
|
|
||||||
MainWindow.setTabOrder(self.pushButtonAddAddressBook, self.tableWidgetAddressBook)
|
|
||||||
MainWindow.setTabOrder(self.tableWidgetAddressBook, self.radioButtonBlacklist)
|
|
||||||
MainWindow.setTabOrder(self.radioButtonBlacklist, self.radioButtonWhitelist)
|
MainWindow.setTabOrder(self.radioButtonBlacklist, self.radioButtonWhitelist)
|
||||||
MainWindow.setTabOrder(self.radioButtonWhitelist, self.pushButtonAddBlacklist)
|
MainWindow.setTabOrder(self.radioButtonWhitelist, self.pushButtonAddBlacklist)
|
||||||
MainWindow.setTabOrder(self.pushButtonAddBlacklist, self.tableWidgetBlacklist)
|
MainWindow.setTabOrder(self.pushButtonAddBlacklist, self.tableWidgetBlacklist)
|
||||||
|
@ -578,13 +572,10 @@ class Ui_MainWindow(object):
|
||||||
MainWindow.setTabOrder(self.tableWidgetConnectionCount, self.pushButtonStatusIcon)
|
MainWindow.setTabOrder(self.tableWidgetConnectionCount, self.pushButtonStatusIcon)
|
||||||
|
|
||||||
def retranslateUi(self, MainWindow):
|
def retranslateUi(self, MainWindow):
|
||||||
MainWindow.setWindowTitle(_translate("MainWindow", "Bitmessage", None))
|
MainWindow.setWindowTitle(_translate("MainWindow", "B-Mail", None))
|
||||||
|
self.treeWidgetYourIdentities.headerItem().setText(0, _translate("MainWindow", "Identities", None))
|
||||||
|
self.pushButtonNewAddress.setText(_translate("MainWindow", "New Indentitiy", None))
|
||||||
self.inboxSearchLineEdit.setPlaceholderText(_translate("MainWindow", "Search", None))
|
self.inboxSearchLineEdit.setPlaceholderText(_translate("MainWindow", "Search", None))
|
||||||
self.inboxSearchOptionCB.setItemText(0, _translate("MainWindow", "All", None))
|
|
||||||
self.inboxSearchOptionCB.setItemText(1, _translate("MainWindow", "To", None))
|
|
||||||
self.inboxSearchOptionCB.setItemText(2, _translate("MainWindow", "From", None))
|
|
||||||
self.inboxSearchOptionCB.setItemText(3, _translate("MainWindow", "Subject", None))
|
|
||||||
self.inboxSearchOptionCB.setItemText(4, _translate("MainWindow", "Message", None))
|
|
||||||
self.tableWidgetInbox.setSortingEnabled(True)
|
self.tableWidgetInbox.setSortingEnabled(True)
|
||||||
item = self.tableWidgetInbox.horizontalHeaderItem(0)
|
item = self.tableWidgetInbox.horizontalHeaderItem(0)
|
||||||
item.setText(_translate("MainWindow", "To", None))
|
item.setText(_translate("MainWindow", "To", None))
|
||||||
|
@ -594,66 +585,69 @@ class Ui_MainWindow(object):
|
||||||
item.setText(_translate("MainWindow", "Subject", None))
|
item.setText(_translate("MainWindow", "Subject", None))
|
||||||
item = self.tableWidgetInbox.horizontalHeaderItem(3)
|
item = self.tableWidgetInbox.horizontalHeaderItem(3)
|
||||||
item.setText(_translate("MainWindow", "Received", None))
|
item.setText(_translate("MainWindow", "Received", None))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.inbox), _translate("MainWindow", "Inbox", None))
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.inbox), _translate("MainWindow", "Received", None))
|
||||||
self.pushButtonLoadFromAddressBook.setText(_translate("MainWindow", "Load from Address book", None))
|
self.tableWidgetAddressBook.setSortingEnabled(True)
|
||||||
self.label_3.setText(_translate("MainWindow", "Subject:", None))
|
item = self.tableWidgetAddressBook.horizontalHeaderItem(0)
|
||||||
self.pushButtonSend.setText(_translate("MainWindow", "Send", None))
|
item.setText(_translate("MainWindow", "Name", None))
|
||||||
self.labelHumanFriendlyTTLDescription.setText(_translate("MainWindow", "X days", None))
|
item = self.tableWidgetAddressBook.horizontalHeaderItem(1)
|
||||||
self.label_4.setText(_translate("MainWindow", "Message:", None))
|
item.setText(_translate("MainWindow", "Address", None))
|
||||||
|
self.pushButtonAddAddressBook.setText(_translate("MainWindow", "Add Contact", None))
|
||||||
self.label.setText(_translate("MainWindow", "To:", None))
|
self.label.setText(_translate("MainWindow", "To:", None))
|
||||||
self.radioButtonSpecific.setText(_translate("MainWindow", "Send to one or more specific people", None))
|
self.label_3.setText(_translate("MainWindow", "Subject:", None))
|
||||||
self.labelSendBroadcastWarning.setText(_translate("MainWindow", "Be aware that broadcasts are only encrypted with your address. Anyone who knows your address can read them.", None))
|
|
||||||
self.radioButtonBroadcast.setText(_translate("MainWindow", "Broadcast to everyone who is subscribed to your address", None))
|
|
||||||
self.pushButtonTTL.setText(_translate("MainWindow", "TTL:", None))
|
|
||||||
self.label_2.setText(_translate("MainWindow", "From:", None))
|
self.label_2.setText(_translate("MainWindow", "From:", None))
|
||||||
self.textEditMessage.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
self.textEditMessage.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", None))
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\';\"><br /></p></body></html>", None))
|
||||||
self.pushButtonFetchNamecoinID.setText(_translate("MainWindow", "Fetch Namecoin ID", None))
|
self.pushButtonSend.setText(_translate("MainWindow", "Send", None))
|
||||||
|
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), _translate("MainWindow", "Send ordinary Message", None))
|
||||||
|
self.label_8.setText(_translate("MainWindow", "From:", None))
|
||||||
|
self.label_7.setText(_translate("MainWindow", "Subject:", None))
|
||||||
|
self.textEditMessage_2.setHtml(_translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
|
||||||
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
|
"</style></head><body style=\" font-family:\'Droid Sans\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||||||
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\';\"><br /></p></body></html>", None))
|
||||||
|
self.pushButtonSend_3.setText(_translate("MainWindow", "Send", None))
|
||||||
|
self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_2), _translate("MainWindow", "Send Message to your Subscribers", None))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.send), _translate("MainWindow", "Send", None))
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.send), _translate("MainWindow", "Send", None))
|
||||||
self.sentSearchLineEdit.setPlaceholderText(_translate("MainWindow", "Search", None))
|
self.tableWidgetSubscriptions.setSortingEnabled(True)
|
||||||
self.sentSearchOptionCB.setItemText(0, _translate("MainWindow", "All", None))
|
item = self.tableWidgetSubscriptions.horizontalHeaderItem(0)
|
||||||
self.sentSearchOptionCB.setItemText(1, _translate("MainWindow", "To", None))
|
item.setText(_translate("MainWindow", "Name", None))
|
||||||
self.sentSearchOptionCB.setItemText(2, _translate("MainWindow", "From", None))
|
item = self.tableWidgetSubscriptions.horizontalHeaderItem(1)
|
||||||
self.sentSearchOptionCB.setItemText(3, _translate("MainWindow", "Subject", None))
|
item.setText(_translate("MainWindow", "Address", None))
|
||||||
self.sentSearchOptionCB.setItemText(4, _translate("MainWindow", "Message", None))
|
self.pushButtonAddSubscription.setText(_translate("MainWindow", "Add new Subscription", None))
|
||||||
self.tableWidgetSent.setSortingEnabled(True)
|
self.inboxSearchLineSubscriptions.setPlaceholderText(_translate("MainWindow", "Search", None))
|
||||||
item = self.tableWidgetSent.horizontalHeaderItem(0)
|
self.tableWidgetInboxSubscriptions.setSortingEnabled(True)
|
||||||
|
item = self.tableWidgetInboxSubscriptions.horizontalHeaderItem(0)
|
||||||
item.setText(_translate("MainWindow", "To", None))
|
item.setText(_translate("MainWindow", "To", None))
|
||||||
item = self.tableWidgetSent.horizontalHeaderItem(1)
|
item = self.tableWidgetInboxSubscriptions.horizontalHeaderItem(1)
|
||||||
item.setText(_translate("MainWindow", "From", None))
|
item.setText(_translate("MainWindow", "From", None))
|
||||||
item = self.tableWidgetSent.horizontalHeaderItem(2)
|
item = self.tableWidgetInboxSubscriptions.horizontalHeaderItem(2)
|
||||||
item.setText(_translate("MainWindow", "Subject", None))
|
item.setText(_translate("MainWindow", "Subject", None))
|
||||||
item = self.tableWidgetSent.horizontalHeaderItem(3)
|
item = self.tableWidgetInboxSubscriptions.horizontalHeaderItem(3)
|
||||||
item.setText(_translate("MainWindow", "Status", None))
|
item.setText(_translate("MainWindow", "Received", None))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.sent), _translate("MainWindow", "Sent", None))
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.subscriptions), _translate("MainWindow", "Subscriptions", None))
|
||||||
self.pushButtonNewAddress.setText(_translate("MainWindow", "New", None))
|
|
||||||
self.tableWidgetYourIdentities.setSortingEnabled(True)
|
self.tableWidgetYourIdentities.setSortingEnabled(True)
|
||||||
item = self.tableWidgetYourIdentities.horizontalHeaderItem(0)
|
item = self.tableWidgetYourIdentities.horizontalHeaderItem(0)
|
||||||
item.setText(_translate("MainWindow", "Label (not shown to anyone)", None))
|
item.setText(_translate("MainWindow", "Name", None))
|
||||||
item = self.tableWidgetYourIdentities.horizontalHeaderItem(1)
|
item = self.tableWidgetYourIdentities.horizontalHeaderItem(1)
|
||||||
item.setText(_translate("MainWindow", "Address", None))
|
item.setText(_translate("MainWindow", "Address", None))
|
||||||
item = self.tableWidgetYourIdentities.horizontalHeaderItem(2)
|
item = self.tableWidgetYourIdentities.horizontalHeaderItem(2)
|
||||||
item.setText(_translate("MainWindow", "Stream", None))
|
item.setText(_translate("MainWindow", "Stream", None))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.youridentities), _translate("MainWindow", "Your Identities", None))
|
self.pushButtonAddChanel.setText(_translate("MainWindow", "Add Chanel", None))
|
||||||
self.label_5.setText(_translate("MainWindow", "Here you can subscribe to \'broadcast messages\' that are sent by other users. Messages will appear in your Inbox. Addresses here override those on the Blacklist tab.", None))
|
self.inboxSearchLineEdit_2.setPlaceholderText(_translate("MainWindow", "Search", None))
|
||||||
self.pushButtonAddSubscription.setText(_translate("MainWindow", "Add new Subscription", None))
|
self.tableWidgetInbox_2.setSortingEnabled(True)
|
||||||
self.tableWidgetSubscriptions.setSortingEnabled(True)
|
item = self.tableWidgetInbox_2.horizontalHeaderItem(0)
|
||||||
item = self.tableWidgetSubscriptions.horizontalHeaderItem(0)
|
item.setText(_translate("MainWindow", "To", None))
|
||||||
item.setText(_translate("MainWindow", "Label", None))
|
item = self.tableWidgetInbox_2.horizontalHeaderItem(1)
|
||||||
item = self.tableWidgetSubscriptions.horizontalHeaderItem(1)
|
item.setText(_translate("MainWindow", "From", None))
|
||||||
item.setText(_translate("MainWindow", "Address", None))
|
item = self.tableWidgetInbox_2.horizontalHeaderItem(2)
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.subscriptions), _translate("MainWindow", "Subscriptions", None))
|
item.setText(_translate("MainWindow", "Subject", None))
|
||||||
self.label_6.setText(_translate("MainWindow", "The Address book is useful for adding names or labels to other people\'s Bitmessage addresses so that you can recognize them more easily in your inbox. You can add entries here using the \'Add\' button, or from your inbox by right-clicking on a message.", None))
|
item = self.tableWidgetInbox_2.horizontalHeaderItem(3)
|
||||||
self.pushButtonAddAddressBook.setText(_translate("MainWindow", "Add new entry", None))
|
item.setText(_translate("MainWindow", "Received", None))
|
||||||
self.tableWidgetAddressBook.setSortingEnabled(True)
|
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Chanels", None))
|
||||||
item = self.tableWidgetAddressBook.horizontalHeaderItem(0)
|
|
||||||
item.setText(_translate("MainWindow", "Name or Label", None))
|
|
||||||
item = self.tableWidgetAddressBook.horizontalHeaderItem(1)
|
|
||||||
item.setText(_translate("MainWindow", "Address", None))
|
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.addressbook), _translate("MainWindow", "Address Book", None))
|
|
||||||
self.radioButtonBlacklist.setText(_translate("MainWindow", "Use a Blacklist (Allow all incoming messages except those on the Blacklist)", None))
|
self.radioButtonBlacklist.setText(_translate("MainWindow", "Use a Blacklist (Allow all incoming messages except those on the Blacklist)", None))
|
||||||
self.radioButtonWhitelist.setText(_translate("MainWindow", "Use a Whitelist (Block all incoming messages except those on the Whitelist)", None))
|
self.radioButtonWhitelist.setText(_translate("MainWindow", "Use a Whitelist (Block all incoming messages except those on the Whitelist)", None))
|
||||||
self.pushButtonAddBlacklist.setText(_translate("MainWindow", "Add new entry", None))
|
self.pushButtonAddBlacklist.setText(_translate("MainWindow", "Add new entry", None))
|
||||||
|
@ -692,3 +686,13 @@ class Ui_MainWindow(object):
|
||||||
self.actionJoinChan.setText(_translate("MainWindow", "Join / Create chan", None))
|
self.actionJoinChan.setText(_translate("MainWindow", "Join / Create chan", None))
|
||||||
|
|
||||||
import bitmessage_icons_rc
|
import bitmessage_icons_rc
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
import sys
|
||||||
|
app = QtGui.QApplication(sys.argv)
|
||||||
|
MainWindow = QtGui.QMainWindow()
|
||||||
|
ui = Ui_MainWindow()
|
||||||
|
ui.setupUi(MainWindow)
|
||||||
|
MainWindow.show()
|
||||||
|
sys.exit(app.exec_())
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,7 @@
|
||||||
<enum>QTabWidget::Rounded</enum>
|
<enum>QTabWidget::Rounded</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout_10">
|
||||||
<property name="margin">
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QTabWidget" name="tabWidget">
|
<widget class="QTabWidget" name="tabWidget">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -65,9 +62,50 @@
|
||||||
<normaloff>:/newPrefix/images/inbox.png</normaloff>:/newPrefix/images/inbox.png</iconset>
|
<normaloff>:/newPrefix/images/inbox.png</normaloff>:/newPrefix/images/inbox.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Inbox</string>
|
<string>Received</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||||
|
<item>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_12">
|
||||||
|
<item>
|
||||||
|
<widget class="QTreeWidget" name="treeWidgetYourIdentities">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Identities</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<selectedoff>:/newPrefix/images/identities.png</selectedoff>
|
||||||
|
</iconset>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButtonNewAddress">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>New Indentitiy</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_11">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayoutSearch">
|
<layout class="QHBoxLayout" name="horizontalLayoutSearch">
|
||||||
<property name="topMargin">
|
<property name="topMargin">
|
||||||
|
@ -80,42 +118,9 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="inboxSearchOptionCB">
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>All</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>To</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>From</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Subject</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Message</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QSplitter" name="splitter">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QTableWidget" name="tableWidgetInbox">
|
<widget class="QTableWidget" name="tableWidgetInbox">
|
||||||
<property name="editTriggers">
|
<property name="editTriggers">
|
||||||
<set>QAbstractItemView::NoEditTriggers</set>
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
|
@ -180,6 +185,8 @@
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<widget class="QTextEdit" name="textEditInboxMessage">
|
<widget class="QTextEdit" name="textEditInboxMessage">
|
||||||
<property name="baseSize">
|
<property name="baseSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -191,7 +198,10 @@
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -203,72 +213,93 @@
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Send</string>
|
<string>Send</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_11">
|
||||||
<item row="3" column="2">
|
<item row="0" column="0">
|
||||||
<widget class="QPushButton" name="pushButtonLoadFromAddressBook">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<property name="font">
|
<item>
|
||||||
<font>
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
<pointsize>7</pointsize>
|
<item>
|
||||||
</font>
|
<widget class="QTableWidget" name="tableWidgetAddressBook">
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Load from Address book</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="label_3">
|
|
||||||
<property name="text">
|
|
||||||
<string>Subject:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="8">
|
|
||||||
<widget class="QPushButton" name="pushButtonSend">
|
|
||||||
<property name="text">
|
|
||||||
<string>Send</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="6">
|
|
||||||
<widget class="QSlider" name="horizontalSliderTTL">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>35</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>70</width>
|
<width>200</width>
|
||||||
<height>16777215</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
<property name="alternatingRowColors">
|
||||||
<enum>Qt::Horizontal</enum>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="invertedAppearance">
|
<property name="selectionMode">
|
||||||
<bool>false</bool>
|
<enum>QAbstractItemView::ExtendedSelection</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="invertedControls">
|
<property name="selectionBehavior">
|
||||||
|
<enum>QAbstractItemView::SelectRows</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sortingEnabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<attribute name="horizontalHeaderCascadingSectionResizes">
|
||||||
|
<bool>true</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
||||||
|
<number>200</number>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderHighlightSections">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderStretchLastSection">
|
||||||
|
<bool>true</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="verticalHeaderVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Name</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<selectedoff>:/newPrefix/images/addressbook.png</selectedoff>
|
||||||
|
</iconset>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Address</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButtonAddAddressBook">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Add Contact</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="0">
|
</layout>
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>297</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item>
|
||||||
|
<widget class="QTabWidget" name="tabWidget_2">
|
||||||
|
<property name="currentIndex">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="tab">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Send ordinary Message</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_8">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="1">
|
||||||
<widget class="QComboBox" name="comboBoxSendFrom">
|
<widget class="QComboBox" name="comboBoxSendFrom">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
|
@ -278,186 +309,31 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="7">
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="labelHumanFriendlyTTLDescription">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>45</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>45</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>X days</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<widget class="QLabel" name="label_4">
|
|
||||||
<property name="text">
|
|
||||||
<string>Message:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
<widget class="QLabel" name="label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>To:</string>
|
<string>To:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QRadioButton" name="radioButtonSpecific">
|
<widget class="QLineEdit" name="lineEditTo"/>
|
||||||
<property name="text">
|
|
||||||
<string>Send to one or more specific people</string>
|
|
||||||
</property>
|
|
||||||
<property name="checked">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="1" colspan="4">
|
|
||||||
<widget class="QLabel" name="labelSendBroadcastWarning">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Ignored" vsizetype="Preferred">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Be aware that broadcasts are only encrypted with your address. Anyone who knows your address can read them.</string>
|
|
||||||
</property>
|
|
||||||
<property name="indent">
|
|
||||||
<number>-1</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1" colspan="2">
|
|
||||||
<widget class="QRadioButton" name="radioButtonBroadcast">
|
|
||||||
<property name="text">
|
|
||||||
<string>Broadcast to everyone who is subscribed to your address</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="5">
|
|
||||||
<widget class="QPushButton" name="pushButtonTTL">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>32</width>
|
|
||||||
<height>16777215</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="palette">
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="ButtonText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="ButtonText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="ButtonText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>120</red>
|
|
||||||
<green>120</green>
|
|
||||||
<blue>120</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<underline>true</underline>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>TTL:</string>
|
|
||||||
</property>
|
|
||||||
<property name="flat">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Subject:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label_2">
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>From:</string>
|
<string>From:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QLineEdit" name="lineEditTo"/>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1" rowspan="2" colspan="8">
|
|
||||||
<widget class="QTextEdit" name="textEditMessage">
|
|
||||||
<property name="html">
|
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
|
||||||
p, li { white-space: pre-wrap; }
|
|
||||||
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:9pt; font-weight:400; font-style:normal;">
|
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="3">
|
|
||||||
<widget class="QPushButton" name="pushButtonFetchNamecoinID">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<pointsize>7</pointsize>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Fetch Namecoin ID</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="2" colspan="7">
|
|
||||||
<widget class="QLabel" name="labelFrom">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1" colspan="8">
|
|
||||||
<widget class="QLineEdit" name="lineEditSubject">
|
<widget class="QLineEdit" name="lineEditSubject">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
|
@ -465,71 +341,196 @@ p, li { white-space: pre-wrap; }
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QTextEdit" name="textEditMessage">
|
||||||
|
<property name="html">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Droid Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html></string>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="sent">
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButtonSend">
|
||||||
|
<property name="text">
|
||||||
|
<string>Send</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="tab_2">
|
||||||
|
<attribute name="title">
|
||||||
|
<string>Send Message to your Subscribers</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_9">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||||
|
<item>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_8">
|
||||||
|
<property name="text">
|
||||||
|
<string>From:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="lineEditSubject_2">
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_7">
|
||||||
|
<property name="text">
|
||||||
|
<string>Subject:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QComboBox" name="comboBoxSendFrom_2">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>300</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QTextEdit" name="textEditMessage_2">
|
||||||
|
<property name="html">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'Droid Sans'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'MS Shell Dlg 2';"><br /></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButtonSend_3">
|
||||||
|
<property name="text">
|
||||||
|
<string>Send</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="subscriptions">
|
||||||
<attribute name="icon">
|
<attribute name="icon">
|
||||||
<iconset resource="bitmessage_icons.qrc">
|
<iconset resource="bitmessage_icons.qrc">
|
||||||
<normaloff>:/newPrefix/images/sent.png</normaloff>:/newPrefix/images/sent.png</iconset>
|
<normaloff>:/newPrefix/images/subscriptions.png</normaloff>:/newPrefix/images/subscriptions.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Sent</string>
|
<string>Subscriptions</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||||
<property name="topMargin">
|
<item>
|
||||||
<number>0</number>
|
<widget class="QTableWidget" name="tableWidgetSubscriptions">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="alternatingRowColors">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="selectionMode">
|
||||||
|
<enum>QAbstractItemView::SingleSelection</enum>
|
||||||
|
</property>
|
||||||
|
<property name="selectionBehavior">
|
||||||
|
<enum>QAbstractItemView::SelectRows</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sortingEnabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<attribute name="horizontalHeaderCascadingSectionResizes">
|
||||||
|
<bool>true</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
||||||
|
<number>200</number>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderHighlightSections">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderStretchLastSection">
|
||||||
|
<bool>true</bool>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="verticalHeaderVisible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Name</string>
|
||||||
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<selectedoff>:/newPrefix/images/subscriptions.png</selectedoff>
|
||||||
|
</iconset>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Address</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="sentSearchLineEdit">
|
<widget class="QPushButton" name="pushButtonAddSubscription">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>200</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Add new Subscription</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="inboxSearchLineSubscriptions">
|
||||||
<property name="placeholderText">
|
<property name="placeholderText">
|
||||||
<string>Search</string>
|
<string>Search</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="sentSearchOptionCB">
|
<widget class="QTableWidget" name="tableWidgetInboxSubscriptions">
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>All</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>To</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>From</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Subject</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<property name="text">
|
|
||||||
<string>Message</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QSplitter" name="splitter_2">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QTableWidget" name="tableWidgetSent">
|
|
||||||
<property name="editTriggers">
|
<property name="editTriggers">
|
||||||
<set>QAbstractItemView::NoEditTriggers</set>
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="dragDropMode">
|
|
||||||
<enum>QAbstractItemView::DragDrop</enum>
|
|
||||||
</property>
|
|
||||||
<property name="alternatingRowColors">
|
<property name="alternatingRowColors">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -549,11 +550,14 @@ p, li { white-space: pre-wrap; }
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderDefaultSectionSize">
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
||||||
<number>130</number>
|
<number>200</number>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderHighlightSections">
|
<attribute name="horizontalHeaderHighlightSections">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderMinimumSectionSize">
|
||||||
|
<number>27</number>
|
||||||
|
</attribute>
|
||||||
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
@ -563,8 +567,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<attribute name="verticalHeaderVisible">
|
<attribute name="verticalHeaderVisible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="verticalHeaderStretchLastSection">
|
<attribute name="verticalHeaderDefaultSectionSize">
|
||||||
<bool>false</bool>
|
<number>26</number>
|
||||||
</attribute>
|
</attribute>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -583,50 +587,51 @@ p, li { white-space: pre-wrap; }
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Status</string>
|
<string>Received</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QTextEdit" name="textEditSentMessage">
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QTextEdit" name="textEditInboxSubscriptions">
|
||||||
|
<property name="baseSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>500</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
<property name="readOnly">
|
<property name="readOnly">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="youridentities">
|
<widget class="QWidget" name="tab_3">
|
||||||
<attribute name="icon">
|
<attribute name="icon">
|
||||||
<iconset resource="bitmessage_icons.qrc">
|
<iconset resource="bitmessage_icons.qrc">
|
||||||
<normaloff>:/newPrefix/images/identities.png</normaloff>:/newPrefix/images/identities.png</iconset>
|
<normaloff>:/newPrefix/images/can-icon-16px.png</normaloff>:/newPrefix/images/can-icon-16px.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Your Identities</string>
|
<string>Chanels</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QPushButton" name="pushButtonNewAddress">
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||||
<property name="text">
|
<item>
|
||||||
<string>New</string>
|
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||||
</property>
|
<item>
|
||||||
</widget>
|
<widget class="QTableWidget" name="tableWidgetYourIdentities">
|
||||||
</item>
|
<property name="maximumSize">
|
||||||
<item row="0" column="1">
|
|
||||||
<spacer name="horizontalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
<size>
|
||||||
<width>689</width>
|
<width>200</width>
|
||||||
<height>20</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" colspan="2">
|
|
||||||
<widget class="QTableWidget" name="tableWidgetYourIdentities">
|
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
|
@ -649,7 +654,7 @@ p, li { white-space: pre-wrap; }
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderDefaultSectionSize">
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
||||||
<number>346</number>
|
<number>200</number>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderMinimumSectionSize">
|
<attribute name="horizontalHeaderMinimumSectionSize">
|
||||||
<number>52</number>
|
<number>52</number>
|
||||||
|
@ -674,13 +679,18 @@ p, li { white-space: pre-wrap; }
|
||||||
</attribute>
|
</attribute>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Label (not shown to anyone)</string>
|
<string>Name</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<kerning>true</kerning>
|
<kerning>true</kerning>
|
||||||
</font>
|
</font>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="icon">
|
||||||
|
<iconset>
|
||||||
|
<selectedoff>:/newPrefix/images/identities.png</selectedoff>
|
||||||
|
</iconset>
|
||||||
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -694,134 +704,42 @@ p, li { white-space: pre-wrap; }
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
<item>
|
||||||
</widget>
|
<widget class="QPushButton" name="pushButtonAddChanel">
|
||||||
<widget class="QWidget" name="subscriptions">
|
<property name="maximumSize">
|
||||||
<attribute name="icon">
|
|
||||||
<iconset resource="bitmessage_icons.qrc">
|
|
||||||
<normaloff>:/newPrefix/images/subscriptions.png</normaloff>:/newPrefix/images/subscriptions.png</iconset>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Subscriptions</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_4">
|
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="label_5">
|
|
||||||
<property name="text">
|
|
||||||
<string>Here you can subscribe to 'broadcast messages' that are sent by other users. Messages will appear in your Inbox. Addresses here override those on the Blacklist tab.</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QPushButton" name="pushButtonAddSubscription">
|
|
||||||
<property name="text">
|
|
||||||
<string>Add new Subscription</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<spacer name="horizontalSpacer_2">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
<size>
|
||||||
<width>689</width>
|
<width>200</width>
|
||||||
<height>20</height>
|
<height>16777215</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="2">
|
|
||||||
<widget class="QTableWidget" name="tableWidgetSubscriptions">
|
|
||||||
<property name="alternatingRowColors">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<property name="selectionMode">
|
|
||||||
<enum>QAbstractItemView::SingleSelection</enum>
|
|
||||||
</property>
|
|
||||||
<property name="selectionBehavior">
|
|
||||||
<enum>QAbstractItemView::SelectRows</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sortingEnabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
<attribute name="horizontalHeaderCascadingSectionResizes">
|
|
||||||
<bool>true</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="horizontalHeaderDefaultSectionSize">
|
|
||||||
<number>400</number>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="horizontalHeaderHighlightSections">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="horizontalHeaderStretchLastSection">
|
|
||||||
<bool>true</bool>
|
|
||||||
</attribute>
|
|
||||||
<attribute name="verticalHeaderVisible">
|
|
||||||
<bool>false</bool>
|
|
||||||
</attribute>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Label</string>
|
<string>Add Chanel</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
|
||||||
<column>
|
|
||||||
<property name="text">
|
|
||||||
<string>Address</string>
|
|
||||||
</property>
|
|
||||||
</column>
|
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</item>
|
||||||
<widget class="QWidget" name="addressbook">
|
<item>
|
||||||
<attribute name="icon">
|
<layout class="QVBoxLayout" name="verticalLayout_13">
|
||||||
<iconset resource="bitmessage_icons.qrc">
|
<item>
|
||||||
<normaloff>:/newPrefix/images/addressbook.png</normaloff>:/newPrefix/images/addressbook.png</iconset>
|
<layout class="QHBoxLayout" name="horizontalLayoutSearch_2">
|
||||||
</attribute>
|
<property name="topMargin">
|
||||||
<attribute name="title">
|
<number>0</number>
|
||||||
<string>Address Book</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_5">
|
|
||||||
<item row="0" column="0" colspan="2">
|
|
||||||
<widget class="QLabel" name="label_6">
|
|
||||||
<property name="text">
|
|
||||||
<string>The Address book is useful for adding names or labels to other people's Bitmessage addresses so that you can recognize them more easily in your inbox. You can add entries here using the 'Add' button, or from your inbox by right-clicking on a message.</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap">
|
<item>
|
||||||
<bool>true</bool>
|
<widget class="QLineEdit" name="inboxSearchLineEdit_2">
|
||||||
|
<property name="placeholderText">
|
||||||
|
<string>Search</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
</layout>
|
||||||
<widget class="QPushButton" name="pushButtonAddAddressBook">
|
|
||||||
<property name="text">
|
|
||||||
<string>Add new entry</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item>
|
||||||
<spacer name="horizontalSpacer_5">
|
<widget class="QTableWidget" name="tableWidgetInbox_2">
|
||||||
<property name="orientation">
|
<property name="editTriggers">
|
||||||
<enum>Qt::Horizontal</enum>
|
<set>QAbstractItemView::NoEditTriggers</set>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>689</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="2">
|
|
||||||
<widget class="QTableWidget" name="tableWidgetAddressBook">
|
|
||||||
<property name="alternatingRowColors">
|
<property name="alternatingRowColors">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -834,33 +752,72 @@ p, li { white-space: pre-wrap; }
|
||||||
<property name="sortingEnabled">
|
<property name="sortingEnabled">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<attribute name="horizontalHeaderCascadingSectionResizes">
|
<attribute name="horizontalHeaderCascadingSectionResizes">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderDefaultSectionSize">
|
<attribute name="horizontalHeaderDefaultSectionSize">
|
||||||
<number>400</number>
|
<number>200</number>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="horizontalHeaderHighlightSections">
|
<attribute name="horizontalHeaderHighlightSections">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderMinimumSectionSize">
|
||||||
|
<number>27</number>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
|
||||||
|
<bool>false</bool>
|
||||||
|
</attribute>
|
||||||
<attribute name="horizontalHeaderStretchLastSection">
|
<attribute name="horizontalHeaderStretchLastSection">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="verticalHeaderVisible">
|
<attribute name="verticalHeaderVisible">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</attribute>
|
</attribute>
|
||||||
|
<attribute name="verticalHeaderDefaultSectionSize">
|
||||||
|
<number>26</number>
|
||||||
|
</attribute>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Name or Label</string>
|
<string>To</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Address</string>
|
<string>From</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Subject</string>
|
||||||
|
</property>
|
||||||
|
</column>
|
||||||
|
<column>
|
||||||
|
<property name="text">
|
||||||
|
<string>Received</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QTextEdit" name="textEditInboxMessage_2">
|
||||||
|
<property name="baseSize">
|
||||||
|
<size>
|
||||||
|
<width>0</width>
|
||||||
|
<height>500</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="readOnly">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="blackwhitelist">
|
<widget class="QWidget" name="blackwhitelist">
|
||||||
|
@ -1182,7 +1139,7 @@ p, li { white-space: pre-wrap; }
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>885</width>
|
<width>885</width>
|
||||||
<height>21</height>
|
<height>27</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
|
@ -1192,7 +1149,6 @@ p, li { white-space: pre-wrap; }
|
||||||
<addaction name="actionManageKeys"/>
|
<addaction name="actionManageKeys"/>
|
||||||
<addaction name="actionDeleteAllTrashedMessages"/>
|
<addaction name="actionDeleteAllTrashedMessages"/>
|
||||||
<addaction name="actionRegenerateDeterministicAddresses"/>
|
<addaction name="actionRegenerateDeterministicAddresses"/>
|
||||||
<addaction name="actionJoinChan"/>
|
|
||||||
<addaction name="actionExit"/>
|
<addaction name="actionExit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuSettings">
|
<widget class="QMenu" name="menuSettings">
|
||||||
|
@ -1319,25 +1275,14 @@ p, li { white-space: pre-wrap; }
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
<tabstop>tabWidget</tabstop>
|
|
||||||
<tabstop>tableWidgetInbox</tabstop>
|
<tabstop>tableWidgetInbox</tabstop>
|
||||||
<tabstop>textEditInboxMessage</tabstop>
|
<tabstop>textEditInboxMessage</tabstop>
|
||||||
<tabstop>radioButtonSpecific</tabstop>
|
|
||||||
<tabstop>radioButtonBroadcast</tabstop>
|
|
||||||
<tabstop>comboBoxSendFrom</tabstop>
|
<tabstop>comboBoxSendFrom</tabstop>
|
||||||
<tabstop>lineEditTo</tabstop>
|
<tabstop>lineEditTo</tabstop>
|
||||||
<tabstop>pushButtonLoadFromAddressBook</tabstop>
|
|
||||||
<tabstop>lineEditSubject</tabstop>
|
<tabstop>lineEditSubject</tabstop>
|
||||||
<tabstop>textEditMessage</tabstop>
|
<tabstop>textEditMessage</tabstop>
|
||||||
<tabstop>pushButtonSend</tabstop>
|
<tabstop>pushButtonSend</tabstop>
|
||||||
<tabstop>tableWidgetSent</tabstop>
|
|
||||||
<tabstop>textEditSentMessage</tabstop>
|
|
||||||
<tabstop>pushButtonNewAddress</tabstop>
|
|
||||||
<tabstop>tableWidgetYourIdentities</tabstop>
|
|
||||||
<tabstop>pushButtonAddSubscription</tabstop>
|
<tabstop>pushButtonAddSubscription</tabstop>
|
||||||
<tabstop>tableWidgetSubscriptions</tabstop>
|
|
||||||
<tabstop>pushButtonAddAddressBook</tabstop>
|
|
||||||
<tabstop>tableWidgetAddressBook</tabstop>
|
|
||||||
<tabstop>radioButtonBlacklist</tabstop>
|
<tabstop>radioButtonBlacklist</tabstop>
|
||||||
<tabstop>radioButtonWhitelist</tabstop>
|
<tabstop>radioButtonWhitelist</tabstop>
|
||||||
<tabstop>pushButtonAddBlacklist</tabstop>
|
<tabstop>pushButtonAddBlacklist</tabstop>
|
||||||
|
@ -1348,54 +1293,5 @@ p, li { white-space: pre-wrap; }
|
||||||
<resources>
|
<resources>
|
||||||
<include location="bitmessage_icons.qrc"/>
|
<include location="bitmessage_icons.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections>
|
<connections/>
|
||||||
<connection>
|
|
||||||
<sender>radioButtonSpecific</sender>
|
|
||||||
<signal>toggled(bool)</signal>
|
|
||||||
<receiver>lineEditTo</receiver>
|
|
||||||
<slot>setEnabled(bool)</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>121</x>
|
|
||||||
<y>60</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>175</x>
|
|
||||||
<y>147</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
|
||||||
<sender>radioButtonSpecific</sender>
|
|
||||||
<signal>clicked(bool)</signal>
|
|
||||||
<receiver>labelSendBroadcastWarning</receiver>
|
|
||||||
<slot>hide()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>95</x>
|
|
||||||
<y>59</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>129</x>
|
|
||||||
<y>528</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
<connection>
|
|
||||||
<sender>radioButtonBroadcast</sender>
|
|
||||||
<signal>clicked()</signal>
|
|
||||||
<receiver>labelSendBroadcastWarning</receiver>
|
|
||||||
<slot>show()</slot>
|
|
||||||
<hints>
|
|
||||||
<hint type="sourcelabel">
|
|
||||||
<x>108</x>
|
|
||||||
<y>84</y>
|
|
||||||
</hint>
|
|
||||||
<hint type="destinationlabel">
|
|
||||||
<x>177</x>
|
|
||||||
<y>519</y>
|
|
||||||
</hint>
|
|
||||||
</hints>
|
|
||||||
</connection>
|
|
||||||
</connections>
|
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Reference in New Issue
Block a user