@ -1,16 +1,24 @@
# -*- coding: utf-8 -*-
# pylint: disable=too-many-instance-attributes,too-many-locals,too-many-statements,attribute-defined-outside-init
"""
Form implementation generated from reading ui file ' settings.ui '
# Form implementation generated from reading ui file 'settings.ui'
#
# Created: Thu Dec 25 23:21:20 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
Created : Thu Dec 25 23 : 21 : 20 2014
by : PyQt4 UI code generator 4.10 .3
WARNING ! All changes made in this file will be lost !
"""
from __future__ import absolute_import
from PyQt4 import QtCore , QtGui
from languagebox import LanguageBox
from sys import platform
from PyQt4 import QtCore , QtGui
from . import bitmessage_icons_rc # pylint: disable=unused-import
from . languagebox import LanguageBox
try :
_fromUtf8 = QtCore . QString . fromUtf8
except AttributeError :
@ -19,21 +27,27 @@ except AttributeError:
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 )
class Ui_settingsDialog ( object ) :
""" Encapsulate a UI settings dialog object """
def setupUi ( self , settingsDialog ) :
""" Set up the UI """
settingsDialog . setObjectName ( _fromUtf8 ( " settingsDialog " ) )
settingsDialog . resize ( 521 , 413 )
self . gridLayout = QtGui . QGridLayout ( settingsDialog )
self . gridLayout . setObjectName ( _fromUtf8 ( " gridLayout " ) )
self . buttonBox = QtGui . QDialogButtonBox ( settingsDialog )
self . buttonBox . setOrientation ( QtCore . Qt . Horizontal )
self . buttonBox . setStandardButtons ( QtGui . QDialogButtonBox . Cancel | QtGui . QDialogButtonBox . Ok )
self . buttonBox . setStandardButtons ( QtGui . QDialogButtonBox . Cancel | QtGui . QDialogButtonBox . Ok )
self . buttonBox . setObjectName ( _fromUtf8 ( " buttonBox " ) )
self . gridLayout . addWidget ( self . buttonBox , 1 , 0 , 1 , 1 )
self . tabWidgetSettings = QtGui . QTabWidget ( settingsDialog )
@ -64,7 +78,8 @@ class Ui_settingsDialog(object):
self . formLayout . setWidget ( 1 , QtGui . QFormLayout . SpanningRole , self . groupBoxTray )
self . checkBoxHideTrayConnectionNotifications = QtGui . QCheckBox ( self . tabUserInterface )
self . checkBoxHideTrayConnectionNotifications . setChecked ( False )
self . checkBoxHideTrayConnectionNotifications . setObjectName ( _fromUtf8 ( " checkBoxHideTrayConnectionNotifications " ) )
self . checkBoxHideTrayConnectionNotifications . setObjectName (
_fromUtf8 ( " checkBoxHideTrayConnectionNotifications " ) )
self . formLayout . setWidget ( 2 , QtGui . QFormLayout . LabelRole , self . checkBoxHideTrayConnectionNotifications )
self . checkBoxShowTrayNotifications = QtGui . QCheckBox ( self . tabUserInterface )
self . checkBoxShowTrayNotifications . setObjectName ( _fromUtf8 ( " checkBoxShowTrayNotifications " ) )
@ -96,7 +111,7 @@ class Ui_settingsDialog(object):
self . formLayout_2 . setObjectName ( _fromUtf8 ( " formLayout_2 " ) )
self . languageComboBox = LanguageBox ( self . groupBox )
self . languageComboBox . setMinimumSize ( QtCore . QSize ( 100 , 0 ) )
self . languageComboBox . setObjectName ( _fromUtf8 ( " languageComboBox " ) )
self . languageComboBox . setObjectName ( _fromUtf8 ( " languageComboBox " ) ) # pylint: disable=not-callable
self . formLayout_2 . setWidget ( 0 , QtGui . QFormLayout . LabelRole , self . languageComboBox )
self . formLayout . setWidget ( 9 , QtGui . QFormLayout . FieldRole , self . groupBox )
self . tabWidgetSettings . addTab ( self . tabUserInterface , _fromUtf8 ( " " ) )
@ -108,8 +123,6 @@ class Ui_settingsDialog(object):
self . groupBox1 . setObjectName ( _fromUtf8 ( " groupBox1 " ) )
self . gridLayout_3 = QtGui . QGridLayout ( self . groupBox1 )
self . gridLayout_3 . setObjectName ( _fromUtf8 ( " gridLayout_3 " ) )
#spacerItem = QtGui.QSpacerItem(125, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
#self.gridLayout_3.addItem(spacerItem, 0, 0, 1, 1)
self . label = QtGui . QLabel ( self . groupBox1 )
self . label . setObjectName ( _fromUtf8 ( " label " ) )
self . gridLayout_3 . addWidget ( self . label , 0 , 0 , 1 , 1 , QtCore . Qt . AlignRight )
@ -165,7 +178,8 @@ class Ui_settingsDialog(object):
self . lineEditMaxOutboundConnections . setSizePolicy ( sizePolicy )
self . lineEditMaxOutboundConnections . setMaximumSize ( QtCore . QSize ( 60 , 16777215 ) )
self . lineEditMaxOutboundConnections . setObjectName ( _fromUtf8 ( " lineEditMaxOutboundConnections " ) )
self . lineEditMaxOutboundConnections . setValidator ( QtGui . QIntValidator ( 0 , 8 , self . lineEditMaxOutboundConnections ) )
self . lineEditMaxOutboundConnections . setValidator (
QtGui . QIntValidator ( 0 , 8 , self . lineEditMaxOutboundConnections ) )
self . gridLayout_9 . addWidget ( self . lineEditMaxOutboundConnections , 2 , 2 , 1 , 1 )
self . gridLayout_4 . addWidget ( self . groupBox_3 , 2 , 0 , 1 , 1 )
self . groupBox_2 = QtGui . QGroupBox ( self . tabNetworkSettings )
@ -207,7 +221,8 @@ class Ui_settingsDialog(object):
self . gridLayout_2 . addWidget ( self . label_6 , 2 , 4 , 1 , 1 )
self . lineEditSocksPassword = QtGui . QLineEdit ( self . groupBox_2 )
self . lineEditSocksPassword . setEnabled ( False )
self . lineEditSocksPassword . setInputMethodHints ( QtCore . Qt . ImhHiddenText | QtCore . Qt . ImhNoAutoUppercase | QtCore . Qt . ImhNoPredictiveText )
self . lineEditSocksPassword . setInputMethodHints (
QtCore . Qt . ImhHiddenText | QtCore . Qt . ImhNoAutoUppercase | QtCore . Qt . ImhNoPredictiveText )
self . lineEditSocksPassword . setEchoMode ( QtGui . QLineEdit . Password )
self . lineEditSocksPassword . setObjectName ( _fromUtf8 ( " lineEditSocksPassword " ) )
self . gridLayout_2 . addWidget ( self . lineEditSocksPassword , 2 , 5 , 1 , 1 )
@ -215,7 +230,7 @@ class Ui_settingsDialog(object):
self . checkBoxSocksListen . setObjectName ( _fromUtf8 ( " checkBoxSocksListen " ) )
self . gridLayout_2 . addWidget ( self . checkBoxSocksListen , 3 , 1 , 1 , 4 )
self . comboBoxProxyType = QtGui . QComboBox ( self . groupBox_2 )
self . comboBoxProxyType . setObjectName ( _fromUtf8 ( " comboBoxProxyType " ) )
self . comboBoxProxyType . setObjectName ( _fromUtf8 ( " comboBoxProxyType " ) ) # pylint: disable=not-callable
self . comboBoxProxyType . addItem ( _fromUtf8 ( " " ) )
self . comboBoxProxyType . addItem ( _fromUtf8 ( " " ) )
self . comboBoxProxyType . addItem ( _fromUtf8 ( " " ) )
@ -229,7 +244,7 @@ class Ui_settingsDialog(object):
self . gridLayout_6 = QtGui . QGridLayout ( self . tabDemandedDifficulty )
self . gridLayout_6 . setObjectName ( _fromUtf8 ( " gridLayout_6 " ) )
self . label_9 = QtGui . QLabel ( self . tabDemandedDifficulty )
self . label_9 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_9 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_9 . setObjectName ( _fromUtf8 ( " label_9 " ) )
self . gridLayout_6 . addWidget ( self . label_9 , 1 , 1 , 1 , 1 )
self . label_10 = QtGui . QLabel ( self . tabDemandedDifficulty )
@ -237,7 +252,7 @@ class Ui_settingsDialog(object):
self . label_10 . setObjectName ( _fromUtf8 ( " label_10 " ) )
self . gridLayout_6 . addWidget ( self . label_10 , 2 , 0 , 1 , 3 )
self . label_11 = QtGui . QLabel ( self . tabDemandedDifficulty )
self . label_11 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_11 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_11 . setObjectName ( _fromUtf8 ( " label_11 " ) )
self . gridLayout_6 . addWidget ( self . label_11 , 3 , 1 , 1 , 1 )
self . label_8 = QtGui . QLabel ( self . tabDemandedDifficulty )
@ -285,7 +300,7 @@ class Ui_settingsDialog(object):
self . gridLayout_7 . addItem ( spacerItem6 , 1 , 0 , 1 , 1 )
self . label_13 = QtGui . QLabel ( self . tabMaxAcceptableDifficulty )
self . label_13 . setLayoutDirection ( QtCore . Qt . LeftToRight )
self . label_13 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_13 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_13 . setObjectName ( _fromUtf8 ( " label_13 " ) )
self . gridLayout_7 . addWidget ( self . label_13 , 1 , 1 , 1 , 1 )
self . lineEditMaxAcceptableTotalDifficulty = QtGui . QLineEdit ( self . tabMaxAcceptableDifficulty )
@ -300,7 +315,7 @@ class Ui_settingsDialog(object):
spacerItem7 = QtGui . QSpacerItem ( 102 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_7 . addItem ( spacerItem7 , 2 , 0 , 1 , 1 )
self . label_14 = QtGui . QLabel ( self . tabMaxAcceptableDifficulty )
self . label_14 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_14 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_14 . setObjectName ( _fromUtf8 ( " label_14 " ) )
self . gridLayout_7 . addWidget ( self . label_14 , 2 , 1 , 1 , 1 )
self . lineEditMaxAcceptableSmallMessageDifficulty = QtGui . QLineEdit ( self . tabMaxAcceptableDifficulty )
@ -310,7 +325,8 @@ class Ui_settingsDialog(object):
sizePolicy . setHeightForWidth ( self . lineEditMaxAcceptableSmallMessageDifficulty . sizePolicy ( ) . hasHeightForWidth ( ) )
self . lineEditMaxAcceptableSmallMessageDifficulty . setSizePolicy ( sizePolicy )
self . lineEditMaxAcceptableSmallMessageDifficulty . setMaximumSize ( QtCore . QSize ( 70 , 16777215 ) )
self . lineEditMaxAcceptableSmallMessageDifficulty . setObjectName ( _fromUtf8 ( " lineEditMaxAcceptableSmallMessageDifficulty " ) )
self . lineEditMaxAcceptableSmallMessageDifficulty . setObjectName (
_fromUtf8 ( " lineEditMaxAcceptableSmallMessageDifficulty " ) )
self . gridLayout_7 . addWidget ( self . lineEditMaxAcceptableSmallMessageDifficulty , 2 , 2 , 1 , 1 )
spacerItem8 = QtGui . QSpacerItem ( 20 , 147 , QtGui . QSizePolicy . Minimum , QtGui . QSizePolicy . Expanding )
self . gridLayout_7 . addItem ( spacerItem8 , 3 , 1 , 1 , 1 )
@ -332,7 +348,7 @@ class Ui_settingsDialog(object):
self . label_16 . setObjectName ( _fromUtf8 ( " label_16 " ) )
self . gridLayout_8 . addWidget ( self . label_16 , 0 , 0 , 1 , 3 )
self . label_17 = QtGui . QLabel ( self . tabNamecoin )
self . label_17 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_17 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_17 . setObjectName ( _fromUtf8 ( " label_17 " ) )
self . gridLayout_8 . addWidget ( self . label_17 , 2 , 1 , 1 , 1 )
self . lineEditNamecoinHost = QtGui . QLineEdit ( self . tabNamecoin )
@ -344,7 +360,7 @@ class Ui_settingsDialog(object):
self . gridLayout_8 . addItem ( spacerItem11 , 4 , 0 , 1 , 1 )
self . label_18 = QtGui . QLabel ( self . tabNamecoin )
self . label_18 . setEnabled ( True )
self . label_18 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_18 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_18 . setObjectName ( _fromUtf8 ( " label_18 " ) )
self . gridLayout_8 . addWidget ( self . label_18 , 3 , 1 , 1 , 1 )
self . lineEditNamecoinPort = QtGui . QLineEdit ( self . tabNamecoin )
@ -353,7 +369,7 @@ class Ui_settingsDialog(object):
spacerItem12 = QtGui . QSpacerItem ( 20 , 40 , QtGui . QSizePolicy . Minimum , QtGui . QSizePolicy . Expanding )
self . gridLayout_8 . addItem ( spacerItem12 , 8 , 1 , 1 , 1 )
self . labelNamecoinUser = QtGui . QLabel ( self . tabNamecoin )
self . labelNamecoinUser . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . labelNamecoinUser . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . labelNamecoinUser . setObjectName ( _fromUtf8 ( " labelNamecoinUser " ) )
self . gridLayout_8 . addWidget ( self . labelNamecoinUser , 4 , 1 , 1 , 1 )
self . lineEditNamecoinUser = QtGui . QLineEdit ( self . tabNamecoin )
@ -362,11 +378,13 @@ class Ui_settingsDialog(object):
spacerItem13 = QtGui . QSpacerItem ( 40 , 20 , QtGui . QSizePolicy . Expanding , QtGui . QSizePolicy . Minimum )
self . gridLayout_8 . addItem ( spacerItem13 , 5 , 0 , 1 , 1 )
self . labelNamecoinPassword = QtGui . QLabel ( self . tabNamecoin )
self . labelNamecoinPassword . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . labelNamecoinPassword . setAlignment (
QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . labelNamecoinPassword . setObjectName ( _fromUtf8 ( " labelNamecoinPassword " ) )
self . gridLayout_8 . addWidget ( self . labelNamecoinPassword , 5 , 1 , 1 , 1 )
self . lineEditNamecoinPassword = QtGui . QLineEdit ( self . tabNamecoin )
self . lineEditNamecoinPassword . setInputMethodHints ( QtCore . Qt . ImhHiddenText | QtCore . Qt . ImhNoAutoUppercase | QtCore . Qt . ImhNoPredictiveText )
self . lineEditNamecoinPassword . setInputMethodHints (
QtCore . Qt . ImhHiddenText | QtCore . Qt . ImhNoAutoUppercase | QtCore . Qt . ImhNoPredictiveText )
self . lineEditNamecoinPassword . setEchoMode ( QtGui . QLineEdit . Password )
self . lineEditNamecoinPassword . setObjectName ( _fromUtf8 ( " lineEditNamecoinPassword " ) )
self . gridLayout_8 . addWidget ( self . lineEditNamecoinPassword , 5 , 2 , 1 , 1 )
@ -405,11 +423,11 @@ class Ui_settingsDialog(object):
self . widget . setObjectName ( _fromUtf8 ( " widget " ) )
self . label_19 = QtGui . QLabel ( self . widget )
self . label_19 . setGeometry ( QtCore . QRect ( 10 , 20 , 101 , 20 ) )
self . label_19 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_19 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_19 . setObjectName ( _fromUtf8 ( " label_19 " ) )
self . label_20 = QtGui . QLabel ( self . widget )
self . label_20 . setGeometry ( QtCore . QRect ( 30 , 40 , 80 , 16 ) )
self . label_20 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_20 . setAlignment ( QtCore . Qt . AlignRight | QtCore . Qt . AlignTrailing | QtCore . Qt . AlignVCenter )
self . label_20 . setObjectName ( _fromUtf8 ( " label_20 " ) )
self . lineEditDays = QtGui . QLineEdit ( self . widget )
self . lineEditDays . setGeometry ( QtCore . QRect ( 113 , 20 , 51 , 20 ) )
@ -431,10 +449,20 @@ class Ui_settingsDialog(object):
self . retranslateUi ( settingsDialog )
self . tabWidgetSettings . setCurrentIndex ( 0 )
QtCore . QObject . connect ( self . buttonBox , QtCore . SIGNAL ( _fromUtf8 ( " accepted() " ) ) , settingsDialog . accept )
QtCore . QObject . connect ( self . buttonBox , QtCore . SIGNAL ( _fromUtf8 ( " rejected() " ) ) , settingsDialog . reject )
QtCore . QObject . connect ( self . checkBoxAuthentication , QtCore . SIGNAL ( _fromUtf8 ( " toggled(bool) " ) ) , self . lineEditSocksUsername . setEnabled )
QtCore . QObject . connect ( self . checkBoxAuthentication , QtCore . SIGNAL ( _fromUtf8 ( " toggled(bool) " ) ) , self . lineEditSocksPassword . setEnabled )
QtCore . QObject . connect ( # pylint: disable=no-member
self . buttonBox , QtCore . SIGNAL ( _fromUtf8 ( " accepted() " ) ) , settingsDialog . accept )
QtCore . QObject . connect ( # pylint: disable=no-member
self . buttonBox , QtCore . SIGNAL ( _fromUtf8 ( " rejected() " ) ) , settingsDialog . reject )
QtCore . QObject . connect ( # pylint: disable=no-member
self . checkBoxAuthentication ,
QtCore . SIGNAL (
_fromUtf8 ( " toggled(bool) " ) ) ,
self . lineEditSocksUsername . setEnabled )
QtCore . QObject . connect ( # pylint: disable=no-member
self . checkBoxAuthentication ,
QtCore . SIGNAL (
_fromUtf8 ( " toggled(bool) " ) ) ,
self . lineEditSocksPassword . setEnabled )
QtCore . QMetaObject . connectSlotsByName ( settingsDialog )
settingsDialog . setTabOrder ( self . tabWidgetSettings , self . checkBoxStartOnLogon )
settingsDialog . setTabOrder ( self . checkBoxStartOnLogon , self . checkBoxStartInTray )
@ -450,22 +478,47 @@ class Ui_settingsDialog(object):
settingsDialog . setTabOrder ( self . checkBoxSocksListen , self . buttonBox )
def retranslateUi ( self , settingsDialog ) :
""" Re-translate the UI into the supported languages """
settingsDialog . setWindowTitle ( _translate ( " settingsDialog " , " Settings " , None ) )
self . checkBoxStartOnLogon . setText ( _translate ( " settingsDialog " , " Start Bitmessage on user login " , None ) )
self . groupBoxTray . setTitle ( _translate ( " settingsDialog " , " Tray " , None ) )
self . checkBoxStartInTray . setText ( _translate ( " settingsDialog " , " Start Bitmessage in the tray (don \' t show main window) " , None ) )
self . checkBoxStartInTray . setText (
_translate (
" settingsDialog " ,
" Start Bitmessage in the tray (don \' t show main window) " ,
None ) )
self . checkBoxMinimizeToTray . setText ( _translate ( " settingsDialog " , " Minimize to tray " , None ) )
self . checkBoxTrayOnClose . setText ( _translate ( " settingsDialog " , " Close to tray " , None ) )
self . checkBoxHideTrayConnectionNotifications . setText ( _translate ( " settingsDialog " , " Hide connection notifications " , None ) )
self . checkBoxShowTrayNotifications . setText ( _translate ( " settingsDialog " , " Show notification when message received " , None ) )
self . checkBoxHideTrayConnectionNotifications . setText (
_translate ( " settingsDialog " , " Hide connection notifications " , None ) )
self . checkBoxShowTrayNotifications . setText (
_translate (
" settingsDialog " ,
" Show notification when message received " ,
None ) )
self . checkBoxPortableMode . setText ( _translate ( " settingsDialog " , " Run in Portable Mode " , None ) )
self . PortableModeDescription . setText ( _translate ( " settingsDialog " , " In Portable Mode, messages and config files are stored in the same directory as the program rather than the normal application-data folder. This makes it convenient to run Bitmessage from a USB thumb drive. " , None ) )
self . checkBoxWillinglySendToMobile . setText ( _translate ( " settingsDialog " , " Willingly include unencrypted destination address when sending to a mobile device " , None ) )
self . PortableModeDescription . setText (
_translate (
" settingsDialog " ,
" In Portable Mode, messages and config files are stored in the same directory as the "
" program rather than the normal application-data folder. This makes it convenient to "
" run Bitmessage from a USB thumb drive. " ,
None ) )
self . checkBoxWillinglySendToMobile . setText (
_translate (
" settingsDialog " ,
" Willingly include unencrypted destination address when sending to a mobile device " ,
None ) )
self . checkBoxUseIdenticons . setText ( _translate ( " settingsDialog " , " Use Identicons " , None ) )
self . checkBoxReplyBelow . setText ( _translate ( " settingsDialog " , " Reply below Quote " , None ) )
self . groupBox . setTitle ( _translate ( " settingsDialog " , " Interface Language " , None ) )
self . languageComboBox . setItemText ( 0 , _translate ( " settingsDialog " , " System Settings " , " system " ) )
self . tabWidgetSettings . setTabText ( self . tabWidgetSettings . indexOf ( self . tabUserInterface ) , _translate ( " settingsDialog " , " User Interface " , None ) )
self . tabWidgetSettings . setTabText (
self . tabWidgetSettings . indexOf (
self . tabUserInterface ) ,
_translate (
" settingsDialog " , " User Interface " , None ) )
self . groupBox1 . setTitle ( _translate ( " settingsDialog " , " Listening port " , None ) )
self . label . setText ( _translate ( " settingsDialog " , " Listen for connections on port: " , None ) )
self . labelUPnP . setText ( _translate ( " settingsDialog " , " UPnP: " , None ) )
@ -480,23 +533,70 @@ class Ui_settingsDialog(object):
self . checkBoxAuthentication . setText ( _translate ( " settingsDialog " , " Authentication " , None ) )
self . label_5 . setText ( _translate ( " settingsDialog " , " Username: " , None ) )
self . label_6 . setText ( _translate ( " settingsDialog " , " Pass: " , None ) )
self . checkBoxSocksListen . setText ( _translate ( " settingsDialog " , " Listen for incoming connections when using proxy " , None ) )
self . checkBoxSocksListen . setText (
_translate (
" settingsDialog " ,
" Listen for incoming connections when using proxy " ,
None ) )
self . comboBoxProxyType . setItemText ( 0 , _translate ( " settingsDialog " , " none " , None ) )
self . comboBoxProxyType . setItemText ( 1 , _translate ( " settingsDialog " , " SOCKS4a " , None ) )
self . comboBoxProxyType . setItemText ( 2 , _translate ( " settingsDialog " , " SOCKS5 " , None ) )
self . tabWidgetSettings . setTabText ( self . tabWidgetSettings . indexOf ( self . tabNetworkSettings ) , _translate ( " settingsDialog " , " Network Settings " , None ) )
self . tabWidgetSettings . setTabText (
self . tabWidgetSettings . indexOf (
self . tabNetworkSettings ) ,
_translate (
" settingsDialog " , " Network Settings " , None ) )
self . label_9 . setText ( _translate ( " settingsDialog " , " Total difficulty: " , None ) )
self . label_10 . setText ( _translate ( " settingsDialog " , " The \' Total difficulty \' affects the absolute amount of work the sender must complete. Doubling this value doubles the amount of work. " , None ) )
self . label_10 . setText (
_translate (
" settingsDialog " ,
" The \' Total difficulty \' affects the absolute amount of work the sender must complete. "
" Doubling this value doubles the amount of work. " ,
None ) )
self . label_11 . setText ( _translate ( " settingsDialog " , " Small message difficulty: " , None ) )
self . label_8 . setText ( _translate ( " settingsDialog " , " When someone sends you a message, their computer must first complete some work. The difficulty of this work, by default, is 1. You may raise this default for new addresses you create by changing the values here. Any new addresses you create will require senders to meet the higher difficulty. There is one exception: if you add a friend or acquaintance to your address book, Bitmessage will automatically notify them when you next send a message that they need only complete the minimum amount of work: difficulty 1. " , None ) )
self . label_12 . setText ( _translate ( " settingsDialog " , " The \' Small message difficulty \' mostly only affects the difficulty of sending small messages. Doubling this value makes it almost twice as difficult to send a small message but doesn \' t really affect large messages. " , None ) )
self . tabWidgetSettings . setTabText ( self . tabWidgetSettings . indexOf ( self . tabDemandedDifficulty ) , _translate ( " settingsDialog " , " Demanded difficulty " , None ) )
self . label_15 . setText ( _translate ( " settingsDialog " , " Here you may set the maximum amount of work you are willing to do to send a message to another person. Setting these values to 0 means that any value is acceptable. " , None ) )
self . label_8 . setText ( _translate (
" settingsDialog " ,
" When someone sends you a message, their computer must first complete some work. The difficulty of this "
" work, by default, is 1. You may raise this default for new addresses you create by changing the values "
" here. Any new addresses you create will require senders to meet the higher difficulty. There is one "
" exception: if you add a friend or acquaintance to your address book, Bitmessage will automatically "
" notify them when you next send a message that they need only complete the minimum amount of "
" work: difficulty 1. " ,
None ) )
self . label_12 . setText (
_translate (
" settingsDialog " ,
" The \' Small message difficulty \' mostly only affects the difficulty of sending small messages. "
" Doubling this value makes it almost twice as difficult to send a small message but doesn \' t really "
" affect large messages. " ,
None ) )
self . tabWidgetSettings . setTabText (
self . tabWidgetSettings . indexOf (
self . tabDemandedDifficulty ) ,
_translate (
" settingsDialog " , " Demanded difficulty " , None ) )
self . label_15 . setText (
_translate (
" settingsDialog " ,
" Here you may set the maximum amount of work you are willing to do to send a message to another "
" person. Setting these values to 0 means that any value is acceptable. " ,
None ) )
self . label_13 . setText ( _translate ( " settingsDialog " , " Maximum acceptable total difficulty: " , None ) )
self . label_14 . setText ( _translate ( " settingsDialog " , " Maximum acceptable small message difficulty: " , None ) )
self . tabWidgetSettings . setTabText ( self . tabWidgetSettings . indexOf ( self . tabMaxAcceptableDifficulty ) , _translate ( " settingsDialog " , " Max acceptable difficulty " , None ) )
self . tabWidgetSettings . setTabText (
self . tabWidgetSettings . indexOf (
self . tabMaxAcceptableDifficulty ) ,
_translate (
" settingsDialog " , " Max acceptable difficulty " , None ) )
self . labelOpenCL . setText ( _translate ( " settingsDialog " , " Hardware GPU acceleration (OpenCL): " , None ) )
self . label_16 . setText ( _translate ( " settingsDialog " , " <html><head/><body><p>Bitmessage can utilize a different Bitcoin-based program called Namecoin to make addresses human-friendly. For example, instead of having to tell your friend your long Bitmessage address, you can simply tell him to send a message to <span style= \" font-style:italic; \" >test. </span></p><p>(Getting your own Bitmessage address into Namecoin is still rather difficult).</p><p>Bitmessage can use either namecoind directly or a running nmcontrol instance.</p></body></html> " , None ) )
self . label_16 . setText ( _translate (
" settingsDialog " ,
" <html><head/><body><p>Bitmessage can utilize a different Bitcoin-based program called Namecoin to make "
" addresses human-friendly. For example, instead of having to tell your friend your long Bitmessage "
" address, you can simply tell him to send a message to <span style= \" font-style:italic; \" >test. "
" </span></p><p>(Getting your own Bitmessage address into Namecoin is still rather difficult).</p> "
" <p>Bitmessage can use either namecoind directly or a running nmcontrol instance.</p></body></html> " ,
None ) )
self . label_17 . setText ( _translate ( " settingsDialog " , " Host: " , None ) )
self . label_18 . setText ( _translate ( " settingsDialog " , " Port: " , None ) )
self . labelNamecoinUser . setText ( _translate ( " settingsDialog " , " Username: " , None ) )
@ -505,12 +605,26 @@ class Ui_settingsDialog(object):
self . label_21 . setText ( _translate ( " settingsDialog " , " Connect to: " , None ) )
self . radioButtonNamecoinNamecoind . setText ( _translate ( " settingsDialog " , " Namecoind " , None ) )
self . radioButtonNamecoinNmcontrol . setText ( _translate ( " settingsDialog " , " NMControl " , None ) )
self . tabWidgetSettings . setTabText ( self . tabWidgetSettings . indexOf ( self . tabNamecoin ) , _translate ( " settingsDialog " , " Namecoin integration " , None ) )
self . label_7 . setText ( _translate ( " settingsDialog " , " <html><head/><body><p>By default, if you send a message to someone and he is offline for more than two days, Bitmessage will send the message again after an additional two days. This will be continued with exponential backoff forever; messages will be resent after 5, 10, 20 days ect. until the receiver acknowledges them. Here you may change that behavior by having Bitmessage give up after a certain number of days or months.</p><p>Leave these input fields blank for the default behavior. </p></body></html> " , None ) )
self . tabWidgetSettings . setTabText (
self . tabWidgetSettings . indexOf (
self . tabNamecoin ) ,
_translate (
" settingsDialog " , " Namecoin integration " , None ) )
self . label_7 . setText ( _translate (
" settingsDialog " ,
" <html><head/><body><p>By default, if you send a message to someone and he is offline for more than two "
" days, Bitmessage will send the message again after an additional two days. This will be continued with "
" exponential backoff forever; messages will be resent after 5, 10, 20 days ect. until the receiver "
" acknowledges them. Here you may change that behavior by having Bitmessage give up after a certain "
" number of days or months.</p><p>Leave these input fields blank for the default behavior. "
" </p></body></html> " ,
None ) )
self . label_19 . setText ( _translate ( " settingsDialog " , " Give up after " , None ) )
self . label_20 . setText ( _translate ( " settingsDialog " , " and " , None ) )
self . label_22 . setText ( _translate ( " settingsDialog " , " days " , None ) )
self . label_23 . setText ( _translate ( " settingsDialog " , " months. " , None ) )
self . tabWidgetSettings . setTabText ( self . tabWidgetSettings . indexOf ( self . tabResendsExpire ) , _translate ( " settingsDialog " , " Resends Expire " , None ) )
import bitmessage_icons_rc
self . tabWidgetSettings . setTabText (
self . tabWidgetSettings . indexOf (
self . tabResendsExpire ) ,
_translate (
" settingsDialog " , " Resends Expire " , None ) )