-# Copyright (c) Stas Shtin, 2010
+# -*- coding: utf-8 -*-
-# This file is part of IPyPBX.
+# Form implementation generated from reading ui file 'ui/layout.ui'
+#
+# Created: Thu Apr 15 21:54:09 2010
+# by: PyQt4 UI code generator 4.7.2
+#
+# WARNING! All changes made in this file will be lost!
-# IPyPBX is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+from PyQt4 import QtCore, QtGui
-# IPyPBX is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with IPyPBX. If not, see <http://www.gnu.org/licenses/>.
-
-from PyQt4 import QtCore, QtGui, QtSql
-
-class MainWindow(QtGui.QMainWindow):
- """
- Main GUI window.
- """
- def __init__(self, parent=None):
- super(MainWindow, self).__init__(parent)
-
- # Tweak layout.
- self.setObjectName("MainWindow")
- self.resize(800, 400)
- self.centralwidget = QtGui.QWidget(self)
+class Ui_MainWindow(object):
+ def setupUi(self, MainWindow):
+ MainWindow.setObjectName("MainWindow")
+ MainWindow.resize(800, 400)
+ self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
-
- # Add tab widget
self.tabWidget = QtGui.QTabWidget(self.centralwidget)
self.tabWidget.setGeometry(QtCore.QRect(-2, -1, 811, 491))
self.tabWidget.setMinimumSize(QtCore.QSize(800, 480))
self.tabWidget.setObjectName("tabWidget")
-
- # Connections tab definition.
self.connectionsTab = QtGui.QWidget()
self.connectionsTab.setObjectName("connectionsTab")
self.layoutWidget = QtGui.QWidget(self.connectionsTab)
self.layoutWidget.setObjectName("layoutWidget")
self.gridLayout = QtGui.QGridLayout(self.layoutWidget)
self.gridLayout.setObjectName("gridLayout")
- self.connectionData = QtGui.QDataWidgetMapper()
- #self.formLayout_7 = QtGui.QFormLayout()
- #self.formLayout_7.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
- #self.formLayout_7.setObjectName("formLayout_7")
- #self.label_5 = QtGui.QLabel(self.layoutWidget)
- #self.label_5.setObjectName("label_5")
- #self.formLayout_7.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_5)
- #self.connectionName = QtGui.QLineEdit(self.layoutWidget)
- #self.connectionName.setMaxLength(100)
- #self.connectionName.setObjectName("connectionName")
- #self.formLayout_7.setWidget(0, QtGui.QFormLayout.FieldRole, self.connectionName)
- #self.connectionLocalIpAddress = QtGui.QLineEdit(self.layoutWidget)
- #self.connectionLocalIpAddress.setInputMethodHints(QtCore.Qt.ImhNone)
- #self.connectionLocalIpAddress.setObjectName("connectionLocalIpAddress")
- #self.formLayout_7.setWidget(1, QtGui.QFormLayout.FieldRole, self.connectionLocalIpAddress)
- #self.label_11 = QtGui.QLabel(self.layoutWidget)
- #self.label_11.setObjectName("label_11")
- #self.formLayout_7.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_11)
- #self.connectionLocalPort = QtGui.QLineEdit(self.layoutWidget)
- #self.connectionLocalPort.setObjectName("connectionLocalPort")
- #self.formLayout_7.setWidget(2, QtGui.QFormLayout.FieldRole, self.connectionLocalPort)
- #self.label_13 = QtGui.QLabel(self.layoutWidget)
- #self.label_13.setObjectName("label_13")
- #self.formLayout_7.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_13)
- #self.connectionFreeswitchPort = QtGui.QLineEdit(self.layoutWidget)
- #self.connectionFreeswitchPort.setObjectName("connectionFreeswitchPort")
- #self.formLayout_7.setWidget(4, QtGui.QFormLayout.FieldRole, self.connectionFreeswitchPort)
- #self.label_12 = QtGui.QLabel(self.layoutWidget)
- #self.label_12.setObjectName("label_12")
- #self.formLayout_7.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_12)
- #self.connectionFreeswitchIpAddress = QtGui.QLineEdit(self.layoutWidget)
- #self.connectionFreeswitchIpAddress.setObjectName("connectionFreeswitchIpAddress")
- #self.formLayout_7.setWidget(3, QtGui.QFormLayout.FieldRole, self.connectionFreeswitchIpAddress)
- #self.label_14 = QtGui.QLabel(self.layoutWidget)
- #self.label_14.setObjectName("label_14")
- #self.formLayout_7.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_14)
- #self.gridLayout.addLayout(self.formLayout_7, 0, 1, 1, 1)
+ self.formLayout_7 = QtGui.QFormLayout()
+ self.formLayout_7.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
+ self.formLayout_7.setObjectName("formLayout_7")
+ self.label_5 = QtGui.QLabel(self.layoutWidget)
+ self.label_5.setObjectName("label_5")
+ self.formLayout_7.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_5)
+ self.connectionName = QtGui.QLineEdit(self.layoutWidget)
+ self.connectionName.setMaxLength(100)
+ self.connectionName.setObjectName("connectionName")
+ self.formLayout_7.setWidget(0, QtGui.QFormLayout.FieldRole, self.connectionName)
+ self.connectionLocalIpAddress = QtGui.QLineEdit(self.layoutWidget)
+ self.connectionLocalIpAddress.setInputMethodHints(QtCore.Qt.ImhNone)
+ self.connectionLocalIpAddress.setMaxLength(15)
+ self.connectionLocalIpAddress.setObjectName("connectionLocalIpAddress")
+ self.formLayout_7.setWidget(1, QtGui.QFormLayout.FieldRole, self.connectionLocalIpAddress)
+ self.label_11 = QtGui.QLabel(self.layoutWidget)
+ self.label_11.setObjectName("label_11")
+ self.formLayout_7.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_11)
+ self.connectionLocalPort = QtGui.QLineEdit(self.layoutWidget)
+ self.connectionLocalPort.setMaxLength(5)
+ self.connectionLocalPort.setObjectName("connectionLocalPort")
+ self.formLayout_7.setWidget(2, QtGui.QFormLayout.FieldRole, self.connectionLocalPort)
+ self.label_13 = QtGui.QLabel(self.layoutWidget)
+ self.label_13.setObjectName("label_13")
+ self.formLayout_7.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_13)
+ self.connectionFreeswitchPort = QtGui.QLineEdit(self.layoutWidget)
+ self.connectionFreeswitchPort.setMaxLength(5)
+ self.connectionFreeswitchPort.setObjectName("connectionFreeswitchPort")
+ self.formLayout_7.setWidget(4, QtGui.QFormLayout.FieldRole, self.connectionFreeswitchPort)
+ self.label_12 = QtGui.QLabel(self.layoutWidget)
+ self.label_12.setObjectName("label_12")
+ self.formLayout_7.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_12)
+ self.connectionFreeswitchIpAddress = QtGui.QLineEdit(self.layoutWidget)
+ self.connectionFreeswitchIpAddress.setMaxLength(100)
+ self.connectionFreeswitchIpAddress.setObjectName("connectionFreeswitchIpAddress")
+ self.formLayout_7.setWidget(3, QtGui.QFormLayout.FieldRole, self.connectionFreeswitchIpAddress)
+ self.label_14 = QtGui.QLabel(self.layoutWidget)
+ self.label_14.setObjectName("label_14")
+ self.formLayout_7.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_14)
+ self.gridLayout.addLayout(self.formLayout_7, 0, 1, 1, 1)
self.connectionAdd = QtGui.QPushButton(self.layoutWidget)
self.connectionAdd.setObjectName("connectionAdd")
self.gridLayout.addWidget(self.connectionAdd, 1, 0, 1, 1)
self.connectionSave = QtGui.QPushButton(self.layoutWidget)
self.connectionSave.setObjectName("connectionSave")
self.gridLayout.addWidget(self.connectionSave, 1, 1, 1, 1)
- self.connectionView = QtGui.QTableView(self.layoutWidget)
- self.connectionView.setObjectName("connectionView")
- self.gridLayout.addWidget(self.connectionView, 0, 0, 1, 1)
+ self.connectionViewList = QtGui.QTableView(self.layoutWidget)
+ self.connectionViewList.setObjectName("connectionViewList")
+ self.gridLayout.addWidget(self.connectionViewList, 0, 0, 1, 1)
self.tabWidget.addTab(self.connectionsTab, "")
self.sipProfilesTab = QtGui.QWidget()
self.sipProfilesTab.setMaximumSize(QtCore.QSize(796, 16777215))
self.label_6 = QtGui.QLabel(self.gridLayoutWidget_2)
self.label_6.setObjectName("label_6")
self.formLayout_5.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_6)
- self.sipProfileExtRtpIp = QtGui.QLineEdit(self.gridLayoutWidget_2)
- self.sipProfileExtRtpIp.setObjectName("sipProfileExtRtpIp")
- self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.sipProfileExtRtpIp)
+ self.sipProfileExternalRtpIp = QtGui.QLineEdit(self.gridLayoutWidget_2)
+ self.sipProfileExternalRtpIp.setObjectName("sipProfileExternalRtpIp")
+ self.formLayout_5.setWidget(1, QtGui.QFormLayout.FieldRole, self.sipProfileExternalRtpIp)
self.label_4 = QtGui.QLabel(self.gridLayoutWidget_2)
self.label_4.setObjectName("label_4")
self.formLayout_5.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_4)
- self.sipProfileExtSipIp = QtGui.QLineEdit(self.gridLayoutWidget_2)
- self.sipProfileExtSipIp.setObjectName("sipProfileExtSipIp")
- self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.sipProfileExtSipIp)
+ self.sipProfileExternalSipIp = QtGui.QLineEdit(self.gridLayoutWidget_2)
+ self.sipProfileExternalSipIp.setObjectName("sipProfileExternalSipIp")
+ self.formLayout_5.setWidget(2, QtGui.QFormLayout.FieldRole, self.sipProfileExternalSipIp)
self.label_8 = QtGui.QLabel(self.gridLayoutWidget_2)
self.label_8.setObjectName("label_8")
self.formLayout_5.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_8)
self.sipProfileSave = QtGui.QPushButton(self.gridLayoutWidget_2)
self.sipProfileSave.setObjectName("sipProfileSave")
self.gridLayout_6.addWidget(self.sipProfileSave, 1, 1, 1, 1)
- self.sipProfileList = QtGui.QListView(self.gridLayoutWidget_2)
- self.sipProfileList.setObjectName("sipProfileList")
- self.gridLayout_6.addWidget(self.sipProfileList, 0, 0, 1, 1)
+ self.sipProfileViewList = QtGui.QTableView(self.gridLayoutWidget_2)
+ self.sipProfileViewList.setObjectName("sipProfileViewList")
+ self.gridLayout_6.addWidget(self.sipProfileViewList, 0, 0, 1, 1)
self.tabWidget.addTab(self.sipProfilesTab, "")
self.domainsTab = QtGui.QWidget()
self.domainsTab.setObjectName("domainsTab")
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.gridLayout_3 = QtGui.QGridLayout(self.gridLayoutWidget)
self.gridLayout_3.setObjectName("gridLayout_3")
- self.domainList = QtGui.QListView(self.gridLayoutWidget)
- self.domainList.setObjectName("domainList")
- self.gridLayout_3.addWidget(self.domainList, 0, 0, 1, 1)
self.domainAdd = QtGui.QPushButton(self.gridLayoutWidget)
self.domainAdd.setObjectName("domainAdd")
self.gridLayout_3.addWidget(self.domainAdd, 1, 0, 1, 1)
self.label_18 = QtGui.QLabel(self.gridLayoutWidget)
self.label_18.setObjectName("label_18")
self.formLayout_3.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_18)
- self.domainSipProfile = QtGui.QComboBox(self.gridLayoutWidget)
- self.domainSipProfile.setObjectName("domainSipProfile")
- self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.domainSipProfile)
+ self.domainSipProfileId = QtGui.QComboBox(self.gridLayoutWidget)
+ self.domainSipProfileId.setObjectName("domainSipProfileId")
+ self.formLayout_3.setWidget(1, QtGui.QFormLayout.FieldRole, self.domainSipProfileId)
self.domainIsActive = QtGui.QCheckBox(self.gridLayoutWidget)
self.domainIsActive.setChecked(True)
self.domainIsActive.setObjectName("domainIsActive")
self.formLayout_3.setWidget(2, QtGui.QFormLayout.LabelRole, self.domainIsActive)
self.gridLayout_3.addLayout(self.formLayout_3, 0, 1, 1, 1)
+ self.domainViewList = QtGui.QTableView(self.gridLayoutWidget)
+ self.domainViewList.setObjectName("domainViewList")
+ self.gridLayout_3.addWidget(self.domainViewList, 0, 0, 1, 1)
self.tabWidget.addTab(self.domainsTab, "")
self.gatewaysTab = QtGui.QWidget()
self.gatewaysTab.setObjectName("gatewaysTab")
self.gridLayoutWidget_3 = QtGui.QWidget(self.gatewaysTab)
- self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 10, 781, 351))
+ self.gridLayoutWidget_3.setGeometry(QtCore.QRect(10, 10, 781, 354))
self.gridLayoutWidget_3.setObjectName("gridLayoutWidget_3")
self.gridLayout_8 = QtGui.QGridLayout(self.gridLayoutWidget_3)
self.gridLayout_8.setObjectName("gridLayout_8")
- self.gatewayList = QtGui.QListView(self.gridLayoutWidget_3)
- self.gatewayList.setObjectName("gatewayList")
- self.gridLayout_8.addWidget(self.gatewayList, 0, 0, 1, 1)
self.gatewayAdd = QtGui.QPushButton(self.gridLayoutWidget_3)
self.gatewayAdd.setObjectName("gatewayAdd")
self.gridLayout_8.addWidget(self.gatewayAdd, 1, 0, 1, 1)
self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_22)
self.label_23 = QtGui.QLabel(self.gridLayoutWidget_3)
self.label_23.setObjectName("label_23")
- self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_23)
+ self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.label_23)
self.label_24 = QtGui.QLabel(self.gridLayoutWidget_3)
self.label_24.setObjectName("label_24")
- self.formLayout.setWidget(7, QtGui.QFormLayout.LabelRole, self.label_24)
+ self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.label_24)
self.label_25 = QtGui.QLabel(self.gridLayoutWidget_3)
self.label_25.setText("")
self.label_25.setObjectName("label_25")
- self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole, self.label_25)
+ self.formLayout.setWidget(10, QtGui.QFormLayout.LabelRole, self.label_25)
self.gatewayIsActive = QtGui.QCheckBox(self.gridLayoutWidget_3)
self.gatewayIsActive.setChecked(True)
self.gatewayIsActive.setObjectName("gatewayIsActive")
- self.formLayout.setWidget(8, QtGui.QFormLayout.LabelRole, self.gatewayIsActive)
+ self.formLayout.setWidget(9, QtGui.QFormLayout.LabelRole, self.gatewayIsActive)
self.gatewayCallerIdInFromField = QtGui.QCheckBox(self.gridLayoutWidget_3)
self.gatewayCallerIdInFromField.setObjectName("gatewayCallerIdInFromField")
- self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.gatewayCallerIdInFromField)
- self.comboBox = QtGui.QComboBox(self.gridLayoutWidget_3)
- self.comboBox.setObjectName("comboBox")
- self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.comboBox)
+ self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.gatewayCallerIdInFromField)
+ self.gatewaySipProfileId = QtGui.QComboBox(self.gridLayoutWidget_3)
+ self.gatewaySipProfileId.setObjectName("gatewaySipProfileId")
+ self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.gatewaySipProfileId)
self.gatewayUsername = QtGui.QLineEdit(self.gridLayoutWidget_3)
self.gatewayUsername.setObjectName("gatewayUsername")
self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.gatewayUsername)
self.gatewayFromDomain = QtGui.QLineEdit(self.gridLayoutWidget_3)
self.gatewayFromDomain.setObjectName("gatewayFromDomain")
self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.gatewayFromDomain)
- self.gatewayExpireInSeconds = QtGui.QLineEdit(self.gridLayoutWidget_3)
- self.gatewayExpireInSeconds.setObjectName("gatewayExpireInSeconds")
- self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.gatewayExpireInSeconds)
+ self.gatewayExtension = QtGui.QLineEdit(self.gridLayoutWidget_3)
+ self.gatewayExtension.setObjectName("gatewayExtension")
+ self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.gatewayExtension)
+ self.label_31 = QtGui.QLabel(self.gridLayoutWidget_3)
+ self.label_31.setObjectName("label_31")
+ self.formLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.label_31)
self.gatewayRetryInSeconds = QtGui.QLineEdit(self.gridLayoutWidget_3)
self.gatewayRetryInSeconds.setObjectName("gatewayRetryInSeconds")
- self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.gatewayRetryInSeconds)
+ self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.gatewayRetryInSeconds)
+ self.gatewayExpireInSeconds = QtGui.QLineEdit(self.gridLayoutWidget_3)
+ self.gatewayExpireInSeconds.setObjectName("gatewayExpireInSeconds")
+ self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.gatewayExpireInSeconds)
self.gridLayout_8.addLayout(self.formLayout, 0, 1, 1, 1)
+ self.gatewayViewList = QtGui.QTableView(self.gridLayoutWidget_3)
+ self.gatewayViewList.setObjectName("gatewayViewList")
+ self.gridLayout_8.addWidget(self.gatewayViewList, 0, 0, 1, 1)
self.tabWidget.addTab(self.gatewaysTab, "")
self.endpointsTab = QtGui.QWidget()
self.endpointsTab.setObjectName("endpointsTab")
self.endpointSave.setObjectName("endpointSave")
self.gridLayout_2.addWidget(self.endpointSave, 1, 1, 1, 1)
self.formLayout_2 = QtGui.QFormLayout()
+ self.formLayout_2.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout_2.setObjectName("formLayout_2")
self.label_2 = QtGui.QLabel(self.gridLayoutWidget_4)
self.label_2.setObjectName("label_2")
self.formLayout_2.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
- self.endpointUseId = QtGui.QLineEdit(self.gridLayoutWidget_4)
- self.endpointUseId.setObjectName("endpointUseId")
- self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.endpointUseId)
+ self.endpointUserId = QtGui.QLineEdit(self.gridLayoutWidget_4)
+ self.endpointUserId.setObjectName("endpointUserId")
+ self.formLayout_2.setWidget(0, QtGui.QFormLayout.FieldRole, self.endpointUserId)
self.label_26 = QtGui.QLabel(self.gridLayoutWidget_4)
self.label_26.setObjectName("label_26")
self.formLayout_2.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_26)
- self.label_27 = QtGui.QLabel(self.gridLayoutWidget_4)
- self.label_27.setObjectName("label_27")
- self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_27)
self.endpointPassword = QtGui.QLineEdit(self.gridLayoutWidget_4)
self.endpointPassword.setEchoMode(QtGui.QLineEdit.Password)
self.endpointPassword.setObjectName("endpointPassword")
self.formLayout_2.setWidget(1, QtGui.QFormLayout.FieldRole, self.endpointPassword)
- self.endpontDomain = QtGui.QComboBox(self.gridLayoutWidget_4)
- self.endpontDomain.setObjectName("endpontDomain")
- self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.endpontDomain)
+ self.label_27 = QtGui.QLabel(self.gridLayoutWidget_4)
+ self.label_27.setObjectName("label_27")
+ self.formLayout_2.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_27)
+ self.endpointDomainId = QtGui.QComboBox(self.gridLayoutWidget_4)
+ self.endpointDomainId.setObjectName("endpointDomainId")
+ self.formLayout_2.setWidget(2, QtGui.QFormLayout.FieldRole, self.endpointDomainId)
self.endpointIsActive = QtGui.QCheckBox(self.gridLayoutWidget_4)
self.endpointIsActive.setChecked(True)
self.endpointIsActive.setObjectName("endpointIsActive")
self.formLayout_2.setWidget(3, QtGui.QFormLayout.LabelRole, self.endpointIsActive)
self.gridLayout_2.addLayout(self.formLayout_2, 0, 1, 1, 1)
- self.endpointList = QtGui.QListWidget(self.gridLayoutWidget_4)
- self.endpointList.setObjectName("endpointList")
- self.gridLayout_2.addWidget(self.endpointList, 0, 0, 1, 1)
+ self.endpointViewList = QtGui.QTableView(self.gridLayoutWidget_4)
+ self.endpointViewList.setObjectName("endpointViewList")
+ self.gridLayout_2.addWidget(self.endpointViewList, 0, 0, 1, 1)
self.tabWidget.addTab(self.endpointsTab, "")
self.extensionsTab = QtGui.QWidget()
self.extensionsTab.setObjectName("extensionsTab")
self.gridLayoutWidget_5.setObjectName("gridLayoutWidget_5")
self.gridLayout_4 = QtGui.QGridLayout(self.gridLayoutWidget_5)
self.gridLayout_4.setObjectName("gridLayout_4")
- self.extensionList = QtGui.QListView(self.gridLayoutWidget_5)
- self.extensionList.setObjectName("extensionList")
- self.gridLayout_4.addWidget(self.extensionList, 0, 0, 1, 1)
self.extensionAdd = QtGui.QPushButton(self.gridLayoutWidget_5)
self.extensionAdd.setObjectName("extensionAdd")
self.gridLayout_4.addWidget(self.extensionAdd, 1, 0, 1, 1)
self.extensionSave.setObjectName("extensionSave")
self.gridLayout_4.addWidget(self.extensionSave, 1, 1, 1, 1)
self.formLayout_4 = QtGui.QFormLayout()
+ self.formLayout_4.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout_4.setObjectName("formLayout_4")
- self.label_3 = QtGui.QLabel(self.gridLayoutWidget_5)
- self.label_3.setObjectName("label_3")
- self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
- self.extensionDialplan = QtGui.QLineEdit(self.gridLayoutWidget_5)
- self.extensionDialplan.setObjectName("extensionDialplan")
- self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.extensionDialplan)
self.label_28 = QtGui.QLabel(self.gridLayoutWidget_5)
self.label_28.setObjectName("label_28")
self.formLayout_4.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_28)
+ self.extensionDestinationMatch = QtGui.QLineEdit(self.gridLayoutWidget_5)
+ self.extensionDestinationMatch.setObjectName("extensionDestinationMatch")
+ self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.extensionDestinationMatch)
+ self.label_3 = QtGui.QLabel(self.gridLayoutWidget_5)
+ self.label_3.setObjectName("label_3")
+ self.formLayout_4.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_3)
+ self.extensionXmlDialplan = QtGui.QPlainTextEdit(self.gridLayoutWidget_5)
+ self.extensionXmlDialplan.setWhatsThis("")
+ self.extensionXmlDialplan.setPlainText(" <action application=\"echo\" data=\"\"/>\n"
+"")
+ self.extensionXmlDialplan.setObjectName("extensionXmlDialplan")
+ self.formLayout_4.setWidget(1, QtGui.QFormLayout.FieldRole, self.extensionXmlDialplan)
self.label_29 = QtGui.QLabel(self.gridLayoutWidget_5)
self.label_29.setObjectName("label_29")
self.formLayout_4.setWidget(2, QtGui.QFormLayout.LabelRole, self.label_29)
- self.label_30 = QtGui.QLabel(self.gridLayoutWidget_5)
- self.label_30.setObjectName("label_30")
- self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole, self.label_30)
+ self.extensionDomainId = QtGui.QComboBox(self.gridLayoutWidget_5)
+ self.extensionDomainId.setObjectName("extensionDomainId")
+ self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.extensionDomainId)
self.extensionIsActive = QtGui.QCheckBox(self.gridLayoutWidget_5)
self.extensionIsActive.setChecked(True)
self.extensionIsActive.setObjectName("extensionIsActive")
- self.formLayout_4.setWidget(4, QtGui.QFormLayout.LabelRole, self.extensionIsActive)
+ self.formLayout_4.setWidget(3, QtGui.QFormLayout.LabelRole, self.extensionIsActive)
self.extensionAuthenticateCalls = QtGui.QCheckBox(self.gridLayoutWidget_5)
self.extensionAuthenticateCalls.setChecked(True)
self.extensionAuthenticateCalls.setObjectName("extensionAuthenticateCalls")
- self.formLayout_4.setWidget(4, QtGui.QFormLayout.FieldRole, self.extensionAuthenticateCalls)
- self.extensionDestinationMatch = QtGui.QLineEdit(self.gridLayoutWidget_5)
- self.extensionDestinationMatch.setObjectName("extensionDestinationMatch")
- self.formLayout_4.setWidget(0, QtGui.QFormLayout.FieldRole, self.extensionDestinationMatch)
- self.extensionDomain = QtGui.QComboBox(self.gridLayoutWidget_5)
- self.extensionDomain.setObjectName("extensionDomain")
- self.formLayout_4.setWidget(2, QtGui.QFormLayout.FieldRole, self.extensionDomain)
- self.extensionEndpoint = QtGui.QComboBox(self.gridLayoutWidget_5)
- self.extensionEndpoint.setObjectName("extensionEndpoint")
- self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole, self.extensionEndpoint)
+ self.formLayout_4.setWidget(3, QtGui.QFormLayout.FieldRole, self.extensionAuthenticateCalls)
self.gridLayout_4.addLayout(self.formLayout_4, 0, 1, 1, 1)
+ self.extensionViewList = QtGui.QTableView(self.gridLayoutWidget_5)
+ self.extensionViewList.setObjectName("extensionViewList")
+ self.gridLayout_4.addWidget(self.extensionViewList, 0, 0, 1, 1)
self.tabWidget.addTab(self.extensionsTab, "")
- self.setCentralWidget(self.centralwidget)
+ MainWindow.setCentralWidget(self.centralwidget)
- self.retranslateUi()
+ self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(0)
- QtCore.QMetaObject.connectSlotsByName(self)
+ QtCore.QMetaObject.connectSlotsByName(MainWindow)
+ MainWindow.setTabOrder(self.tabWidget, self.connectionViewList)
+ MainWindow.setTabOrder(self.connectionViewList, self.connectionName)
+ MainWindow.setTabOrder(self.connectionName, self.connectionLocalIpAddress)
+ MainWindow.setTabOrder(self.connectionLocalIpAddress, self.connectionLocalPort)
+ MainWindow.setTabOrder(self.connectionLocalPort, self.connectionFreeswitchIpAddress)
+ MainWindow.setTabOrder(self.connectionFreeswitchIpAddress, self.connectionFreeswitchPort)
+ MainWindow.setTabOrder(self.connectionFreeswitchPort, self.connectionAdd)
+ MainWindow.setTabOrder(self.connectionAdd, self.connectionSave)
+ MainWindow.setTabOrder(self.connectionSave, self.sipProfileViewList)
+ MainWindow.setTabOrder(self.sipProfileViewList, self.sipProfileName)
+ MainWindow.setTabOrder(self.sipProfileName, self.sipProfileExternalRtpIp)
+ MainWindow.setTabOrder(self.sipProfileExternalRtpIp, self.sipProfileExternalSipIp)
+ MainWindow.setTabOrder(self.sipProfileExternalSipIp, self.sipProfileRtpIp)
+ MainWindow.setTabOrder(self.sipProfileRtpIp, self.sipProfileSipIp)
+ MainWindow.setTabOrder(self.sipProfileSipIp, self.sipProfileSipPort)
+ MainWindow.setTabOrder(self.sipProfileSipPort, self.sipProfileAcceptBlindRegistration)
+ MainWindow.setTabOrder(self.sipProfileAcceptBlindRegistration, self.sipProfileAuthenticateCalls)
+ MainWindow.setTabOrder(self.sipProfileAuthenticateCalls, self.sipProfileAdd)
+ MainWindow.setTabOrder(self.sipProfileAdd, self.sipProfileSave)
+ MainWindow.setTabOrder(self.sipProfileSave, self.domainViewList)
+ MainWindow.setTabOrder(self.domainViewList, self.domainHostName)
+ MainWindow.setTabOrder(self.domainHostName, self.domainSipProfileId)
+ MainWindow.setTabOrder(self.domainSipProfileId, self.domainIsActive)
+ MainWindow.setTabOrder(self.domainIsActive, self.domainAdd)
+ MainWindow.setTabOrder(self.domainAdd, self.domainSave)
+ MainWindow.setTabOrder(self.domainSave, self.gatewayViewList)
+ MainWindow.setTabOrder(self.gatewayViewList, self.gatewayName)
+ MainWindow.setTabOrder(self.gatewayName, self.gatewaySipProfileId)
+ MainWindow.setTabOrder(self.gatewaySipProfileId, self.gatewayUsername)
+ MainWindow.setTabOrder(self.gatewayUsername, self.gatewayPassword)
+ MainWindow.setTabOrder(self.gatewayPassword, self.gatewayRealm)
+ MainWindow.setTabOrder(self.gatewayRealm, self.gatewayFromDomain)
+ MainWindow.setTabOrder(self.gatewayFromDomain, self.gatewayExpireInSeconds)
+ MainWindow.setTabOrder(self.gatewayExpireInSeconds, self.gatewayRetryInSeconds)
+ MainWindow.setTabOrder(self.gatewayRetryInSeconds, self.gatewayCallerIdInFromField)
+ MainWindow.setTabOrder(self.gatewayCallerIdInFromField, self.gatewayIsActive)
+ MainWindow.setTabOrder(self.gatewayIsActive, self.gatewayAdd)
+ MainWindow.setTabOrder(self.gatewayAdd, self.gatewaySave)
+ MainWindow.setTabOrder(self.gatewaySave, self.endpointViewList)
+ MainWindow.setTabOrder(self.endpointViewList, self.endpointUserId)
+ MainWindow.setTabOrder(self.endpointUserId, self.endpointPassword)
+ MainWindow.setTabOrder(self.endpointPassword, self.endpointDomainId)
+ MainWindow.setTabOrder(self.endpointDomainId, self.endpointIsActive)
+ MainWindow.setTabOrder(self.endpointIsActive, self.endpointAdd)
+ MainWindow.setTabOrder(self.endpointAdd, self.endpointSave)
+ MainWindow.setTabOrder(self.endpointSave, self.extensionViewList)
+ MainWindow.setTabOrder(self.extensionViewList, self.extensionDestinationMatch)
+ MainWindow.setTabOrder(self.extensionDestinationMatch, self.extensionDomainId)
+ MainWindow.setTabOrder(self.extensionDomainId, self.extensionAuthenticateCalls)
+ MainWindow.setTabOrder(self.extensionAuthenticateCalls, self.extensionIsActive)
+ MainWindow.setTabOrder(self.extensionIsActive, self.extensionAdd)
+ MainWindow.setTabOrder(self.extensionAdd, self.extensionSave)
- def retranslateUi(self):
- locale = QtCore.QLocale.system().name()
- translator = QtCore.QTranslator()
-
- if translator.load("ipypbx_%s" % locale.toLower(), "ipypbx/locale"):
- QtGui.QApplication.installTranslator(translator)
-
- self.setWindowTitle(
- QtGui.QApplication.translate(
- "MainWindow", "IPyPBX", None, QtGui.QApplication.UnicodeUTF8))
- #self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Name", None, QtGui.QApplication.UnicodeUTF8))
- #self.label_11.setText(QtGui.QApplication.translate("MainWindow", "Local Port", None, QtGui.QApplication.UnicodeUTF8))
- #self.label_13.setText(QtGui.QApplication.translate("MainWindow", "Freeswitch Port", None, QtGui.QApplication.UnicodeUTF8))
- #self.label_12.setText(QtGui.QApplication.translate("MainWindow", "Local IP address", None, QtGui.QApplication.UnicodeUTF8))
- #self.label_14.setText(QtGui.QApplication.translate("MainWindow", "Freeswitch IP Address", None, QtGui.QApplication.UnicodeUTF8))
+ def retranslateUi(self, MainWindow):
+ MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "IPyPBX", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_5.setText(QtGui.QApplication.translate("MainWindow", "Name", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_11.setText(QtGui.QApplication.translate("MainWindow", "Local Port", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_13.setText(QtGui.QApplication.translate("MainWindow", "Freeswitch Port", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_12.setText(QtGui.QApplication.translate("MainWindow", "Local IP Address", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_14.setText(QtGui.QApplication.translate("MainWindow", "Freeswitch IP Address", None, QtGui.QApplication.UnicodeUTF8))
self.connectionAdd.setText(QtGui.QApplication.translate("MainWindow", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.connectionSave.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.connectionsTab), QtGui.QApplication.translate("MainWindow", "Connections", None, QtGui.QApplication.UnicodeUTF8))
self.label_24.setText(QtGui.QApplication.translate("MainWindow", "Retry In Seconds", None, QtGui.QApplication.UnicodeUTF8))
self.gatewayIsActive.setText(QtGui.QApplication.translate("MainWindow", "Is Active", None, QtGui.QApplication.UnicodeUTF8))
self.gatewayCallerIdInFromField.setText(QtGui.QApplication.translate("MainWindow", "Caller ID In \"From\" Field", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_31.setText(QtGui.QApplication.translate("MainWindow", "Extension", None, QtGui.QApplication.UnicodeUTF8))
+ self.gatewayRetryInSeconds.setText(QtGui.QApplication.translate("MainWindow", "3600", None, QtGui.QApplication.UnicodeUTF8))
+ self.gatewayExpireInSeconds.setText(QtGui.QApplication.translate("MainWindow", "3600", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.gatewaysTab), QtGui.QApplication.translate("MainWindow", "Gateways", None, QtGui.QApplication.UnicodeUTF8))
self.endpointAdd.setText(QtGui.QApplication.translate("MainWindow", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.endpointSave.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.endpointsTab), QtGui.QApplication.translate("MainWindow", "Endpoints", None, QtGui.QApplication.UnicodeUTF8))
self.extensionAdd.setText(QtGui.QApplication.translate("MainWindow", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.extensionSave.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8))
- self.label_3.setText(QtGui.QApplication.translate("MainWindow", "XML Dialplan", None, QtGui.QApplication.UnicodeUTF8))
self.label_28.setText(QtGui.QApplication.translate("MainWindow", "Destination Match", None, QtGui.QApplication.UnicodeUTF8))
+ self.label_3.setText(QtGui.QApplication.translate("MainWindow", "XML Dialplan", None, QtGui.QApplication.UnicodeUTF8))
self.label_29.setText(QtGui.QApplication.translate("MainWindow", "Domain", None, QtGui.QApplication.UnicodeUTF8))
- self.label_30.setText(QtGui.QApplication.translate("MainWindow", "Endpoint", None, QtGui.QApplication.UnicodeUTF8))
self.extensionIsActive.setText(QtGui.QApplication.translate("MainWindow", "Is Active", None, QtGui.QApplication.UnicodeUTF8))
self.extensionAuthenticateCalls.setText(QtGui.QApplication.translate("MainWindow", "Authenticate Calls", None, QtGui.QApplication.UnicodeUTF8))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.extensionsTab), QtGui.QApplication.translate("MainWindow", "Extensions", None, QtGui.QApplication.UnicodeUTF8))