mirror of
https://github.com/GNS3/gns3-gui.git
synced 2026-05-17 00:46:01 +03:00
Rename support for all Dynamips simulated devices
This commit is contained in:
@@ -157,6 +157,7 @@ class NodeItem(QtSvg.QGraphicsSvgItem):
|
||||
|
||||
def updatedSlot(self):
|
||||
|
||||
self.textItem.setPlainText(self._node.name())
|
||||
self.setUnsavedState()
|
||||
|
||||
def deleteLinksSlot(self):
|
||||
|
||||
@@ -143,9 +143,36 @@ class ATMSwitch(Node):
|
||||
updated = True
|
||||
log.debug("port {} has been added".format(port_name))
|
||||
|
||||
params = {}
|
||||
if "name" in new_settings and new_settings["name"] != self.name():
|
||||
params = {"id": self._atmsw_id,
|
||||
"name": new_settings["name"]}
|
||||
updated = True
|
||||
|
||||
self._settings["mappings"] = new_settings["mappings"].copy()
|
||||
if updated:
|
||||
log.info("ATM switch {} has been updated".format(self.name()))
|
||||
if params:
|
||||
log.debug("{} is being updated: {}".format(self.name(), params))
|
||||
self._server.send_message("dynamips.atmsw.update", params, self._updateCallback)
|
||||
else:
|
||||
log.info("ATM switch {} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
def _updateCallback(self, result, error=False):
|
||||
"""
|
||||
Callback for update.
|
||||
|
||||
:param result: server response
|
||||
:param error: indicates an error (boolean)
|
||||
"""
|
||||
|
||||
if error:
|
||||
log.error("error while updating {}: {}".format(self.name(), result["message"]))
|
||||
self.error_signal.emit(self.name(), result["code"], result["message"])
|
||||
else:
|
||||
if "name" in result:
|
||||
self._settings["name"] = result["name"]
|
||||
log.info("{} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
def allocateUDPPort(self, port_id):
|
||||
|
||||
@@ -52,13 +52,14 @@ class Cloud(Node):
|
||||
# create an unique id and name
|
||||
self._name_id = Cloud._name_instance_count
|
||||
Cloud._name_instance_count += 1
|
||||
self._name = "Cloud {}".format(self._name_id)
|
||||
|
||||
name = "Cloud {}".format(self._name_id)
|
||||
self._defaults = {}
|
||||
self._ports = []
|
||||
self._module = module
|
||||
self._settings = {"nios": [],
|
||||
"interfaces": []}
|
||||
"interfaces": [],
|
||||
"name": name}
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
@@ -243,7 +244,11 @@ class Cloud(Node):
|
||||
log.debug("port {} has been deleted".format(nio))
|
||||
break
|
||||
|
||||
self._settings = new_settings.copy()
|
||||
if "name" in new_settings and new_settings["name"] != self.name():
|
||||
self._settings["name"] = new_settings["name"]
|
||||
updated = True
|
||||
|
||||
self._settings["nios"] = new_settings["nios"].copy()
|
||||
if updated:
|
||||
log.info("cloud {} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
@@ -320,7 +325,7 @@ class Cloud(Node):
|
||||
:returns: name (string)
|
||||
"""
|
||||
|
||||
return self._name
|
||||
return self._settings["name"]
|
||||
|
||||
def settings(self):
|
||||
"""
|
||||
|
||||
@@ -138,8 +138,35 @@ class EthernetHub(Node):
|
||||
updated = True
|
||||
log.debug("port {} has been added".format(port_name))
|
||||
|
||||
params = {}
|
||||
if "name" in new_settings and new_settings["name"] != self.name():
|
||||
params = {"id": self._ethhub_id,
|
||||
"name": new_settings["name"]}
|
||||
updated = True
|
||||
|
||||
self._settings["ports"] = new_settings["ports"].copy()
|
||||
if updated:
|
||||
if params:
|
||||
log.debug("{} is being updated: {}".format(self.name(), params))
|
||||
self._server.send_message("dynamips.ethhub.update", params, self._updateCallback)
|
||||
else:
|
||||
log.info("{} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
def _updateCallback(self, result, error=False):
|
||||
"""
|
||||
Callback for update.
|
||||
|
||||
:param result: server response
|
||||
:param error: indicates an error (boolean)
|
||||
"""
|
||||
|
||||
if error:
|
||||
log.error("error while updating {}: {}".format(self.name(), result["message"]))
|
||||
self.error_signal.emit(self.name(), result["code"], result["message"])
|
||||
else:
|
||||
if "name" in result:
|
||||
self._settings["name"] = result["name"]
|
||||
log.info("{} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
|
||||
@@ -132,18 +132,21 @@ class EthernetSwitch(Node):
|
||||
updated = True
|
||||
log.debug("port {} has been added".format(port_number))
|
||||
|
||||
params = {"id": self._ethsw_id}
|
||||
if ports_to_update:
|
||||
params = {"id": self._ethsw_id,
|
||||
"ports": {}}
|
||||
params["ports"] = {}
|
||||
for port_number, info in ports_to_update.items():
|
||||
params["ports"][port_number] = info
|
||||
updated = True
|
||||
log.debug("{} is being updated: {}".format(self.name(), params))
|
||||
self._server.send_message("dynamips.ethsw.update", params, self._updateCallback)
|
||||
|
||||
if "name" in new_settings and new_settings["name"] != self.name():
|
||||
params["name"] = new_settings["name"]
|
||||
updated = True
|
||||
|
||||
self._settings["ports"] = new_settings["ports"].copy()
|
||||
if updated:
|
||||
self.updated_signal.emit()
|
||||
log.debug("{} is being updated: {}".format(self.name(), params))
|
||||
self._server.send_message("dynamips.ethsw.update", params, self._updateCallback)
|
||||
|
||||
def _updateCallback(self, result, error=False):
|
||||
"""
|
||||
@@ -157,7 +160,10 @@ class EthernetSwitch(Node):
|
||||
log.error("error while updating {}: {}".format(self.name(), result["message"]))
|
||||
self.error_signal.emit(self.name(), result["code"], result["message"])
|
||||
else:
|
||||
if "name" in result:
|
||||
self._settings["name"] = result["name"]
|
||||
log.info("{} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
def allocateUDPPort(self, port_id):
|
||||
"""
|
||||
|
||||
@@ -144,9 +144,35 @@ class FrameRelaySwitch(Node):
|
||||
updated = True
|
||||
log.debug("port {} has been added".format(port_name))
|
||||
|
||||
self._settings["mappings"] = new_settings["mappings"].copy()
|
||||
params = {}
|
||||
if "name" in new_settings and new_settings["name"] != self.name():
|
||||
params = {"id": self._frsw_id,
|
||||
"name": new_settings["name"]}
|
||||
updated = True
|
||||
|
||||
self._settings["mappings"] = new_settings["mappings"].copy()
|
||||
if updated:
|
||||
if params:
|
||||
log.debug("{} is being updated: {}".format(self.name(), params))
|
||||
self._server.send_message("dynamips.frsw.update", params, self._updateCallback)
|
||||
else:
|
||||
log.info("{} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
def _updateCallback(self, result, error=False):
|
||||
"""
|
||||
Callback for update.
|
||||
|
||||
:param result: server response
|
||||
:param error: indicates an error (boolean)
|
||||
"""
|
||||
|
||||
if error:
|
||||
log.error("error while updating {}: {}".format(self.name(), result["message"]))
|
||||
self.error_signal.emit(self.name(), result["code"], result["message"])
|
||||
else:
|
||||
if "name" in result:
|
||||
self._settings["name"] = result["name"]
|
||||
log.info("{} has been updated".format(self.name()))
|
||||
self.updated_signal.emit()
|
||||
|
||||
|
||||
@@ -139,6 +139,11 @@ class ATMBridgeConfigurationPage(QtGui.QWidget, Ui_atmBridgeConfigPageWidget):
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
self.uiNameLineEdit.setText(settings["name"])
|
||||
else:
|
||||
self.uiNameLineEdit.setEnabled(False)
|
||||
|
||||
self.uiMappingTreeWidget.clear()
|
||||
self._mapping = {}
|
||||
self._node = node
|
||||
@@ -162,9 +167,9 @@ class ATMBridgeConfigurationPage(QtGui.QWidget, Ui_atmBridgeConfigPageWidget):
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
# these setting cannot be shared by nodes and updated
|
||||
# in the node configurator.
|
||||
if "name" in settings:
|
||||
if not group:
|
||||
settings["name"] = self.uiNameLineEdit.text()
|
||||
else:
|
||||
del settings["name"]
|
||||
|
||||
settings["mappings"] = self._mapping.copy()
|
||||
|
||||
@@ -159,6 +159,11 @@ class ATMSwitchConfigurationPage(QtGui.QWidget, Ui_atmSwitchConfigPageWidget):
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
self.uiNameLineEdit.setText(settings["name"])
|
||||
else:
|
||||
self.uiNameLineEdit.setEnabled(False)
|
||||
|
||||
self.uiMappingTreeWidget.clear()
|
||||
self._mapping = {}
|
||||
self._node = node
|
||||
@@ -182,9 +187,9 @@ class ATMSwitchConfigurationPage(QtGui.QWidget, Ui_atmSwitchConfigPageWidget):
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
# these setting cannot be shared by nodes and updated
|
||||
# in the node configurator.
|
||||
if "name" in settings:
|
||||
if not group:
|
||||
settings["name"] = self.uiNameLineEdit.text()
|
||||
else:
|
||||
del settings["name"]
|
||||
|
||||
settings["mappings"] = self._mapping.copy()
|
||||
|
||||
@@ -463,6 +463,11 @@ class CloudConfigurationPage(QtGui.QWidget, Ui_cloudConfigPageWidget):
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
self.uiNameLineEdit.setText(settings["name"])
|
||||
else:
|
||||
self.uiNameLineEdit.setEnabled(False)
|
||||
|
||||
self._node = node
|
||||
|
||||
# load all network interfaces
|
||||
@@ -511,4 +516,9 @@ class CloudConfigurationPage(QtGui.QWidget, Ui_cloudConfigPageWidget):
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
settings["name"] = self.uiNameLineEdit.text()
|
||||
else:
|
||||
del settings["name"]
|
||||
|
||||
settings["nios"] = list(self._nios)
|
||||
|
||||
@@ -43,6 +43,12 @@ class EthernetHubConfigurationPage(QtGui.QWidget, Ui_ethernetHubConfigPageWidget
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
self.uiNameLineEdit.setText(settings["name"])
|
||||
else:
|
||||
self.uiNameLineEdit.hide()
|
||||
self.uiNameLabel.hide()
|
||||
|
||||
nbports = len(settings["ports"])
|
||||
self.uiPortsSpinBox.setValue(nbports)
|
||||
|
||||
@@ -55,9 +61,9 @@ class EthernetHubConfigurationPage(QtGui.QWidget, Ui_ethernetHubConfigPageWidget
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
# these setting cannot be shared by nodes and updated
|
||||
# in the node configurator.
|
||||
if "name" in settings:
|
||||
if not group:
|
||||
settings["name"] = self.uiNameLineEdit.text()
|
||||
else:
|
||||
del settings["name"]
|
||||
|
||||
nbports = self.uiPortsSpinBox.value()
|
||||
|
||||
@@ -131,6 +131,11 @@ class EthernetSwitchConfigurationPage(QtGui.QWidget, Ui_ethernetSwitchConfigPage
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
self.uiNameLineEdit.setText(settings["name"])
|
||||
else:
|
||||
self.uiNameLineEdit.setEnabled(False)
|
||||
|
||||
self.uiPortsTreeWidget.clear()
|
||||
self._ports = {}
|
||||
self._node = node
|
||||
@@ -157,9 +162,9 @@ class EthernetSwitchConfigurationPage(QtGui.QWidget, Ui_ethernetSwitchConfigPage
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
# these setting cannot be shared by nodes and updated
|
||||
# in the node configurator.
|
||||
if "name" in settings:
|
||||
if not group:
|
||||
settings["name"] = self.uiNameLineEdit.text()
|
||||
else:
|
||||
del settings["name"]
|
||||
|
||||
settings["ports"] = self._ports.copy()
|
||||
|
||||
@@ -134,6 +134,11 @@ class FrameRelaySwitchConfigurationPage(QtGui.QWidget, Ui_frameRelaySwitchConfig
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
if not group:
|
||||
self.uiNameLineEdit.setText(settings["name"])
|
||||
else:
|
||||
self.uiNameLineEdit.setEnabled(False)
|
||||
|
||||
self.uiMappingTreeWidget.clear()
|
||||
self._mapping = {}
|
||||
self._node = node
|
||||
@@ -157,9 +162,9 @@ class FrameRelaySwitchConfigurationPage(QtGui.QWidget, Ui_frameRelaySwitchConfig
|
||||
:param group: indicates the settings apply to a group
|
||||
"""
|
||||
|
||||
# these setting cannot be shared by nodes and updated
|
||||
# in the node configurator.
|
||||
if "name" in settings:
|
||||
if not group:
|
||||
settings["name"] = self.uiNameLineEdit.text()
|
||||
else:
|
||||
del settings["name"]
|
||||
|
||||
settings["mappings"] = self._mapping.copy()
|
||||
|
||||
@@ -270,11 +270,6 @@ class RouterConfigurationPage(QtGui.QWidget, Ui_routerConfigPageWidget):
|
||||
# load the IOS image name without the full path
|
||||
self.uiIOSImageTextLabel.setText(os.path.basename(settings["image"]))
|
||||
|
||||
|
||||
|
||||
#TODO: startup-config setting
|
||||
#self.uiStartupConfigTextLabel.setText("None")
|
||||
|
||||
if platform == "c7200":
|
||||
|
||||
# load the midplane and NPE settings
|
||||
|
||||
@@ -6,15 +6,47 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>403</width>
|
||||
<height>383</height>
|
||||
<width>432</width>
|
||||
<height>358</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>ATM Bridge</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="2" rowspan="3">
|
||||
<widget class="QGroupBox" name="uiMappingGroupBox">
|
||||
<property name="title">
|
||||
<string>Mapping</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="uiMappingTreeWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Ethernet Port</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port:VPI:VCI</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiEthernetGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -55,39 +87,7 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="3">
|
||||
<widget class="QGroupBox" name="uiMappingGroupBox">
|
||||
<property name="title">
|
||||
<string>Mapping</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="uiMappingTreeWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Ethernet Port</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port:VPI:VCI</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiATMGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -183,14 +183,14 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="uiAddPushButton">
|
||||
<property name="text">
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="3" column="1">
|
||||
<widget class="QPushButton" name="uiDeletePushButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
@@ -200,7 +200,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<item row="4" column="0" colspan="3">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
@@ -213,6 +213,25 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiGeneralGroupBox">
|
||||
<property name="title">
|
||||
<string>General</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="uiNameLabel">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="uiNameLineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
@@ -222,7 +241,6 @@
|
||||
<tabstop>uiATMVCISpinBox</tabstop>
|
||||
<tabstop>uiAddPushButton</tabstop>
|
||||
<tabstop>uiDeletePushButton</tabstop>
|
||||
<tabstop>uiMappingTreeWidget</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file '/home/grossmj/workspace/git/gns3-gui/gns3/modules/dynamips/ui/atm_bridge_configuration_page.ui'
|
||||
#
|
||||
# Created: Tue Jan 21 20:55:02 2014
|
||||
# Created: Sun Mar 16 11:16:57 2014
|
||||
# by: PyQt4 UI code generator 4.10
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@@ -26,33 +26,9 @@ except AttributeError:
|
||||
class Ui_atmBridgeConfigPageWidget(object):
|
||||
def setupUi(self, atmBridgeConfigPageWidget):
|
||||
atmBridgeConfigPageWidget.setObjectName(_fromUtf8("atmBridgeConfigPageWidget"))
|
||||
atmBridgeConfigPageWidget.resize(403, 383)
|
||||
self.gridlayout = QtGui.QGridLayout(atmBridgeConfigPageWidget)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiEthernetGroupBox = QtGui.QGroupBox(atmBridgeConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiEthernetGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiEthernetGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiEthernetGroupBox.setObjectName(_fromUtf8("uiEthernetGroupBox"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiEthernetGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.uiEthernetPortLabel = QtGui.QLabel(self.uiEthernetGroupBox)
|
||||
self.uiEthernetPortLabel.setObjectName(_fromUtf8("uiEthernetPortLabel"))
|
||||
self.gridlayout1.addWidget(self.uiEthernetPortLabel, 0, 0, 1, 1)
|
||||
self.uiEthernetPortSpinBox = QtGui.QSpinBox(self.uiEthernetGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiEthernetPortSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiEthernetPortSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiEthernetPortSpinBox.setMinimum(0)
|
||||
self.uiEthernetPortSpinBox.setMaximum(65535)
|
||||
self.uiEthernetPortSpinBox.setProperty("value", 1)
|
||||
self.uiEthernetPortSpinBox.setObjectName(_fromUtf8("uiEthernetPortSpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiEthernetPortSpinBox, 0, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiEthernetGroupBox, 0, 0, 1, 2)
|
||||
atmBridgeConfigPageWidget.resize(432, 358)
|
||||
self.gridLayout_2 = QtGui.QGridLayout(atmBridgeConfigPageWidget)
|
||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||
self.uiMappingGroupBox = QtGui.QGroupBox(atmBridgeConfigPageWidget)
|
||||
self.uiMappingGroupBox.setObjectName(_fromUtf8("uiMappingGroupBox"))
|
||||
self.vboxlayout = QtGui.QVBoxLayout(self.uiMappingGroupBox)
|
||||
@@ -66,7 +42,31 @@ class Ui_atmBridgeConfigPageWidget(object):
|
||||
self.uiMappingTreeWidget.setRootIsDecorated(False)
|
||||
self.uiMappingTreeWidget.setObjectName(_fromUtf8("uiMappingTreeWidget"))
|
||||
self.vboxlayout.addWidget(self.uiMappingTreeWidget)
|
||||
self.gridlayout.addWidget(self.uiMappingGroupBox, 0, 2, 3, 1)
|
||||
self.gridLayout_2.addWidget(self.uiMappingGroupBox, 0, 2, 3, 1)
|
||||
self.uiEthernetGroupBox = QtGui.QGroupBox(atmBridgeConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiEthernetGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiEthernetGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiEthernetGroupBox.setObjectName(_fromUtf8("uiEthernetGroupBox"))
|
||||
self.gridlayout = QtGui.QGridLayout(self.uiEthernetGroupBox)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiEthernetPortLabel = QtGui.QLabel(self.uiEthernetGroupBox)
|
||||
self.uiEthernetPortLabel.setObjectName(_fromUtf8("uiEthernetPortLabel"))
|
||||
self.gridlayout.addWidget(self.uiEthernetPortLabel, 0, 0, 1, 1)
|
||||
self.uiEthernetPortSpinBox = QtGui.QSpinBox(self.uiEthernetGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiEthernetPortSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiEthernetPortSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiEthernetPortSpinBox.setMinimum(0)
|
||||
self.uiEthernetPortSpinBox.setMaximum(65535)
|
||||
self.uiEthernetPortSpinBox.setProperty("value", 1)
|
||||
self.uiEthernetPortSpinBox.setObjectName(_fromUtf8("uiEthernetPortSpinBox"))
|
||||
self.gridlayout.addWidget(self.uiEthernetPortSpinBox, 0, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiEthernetGroupBox, 1, 0, 1, 2)
|
||||
self.uiATMGroupBox = QtGui.QGroupBox(atmBridgeConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -74,11 +74,11 @@ class Ui_atmBridgeConfigPageWidget(object):
|
||||
sizePolicy.setHeightForWidth(self.uiATMGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiATMGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiATMGroupBox.setObjectName(_fromUtf8("uiATMGroupBox"))
|
||||
self.gridlayout2 = QtGui.QGridLayout(self.uiATMGroupBox)
|
||||
self.gridlayout2.setObjectName(_fromUtf8("gridlayout2"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiATMGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.uiATMPortLabel = QtGui.QLabel(self.uiATMGroupBox)
|
||||
self.uiATMPortLabel.setObjectName(_fromUtf8("uiATMPortLabel"))
|
||||
self.gridlayout2.addWidget(self.uiATMPortLabel, 0, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiATMPortLabel, 0, 0, 1, 1)
|
||||
self.uiATMPortSpinBox = QtGui.QSpinBox(self.uiATMGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -89,10 +89,10 @@ class Ui_atmBridgeConfigPageWidget(object):
|
||||
self.uiATMPortSpinBox.setMaximum(65535)
|
||||
self.uiATMPortSpinBox.setProperty("value", 10)
|
||||
self.uiATMPortSpinBox.setObjectName(_fromUtf8("uiATMPortSpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiATMPortSpinBox, 0, 1, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiATMPortSpinBox, 0, 1, 1, 1)
|
||||
self.uiATMVPILabel = QtGui.QLabel(self.uiATMGroupBox)
|
||||
self.uiATMVPILabel.setObjectName(_fromUtf8("uiATMVPILabel"))
|
||||
self.gridlayout2.addWidget(self.uiATMVPILabel, 1, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiATMVPILabel, 1, 0, 1, 1)
|
||||
self.uiATMVPISpinBox = QtGui.QSpinBox(self.uiATMGroupBox)
|
||||
self.uiATMVPISpinBox.setEnabled(True)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
@@ -105,10 +105,10 @@ class Ui_atmBridgeConfigPageWidget(object):
|
||||
self.uiATMVPISpinBox.setSingleStep(1)
|
||||
self.uiATMVPISpinBox.setProperty("value", 0)
|
||||
self.uiATMVPISpinBox.setObjectName(_fromUtf8("uiATMVPISpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiATMVPISpinBox, 1, 1, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiATMVPISpinBox, 1, 1, 1, 1)
|
||||
self.uiATMVCILabel = QtGui.QLabel(self.uiATMGroupBox)
|
||||
self.uiATMVCILabel.setObjectName(_fromUtf8("uiATMVCILabel"))
|
||||
self.gridlayout2.addWidget(self.uiATMVCILabel, 2, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiATMVCILabel, 2, 0, 1, 1)
|
||||
self.uiATMVCISpinBox = QtGui.QSpinBox(self.uiATMGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -118,17 +118,28 @@ class Ui_atmBridgeConfigPageWidget(object):
|
||||
self.uiATMVCISpinBox.setMaximum(65535)
|
||||
self.uiATMVCISpinBox.setProperty("value", 100)
|
||||
self.uiATMVCISpinBox.setObjectName(_fromUtf8("uiATMVCISpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiATMVCISpinBox, 2, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiATMGroupBox, 1, 0, 1, 2)
|
||||
self.gridlayout1.addWidget(self.uiATMVCISpinBox, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiATMGroupBox, 2, 0, 1, 2)
|
||||
self.uiAddPushButton = QtGui.QPushButton(atmBridgeConfigPageWidget)
|
||||
self.uiAddPushButton.setObjectName(_fromUtf8("uiAddPushButton"))
|
||||
self.gridlayout.addWidget(self.uiAddPushButton, 2, 0, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiAddPushButton, 3, 0, 1, 1)
|
||||
self.uiDeletePushButton = QtGui.QPushButton(atmBridgeConfigPageWidget)
|
||||
self.uiDeletePushButton.setEnabled(False)
|
||||
self.uiDeletePushButton.setObjectName(_fromUtf8("uiDeletePushButton"))
|
||||
self.gridlayout.addWidget(self.uiDeletePushButton, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiDeletePushButton, 3, 1, 1, 1)
|
||||
spacerItem = QtGui.QSpacerItem(371, 121, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout.addItem(spacerItem, 3, 0, 1, 3)
|
||||
self.gridLayout_2.addItem(spacerItem, 4, 0, 1, 3)
|
||||
self.uiGeneralGroupBox = QtGui.QGroupBox(atmBridgeConfigPageWidget)
|
||||
self.uiGeneralGroupBox.setObjectName(_fromUtf8("uiGeneralGroupBox"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.uiGeneralGroupBox)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.uiNameLabel = QtGui.QLabel(self.uiGeneralGroupBox)
|
||||
self.uiNameLabel.setObjectName(_fromUtf8("uiNameLabel"))
|
||||
self.gridLayout.addWidget(self.uiNameLabel, 0, 0, 1, 1)
|
||||
self.uiNameLineEdit = QtGui.QLineEdit(self.uiGeneralGroupBox)
|
||||
self.uiNameLineEdit.setObjectName(_fromUtf8("uiNameLineEdit"))
|
||||
self.gridLayout.addWidget(self.uiNameLineEdit, 0, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiGeneralGroupBox, 0, 0, 1, 2)
|
||||
|
||||
self.retranslateUi(atmBridgeConfigPageWidget)
|
||||
QtCore.QMetaObject.connectSlotsByName(atmBridgeConfigPageWidget)
|
||||
@@ -137,19 +148,20 @@ class Ui_atmBridgeConfigPageWidget(object):
|
||||
atmBridgeConfigPageWidget.setTabOrder(self.uiATMVPISpinBox, self.uiATMVCISpinBox)
|
||||
atmBridgeConfigPageWidget.setTabOrder(self.uiATMVCISpinBox, self.uiAddPushButton)
|
||||
atmBridgeConfigPageWidget.setTabOrder(self.uiAddPushButton, self.uiDeletePushButton)
|
||||
atmBridgeConfigPageWidget.setTabOrder(self.uiDeletePushButton, self.uiMappingTreeWidget)
|
||||
|
||||
def retranslateUi(self, atmBridgeConfigPageWidget):
|
||||
atmBridgeConfigPageWidget.setWindowTitle(_translate("atmBridgeConfigPageWidget", "ATM Bridge", None))
|
||||
self.uiEthernetGroupBox.setTitle(_translate("atmBridgeConfigPageWidget", "Ethernet side", None))
|
||||
self.uiEthernetPortLabel.setText(_translate("atmBridgeConfigPageWidget", "Port:", None))
|
||||
self.uiMappingGroupBox.setTitle(_translate("atmBridgeConfigPageWidget", "Mapping", None))
|
||||
self.uiMappingTreeWidget.headerItem().setText(0, _translate("atmBridgeConfigPageWidget", "Ethernet Port", None))
|
||||
self.uiMappingTreeWidget.headerItem().setText(1, _translate("atmBridgeConfigPageWidget", "Port:VPI:VCI", None))
|
||||
self.uiEthernetGroupBox.setTitle(_translate("atmBridgeConfigPageWidget", "Ethernet side", None))
|
||||
self.uiEthernetPortLabel.setText(_translate("atmBridgeConfigPageWidget", "Port:", None))
|
||||
self.uiATMGroupBox.setTitle(_translate("atmBridgeConfigPageWidget", "ATM side", None))
|
||||
self.uiATMPortLabel.setText(_translate("atmBridgeConfigPageWidget", "Port:", None))
|
||||
self.uiATMVPILabel.setText(_translate("atmBridgeConfigPageWidget", "VPI:", None))
|
||||
self.uiATMVCILabel.setText(_translate("atmBridgeConfigPageWidget", "VCI:", None))
|
||||
self.uiAddPushButton.setText(_translate("atmBridgeConfigPageWidget", "&Add", None))
|
||||
self.uiDeletePushButton.setText(_translate("atmBridgeConfigPageWidget", "&Delete", None))
|
||||
self.uiGeneralGroupBox.setTitle(_translate("atmBridgeConfigPageWidget", "General", None))
|
||||
self.uiNameLabel.setText(_translate("atmBridgeConfigPageWidget", "Name:", None))
|
||||
|
||||
|
||||
@@ -6,22 +6,41 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>482</width>
|
||||
<height>376</height>
|
||||
<width>459</width>
|
||||
<height>419</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>ATM Switch</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="uiVPICheckBox">
|
||||
<property name="text">
|
||||
<string>Use VPI only (VP tunnel)</string>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QGroupBox" name="uiGeneralGroupBox">
|
||||
<property name="title">
|
||||
<string>General</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="uiNameLabel">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="uiNameLineEdit"/>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="uiVPICheckBox">
|
||||
<property name="text">
|
||||
<string>Use VPI only (VP tunnel)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="4">
|
||||
<item row="0" column="3" rowspan="3">
|
||||
<widget class="QGroupBox" name="uiMappingGroupBox">
|
||||
<property name="title">
|
||||
<string>Mapping</string>
|
||||
@@ -53,7 +72,37 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="uiAddPushButton">
|
||||
<property name="text">
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QPushButton" name="uiDeletePushButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Delete</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2" colspan="2">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>213</width>
|
||||
<height>31</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QGroupBox" name="uiSourceGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -143,7 +192,7 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="2">
|
||||
<item row="2" column="0" colspan="3">
|
||||
<widget class="QGroupBox" name="uiDestinationGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -233,36 +282,6 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="uiAddPushButton">
|
||||
<property name="text">
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QPushButton" name="uiDeletePushButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Delete</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>213</width>
|
||||
<height>31</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<tabstops>
|
||||
@@ -275,7 +294,6 @@
|
||||
<tabstop>uiDestinationVCISpinBox</tabstop>
|
||||
<tabstop>uiAddPushButton</tabstop>
|
||||
<tabstop>uiDeletePushButton</tabstop>
|
||||
<tabstop>uiMappingTreeWidget</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file '/home/grossmj/workspace/git/gns3-gui/gns3/modules/dynamips/ui/atm_switch_configuration_page.ui'
|
||||
#
|
||||
# Created: Tue Jan 21 20:55:02 2014
|
||||
# Created: Sun Mar 16 11:16:57 2014
|
||||
# by: PyQt4 UI code generator 4.10
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@@ -26,12 +26,23 @@ except AttributeError:
|
||||
class Ui_atmSwitchConfigPageWidget(object):
|
||||
def setupUi(self, atmSwitchConfigPageWidget):
|
||||
atmSwitchConfigPageWidget.setObjectName(_fromUtf8("atmSwitchConfigPageWidget"))
|
||||
atmSwitchConfigPageWidget.resize(482, 376)
|
||||
self.gridlayout = QtGui.QGridLayout(atmSwitchConfigPageWidget)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiVPICheckBox = QtGui.QCheckBox(atmSwitchConfigPageWidget)
|
||||
atmSwitchConfigPageWidget.resize(459, 419)
|
||||
self.gridLayout_2 = QtGui.QGridLayout(atmSwitchConfigPageWidget)
|
||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||
self.uiGeneralGroupBox = QtGui.QGroupBox(atmSwitchConfigPageWidget)
|
||||
self.uiGeneralGroupBox.setObjectName(_fromUtf8("uiGeneralGroupBox"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.uiGeneralGroupBox)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.uiNameLabel = QtGui.QLabel(self.uiGeneralGroupBox)
|
||||
self.uiNameLabel.setObjectName(_fromUtf8("uiNameLabel"))
|
||||
self.gridLayout.addWidget(self.uiNameLabel, 0, 0, 1, 1)
|
||||
self.uiNameLineEdit = QtGui.QLineEdit(self.uiGeneralGroupBox)
|
||||
self.uiNameLineEdit.setObjectName(_fromUtf8("uiNameLineEdit"))
|
||||
self.gridLayout.addWidget(self.uiNameLineEdit, 0, 1, 1, 1)
|
||||
self.uiVPICheckBox = QtGui.QCheckBox(self.uiGeneralGroupBox)
|
||||
self.uiVPICheckBox.setObjectName(_fromUtf8("uiVPICheckBox"))
|
||||
self.gridlayout.addWidget(self.uiVPICheckBox, 0, 0, 1, 2)
|
||||
self.gridLayout.addWidget(self.uiVPICheckBox, 1, 0, 1, 2)
|
||||
self.gridLayout_2.addWidget(self.uiGeneralGroupBox, 0, 0, 1, 3)
|
||||
self.uiMappingGroupBox = QtGui.QGroupBox(atmSwitchConfigPageWidget)
|
||||
self.uiMappingGroupBox.setObjectName(_fromUtf8("uiMappingGroupBox"))
|
||||
self.vboxlayout = QtGui.QVBoxLayout(self.uiMappingGroupBox)
|
||||
@@ -45,7 +56,16 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiMappingTreeWidget.setRootIsDecorated(False)
|
||||
self.uiMappingTreeWidget.setObjectName(_fromUtf8("uiMappingTreeWidget"))
|
||||
self.vboxlayout.addWidget(self.uiMappingTreeWidget)
|
||||
self.gridlayout.addWidget(self.uiMappingGroupBox, 0, 2, 4, 1)
|
||||
self.gridLayout_2.addWidget(self.uiMappingGroupBox, 0, 3, 3, 1)
|
||||
self.uiAddPushButton = QtGui.QPushButton(atmSwitchConfigPageWidget)
|
||||
self.uiAddPushButton.setObjectName(_fromUtf8("uiAddPushButton"))
|
||||
self.gridLayout_2.addWidget(self.uiAddPushButton, 3, 0, 1, 1)
|
||||
self.uiDeletePushButton = QtGui.QPushButton(atmSwitchConfigPageWidget)
|
||||
self.uiDeletePushButton.setEnabled(False)
|
||||
self.uiDeletePushButton.setObjectName(_fromUtf8("uiDeletePushButton"))
|
||||
self.gridLayout_2.addWidget(self.uiDeletePushButton, 3, 1, 1, 1)
|
||||
spacerItem = QtGui.QSpacerItem(213, 31, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridLayout_2.addItem(spacerItem, 4, 2, 1, 2)
|
||||
self.uiSourceGroupBox = QtGui.QGroupBox(atmSwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -53,11 +73,11 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
sizePolicy.setHeightForWidth(self.uiSourceGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiSourceGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiSourceGroupBox.setObjectName(_fromUtf8("uiSourceGroupBox"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiSourceGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.gridlayout = QtGui.QGridLayout(self.uiSourceGroupBox)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiSourcePortLabel = QtGui.QLabel(self.uiSourceGroupBox)
|
||||
self.uiSourcePortLabel.setObjectName(_fromUtf8("uiSourcePortLabel"))
|
||||
self.gridlayout1.addWidget(self.uiSourcePortLabel, 0, 0, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSourcePortLabel, 0, 0, 1, 1)
|
||||
self.uiSourcePortSpinBox = QtGui.QSpinBox(self.uiSourceGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -68,10 +88,10 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiSourcePortSpinBox.setMaximum(65535)
|
||||
self.uiSourcePortSpinBox.setProperty("value", 1)
|
||||
self.uiSourcePortSpinBox.setObjectName(_fromUtf8("uiSourcePortSpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiSourcePortSpinBox, 0, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSourcePortSpinBox, 0, 1, 1, 1)
|
||||
self.uiSourceVPILabel = QtGui.QLabel(self.uiSourceGroupBox)
|
||||
self.uiSourceVPILabel.setObjectName(_fromUtf8("uiSourceVPILabel"))
|
||||
self.gridlayout1.addWidget(self.uiSourceVPILabel, 1, 0, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSourceVPILabel, 1, 0, 1, 1)
|
||||
self.uiSourceVPISpinBox = QtGui.QSpinBox(self.uiSourceGroupBox)
|
||||
self.uiSourceVPISpinBox.setEnabled(True)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
@@ -82,10 +102,10 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiSourceVPISpinBox.setMaximum(65535)
|
||||
self.uiSourceVPISpinBox.setProperty("value", 0)
|
||||
self.uiSourceVPISpinBox.setObjectName(_fromUtf8("uiSourceVPISpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiSourceVPISpinBox, 1, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSourceVPISpinBox, 1, 1, 1, 1)
|
||||
self.uiSourceVCILabel = QtGui.QLabel(self.uiSourceGroupBox)
|
||||
self.uiSourceVCILabel.setObjectName(_fromUtf8("uiSourceVCILabel"))
|
||||
self.gridlayout1.addWidget(self.uiSourceVCILabel, 2, 0, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSourceVCILabel, 2, 0, 1, 1)
|
||||
self.uiSourceVCISpinBox = QtGui.QSpinBox(self.uiSourceGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -95,8 +115,8 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiSourceVCISpinBox.setMaximum(65535)
|
||||
self.uiSourceVCISpinBox.setProperty("value", 100)
|
||||
self.uiSourceVCISpinBox.setObjectName(_fromUtf8("uiSourceVCISpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiSourceVCISpinBox, 2, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSourceGroupBox, 1, 0, 1, 2)
|
||||
self.gridlayout.addWidget(self.uiSourceVCISpinBox, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiSourceGroupBox, 1, 0, 1, 3)
|
||||
self.uiDestinationGroupBox = QtGui.QGroupBox(atmSwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -104,11 +124,11 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
sizePolicy.setHeightForWidth(self.uiDestinationGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiDestinationGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiDestinationGroupBox.setObjectName(_fromUtf8("uiDestinationGroupBox"))
|
||||
self.gridlayout2 = QtGui.QGridLayout(self.uiDestinationGroupBox)
|
||||
self.gridlayout2.setObjectName(_fromUtf8("gridlayout2"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiDestinationGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.uiDestinationPortLabel = QtGui.QLabel(self.uiDestinationGroupBox)
|
||||
self.uiDestinationPortLabel.setObjectName(_fromUtf8("uiDestinationPortLabel"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationPortLabel, 0, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationPortLabel, 0, 0, 1, 1)
|
||||
self.uiDestinationPortSpinBox = QtGui.QSpinBox(self.uiDestinationGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -119,10 +139,10 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiDestinationPortSpinBox.setMaximum(65535)
|
||||
self.uiDestinationPortSpinBox.setProperty("value", 10)
|
||||
self.uiDestinationPortSpinBox.setObjectName(_fromUtf8("uiDestinationPortSpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationPortSpinBox, 0, 1, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationPortSpinBox, 0, 1, 1, 1)
|
||||
self.uiDestinationVPILabel = QtGui.QLabel(self.uiDestinationGroupBox)
|
||||
self.uiDestinationVPILabel.setObjectName(_fromUtf8("uiDestinationVPILabel"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationVPILabel, 1, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationVPILabel, 1, 0, 1, 1)
|
||||
self.uiDestinationVPISpinBox = QtGui.QSpinBox(self.uiDestinationGroupBox)
|
||||
self.uiDestinationVPISpinBox.setEnabled(True)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
@@ -133,10 +153,10 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiDestinationVPISpinBox.setMaximum(65535)
|
||||
self.uiDestinationVPISpinBox.setProperty("value", 0)
|
||||
self.uiDestinationVPISpinBox.setObjectName(_fromUtf8("uiDestinationVPISpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationVPISpinBox, 1, 1, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationVPISpinBox, 1, 1, 1, 1)
|
||||
self.uiDestinationVCILabel = QtGui.QLabel(self.uiDestinationGroupBox)
|
||||
self.uiDestinationVCILabel.setObjectName(_fromUtf8("uiDestinationVCILabel"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationVCILabel, 2, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationVCILabel, 2, 0, 1, 1)
|
||||
self.uiDestinationVCISpinBox = QtGui.QSpinBox(self.uiDestinationGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -146,17 +166,8 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiDestinationVCISpinBox.setMaximum(65535)
|
||||
self.uiDestinationVCISpinBox.setProperty("value", 200)
|
||||
self.uiDestinationVCISpinBox.setObjectName(_fromUtf8("uiDestinationVCISpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationVCISpinBox, 2, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiDestinationGroupBox, 2, 0, 1, 2)
|
||||
self.uiAddPushButton = QtGui.QPushButton(atmSwitchConfigPageWidget)
|
||||
self.uiAddPushButton.setObjectName(_fromUtf8("uiAddPushButton"))
|
||||
self.gridlayout.addWidget(self.uiAddPushButton, 3, 0, 1, 1)
|
||||
self.uiDeletePushButton = QtGui.QPushButton(atmSwitchConfigPageWidget)
|
||||
self.uiDeletePushButton.setEnabled(False)
|
||||
self.uiDeletePushButton.setObjectName(_fromUtf8("uiDeletePushButton"))
|
||||
self.gridlayout.addWidget(self.uiDeletePushButton, 3, 1, 1, 1)
|
||||
spacerItem = QtGui.QSpacerItem(213, 31, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout.addItem(spacerItem, 4, 2, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationVCISpinBox, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiDestinationGroupBox, 2, 0, 1, 3)
|
||||
|
||||
self.retranslateUi(atmSwitchConfigPageWidget)
|
||||
QtCore.QMetaObject.connectSlotsByName(atmSwitchConfigPageWidget)
|
||||
@@ -168,14 +179,17 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
atmSwitchConfigPageWidget.setTabOrder(self.uiDestinationVPISpinBox, self.uiDestinationVCISpinBox)
|
||||
atmSwitchConfigPageWidget.setTabOrder(self.uiDestinationVCISpinBox, self.uiAddPushButton)
|
||||
atmSwitchConfigPageWidget.setTabOrder(self.uiAddPushButton, self.uiDeletePushButton)
|
||||
atmSwitchConfigPageWidget.setTabOrder(self.uiDeletePushButton, self.uiMappingTreeWidget)
|
||||
|
||||
def retranslateUi(self, atmSwitchConfigPageWidget):
|
||||
atmSwitchConfigPageWidget.setWindowTitle(_translate("atmSwitchConfigPageWidget", "ATM Switch", None))
|
||||
self.uiGeneralGroupBox.setTitle(_translate("atmSwitchConfigPageWidget", "General", None))
|
||||
self.uiNameLabel.setText(_translate("atmSwitchConfigPageWidget", "Name:", None))
|
||||
self.uiVPICheckBox.setText(_translate("atmSwitchConfigPageWidget", "Use VPI only (VP tunnel)", None))
|
||||
self.uiMappingGroupBox.setTitle(_translate("atmSwitchConfigPageWidget", "Mapping", None))
|
||||
self.uiMappingTreeWidget.headerItem().setText(0, _translate("atmSwitchConfigPageWidget", "Port:VPI:VCI", None))
|
||||
self.uiMappingTreeWidget.headerItem().setText(1, _translate("atmSwitchConfigPageWidget", "Port:VPI:VCI", None))
|
||||
self.uiAddPushButton.setText(_translate("atmSwitchConfigPageWidget", "&Add", None))
|
||||
self.uiDeletePushButton.setText(_translate("atmSwitchConfigPageWidget", "&Delete", None))
|
||||
self.uiSourceGroupBox.setTitle(_translate("atmSwitchConfigPageWidget", "Source", None))
|
||||
self.uiSourcePortLabel.setText(_translate("atmSwitchConfigPageWidget", "Port:", None))
|
||||
self.uiSourceVPILabel.setText(_translate("atmSwitchConfigPageWidget", "VPI:", None))
|
||||
@@ -184,6 +198,4 @@ class Ui_atmSwitchConfigPageWidget(object):
|
||||
self.uiDestinationPortLabel.setText(_translate("atmSwitchConfigPageWidget", "Port:", None))
|
||||
self.uiDestinationVPILabel.setText(_translate("atmSwitchConfigPageWidget", "VPI:", None))
|
||||
self.uiDestinationVCILabel.setText(_translate("atmSwitchConfigPageWidget", "VCI:", None))
|
||||
self.uiAddPushButton.setText(_translate("atmSwitchConfigPageWidget", "&Add", None))
|
||||
self.uiDeletePushButton.setText(_translate("atmSwitchConfigPageWidget", "&Delete", None))
|
||||
|
||||
|
||||
@@ -658,6 +658,36 @@
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_7">
|
||||
<attribute name="title">
|
||||
<string>Misc.</string>
|
||||
</attribute>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="uiNameLabel">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="uiNameLineEdit"/>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>399</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file '/home/grossmj/workspace/git/gns3-gui/gns3/modules/dynamips/ui/cloud_configuration_page.ui'
|
||||
#
|
||||
# Created: Tue Jan 21 14:35:27 2014
|
||||
# Created: Sun Mar 16 11:16:57 2014
|
||||
# by: PyQt4 UI code generator 4.10
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@@ -355,6 +355,19 @@ class Ui_cloudConfigPageWidget(object):
|
||||
spacerItem8 = QtGui.QSpacerItem(20, 181, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout13.addItem(spacerItem8, 3, 2, 1, 1)
|
||||
self.tabWidget.addTab(self.tab_6, _fromUtf8(""))
|
||||
self.tab_7 = QtGui.QWidget()
|
||||
self.tab_7.setObjectName(_fromUtf8("tab_7"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.tab_7)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.uiNameLabel = QtGui.QLabel(self.tab_7)
|
||||
self.uiNameLabel.setObjectName(_fromUtf8("uiNameLabel"))
|
||||
self.gridLayout.addWidget(self.uiNameLabel, 0, 0, 1, 1)
|
||||
self.uiNameLineEdit = QtGui.QLineEdit(self.tab_7)
|
||||
self.uiNameLineEdit.setObjectName(_fromUtf8("uiNameLineEdit"))
|
||||
self.gridLayout.addWidget(self.uiNameLineEdit, 0, 1, 1, 1)
|
||||
spacerItem9 = QtGui.QSpacerItem(20, 399, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridLayout.addItem(spacerItem9, 1, 1, 1, 1)
|
||||
self.tabWidget.addTab(self.tab_7, _fromUtf8(""))
|
||||
self.vboxlayout.addWidget(self.tabWidget)
|
||||
|
||||
self.retranslateUi(cloudConfigPageWidget)
|
||||
@@ -403,4 +416,6 @@ class Ui_cloudConfigPageWidget(object):
|
||||
self.uiAddNIONullPushButton.setText(_translate("cloudConfigPageWidget", "&Add", None))
|
||||
self.uiDeleteNIONullPushButton.setText(_translate("cloudConfigPageWidget", "&Delete", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), _translate("cloudConfigPageWidget", "NIO NULL", None))
|
||||
self.uiNameLabel.setText(_translate("cloudConfigPageWidget", "Name:", None))
|
||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), _translate("cloudConfigPageWidget", "Misc.", None))
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<string>Ethernet hub</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<item row="0" column="1">
|
||||
<widget class="QGroupBox" name="uiSettingsGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -25,15 +25,25 @@
|
||||
<property name="title">
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="uiNameLabel">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="uiNameLineEdit"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="uiPortsLabel">
|
||||
<property name="text">
|
||||
<string>Number of ports:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="uiPortsSpinBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
@@ -52,7 +62,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<item row="2" column="1">
|
||||
<spacer name="spacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file '/home/grossmj/workspace/git/gns3-gui/gns3/modules/dynamips/ui/ethernet_hub_configuration_page.ui'
|
||||
#
|
||||
# Created: Tue Jan 21 20:55:02 2014
|
||||
# Created: Sun Mar 16 11:16:57 2014
|
||||
# by: PyQt4 UI code generator 4.10
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@@ -36,11 +36,17 @@ class Ui_ethernetHubConfigPageWidget(object):
|
||||
sizePolicy.setHeightForWidth(self.uiSettingsGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiSettingsGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiSettingsGroupBox.setObjectName(_fromUtf8("uiSettingsGroupBox"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiSettingsGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.uiSettingsGroupBox)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.uiNameLabel = QtGui.QLabel(self.uiSettingsGroupBox)
|
||||
self.uiNameLabel.setObjectName(_fromUtf8("uiNameLabel"))
|
||||
self.gridLayout.addWidget(self.uiNameLabel, 0, 0, 1, 1)
|
||||
self.uiNameLineEdit = QtGui.QLineEdit(self.uiSettingsGroupBox)
|
||||
self.uiNameLineEdit.setObjectName(_fromUtf8("uiNameLineEdit"))
|
||||
self.gridLayout.addWidget(self.uiNameLineEdit, 0, 1, 1, 1)
|
||||
self.uiPortsLabel = QtGui.QLabel(self.uiSettingsGroupBox)
|
||||
self.uiPortsLabel.setObjectName(_fromUtf8("uiPortsLabel"))
|
||||
self.gridlayout1.addWidget(self.uiPortsLabel, 0, 0, 1, 1)
|
||||
self.gridLayout.addWidget(self.uiPortsLabel, 1, 0, 1, 1)
|
||||
self.uiPortsSpinBox = QtGui.QSpinBox(self.uiSettingsGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -51,10 +57,10 @@ class Ui_ethernetHubConfigPageWidget(object):
|
||||
self.uiPortsSpinBox.setMaximum(65535)
|
||||
self.uiPortsSpinBox.setProperty("value", 1)
|
||||
self.uiPortsSpinBox.setObjectName(_fromUtf8("uiPortsSpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiPortsSpinBox, 0, 1, 1, 1)
|
||||
self.gridLayout.addWidget(self.uiPortsSpinBox, 1, 1, 1, 1)
|
||||
spacerItem = QtGui.QSpacerItem(20, 71, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout1.addItem(spacerItem, 1, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSettingsGroupBox, 0, 0, 1, 2)
|
||||
self.gridLayout.addItem(spacerItem, 2, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiSettingsGroupBox, 0, 1, 1, 1)
|
||||
|
||||
self.retranslateUi(ethernetHubConfigPageWidget)
|
||||
QtCore.QMetaObject.connectSlotsByName(ethernetHubConfigPageWidget)
|
||||
@@ -62,5 +68,6 @@ class Ui_ethernetHubConfigPageWidget(object):
|
||||
def retranslateUi(self, ethernetHubConfigPageWidget):
|
||||
ethernetHubConfigPageWidget.setWindowTitle(_translate("ethernetHubConfigPageWidget", "Ethernet hub", None))
|
||||
self.uiSettingsGroupBox.setTitle(_translate("ethernetHubConfigPageWidget", "Settings", None))
|
||||
self.uiNameLabel.setText(_translate("ethernetHubConfigPageWidget", "Name:", None))
|
||||
self.uiPortsLabel.setText(_translate("ethernetHubConfigPageWidget", "Number of ports:", None))
|
||||
|
||||
|
||||
@@ -13,8 +13,64 @@
|
||||
<property name="windowTitle">
|
||||
<string>Ethernet switch configuration</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiGeneralGroupBox">
|
||||
<property name="title">
|
||||
<string>General</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="uiNameLabel">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="uiNameLineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="3">
|
||||
<widget class="QGroupBox" name="uiEthernetSwitchPortsGroupBox">
|
||||
<property name="title">
|
||||
<string>Ports</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="uiPortsTreeWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>VLAN</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Type</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiEthernetSwitchSettingsGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -107,51 +163,14 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="3">
|
||||
<widget class="QGroupBox" name="uiEthernetSwitchPortsGroupBox">
|
||||
<property name="title">
|
||||
<string>Ports</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="uiPortsTreeWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>VLAN</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Type</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<item row="2" column="0">
|
||||
<widget class="QPushButton" name="uiAddPushButton">
|
||||
<property name="text">
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="uiDeletePushButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
@@ -161,7 +180,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="3" column="1">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file '/home/grossmj/workspace/git/gns3-gui/gns3/modules/dynamips/ui/ethernet_switch_configuration_page.ui'
|
||||
#
|
||||
# Created: Tue Jan 21 20:35:18 2014
|
||||
# Created: Sun Mar 16 11:16:57 2014
|
||||
# by: PyQt4 UI code generator 4.10
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@@ -27,55 +27,19 @@ class Ui_ethernetSwitchConfigPageWidget(object):
|
||||
def setupUi(self, ethernetSwitchConfigPageWidget):
|
||||
ethernetSwitchConfigPageWidget.setObjectName(_fromUtf8("ethernetSwitchConfigPageWidget"))
|
||||
ethernetSwitchConfigPageWidget.resize(397, 315)
|
||||
self.gridlayout = QtGui.QGridLayout(ethernetSwitchConfigPageWidget)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiEthernetSwitchSettingsGroupBox = QtGui.QGroupBox(ethernetSwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiEthernetSwitchSettingsGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiEthernetSwitchSettingsGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiEthernetSwitchSettingsGroupBox.setObjectName(_fromUtf8("uiEthernetSwitchSettingsGroupBox"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.label = QtGui.QLabel(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.label.setObjectName(_fromUtf8("label"))
|
||||
self.gridlayout1.addWidget(self.label, 0, 0, 1, 1)
|
||||
self.uiPortSpinBox = QtGui.QSpinBox(self.uiEthernetSwitchSettingsGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiPortSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiPortSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiPortSpinBox.setMinimum(0)
|
||||
self.uiPortSpinBox.setMaximum(65535)
|
||||
self.uiPortSpinBox.setProperty("value", 1)
|
||||
self.uiPortSpinBox.setObjectName(_fromUtf8("uiPortSpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiPortSpinBox, 0, 1, 1, 1)
|
||||
self.label_3 = QtGui.QLabel(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.label_3.setObjectName(_fromUtf8("label_3"))
|
||||
self.gridlayout1.addWidget(self.label_3, 1, 0, 1, 1)
|
||||
self.uiVlanSpinBox = QtGui.QSpinBox(self.uiEthernetSwitchSettingsGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiVlanSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiVlanSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiVlanSpinBox.setMinimum(0)
|
||||
self.uiVlanSpinBox.setMaximum(65535)
|
||||
self.uiVlanSpinBox.setProperty("value", 1)
|
||||
self.uiVlanSpinBox.setObjectName(_fromUtf8("uiVlanSpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiVlanSpinBox, 1, 1, 1, 1)
|
||||
self.label_2 = QtGui.QLabel(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.label_2.setObjectName(_fromUtf8("label_2"))
|
||||
self.gridlayout1.addWidget(self.label_2, 2, 0, 1, 1)
|
||||
self.uiPortTypeComboBox = QtGui.QComboBox(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.uiPortTypeComboBox.setObjectName(_fromUtf8("uiPortTypeComboBox"))
|
||||
self.uiPortTypeComboBox.addItem(_fromUtf8(""))
|
||||
self.uiPortTypeComboBox.addItem(_fromUtf8(""))
|
||||
self.uiPortTypeComboBox.addItem(_fromUtf8(""))
|
||||
self.gridlayout1.addWidget(self.uiPortTypeComboBox, 2, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiEthernetSwitchSettingsGroupBox, 0, 0, 1, 2)
|
||||
self.gridLayout_2 = QtGui.QGridLayout(ethernetSwitchConfigPageWidget)
|
||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||
self.uiGeneralGroupBox = QtGui.QGroupBox(ethernetSwitchConfigPageWidget)
|
||||
self.uiGeneralGroupBox.setObjectName(_fromUtf8("uiGeneralGroupBox"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.uiGeneralGroupBox)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.uiNameLabel = QtGui.QLabel(self.uiGeneralGroupBox)
|
||||
self.uiNameLabel.setObjectName(_fromUtf8("uiNameLabel"))
|
||||
self.gridLayout.addWidget(self.uiNameLabel, 0, 0, 1, 1)
|
||||
self.uiNameLineEdit = QtGui.QLineEdit(self.uiGeneralGroupBox)
|
||||
self.uiNameLineEdit.setObjectName(_fromUtf8("uiNameLineEdit"))
|
||||
self.gridLayout.addWidget(self.uiNameLineEdit, 0, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiGeneralGroupBox, 0, 0, 1, 2)
|
||||
self.uiEthernetSwitchPortsGroupBox = QtGui.QGroupBox(ethernetSwitchConfigPageWidget)
|
||||
self.uiEthernetSwitchPortsGroupBox.setObjectName(_fromUtf8("uiEthernetSwitchPortsGroupBox"))
|
||||
self.vboxlayout = QtGui.QVBoxLayout(self.uiEthernetSwitchPortsGroupBox)
|
||||
@@ -89,18 +53,65 @@ class Ui_ethernetSwitchConfigPageWidget(object):
|
||||
self.uiPortsTreeWidget.setRootIsDecorated(False)
|
||||
self.uiPortsTreeWidget.setObjectName(_fromUtf8("uiPortsTreeWidget"))
|
||||
self.vboxlayout.addWidget(self.uiPortsTreeWidget)
|
||||
self.gridlayout.addWidget(self.uiEthernetSwitchPortsGroupBox, 0, 2, 3, 1)
|
||||
self.gridLayout_2.addWidget(self.uiEthernetSwitchPortsGroupBox, 0, 2, 3, 1)
|
||||
self.uiEthernetSwitchSettingsGroupBox = QtGui.QGroupBox(ethernetSwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiEthernetSwitchSettingsGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiEthernetSwitchSettingsGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiEthernetSwitchSettingsGroupBox.setObjectName(_fromUtf8("uiEthernetSwitchSettingsGroupBox"))
|
||||
self.gridlayout = QtGui.QGridLayout(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.label = QtGui.QLabel(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.label.setObjectName(_fromUtf8("label"))
|
||||
self.gridlayout.addWidget(self.label, 0, 0, 1, 1)
|
||||
self.uiPortSpinBox = QtGui.QSpinBox(self.uiEthernetSwitchSettingsGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiPortSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiPortSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiPortSpinBox.setMinimum(0)
|
||||
self.uiPortSpinBox.setMaximum(65535)
|
||||
self.uiPortSpinBox.setProperty("value", 1)
|
||||
self.uiPortSpinBox.setObjectName(_fromUtf8("uiPortSpinBox"))
|
||||
self.gridlayout.addWidget(self.uiPortSpinBox, 0, 1, 1, 1)
|
||||
self.label_3 = QtGui.QLabel(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.label_3.setObjectName(_fromUtf8("label_3"))
|
||||
self.gridlayout.addWidget(self.label_3, 1, 0, 1, 1)
|
||||
self.uiVlanSpinBox = QtGui.QSpinBox(self.uiEthernetSwitchSettingsGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiVlanSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiVlanSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiVlanSpinBox.setMinimum(0)
|
||||
self.uiVlanSpinBox.setMaximum(65535)
|
||||
self.uiVlanSpinBox.setProperty("value", 1)
|
||||
self.uiVlanSpinBox.setObjectName(_fromUtf8("uiVlanSpinBox"))
|
||||
self.gridlayout.addWidget(self.uiVlanSpinBox, 1, 1, 1, 1)
|
||||
self.label_2 = QtGui.QLabel(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.label_2.setObjectName(_fromUtf8("label_2"))
|
||||
self.gridlayout.addWidget(self.label_2, 2, 0, 1, 1)
|
||||
self.uiPortTypeComboBox = QtGui.QComboBox(self.uiEthernetSwitchSettingsGroupBox)
|
||||
self.uiPortTypeComboBox.setObjectName(_fromUtf8("uiPortTypeComboBox"))
|
||||
self.uiPortTypeComboBox.addItem(_fromUtf8(""))
|
||||
self.uiPortTypeComboBox.addItem(_fromUtf8(""))
|
||||
self.uiPortTypeComboBox.addItem(_fromUtf8(""))
|
||||
self.gridlayout.addWidget(self.uiPortTypeComboBox, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiEthernetSwitchSettingsGroupBox, 1, 0, 1, 2)
|
||||
self.uiAddPushButton = QtGui.QPushButton(ethernetSwitchConfigPageWidget)
|
||||
self.uiAddPushButton.setObjectName(_fromUtf8("uiAddPushButton"))
|
||||
self.gridlayout.addWidget(self.uiAddPushButton, 1, 0, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiAddPushButton, 2, 0, 1, 1)
|
||||
self.uiDeletePushButton = QtGui.QPushButton(ethernetSwitchConfigPageWidget)
|
||||
self.uiDeletePushButton.setEnabled(False)
|
||||
self.uiDeletePushButton.setObjectName(_fromUtf8("uiDeletePushButton"))
|
||||
self.gridlayout.addWidget(self.uiDeletePushButton, 1, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiDeletePushButton, 2, 1, 1, 1)
|
||||
spacerItem = QtGui.QSpacerItem(20, 71, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout.addItem(spacerItem, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addItem(spacerItem, 3, 1, 1, 1)
|
||||
spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout.addItem(spacerItem1, 3, 2, 1, 1)
|
||||
self.gridLayout_2.addItem(spacerItem1, 3, 2, 1, 1)
|
||||
|
||||
self.retranslateUi(ethernetSwitchConfigPageWidget)
|
||||
QtCore.QMetaObject.connectSlotsByName(ethernetSwitchConfigPageWidget)
|
||||
@@ -112,6 +123,12 @@ class Ui_ethernetSwitchConfigPageWidget(object):
|
||||
|
||||
def retranslateUi(self, ethernetSwitchConfigPageWidget):
|
||||
ethernetSwitchConfigPageWidget.setWindowTitle(_translate("ethernetSwitchConfigPageWidget", "Ethernet switch configuration", None))
|
||||
self.uiGeneralGroupBox.setTitle(_translate("ethernetSwitchConfigPageWidget", "General", None))
|
||||
self.uiNameLabel.setText(_translate("ethernetSwitchConfigPageWidget", "Name:", None))
|
||||
self.uiEthernetSwitchPortsGroupBox.setTitle(_translate("ethernetSwitchConfigPageWidget", "Ports", None))
|
||||
self.uiPortsTreeWidget.headerItem().setText(0, _translate("ethernetSwitchConfigPageWidget", "Port", None))
|
||||
self.uiPortsTreeWidget.headerItem().setText(1, _translate("ethernetSwitchConfigPageWidget", "VLAN", None))
|
||||
self.uiPortsTreeWidget.headerItem().setText(2, _translate("ethernetSwitchConfigPageWidget", "Type", None))
|
||||
self.uiEthernetSwitchSettingsGroupBox.setTitle(_translate("ethernetSwitchConfigPageWidget", "Settings", None))
|
||||
self.label.setText(_translate("ethernetSwitchConfigPageWidget", "Port:", None))
|
||||
self.label_3.setText(_translate("ethernetSwitchConfigPageWidget", "VLAN:", None))
|
||||
@@ -119,10 +136,6 @@ class Ui_ethernetSwitchConfigPageWidget(object):
|
||||
self.uiPortTypeComboBox.setItemText(0, _translate("ethernetSwitchConfigPageWidget", "access", None))
|
||||
self.uiPortTypeComboBox.setItemText(1, _translate("ethernetSwitchConfigPageWidget", "dot1q", None))
|
||||
self.uiPortTypeComboBox.setItemText(2, _translate("ethernetSwitchConfigPageWidget", "qinq", None))
|
||||
self.uiEthernetSwitchPortsGroupBox.setTitle(_translate("ethernetSwitchConfigPageWidget", "Ports", None))
|
||||
self.uiPortsTreeWidget.headerItem().setText(0, _translate("ethernetSwitchConfigPageWidget", "Port", None))
|
||||
self.uiPortsTreeWidget.headerItem().setText(1, _translate("ethernetSwitchConfigPageWidget", "VLAN", None))
|
||||
self.uiPortsTreeWidget.headerItem().setText(2, _translate("ethernetSwitchConfigPageWidget", "Type", None))
|
||||
self.uiAddPushButton.setText(_translate("ethernetSwitchConfigPageWidget", "&Add", None))
|
||||
self.uiDeletePushButton.setText(_translate("ethernetSwitchConfigPageWidget", "&Delete", None))
|
||||
|
||||
|
||||
@@ -6,15 +6,66 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>397</width>
|
||||
<height>314</height>
|
||||
<width>499</width>
|
||||
<height>405</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Frame Relay Switch</string>
|
||||
</property>
|
||||
<layout class="QGridLayout">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiGeneralGroupBox">
|
||||
<property name="title">
|
||||
<string>General</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="uiNameLabel">
|
||||
<property name="text">
|
||||
<string>Name:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="uiNameLineEdit"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="4">
|
||||
<widget class="QGroupBox" name="uiFrameRelayMappingGroupBox">
|
||||
<property name="title">
|
||||
<string>Mapping</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="uiMappingTreeWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port:DLCI</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port:DLCI</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiFrameRelaySourceGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -78,39 +129,7 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" rowspan="3">
|
||||
<widget class="QGroupBox" name="uiFrameRelayMappingGroupBox">
|
||||
<property name="title">
|
||||
<string>Mapping</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout">
|
||||
<item>
|
||||
<widget class="QTreeWidget" name="uiMappingTreeWidget">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port:DLCI</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>Port:DLCI</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<item row="2" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="uiFrameRelayDestinationGroupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
@@ -174,14 +193,14 @@
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<item row="3" column="0">
|
||||
<widget class="QPushButton" name="uiAddPushButton">
|
||||
<property name="text">
|
||||
<string>&Add</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<item row="3" column="1">
|
||||
<widget class="QPushButton" name="uiDeletePushButton">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
@@ -191,7 +210,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" colspan="2">
|
||||
<item row="4" column="2">
|
||||
<spacer>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
@@ -213,7 +232,6 @@
|
||||
<tabstop>uiDestinationDLCISpinBox</tabstop>
|
||||
<tabstop>uiAddPushButton</tabstop>
|
||||
<tabstop>uiDeletePushButton</tabstop>
|
||||
<tabstop>uiMappingTreeWidget</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# Form implementation generated from reading ui file '/home/grossmj/workspace/git/gns3-gui/gns3/modules/dynamips/ui/frame_relay_switch_configuration_page.ui'
|
||||
#
|
||||
# Created: Tue Jan 21 21:27:47 2014
|
||||
# Created: Sun Mar 16 13:50:36 2014
|
||||
# by: PyQt4 UI code generator 4.10
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
@@ -26,46 +26,20 @@ except AttributeError:
|
||||
class Ui_frameRelaySwitchConfigPageWidget(object):
|
||||
def setupUi(self, frameRelaySwitchConfigPageWidget):
|
||||
frameRelaySwitchConfigPageWidget.setObjectName(_fromUtf8("frameRelaySwitchConfigPageWidget"))
|
||||
frameRelaySwitchConfigPageWidget.resize(397, 314)
|
||||
self.gridlayout = QtGui.QGridLayout(frameRelaySwitchConfigPageWidget)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiFrameRelaySourceGroupBox = QtGui.QGroupBox(frameRelaySwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiFrameRelaySourceGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiFrameRelaySourceGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiFrameRelaySourceGroupBox.setObjectName(_fromUtf8("uiFrameRelaySourceGroupBox"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiFrameRelaySourceGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.uiSourcePortLabel = QtGui.QLabel(self.uiFrameRelaySourceGroupBox)
|
||||
self.uiSourcePortLabel.setObjectName(_fromUtf8("uiSourcePortLabel"))
|
||||
self.gridlayout1.addWidget(self.uiSourcePortLabel, 0, 0, 1, 1)
|
||||
self.uiSourcePortSpinBox = QtGui.QSpinBox(self.uiFrameRelaySourceGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiSourcePortSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiSourcePortSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiSourcePortSpinBox.setMinimum(0)
|
||||
self.uiSourcePortSpinBox.setMaximum(65535)
|
||||
self.uiSourcePortSpinBox.setProperty("value", 1)
|
||||
self.uiSourcePortSpinBox.setObjectName(_fromUtf8("uiSourcePortSpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiSourcePortSpinBox, 0, 1, 1, 1)
|
||||
self.uiSourceDLCILabel = QtGui.QLabel(self.uiFrameRelaySourceGroupBox)
|
||||
self.uiSourceDLCILabel.setObjectName(_fromUtf8("uiSourceDLCILabel"))
|
||||
self.gridlayout1.addWidget(self.uiSourceDLCILabel, 1, 0, 1, 1)
|
||||
self.uiSourceDLCISpinBox = QtGui.QSpinBox(self.uiFrameRelaySourceGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiSourceDLCISpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiSourceDLCISpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiSourceDLCISpinBox.setMaximum(65535)
|
||||
self.uiSourceDLCISpinBox.setProperty("value", 101)
|
||||
self.uiSourceDLCISpinBox.setObjectName(_fromUtf8("uiSourceDLCISpinBox"))
|
||||
self.gridlayout1.addWidget(self.uiSourceDLCISpinBox, 1, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiFrameRelaySourceGroupBox, 0, 0, 1, 2)
|
||||
frameRelaySwitchConfigPageWidget.resize(499, 405)
|
||||
self.gridLayout_2 = QtGui.QGridLayout(frameRelaySwitchConfigPageWidget)
|
||||
self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
|
||||
self.uiGeneralGroupBox = QtGui.QGroupBox(frameRelaySwitchConfigPageWidget)
|
||||
self.uiGeneralGroupBox.setObjectName(_fromUtf8("uiGeneralGroupBox"))
|
||||
self.gridLayout = QtGui.QGridLayout(self.uiGeneralGroupBox)
|
||||
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
|
||||
self.uiNameLabel = QtGui.QLabel(self.uiGeneralGroupBox)
|
||||
self.uiNameLabel.setObjectName(_fromUtf8("uiNameLabel"))
|
||||
self.gridLayout.addWidget(self.uiNameLabel, 0, 0, 1, 1)
|
||||
self.uiNameLineEdit = QtGui.QLineEdit(self.uiGeneralGroupBox)
|
||||
self.uiNameLineEdit.setObjectName(_fromUtf8("uiNameLineEdit"))
|
||||
self.gridLayout.addWidget(self.uiNameLineEdit, 0, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiGeneralGroupBox, 0, 0, 1, 2)
|
||||
self.uiFrameRelayMappingGroupBox = QtGui.QGroupBox(frameRelaySwitchConfigPageWidget)
|
||||
self.uiFrameRelayMappingGroupBox.setObjectName(_fromUtf8("uiFrameRelayMappingGroupBox"))
|
||||
self.vboxlayout = QtGui.QVBoxLayout(self.uiFrameRelayMappingGroupBox)
|
||||
@@ -79,7 +53,44 @@ class Ui_frameRelaySwitchConfigPageWidget(object):
|
||||
self.uiMappingTreeWidget.setRootIsDecorated(False)
|
||||
self.uiMappingTreeWidget.setObjectName(_fromUtf8("uiMappingTreeWidget"))
|
||||
self.vboxlayout.addWidget(self.uiMappingTreeWidget)
|
||||
self.gridlayout.addWidget(self.uiFrameRelayMappingGroupBox, 0, 2, 3, 1)
|
||||
self.gridLayout_2.addWidget(self.uiFrameRelayMappingGroupBox, 0, 2, 4, 1)
|
||||
self.uiFrameRelaySourceGroupBox = QtGui.QGroupBox(frameRelaySwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiFrameRelaySourceGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiFrameRelaySourceGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiFrameRelaySourceGroupBox.setObjectName(_fromUtf8("uiFrameRelaySourceGroupBox"))
|
||||
self.gridlayout = QtGui.QGridLayout(self.uiFrameRelaySourceGroupBox)
|
||||
self.gridlayout.setObjectName(_fromUtf8("gridlayout"))
|
||||
self.uiSourcePortLabel = QtGui.QLabel(self.uiFrameRelaySourceGroupBox)
|
||||
self.uiSourcePortLabel.setObjectName(_fromUtf8("uiSourcePortLabel"))
|
||||
self.gridlayout.addWidget(self.uiSourcePortLabel, 0, 0, 1, 1)
|
||||
self.uiSourcePortSpinBox = QtGui.QSpinBox(self.uiFrameRelaySourceGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiSourcePortSpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiSourcePortSpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiSourcePortSpinBox.setMinimum(0)
|
||||
self.uiSourcePortSpinBox.setMaximum(65535)
|
||||
self.uiSourcePortSpinBox.setProperty("value", 1)
|
||||
self.uiSourcePortSpinBox.setObjectName(_fromUtf8("uiSourcePortSpinBox"))
|
||||
self.gridlayout.addWidget(self.uiSourcePortSpinBox, 0, 1, 1, 1)
|
||||
self.uiSourceDLCILabel = QtGui.QLabel(self.uiFrameRelaySourceGroupBox)
|
||||
self.uiSourceDLCILabel.setObjectName(_fromUtf8("uiSourceDLCILabel"))
|
||||
self.gridlayout.addWidget(self.uiSourceDLCILabel, 1, 0, 1, 1)
|
||||
self.uiSourceDLCISpinBox = QtGui.QSpinBox(self.uiFrameRelaySourceGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
sizePolicy.setVerticalStretch(0)
|
||||
sizePolicy.setHeightForWidth(self.uiSourceDLCISpinBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiSourceDLCISpinBox.setSizePolicy(sizePolicy)
|
||||
self.uiSourceDLCISpinBox.setMaximum(65535)
|
||||
self.uiSourceDLCISpinBox.setProperty("value", 101)
|
||||
self.uiSourceDLCISpinBox.setObjectName(_fromUtf8("uiSourceDLCISpinBox"))
|
||||
self.gridlayout.addWidget(self.uiSourceDLCISpinBox, 1, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiFrameRelaySourceGroupBox, 1, 0, 1, 2)
|
||||
self.uiFrameRelayDestinationGroupBox = QtGui.QGroupBox(frameRelaySwitchConfigPageWidget)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -87,11 +98,11 @@ class Ui_frameRelaySwitchConfigPageWidget(object):
|
||||
sizePolicy.setHeightForWidth(self.uiFrameRelayDestinationGroupBox.sizePolicy().hasHeightForWidth())
|
||||
self.uiFrameRelayDestinationGroupBox.setSizePolicy(sizePolicy)
|
||||
self.uiFrameRelayDestinationGroupBox.setObjectName(_fromUtf8("uiFrameRelayDestinationGroupBox"))
|
||||
self.gridlayout2 = QtGui.QGridLayout(self.uiFrameRelayDestinationGroupBox)
|
||||
self.gridlayout2.setObjectName(_fromUtf8("gridlayout2"))
|
||||
self.gridlayout1 = QtGui.QGridLayout(self.uiFrameRelayDestinationGroupBox)
|
||||
self.gridlayout1.setObjectName(_fromUtf8("gridlayout1"))
|
||||
self.uiDestinationPortLabel = QtGui.QLabel(self.uiFrameRelayDestinationGroupBox)
|
||||
self.uiDestinationPortLabel.setObjectName(_fromUtf8("uiDestinationPortLabel"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationPortLabel, 0, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationPortLabel, 0, 0, 1, 1)
|
||||
self.uiDestinationPortSpinBox = QtGui.QSpinBox(self.uiFrameRelayDestinationGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -102,10 +113,10 @@ class Ui_frameRelaySwitchConfigPageWidget(object):
|
||||
self.uiDestinationPortSpinBox.setMaximum(65535)
|
||||
self.uiDestinationPortSpinBox.setProperty("value", 10)
|
||||
self.uiDestinationPortSpinBox.setObjectName(_fromUtf8("uiDestinationPortSpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationPortSpinBox, 0, 1, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationPortSpinBox, 0, 1, 1, 1)
|
||||
self.uiDestinationDLCILabel = QtGui.QLabel(self.uiFrameRelayDestinationGroupBox)
|
||||
self.uiDestinationDLCILabel.setObjectName(_fromUtf8("uiDestinationDLCILabel"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationDLCILabel, 1, 0, 1, 1)
|
||||
self.gridlayout1.addWidget(self.uiDestinationDLCILabel, 1, 0, 1, 1)
|
||||
self.uiDestinationDLCISpinBox = QtGui.QSpinBox(self.uiFrameRelayDestinationGroupBox)
|
||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
|
||||
sizePolicy.setHorizontalStretch(0)
|
||||
@@ -115,17 +126,17 @@ class Ui_frameRelaySwitchConfigPageWidget(object):
|
||||
self.uiDestinationDLCISpinBox.setMaximum(65535)
|
||||
self.uiDestinationDLCISpinBox.setProperty("value", 202)
|
||||
self.uiDestinationDLCISpinBox.setObjectName(_fromUtf8("uiDestinationDLCISpinBox"))
|
||||
self.gridlayout2.addWidget(self.uiDestinationDLCISpinBox, 1, 1, 1, 1)
|
||||
self.gridlayout.addWidget(self.uiFrameRelayDestinationGroupBox, 1, 0, 1, 2)
|
||||
self.gridlayout1.addWidget(self.uiDestinationDLCISpinBox, 1, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiFrameRelayDestinationGroupBox, 2, 0, 1, 2)
|
||||
self.uiAddPushButton = QtGui.QPushButton(frameRelaySwitchConfigPageWidget)
|
||||
self.uiAddPushButton.setObjectName(_fromUtf8("uiAddPushButton"))
|
||||
self.gridlayout.addWidget(self.uiAddPushButton, 2, 0, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiAddPushButton, 3, 0, 1, 1)
|
||||
self.uiDeletePushButton = QtGui.QPushButton(frameRelaySwitchConfigPageWidget)
|
||||
self.uiDeletePushButton.setEnabled(False)
|
||||
self.uiDeletePushButton.setObjectName(_fromUtf8("uiDeletePushButton"))
|
||||
self.gridlayout.addWidget(self.uiDeletePushButton, 2, 1, 1, 1)
|
||||
self.gridLayout_2.addWidget(self.uiDeletePushButton, 3, 1, 1, 1)
|
||||
spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.gridlayout.addItem(spacerItem, 3, 1, 1, 2)
|
||||
self.gridLayout_2.addItem(spacerItem, 4, 2, 1, 1)
|
||||
|
||||
self.retranslateUi(frameRelaySwitchConfigPageWidget)
|
||||
QtCore.QMetaObject.connectSlotsByName(frameRelaySwitchConfigPageWidget)
|
||||
@@ -134,16 +145,17 @@ class Ui_frameRelaySwitchConfigPageWidget(object):
|
||||
frameRelaySwitchConfigPageWidget.setTabOrder(self.uiDestinationPortSpinBox, self.uiDestinationDLCISpinBox)
|
||||
frameRelaySwitchConfigPageWidget.setTabOrder(self.uiDestinationDLCISpinBox, self.uiAddPushButton)
|
||||
frameRelaySwitchConfigPageWidget.setTabOrder(self.uiAddPushButton, self.uiDeletePushButton)
|
||||
frameRelaySwitchConfigPageWidget.setTabOrder(self.uiDeletePushButton, self.uiMappingTreeWidget)
|
||||
|
||||
def retranslateUi(self, frameRelaySwitchConfigPageWidget):
|
||||
frameRelaySwitchConfigPageWidget.setWindowTitle(_translate("frameRelaySwitchConfigPageWidget", "Frame Relay Switch", None))
|
||||
self.uiFrameRelaySourceGroupBox.setTitle(_translate("frameRelaySwitchConfigPageWidget", "Source", None))
|
||||
self.uiSourcePortLabel.setText(_translate("frameRelaySwitchConfigPageWidget", "Port:", None))
|
||||
self.uiSourceDLCILabel.setText(_translate("frameRelaySwitchConfigPageWidget", "DLCI:", None))
|
||||
self.uiGeneralGroupBox.setTitle(_translate("frameRelaySwitchConfigPageWidget", "General", None))
|
||||
self.uiNameLabel.setText(_translate("frameRelaySwitchConfigPageWidget", "Name:", None))
|
||||
self.uiFrameRelayMappingGroupBox.setTitle(_translate("frameRelaySwitchConfigPageWidget", "Mapping", None))
|
||||
self.uiMappingTreeWidget.headerItem().setText(0, _translate("frameRelaySwitchConfigPageWidget", "Port:DLCI", None))
|
||||
self.uiMappingTreeWidget.headerItem().setText(1, _translate("frameRelaySwitchConfigPageWidget", "Port:DLCI", None))
|
||||
self.uiFrameRelaySourceGroupBox.setTitle(_translate("frameRelaySwitchConfigPageWidget", "Source", None))
|
||||
self.uiSourcePortLabel.setText(_translate("frameRelaySwitchConfigPageWidget", "Port:", None))
|
||||
self.uiSourceDLCILabel.setText(_translate("frameRelaySwitchConfigPageWidget", "DLCI:", None))
|
||||
self.uiFrameRelayDestinationGroupBox.setTitle(_translate("frameRelaySwitchConfigPageWidget", "Destination", None))
|
||||
self.uiDestinationPortLabel.setText(_translate("frameRelaySwitchConfigPageWidget", "Port:", None))
|
||||
self.uiDestinationDLCILabel.setText(_translate("frameRelaySwitchConfigPageWidget", "DLCI:", None))
|
||||
|
||||
@@ -72,7 +72,7 @@ class NodeConfigurator(QtGui.QDialog, Ui_NodeConfiguratorDialog):
|
||||
# create the children items (configuration page items)
|
||||
for node_item in self._node_items:
|
||||
parent = " {} group".format(str(node_item.node()))
|
||||
item = ConfigurationPageItem(self._parent_items[parent], node_item.node())
|
||||
item = ConfigurationPageItem(self._parent_items[parent], node_item)
|
||||
|
||||
# sort the tree
|
||||
self.uiNodesTreeWidget.sortByColumn(0, QtCore.Qt.AscendingOrder)
|
||||
@@ -202,20 +202,30 @@ class ConfigurationPageItem(QtGui.QTreeWidgetItem):
|
||||
Store temporary node settings configured in a page widget.
|
||||
|
||||
:param parent: parent widget
|
||||
:param node: Node instance
|
||||
:param node_item: NodeItem instance
|
||||
"""
|
||||
|
||||
def __init__(self, parent, node):
|
||||
def __init__(self, parent, node_item):
|
||||
|
||||
name = node.name()
|
||||
self._node = node
|
||||
QtGui.QTreeWidgetItem.__init__(self, parent, [name])
|
||||
self._node = node_item.node()
|
||||
QtGui.QTreeWidgetItem.__init__(self, parent, [self._node.name()])
|
||||
|
||||
# return the configuration page widget used to configure the node.
|
||||
self._page = node.configPage()
|
||||
self._page = self._node.configPage()
|
||||
|
||||
# make a copy of the node settings
|
||||
self.setSettings(node.settings().copy())
|
||||
self.setSettings(self._node.settings().copy())
|
||||
|
||||
# we want to know about updated settings
|
||||
self._node.updated_signal.connect(self._updatedSlot)
|
||||
|
||||
def _updatedSlot(self):
|
||||
"""
|
||||
Slot called when the node settings have been updated.
|
||||
"""
|
||||
|
||||
# update the name of the widget item
|
||||
self.setText(0, self._node.name())
|
||||
|
||||
def page(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user