2012-11-19 20:45:05 +01:00
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'bitmessageui.ui'
#
2015-03-03 20:04:12 +01:00
# Created: Fri Feb 27 18:48:36 2015
2014-07-07 22:30:23 +02:00
# by: PyQt4 UI code generator 4.10.3
2012-11-19 20:45:05 +01:00
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore , QtGui
try :
_fromUtf8 = QtCore . QString . fromUtf8
except AttributeError :
2013-06-13 01:11:01 +02:00
def _fromUtf8 ( s ) :
return s
try :
_encoding = QtGui . QApplication . UnicodeUTF8
def _translate ( context , text , disambig ) :
return QtGui . QApplication . translate ( context , text , disambig , _encoding )
except AttributeError :
def _translate ( context , text , disambig ) :
return QtGui . QApplication . translate ( context , text , disambig )
2012-11-19 20:45:05 +01:00
class Ui_MainWindow ( object ) :
def setupUi ( self , MainWindow ) :
MainWindow . setObjectName ( _fromUtf8 ( " MainWindow " ) )
2013-11-02 23:01:36 +01:00
MainWindow . resize ( 885 , 580 )
2012-11-26 01:36:29 +01:00
icon = QtGui . QIcon ( )
icon . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/can-icon-24px.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
MainWindow . setWindowIcon ( icon )
2012-11-19 20:45:05 +01:00
MainWindow . setTabShape ( QtGui . QTabWidget . Rounded )
self . centralwidget = QtGui . QWidget ( MainWindow )
self . centralwidget . setObjectName ( _fromUtf8 ( " centralwidget " ) )
self . gridLayout = QtGui . QGridLayout ( self . centralwidget )
self . gridLayout . setMargin ( 0 )
self . gridLayout . setObjectName ( _fromUtf8 ( " gridLayout " ) )
self . tabWidget = QtGui . QTabWidget ( self . centralwidget )
sizePolicy = QtGui . QSizePolicy ( QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Expanding )
sizePolicy . setHorizontalStretch ( 0 )
sizePolicy . setVerticalStretch ( 0 )
sizePolicy . setHeightForWidth ( self . tabWidget . sizePolicy ( ) . hasHeightForWidth ( ) )
self . tabWidget . setSizePolicy ( sizePolicy )
self . tabWidget . setMinimumSize ( QtCore . QSize ( 0 , 0 ) )
self . tabWidget . setBaseSize ( QtCore . QSize ( 0 , 0 ) )
font = QtGui . QFont ( )
font . setPointSize ( 9 )
self . tabWidget . setFont ( font )
self . tabWidget . setTabPosition ( QtGui . QTabWidget . North )
self . tabWidget . setTabShape ( QtGui . QTabWidget . Rounded )
self . tabWidget . setObjectName ( _fromUtf8 ( " tabWidget " ) )
self . inbox = QtGui . QWidget ( )
self . inbox . setObjectName ( _fromUtf8 ( " inbox " ) )
self . verticalLayout_2 = QtGui . QVBoxLayout ( self . inbox )
self . verticalLayout_2 . setObjectName ( _fromUtf8 ( " verticalLayout_2 " ) )
2013-07-12 08:01:33 +02:00
self . horizontalLayoutSearch = QtGui . QHBoxLayout ( )
self . horizontalLayoutSearch . setContentsMargins ( - 1 , 0 , - 1 , - 1 )
self . horizontalLayoutSearch . setObjectName ( _fromUtf8 ( " horizontalLayoutSearch " ) )
2013-07-12 10:24:24 +02:00
self . inboxSearchLineEdit = QtGui . QLineEdit ( self . inbox )
self . inboxSearchLineEdit . setObjectName ( _fromUtf8 ( " inboxSearchLineEdit " ) )
self . horizontalLayoutSearch . addWidget ( self . inboxSearchLineEdit )
self . inboxSearchOptionCB = QtGui . QComboBox ( self . inbox )
self . inboxSearchOptionCB . setObjectName ( _fromUtf8 ( " inboxSearchOptionCB " ) )
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 )
2013-07-12 08:01:33 +02:00
self . verticalLayout_2 . addLayout ( self . horizontalLayoutSearch )
2013-08-15 05:21:05 +02:00
self . splitter = QtGui . QSplitter ( self . inbox )
self . splitter . setOrientation ( QtCore . Qt . Vertical )
self . splitter . setObjectName ( _fromUtf8 ( " splitter " ) )
self . tableWidgetInbox = QtGui . QTableWidget ( self . splitter )
2013-08-15 20:21:07 +02:00
self . tableWidgetInbox . setEditTriggers ( QtGui . QAbstractItemView . NoEditTriggers )
2012-11-19 20:45:05 +01:00
self . tableWidgetInbox . setAlternatingRowColors ( True )
2013-04-05 23:54:38 +02:00
self . tableWidgetInbox . setSelectionMode ( QtGui . QAbstractItemView . ExtendedSelection )
2012-11-19 20:45:05 +01:00
self . tableWidgetInbox . setSelectionBehavior ( QtGui . QAbstractItemView . SelectRows )
self . tableWidgetInbox . setWordWrap ( False )
self . tableWidgetInbox . setObjectName ( _fromUtf8 ( " tableWidgetInbox " ) )
self . tableWidgetInbox . setColumnCount ( 4 )
self . tableWidgetInbox . setRowCount ( 0 )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetInbox . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetInbox . setHorizontalHeaderItem ( 1 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetInbox . setHorizontalHeaderItem ( 2 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetInbox . setHorizontalHeaderItem ( 3 , item )
self . tableWidgetInbox . horizontalHeader ( ) . setCascadingSectionResizes ( True )
self . tableWidgetInbox . horizontalHeader ( ) . setDefaultSectionSize ( 200 )
self . tableWidgetInbox . horizontalHeader ( ) . setHighlightSections ( False )
self . tableWidgetInbox . horizontalHeader ( ) . setMinimumSectionSize ( 27 )
self . tableWidgetInbox . horizontalHeader ( ) . setSortIndicatorShown ( False )
self . tableWidgetInbox . horizontalHeader ( ) . setStretchLastSection ( True )
self . tableWidgetInbox . verticalHeader ( ) . setVisible ( False )
self . tableWidgetInbox . verticalHeader ( ) . setDefaultSectionSize ( 26 )
2013-08-15 05:21:05 +02:00
self . textEditInboxMessage = QtGui . QTextEdit ( self . splitter )
2012-11-19 20:45:05 +01:00
self . textEditInboxMessage . setBaseSize ( QtCore . QSize ( 0 , 500 ) )
2013-08-15 16:01:36 +02:00
self . textEditInboxMessage . setReadOnly ( True )
2012-11-19 20:45:05 +01:00
self . textEditInboxMessage . setObjectName ( _fromUtf8 ( " textEditInboxMessage " ) )
2013-08-15 05:21:05 +02:00
self . verticalLayout_2 . addWidget ( self . splitter )
2012-11-26 01:36:29 +01:00
icon1 = QtGui . QIcon ( )
icon1 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/inbox.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . inbox , icon1 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . send = QtGui . QWidget ( )
self . send . setObjectName ( _fromUtf8 ( " send " ) )
self . gridLayout_2 = QtGui . QGridLayout ( self . send )
self . gridLayout_2 . setObjectName ( _fromUtf8 ( " gridLayout_2 " ) )
2015-03-03 20:04:12 +01:00
self . lineEditSubject = QtGui . QLineEdit ( self . send )
self . lineEditSubject . setText ( _fromUtf8 ( " " ) )
self . lineEditSubject . setObjectName ( _fromUtf8 ( " lineEditSubject " ) )
self . gridLayout_2 . addWidget ( self . lineEditSubject , 4 , 1 , 1 , 1 )
2012-11-19 20:45:05 +01:00
self . pushButtonLoadFromAddressBook = QtGui . QPushButton ( self . send )
font = QtGui . QFont ( )
font . setPointSize ( 7 )
self . pushButtonLoadFromAddressBook . setFont ( font )
self . pushButtonLoadFromAddressBook . setObjectName ( _fromUtf8 ( " pushButtonLoadFromAddressBook " ) )
2013-07-04 22:06:30 +02:00
self . gridLayout_2 . addWidget ( self . pushButtonLoadFromAddressBook , 3 , 2 , 1 , 1 )
2015-03-03 20:04:12 +01:00
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 . 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 )
2013-04-22 22:39:43 +02:00
self . comboBoxSendFrom = QtGui . QComboBox ( self . send )
self . comboBoxSendFrom . setMinimumSize ( QtCore . QSize ( 300 , 0 ) )
self . comboBoxSendFrom . setObjectName ( _fromUtf8 ( " comboBoxSendFrom " ) )
self . gridLayout_2 . addWidget ( self . comboBoxSendFrom , 2 , 1 , 1 , 1 )
2015-03-03 20:04:12 +01:00
self . labelHumanFriendlyTTLDescription = QtGui . QLabel ( self . send )
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 . gridLayout_2 . addWidget ( self . label , 3 , 0 , 1 , 1 )
2012-11-19 20:45:05 +01:00
self . radioButtonSpecific = QtGui . QRadioButton ( self . send )
self . radioButtonSpecific . setChecked ( True )
self . radioButtonSpecific . setObjectName ( _fromUtf8 ( " radioButtonSpecific " ) )
self . gridLayout_2 . addWidget ( self . radioButtonSpecific , 0 , 1 , 1 , 1 )
2013-04-22 22:39:43 +02:00
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 )
2015-03-03 20:04:12 +01:00
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 . labelFrom = QtGui . QLabel ( self . send )
self . labelFrom . setText ( _fromUtf8 ( " " ) )
self . labelFrom . setObjectName ( _fromUtf8 ( " labelFrom " ) )
self . gridLayout_2 . addWidget ( self . labelFrom , 2 , 2 , 1 , 1 )
spacerItem1 = QtGui . QSpacerItem ( 20 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_2 . addItem ( spacerItem1 , 3 , 4 , 1 , 1 )
self . lineEditTo = QtGui . QLineEdit ( self . send )
self . lineEditTo . setObjectName ( _fromUtf8 ( " lineEditTo " ) )
self . gridLayout_2 . addWidget ( self . lineEditTo , 3 , 1 , 1 , 1 )
self . textEditMessage = QtGui . QTextEdit ( self . send )
self . textEditMessage . setObjectName ( _fromUtf8 ( " textEditMessage " ) )
self . gridLayout_2 . addWidget ( self . textEditMessage , 5 , 1 , 2 , 8 )
self . pushButtonFetchNamecoinID = QtGui . QPushButton ( self . send )
font = QtGui . QFont ( )
font . setPointSize ( 7 )
self . pushButtonFetchNamecoinID . setFont ( font )
self . pushButtonFetchNamecoinID . setObjectName ( _fromUtf8 ( " pushButtonFetchNamecoinID " ) )
self . gridLayout_2 . addWidget ( self . pushButtonFetchNamecoinID , 3 , 3 , 1 , 1 )
2012-11-26 01:36:29 +01:00
icon2 = QtGui . QIcon ( )
icon2 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/send.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . send , icon2 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . sent = QtGui . QWidget ( )
self . sent . setObjectName ( _fromUtf8 ( " sent " ) )
self . verticalLayout = QtGui . QVBoxLayout ( self . sent )
self . verticalLayout . setObjectName ( _fromUtf8 ( " verticalLayout " ) )
2013-07-12 10:42:52 +02:00
self . horizontalLayout = QtGui . QHBoxLayout ( )
self . horizontalLayout . setContentsMargins ( - 1 , 0 , - 1 , - 1 )
self . horizontalLayout . setObjectName ( _fromUtf8 ( " horizontalLayout " ) )
self . sentSearchLineEdit = QtGui . QLineEdit ( self . sent )
self . sentSearchLineEdit . setObjectName ( _fromUtf8 ( " sentSearchLineEdit " ) )
self . horizontalLayout . addWidget ( self . sentSearchLineEdit )
self . sentSearchOptionCB = QtGui . QComboBox ( self . sent )
self . sentSearchOptionCB . setObjectName ( _fromUtf8 ( " sentSearchOptionCB " ) )
self . sentSearchOptionCB . addItem ( _fromUtf8 ( " " ) )
self . sentSearchOptionCB . addItem ( _fromUtf8 ( " " ) )
self . sentSearchOptionCB . addItem ( _fromUtf8 ( " " ) )
self . sentSearchOptionCB . addItem ( _fromUtf8 ( " " ) )
self . sentSearchOptionCB . addItem ( _fromUtf8 ( " " ) )
self . horizontalLayout . addWidget ( self . sentSearchOptionCB )
self . verticalLayout . addLayout ( self . horizontalLayout )
2013-08-15 05:21:05 +02:00
self . splitter_2 = QtGui . QSplitter ( self . sent )
self . splitter_2 . setOrientation ( QtCore . Qt . Vertical )
self . splitter_2 . setObjectName ( _fromUtf8 ( " splitter_2 " ) )
self . tableWidgetSent = QtGui . QTableWidget ( self . splitter_2 )
2013-08-15 20:21:07 +02:00
self . tableWidgetSent . setEditTriggers ( QtGui . QAbstractItemView . NoEditTriggers )
2012-11-19 20:45:05 +01:00
self . tableWidgetSent . setDragDropMode ( QtGui . QAbstractItemView . DragDrop )
self . tableWidgetSent . setAlternatingRowColors ( True )
2013-04-05 23:54:38 +02:00
self . tableWidgetSent . setSelectionMode ( QtGui . QAbstractItemView . ExtendedSelection )
2012-11-19 20:45:05 +01:00
self . tableWidgetSent . setSelectionBehavior ( QtGui . QAbstractItemView . SelectRows )
self . tableWidgetSent . setWordWrap ( False )
self . tableWidgetSent . setObjectName ( _fromUtf8 ( " tableWidgetSent " ) )
self . tableWidgetSent . setColumnCount ( 4 )
self . tableWidgetSent . setRowCount ( 0 )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetSent . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetSent . setHorizontalHeaderItem ( 1 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetSent . setHorizontalHeaderItem ( 2 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetSent . setHorizontalHeaderItem ( 3 , item )
self . tableWidgetSent . horizontalHeader ( ) . setCascadingSectionResizes ( True )
self . tableWidgetSent . horizontalHeader ( ) . setDefaultSectionSize ( 130 )
self . tableWidgetSent . horizontalHeader ( ) . setHighlightSections ( False )
self . tableWidgetSent . horizontalHeader ( ) . setSortIndicatorShown ( False )
self . tableWidgetSent . horizontalHeader ( ) . setStretchLastSection ( True )
self . tableWidgetSent . verticalHeader ( ) . setVisible ( False )
self . tableWidgetSent . verticalHeader ( ) . setStretchLastSection ( False )
2013-08-15 05:21:05 +02:00
self . textEditSentMessage = QtGui . QTextEdit ( self . splitter_2 )
2013-08-15 16:01:36 +02:00
self . textEditSentMessage . setReadOnly ( True )
2012-11-19 20:45:05 +01:00
self . textEditSentMessage . setObjectName ( _fromUtf8 ( " textEditSentMessage " ) )
2013-08-15 05:21:05 +02:00
self . verticalLayout . addWidget ( self . splitter_2 )
2012-11-26 01:36:29 +01:00
icon3 = QtGui . QIcon ( )
icon3 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/sent.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . sent , icon3 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . youridentities = QtGui . QWidget ( )
self . youridentities . setObjectName ( _fromUtf8 ( " youridentities " ) )
self . gridLayout_3 = QtGui . QGridLayout ( self . youridentities )
self . gridLayout_3 . setObjectName ( _fromUtf8 ( " gridLayout_3 " ) )
self . pushButtonNewAddress = QtGui . QPushButton ( self . youridentities )
self . pushButtonNewAddress . setObjectName ( _fromUtf8 ( " pushButtonNewAddress " ) )
self . gridLayout_3 . addWidget ( self . pushButtonNewAddress , 0 , 0 , 1 , 1 )
2013-04-22 22:39:43 +02:00
spacerItem2 = QtGui . QSpacerItem ( 689 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_3 . addItem ( spacerItem2 , 0 , 1 , 1 , 1 )
2012-11-19 20:45:05 +01:00
self . tableWidgetYourIdentities = QtGui . QTableWidget ( self . youridentities )
self . tableWidgetYourIdentities . setFrameShadow ( QtGui . QFrame . Sunken )
self . tableWidgetYourIdentities . setLineWidth ( 1 )
self . tableWidgetYourIdentities . setAlternatingRowColors ( True )
self . tableWidgetYourIdentities . setSelectionMode ( QtGui . QAbstractItemView . SingleSelection )
self . tableWidgetYourIdentities . setSelectionBehavior ( QtGui . QAbstractItemView . SelectRows )
self . tableWidgetYourIdentities . setObjectName ( _fromUtf8 ( " tableWidgetYourIdentities " ) )
self . tableWidgetYourIdentities . setColumnCount ( 3 )
self . tableWidgetYourIdentities . setRowCount ( 0 )
item = QtGui . QTableWidgetItem ( )
font = QtGui . QFont ( )
font . setKerning ( True )
item . setFont ( font )
self . tableWidgetYourIdentities . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetYourIdentities . setHorizontalHeaderItem ( 1 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetYourIdentities . setHorizontalHeaderItem ( 2 , item )
self . tableWidgetYourIdentities . horizontalHeader ( ) . setCascadingSectionResizes ( True )
self . tableWidgetYourIdentities . horizontalHeader ( ) . setDefaultSectionSize ( 346 )
self . tableWidgetYourIdentities . horizontalHeader ( ) . setMinimumSectionSize ( 52 )
self . tableWidgetYourIdentities . horizontalHeader ( ) . setSortIndicatorShown ( True )
self . tableWidgetYourIdentities . horizontalHeader ( ) . setStretchLastSection ( True )
self . tableWidgetYourIdentities . verticalHeader ( ) . setVisible ( False )
self . tableWidgetYourIdentities . verticalHeader ( ) . setDefaultSectionSize ( 26 )
self . tableWidgetYourIdentities . verticalHeader ( ) . setSortIndicatorShown ( False )
self . tableWidgetYourIdentities . verticalHeader ( ) . setStretchLastSection ( False )
self . gridLayout_3 . addWidget ( self . tableWidgetYourIdentities , 1 , 0 , 1 , 2 )
2012-11-26 01:36:29 +01:00
icon4 = QtGui . QIcon ( )
icon4 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/identities.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . youridentities , icon4 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . subscriptions = QtGui . QWidget ( )
self . subscriptions . setObjectName ( _fromUtf8 ( " subscriptions " ) )
self . gridLayout_4 = QtGui . QGridLayout ( self . subscriptions )
self . gridLayout_4 . setObjectName ( _fromUtf8 ( " gridLayout_4 " ) )
self . label_5 = QtGui . QLabel ( self . subscriptions )
self . label_5 . setWordWrap ( True )
self . label_5 . setObjectName ( _fromUtf8 ( " label_5 " ) )
self . gridLayout_4 . addWidget ( self . label_5 , 0 , 0 , 1 , 2 )
self . pushButtonAddSubscription = QtGui . QPushButton ( self . subscriptions )
self . pushButtonAddSubscription . setObjectName ( _fromUtf8 ( " pushButtonAddSubscription " ) )
self . gridLayout_4 . addWidget ( self . pushButtonAddSubscription , 1 , 0 , 1 , 1 )
2013-04-22 22:39:43 +02:00
spacerItem3 = QtGui . QSpacerItem ( 689 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_4 . addItem ( spacerItem3 , 1 , 1 , 1 , 1 )
2012-11-19 20:45:05 +01:00
self . tableWidgetSubscriptions = QtGui . QTableWidget ( self . subscriptions )
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 ( )
self . tableWidgetSubscriptions . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetSubscriptions . 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 )
2012-11-26 01:36:29 +01:00
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 ( " " ) )
2012-11-19 20:45:05 +01:00
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 )
2013-04-22 22:39:43 +02:00
spacerItem4 = QtGui . QSpacerItem ( 689 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_5 . addItem ( spacerItem4 , 1 , 1 , 1 , 1 )
2012-11-19 20:45:05 +01:00
self . tableWidgetAddressBook = QtGui . QTableWidget ( self . addressbook )
self . tableWidgetAddressBook . setAlternatingRowColors ( True )
2013-04-08 18:07:05 +02:00
self . tableWidgetAddressBook . setSelectionMode ( QtGui . QAbstractItemView . ExtendedSelection )
2012-11-19 20:45:05 +01:00
self . tableWidgetAddressBook . setSelectionBehavior ( QtGui . QAbstractItemView . SelectRows )
self . tableWidgetAddressBook . setObjectName ( _fromUtf8 ( " tableWidgetAddressBook " ) )
self . tableWidgetAddressBook . setColumnCount ( 2 )
self . tableWidgetAddressBook . setRowCount ( 0 )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetAddressBook . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetAddressBook . setHorizontalHeaderItem ( 1 , item )
self . tableWidgetAddressBook . horizontalHeader ( ) . setCascadingSectionResizes ( True )
self . tableWidgetAddressBook . horizontalHeader ( ) . setDefaultSectionSize ( 400 )
self . tableWidgetAddressBook . horizontalHeader ( ) . setHighlightSections ( False )
self . tableWidgetAddressBook . horizontalHeader ( ) . setStretchLastSection ( True )
self . tableWidgetAddressBook . verticalHeader ( ) . setVisible ( False )
self . gridLayout_5 . addWidget ( self . tableWidgetAddressBook , 2 , 0 , 1 , 2 )
2012-11-26 01:36:29 +01:00
icon6 = QtGui . QIcon ( )
icon6 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/addressbook.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . addressbook , icon6 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . blackwhitelist = QtGui . QWidget ( )
self . blackwhitelist . setObjectName ( _fromUtf8 ( " blackwhitelist " ) )
self . gridLayout_6 = QtGui . QGridLayout ( self . blackwhitelist )
self . gridLayout_6 . setObjectName ( _fromUtf8 ( " gridLayout_6 " ) )
self . radioButtonBlacklist = QtGui . QRadioButton ( self . blackwhitelist )
self . radioButtonBlacklist . setChecked ( True )
self . radioButtonBlacklist . setObjectName ( _fromUtf8 ( " radioButtonBlacklist " ) )
self . gridLayout_6 . addWidget ( self . radioButtonBlacklist , 0 , 0 , 1 , 2 )
self . radioButtonWhitelist = QtGui . QRadioButton ( self . blackwhitelist )
self . radioButtonWhitelist . setObjectName ( _fromUtf8 ( " radioButtonWhitelist " ) )
self . gridLayout_6 . addWidget ( self . radioButtonWhitelist , 1 , 0 , 1 , 2 )
self . pushButtonAddBlacklist = QtGui . QPushButton ( self . blackwhitelist )
self . pushButtonAddBlacklist . setObjectName ( _fromUtf8 ( " pushButtonAddBlacklist " ) )
self . gridLayout_6 . addWidget ( self . pushButtonAddBlacklist , 2 , 0 , 1 , 1 )
2013-04-22 22:39:43 +02:00
spacerItem5 = QtGui . QSpacerItem ( 689 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_6 . addItem ( spacerItem5 , 2 , 1 , 1 , 1 )
2012-11-19 20:45:05 +01:00
self . tableWidgetBlacklist = QtGui . QTableWidget ( self . blackwhitelist )
self . tableWidgetBlacklist . setAlternatingRowColors ( True )
self . tableWidgetBlacklist . setSelectionMode ( QtGui . QAbstractItemView . SingleSelection )
self . tableWidgetBlacklist . setSelectionBehavior ( QtGui . QAbstractItemView . SelectRows )
self . tableWidgetBlacklist . setObjectName ( _fromUtf8 ( " tableWidgetBlacklist " ) )
self . tableWidgetBlacklist . setColumnCount ( 2 )
self . tableWidgetBlacklist . setRowCount ( 0 )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetBlacklist . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetBlacklist . setHorizontalHeaderItem ( 1 , item )
self . tableWidgetBlacklist . horizontalHeader ( ) . setCascadingSectionResizes ( True )
self . tableWidgetBlacklist . horizontalHeader ( ) . setDefaultSectionSize ( 400 )
self . tableWidgetBlacklist . horizontalHeader ( ) . setHighlightSections ( False )
self . tableWidgetBlacklist . horizontalHeader ( ) . setSortIndicatorShown ( False )
self . tableWidgetBlacklist . horizontalHeader ( ) . setStretchLastSection ( True )
self . tableWidgetBlacklist . verticalHeader ( ) . setVisible ( False )
self . gridLayout_6 . addWidget ( self . tableWidgetBlacklist , 3 , 0 , 1 , 2 )
2012-11-26 01:36:29 +01:00
icon7 = QtGui . QIcon ( )
icon7 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/blacklist.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . blackwhitelist , icon7 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . networkstatus = QtGui . QWidget ( )
self . networkstatus . setObjectName ( _fromUtf8 ( " networkstatus " ) )
self . pushButtonStatusIcon = QtGui . QPushButton ( self . networkstatus )
self . pushButtonStatusIcon . setGeometry ( QtCore . QRect ( 680 , 440 , 21 , 23 ) )
self . pushButtonStatusIcon . setText ( _fromUtf8 ( " " ) )
2012-11-26 01:36:29 +01:00
icon8 = QtGui . QIcon ( )
icon8 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/redicon.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . pushButtonStatusIcon . setIcon ( icon8 )
2012-11-19 20:45:05 +01:00
self . pushButtonStatusIcon . setFlat ( True )
self . pushButtonStatusIcon . setObjectName ( _fromUtf8 ( " pushButtonStatusIcon " ) )
self . tableWidgetConnectionCount = QtGui . QTableWidget ( self . networkstatus )
self . tableWidgetConnectionCount . setGeometry ( QtCore . QRect ( 20 , 70 , 241 , 241 ) )
palette = QtGui . QPalette ( )
brush = QtGui . QBrush ( QtGui . QColor ( 212 , 208 , 200 ) )
brush . setStyle ( QtCore . Qt . SolidPattern )
palette . setBrush ( QtGui . QPalette . Active , QtGui . QPalette . Base , brush )
brush = QtGui . QBrush ( QtGui . QColor ( 212 , 208 , 200 ) )
brush . setStyle ( QtCore . Qt . SolidPattern )
palette . setBrush ( QtGui . QPalette . Inactive , QtGui . QPalette . Base , brush )
brush = QtGui . QBrush ( QtGui . QColor ( 212 , 208 , 200 ) )
brush . setStyle ( QtCore . Qt . SolidPattern )
palette . setBrush ( QtGui . QPalette . Disabled , QtGui . QPalette . Base , brush )
self . tableWidgetConnectionCount . setPalette ( palette )
self . tableWidgetConnectionCount . setFrameShape ( QtGui . QFrame . Box )
self . tableWidgetConnectionCount . setFrameShadow ( QtGui . QFrame . Plain )
self . tableWidgetConnectionCount . setProperty ( " showDropIndicator " , False )
self . tableWidgetConnectionCount . setAlternatingRowColors ( True )
self . tableWidgetConnectionCount . setSelectionMode ( QtGui . QAbstractItemView . NoSelection )
self . tableWidgetConnectionCount . setObjectName ( _fromUtf8 ( " tableWidgetConnectionCount " ) )
self . tableWidgetConnectionCount . setColumnCount ( 2 )
self . tableWidgetConnectionCount . setRowCount ( 0 )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetConnectionCount . setHorizontalHeaderItem ( 0 , item )
item = QtGui . QTableWidgetItem ( )
self . tableWidgetConnectionCount . setHorizontalHeaderItem ( 1 , item )
self . tableWidgetConnectionCount . horizontalHeader ( ) . setCascadingSectionResizes ( True )
self . tableWidgetConnectionCount . horizontalHeader ( ) . setHighlightSections ( False )
self . tableWidgetConnectionCount . horizontalHeader ( ) . setStretchLastSection ( True )
self . tableWidgetConnectionCount . verticalHeader ( ) . setVisible ( False )
self . labelTotalConnections = QtGui . QLabel ( self . networkstatus )
self . labelTotalConnections . setGeometry ( QtCore . QRect ( 20 , 30 , 401 , 16 ) )
self . labelTotalConnections . setObjectName ( _fromUtf8 ( " labelTotalConnections " ) )
self . labelStartupTime = QtGui . QLabel ( self . networkstatus )
self . labelStartupTime . setGeometry ( QtCore . QRect ( 320 , 110 , 331 , 20 ) )
self . labelStartupTime . setObjectName ( _fromUtf8 ( " labelStartupTime " ) )
self . labelMessageCount = QtGui . QLabel ( self . networkstatus )
2012-12-18 20:37:37 +01:00
self . labelMessageCount . setGeometry ( QtCore . QRect ( 350 , 130 , 361 , 16 ) )
2012-11-19 20:45:05 +01:00
self . labelMessageCount . setObjectName ( _fromUtf8 ( " labelMessageCount " ) )
self . labelPubkeyCount = QtGui . QLabel ( self . networkstatus )
self . labelPubkeyCount . setGeometry ( QtCore . QRect ( 350 , 170 , 331 , 16 ) )
self . labelPubkeyCount . setObjectName ( _fromUtf8 ( " labelPubkeyCount " ) )
self . labelBroadcastCount = QtGui . QLabel ( self . networkstatus )
2012-12-18 20:37:37 +01:00
self . labelBroadcastCount . setGeometry ( QtCore . QRect ( 350 , 150 , 351 , 16 ) )
2012-11-19 20:45:05 +01:00
self . labelBroadcastCount . setObjectName ( _fromUtf8 ( " labelBroadcastCount " ) )
2013-09-04 00:08:29 +02:00
self . labelLookupsPerSecond = QtGui . QLabel ( self . networkstatus )
2014-08-01 22:35:48 +02:00
self . labelLookupsPerSecond . setGeometry ( QtCore . QRect ( 320 , 250 , 291 , 16 ) )
2013-09-04 00:08:29 +02:00
self . labelLookupsPerSecond . setObjectName ( _fromUtf8 ( " labelLookupsPerSecond " ) )
2014-07-07 22:30:23 +02:00
self . labelBytesRecvCount = QtGui . QLabel ( self . networkstatus )
2014-08-01 22:35:48 +02:00
self . labelBytesRecvCount . setGeometry ( QtCore . QRect ( 350 , 210 , 251 , 16 ) )
2014-07-07 22:30:23 +02:00
self . labelBytesRecvCount . setObjectName ( _fromUtf8 ( " labelBytesRecvCount " ) )
self . labelBytesSentCount = QtGui . QLabel ( self . networkstatus )
2014-08-01 22:35:48 +02:00
self . labelBytesSentCount . setGeometry ( QtCore . QRect ( 350 , 230 , 251 , 16 ) )
2014-07-07 22:30:23 +02:00
self . labelBytesSentCount . setObjectName ( _fromUtf8 ( " labelBytesSentCount " ) )
2012-11-26 01:36:29 +01:00
icon9 = QtGui . QIcon ( )
icon9 . addPixmap ( QtGui . QPixmap ( _fromUtf8 ( " :/newPrefix/images/networkstatus.png " ) ) , QtGui . QIcon . Normal , QtGui . QIcon . Off )
self . tabWidget . addTab ( self . networkstatus , icon9 , _fromUtf8 ( " " ) )
2012-11-19 20:45:05 +01:00
self . gridLayout . addWidget ( self . tabWidget , 0 , 0 , 1 , 1 )
MainWindow . setCentralWidget ( self . centralwidget )
self . menubar = QtGui . QMenuBar ( MainWindow )
2014-08-01 22:35:48 +02:00
self . menubar . setGeometry ( QtCore . QRect ( 0 , 0 , 885 , 21 ) )
2012-11-19 20:45:05 +01:00
self . menubar . setObjectName ( _fromUtf8 ( " menubar " ) )
self . menuFile = QtGui . QMenu ( self . menubar )
self . menuFile . setObjectName ( _fromUtf8 ( " menuFile " ) )
self . menuSettings = QtGui . QMenu ( self . menubar )
self . menuSettings . setObjectName ( _fromUtf8 ( " menuSettings " ) )
self . menuHelp = QtGui . QMenu ( self . menubar )
self . menuHelp . setObjectName ( _fromUtf8 ( " menuHelp " ) )
MainWindow . setMenuBar ( self . menubar )
self . statusbar = QtGui . QStatusBar ( MainWindow )
self . statusbar . setMaximumSize ( QtCore . QSize ( 16777215 , 22 ) )
self . statusbar . setObjectName ( _fromUtf8 ( " statusbar " ) )
MainWindow . setStatusBar ( self . statusbar )
self . actionImport_keys = QtGui . QAction ( MainWindow )
self . actionImport_keys . setObjectName ( _fromUtf8 ( " actionImport_keys " ) )
self . actionManageKeys = QtGui . QAction ( MainWindow )
self . actionManageKeys . setCheckable ( False )
self . actionManageKeys . setEnabled ( True )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " dialog-password " ) )
self . actionManageKeys . setIcon ( icon )
2012-11-19 20:45:05 +01:00
self . actionManageKeys . setObjectName ( _fromUtf8 ( " actionManageKeys " ) )
self . actionExit = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " application-exit " ) )
self . actionExit . setIcon ( icon )
2012-11-19 20:45:05 +01:00
self . actionExit . setObjectName ( _fromUtf8 ( " actionExit " ) )
self . actionHelp = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " help-contents " ) )
self . actionHelp . setIcon ( icon )
2012-11-19 20:45:05 +01:00
self . actionHelp . setObjectName ( _fromUtf8 ( " actionHelp " ) )
self . actionAbout = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " help-about " ) )
self . actionAbout . setIcon ( icon )
2012-11-19 20:45:05 +01:00
self . actionAbout . setObjectName ( _fromUtf8 ( " actionAbout " ) )
self . actionSettings = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " document-properties " ) )
self . actionSettings . setIcon ( icon )
2012-11-19 20:45:05 +01:00
self . actionSettings . setObjectName ( _fromUtf8 ( " actionSettings " ) )
2013-01-24 22:07:24 +01:00
self . actionRegenerateDeterministicAddresses = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " view-refresh " ) )
self . actionRegenerateDeterministicAddresses . setIcon ( icon )
2013-01-24 22:07:24 +01:00
self . actionRegenerateDeterministicAddresses . setObjectName ( _fromUtf8 ( " actionRegenerateDeterministicAddresses " ) )
2013-05-28 22:50:09 +02:00
self . actionDeleteAllTrashedMessages = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " user-trash " ) )
self . actionDeleteAllTrashedMessages . setIcon ( icon )
2013-05-28 22:50:09 +02:00
self . actionDeleteAllTrashedMessages . setObjectName ( _fromUtf8 ( " actionDeleteAllTrashedMessages " ) )
2013-07-22 07:10:22 +02:00
self . actionJoinChan = QtGui . QAction ( MainWindow )
2013-08-01 07:26:46 +02:00
icon = QtGui . QIcon . fromTheme ( _fromUtf8 ( " contact-new " ) )
self . actionJoinChan . setIcon ( icon )
2013-07-22 07:10:22 +02:00
self . actionJoinChan . setObjectName ( _fromUtf8 ( " actionJoinChan " ) )
2012-11-19 20:45:05 +01:00
self . menuFile . addAction ( self . actionManageKeys )
2013-05-28 22:50:09 +02:00
self . menuFile . addAction ( self . actionDeleteAllTrashedMessages )
2013-01-24 22:07:24 +01:00
self . menuFile . addAction ( self . actionRegenerateDeterministicAddresses )
2013-07-22 07:10:22 +02:00
self . menuFile . addAction ( self . actionJoinChan )
2012-11-19 20:45:05 +01:00
self . menuFile . addAction ( self . actionExit )
self . menuSettings . addAction ( self . actionSettings )
self . menuHelp . addAction ( self . actionHelp )
self . menuHelp . addAction ( self . actionAbout )
self . menubar . addAction ( self . menuFile . menuAction ( ) )
self . menubar . addAction ( self . menuSettings . menuAction ( ) )
self . menubar . addAction ( self . menuHelp . menuAction ( ) )
self . retranslateUi ( MainWindow )
2013-01-29 22:21:49 +01:00
self . tabWidget . setCurrentIndex ( 0 )
2012-11-19 20:45:05 +01:00
QtCore . QObject . connect ( self . radioButtonSpecific , QtCore . SIGNAL ( _fromUtf8 ( " toggled(bool) " ) ) , self . lineEditTo . setEnabled )
2013-04-22 22:39:43 +02:00
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 )
2012-11-19 20:45:05 +01:00
QtCore . QMetaObject . connectSlotsByName ( MainWindow )
2013-05-21 20:10:48 +02:00
MainWindow . setTabOrder ( self . tabWidget , self . tableWidgetInbox )
MainWindow . setTabOrder ( self . tableWidgetInbox , self . textEditInboxMessage )
MainWindow . setTabOrder ( self . textEditInboxMessage , self . radioButtonSpecific )
MainWindow . setTabOrder ( self . radioButtonSpecific , self . radioButtonBroadcast )
MainWindow . setTabOrder ( self . radioButtonBroadcast , self . comboBoxSendFrom )
MainWindow . setTabOrder ( self . comboBoxSendFrom , self . lineEditTo )
MainWindow . setTabOrder ( self . lineEditTo , self . pushButtonLoadFromAddressBook )
MainWindow . setTabOrder ( self . pushButtonLoadFromAddressBook , self . lineEditSubject )
MainWindow . setTabOrder ( self . lineEditSubject , self . textEditMessage )
MainWindow . setTabOrder ( self . textEditMessage , self . pushButtonSend )
MainWindow . setTabOrder ( self . pushButtonSend , self . tableWidgetSent )
MainWindow . setTabOrder ( self . tableWidgetSent , self . textEditSentMessage )
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 . radioButtonWhitelist , self . pushButtonAddBlacklist )
MainWindow . setTabOrder ( self . pushButtonAddBlacklist , self . tableWidgetBlacklist )
MainWindow . setTabOrder ( self . tableWidgetBlacklist , self . tableWidgetConnectionCount )
MainWindow . setTabOrder ( self . tableWidgetConnectionCount , self . pushButtonStatusIcon )
2012-11-19 20:45:05 +01:00
def retranslateUi ( self , MainWindow ) :
2013-06-13 01:11:01 +02:00
MainWindow . setWindowTitle ( _translate ( " MainWindow " , " Bitmessage " , None ) )
2013-07-14 02:35:06 +02:00
self . inboxSearchLineEdit . setPlaceholderText ( _translate ( " MainWindow " , " Search " , None ) )
2013-07-12 10:24:24 +02:00
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 ) )
2012-11-19 20:45:05 +01:00
self . tableWidgetInbox . setSortingEnabled ( True )
item = self . tableWidgetInbox . horizontalHeaderItem ( 0 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " To " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetInbox . horizontalHeaderItem ( 1 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " From " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetInbox . horizontalHeaderItem ( 2 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Subject " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetInbox . horizontalHeaderItem ( 3 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Received " , None ) )
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . inbox ) , _translate ( " MainWindow " , " Inbox " , None ) )
self . pushButtonLoadFromAddressBook . setText ( _translate ( " MainWindow " , " Load from Address book " , None ) )
self . label_3 . setText ( _translate ( " MainWindow " , " Subject: " , None ) )
2015-03-03 20:04:12 +01:00
self . pushButtonSend . setText ( _translate ( " MainWindow " , " Send " , None ) )
self . labelHumanFriendlyTTLDescription . setText ( _translate ( " MainWindow " , " X days " , None ) )
self . label_4 . setText ( _translate ( " MainWindow " , " Message: " , None ) )
self . label . setText ( _translate ( " MainWindow " , " To: " , None ) )
2013-06-13 01:11:01 +02:00
self . radioButtonSpecific . setText ( _translate ( " MainWindow " , " Send to one or more specific people " , None ) )
2015-03-03 20:04:12 +01:00
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 ) )
2013-06-13 01:11:01 +02:00
self . textEditMessage . setHtml ( _translate ( " MainWindow " , " <!DOCTYPE HTML PUBLIC \" -//W3C//DTD HTML 4.0//EN \" \" http://www.w3.org/TR/REC-html40/strict.dtd \" > \n "
2012-11-19 20:45:05 +01:00
" <html><head><meta name= \" qrichtext \" content= \" 1 \" /><style type= \" text/css \" > \n "
" p, li { white-space: pre-wrap; } \n "
2014-08-01 22:35:48 +02:00
" </style></head><body style= \" font-family: \' MS Shell Dlg 2 \' ; 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 ) )
2015-03-03 20:04:12 +01:00
self . pushButtonFetchNamecoinID . setText ( _translate ( " MainWindow " , " Fetch Namecoin ID " , None ) )
2013-06-13 01:11:01 +02:00
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . send ) , _translate ( " MainWindow " , " Send " , None ) )
2013-07-14 02:35:06 +02:00
self . sentSearchLineEdit . setPlaceholderText ( _translate ( " MainWindow " , " Search " , None ) )
2013-07-12 10:42:52 +02:00
self . sentSearchOptionCB . setItemText ( 0 , _translate ( " MainWindow " , " All " , None ) )
self . sentSearchOptionCB . setItemText ( 1 , _translate ( " MainWindow " , " To " , None ) )
self . sentSearchOptionCB . setItemText ( 2 , _translate ( " MainWindow " , " From " , None ) )
self . sentSearchOptionCB . setItemText ( 3 , _translate ( " MainWindow " , " Subject " , None ) )
self . sentSearchOptionCB . setItemText ( 4 , _translate ( " MainWindow " , " Message " , None ) )
2012-11-19 20:45:05 +01:00
self . tableWidgetSent . setSortingEnabled ( True )
item = self . tableWidgetSent . horizontalHeaderItem ( 0 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " To " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetSent . horizontalHeaderItem ( 1 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " From " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetSent . horizontalHeaderItem ( 2 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Subject " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetSent . horizontalHeaderItem ( 3 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Status " , None ) )
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . sent ) , _translate ( " MainWindow " , " Sent " , None ) )
self . pushButtonNewAddress . setText ( _translate ( " MainWindow " , " New " , None ) )
2012-11-19 20:45:05 +01:00
self . tableWidgetYourIdentities . setSortingEnabled ( True )
item = self . tableWidgetYourIdentities . horizontalHeaderItem ( 0 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Label (not shown to anyone) " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetYourIdentities . horizontalHeaderItem ( 1 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Address " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetYourIdentities . horizontalHeaderItem ( 2 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Stream " , None ) )
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . youridentities ) , _translate ( " MainWindow " , " Your Identities " , 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 . pushButtonAddSubscription . setText ( _translate ( " MainWindow " , " Add new Subscription " , None ) )
2012-11-19 20:45:05 +01:00
self . tableWidgetSubscriptions . setSortingEnabled ( True )
item = self . tableWidgetSubscriptions . horizontalHeaderItem ( 0 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Label " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetSubscriptions . horizontalHeaderItem ( 1 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Address " , None ) )
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . subscriptions ) , _translate ( " MainWindow " , " Subscriptions " , 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 ) )
self . pushButtonAddAddressBook . setText ( _translate ( " MainWindow " , " Add new entry " , None ) )
2012-11-19 20:45:05 +01:00
self . tableWidgetAddressBook . setSortingEnabled ( True )
item = self . tableWidgetAddressBook . horizontalHeaderItem ( 0 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Name or Label " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetAddressBook . horizontalHeaderItem ( 1 )
2013-06-13 01:11:01 +02:00
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 . 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 ) )
2012-11-19 20:45:05 +01:00
self . tableWidgetBlacklist . setSortingEnabled ( True )
item = self . tableWidgetBlacklist . horizontalHeaderItem ( 0 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Name or Label " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetBlacklist . horizontalHeaderItem ( 1 )
2013-06-13 01:11:01 +02:00
item . setText ( _translate ( " MainWindow " , " Address " , None ) )
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . blackwhitelist ) , _translate ( " MainWindow " , " Blacklist " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetConnectionCount . horizontalHeaderItem ( 0 )
2013-06-24 14:56:30 +02:00
item . setText ( _translate ( " MainWindow " , " Stream # " , None ) )
2012-11-19 20:45:05 +01:00
item = self . tableWidgetConnectionCount . horizontalHeaderItem ( 1 )
2013-06-24 14:56:30 +02:00
item . setText ( _translate ( " MainWindow " , " Connections " , None ) )
2015-01-08 23:08:35 +01:00
self . labelTotalConnections . setText ( _translate ( " MainWindow " , " Total connections: " , None ) )
self . labelStartupTime . setText ( _translate ( " MainWindow " , " Since startup: " , None ) )
self . labelMessageCount . setText ( _translate ( " MainWindow " , " Processed 0 person-to-person messages. " , None ) )
self . labelPubkeyCount . setText ( _translate ( " MainWindow " , " Processed 0 public keys. " , None ) )
self . labelBroadcastCount . setText ( _translate ( " MainWindow " , " Processed 0 broadcasts. " , None ) )
2013-09-04 00:08:29 +02:00
self . labelLookupsPerSecond . setText ( _translate ( " MainWindow " , " Inventory lookups per second: 0 " , None ) )
2014-08-01 22:35:48 +02:00
self . labelBytesRecvCount . setText ( _translate ( " MainWindow " , " Down: 0 KB/s " , None ) )
self . labelBytesSentCount . setText ( _translate ( " MainWindow " , " Up: 0 KB/s " , None ) )
2013-06-13 01:11:01 +02:00
self . tabWidget . setTabText ( self . tabWidget . indexOf ( self . networkstatus ) , _translate ( " MainWindow " , " Network Status " , None ) )
self . menuFile . setTitle ( _translate ( " MainWindow " , " File " , None ) )
self . menuSettings . setTitle ( _translate ( " MainWindow " , " Settings " , None ) )
self . menuHelp . setTitle ( _translate ( " MainWindow " , " Help " , None ) )
self . actionImport_keys . setText ( _translate ( " MainWindow " , " Import keys " , None ) )
self . actionManageKeys . setText ( _translate ( " MainWindow " , " Manage keys " , None ) )
self . actionExit . setText ( _translate ( " MainWindow " , " Quit " , None ) )
2013-08-01 07:26:46 +02:00
self . actionExit . setShortcut ( _translate ( " MainWindow " , " Ctrl+Q " , None ) )
2013-06-13 01:11:01 +02:00
self . actionHelp . setText ( _translate ( " MainWindow " , " Help " , None ) )
2013-08-01 07:26:46 +02:00
self . actionHelp . setShortcut ( _translate ( " MainWindow " , " F1 " , None ) )
2013-06-13 01:11:01 +02:00
self . actionAbout . setText ( _translate ( " MainWindow " , " About " , None ) )
self . actionSettings . setText ( _translate ( " MainWindow " , " Settings " , None ) )
self . actionRegenerateDeterministicAddresses . setText ( _translate ( " MainWindow " , " Regenerate deterministic addresses " , None ) )
self . actionDeleteAllTrashedMessages . setText ( _translate ( " MainWindow " , " Delete all trashed messages " , None ) )
2013-07-22 07:10:22 +02:00
self . actionJoinChan . setText ( _translate ( " MainWindow " , " Join / Create chan " , None ) )
2012-11-19 20:45:05 +01:00
import bitmessage_icons_rc