Esempio n. 1
0
 def fillEditionTable(self, qttable):
     qttable.clear()
     qttable.setNumRows(11)
     self.widgets["name"] = qttable.addTextEdit("Name",
                                                self.interface.getName())
     self.widgets["description"] = qttable.addTextEdit(
         "Description", self.interface.getDescription())
     self.widgets["mac"] = qttable.addTextEdit("MAC",
                                               self.interface.getMAC())
     self.widgets["hostnames"] = qttable.addListEdit(
         "Hostnames", self.interface.getHostnames(), "Hostnames")
     self.widgets["ipv4_address"] = qttable.addTextEdit(
         "IPv4 Address", self.interface.getIPv4Address())
     self.widgets["ipv4_mask"] = qttable.addTextEdit(
         "IPv4 Mask", self.interface.getIPv4Mask())
     self.widgets["ipv4_gateway"] = qttable.addTextEdit(
         "IPv4 Gateway", self.interface.getIPv4Gateway())
     self.widgets["ipv4_dns"] = qttable.addListEdit(
         "IPv4 DNS", self.interface.getIPv4DNS(), "IPv4 DNS")
     self.widgets["ipv6_address"] = qttable.addTextEdit(
         "IPv6 Address", self.interface.getIPv6Address())
     self.widgets["ipv6_prefix"] = qttable.addTextEdit(
         "IPv6 Prefix", self.interface.getIPv6Prefix())
     self.widgets["ipv6_gateway"] = qttable.addTextEdit(
         "IPv6 Gateway", self.interface.getIPv6Gateway())
     self.widgets["ipv6_dns"] = qttable.addListEdit(
         "IPv6 DNS", self.interface.getIPv6DNS(), "IPv6 DNS")
     self.widgets["owned"] = qttable.addBooleanEdit(
         "Owned", self.interface.isOwned())
Esempio n. 2
0
 def fillEditionTable(self, qttable):
     qttable.clear()
     qttable.setNumRows(4)
     self.widgets["name"] = qttable.addTextEdit("Name", self.host.getName())
     self.widgets["description"] = qttable.addTextEdit("Description", self.host.getDescription())
     self.widgets["os"] = qttable.addTextEdit("OS", self.host.getOS())
     self.widgets["owned"] = qttable.addBooleanEdit("Owned", self.host.isOwned())
Esempio n. 3
0
 def fillEditionTable(self, qttable):
     qttable.clear()
     qttable.setNumRows(4)
     self.widgets["name"] = qttable.addTextEdit("Name", self.host.getName())
     self.widgets["description"] = qttable.addTextEdit("Description", self.host.getDescription())
     self.widgets["os"] = qttable.addTextEdit("OS", self.host.getOS())
     self.widgets["owned"] = qttable.addBooleanEdit("Owned", self.host.isOwned())
Esempio n. 4
0
 def fillEditionTable(self, qttable):
     qttable.clear()
     qttable.setNumRows(7)
     self.widgets["name"] = qttable.addTextEdit("Name", self.service.getName())
     self.widgets["description"] = qttable.addTextEdit("Description", self.service.getDescription())
     self.widgets["protocol"] = qttable.addTextEdit("Protocol", self.service.getProtocol())
                                                                                               
                                          
     self.widgets["port"] = qttable.addIntEdit("Port", self.service.getPorts()[0], 1, 65535)
     self.widgets["status"] = qttable.addTextEdit("Status", self.service.getStatus())
     self.widgets["version"] = qttable.addTextEdit("Version", self.service.getVersion())
     self.widgets["owned"] = qttable.addBooleanEdit("Owned", self.service.isOwned())
Esempio n. 5
0
 def fillEditionTable(self, qttable):
     qttable.clear()
     qttable.setNumRows(7)
     self.widgets["name"] = qttable.addTextEdit("Name", self.service.getName())
     self.widgets["description"] = qttable.addTextEdit("Description", self.service.getDescription())
     self.widgets["protocol"] = qttable.addTextEdit("Protocol", self.service.getProtocol())
                                                                                               
                                          
     self.widgets["port"] = qttable.addIntEdit("Port", self.service.getPorts()[0], 1, 65535)
     self.widgets["status"] = qttable.addTextEdit("Status", self.service.getStatus())
     self.widgets["version"] = qttable.addTextEdit("Version", self.service.getVersion())
     self.widgets["owned"] = qttable.addBooleanEdit("Owned", self.service.isOwned())
Esempio n. 6
0
 def fillEditionTable(self, qttable):
     qttable.clear()
     qttable.setNumRows(11)
     self.widgets["name"] = qttable.addTextEdit("Name", self.interface.getName())
     self.widgets["description"] = qttable.addTextEdit("Description", self.interface.getDescription())
     self.widgets["mac"] = qttable.addTextEdit("MAC", self.interface.getMAC())
     self.widgets["hostnames"] = qttable.addListEdit("Hostnames", self.interface.getHostnames(), "Hostnames")
     self.widgets["ipv4_address"] = qttable.addTextEdit("IPv4 Address", self.interface.getIPv4Address())
     self.widgets["ipv4_mask"] = qttable.addTextEdit("IPv4 Mask", self.interface.getIPv4Mask())
     self.widgets["ipv4_gateway"] = qttable.addTextEdit("IPv4 Gateway", self.interface.getIPv4Gateway())
     self.widgets["ipv4_dns"] = qttable.addListEdit("IPv4 DNS", self.interface.getIPv4DNS(), "IPv4 DNS")
     self.widgets["ipv6_address"] = qttable.addTextEdit("IPv6 Address", self.interface.getIPv6Address())
     self.widgets["ipv6_prefix"] = qttable.addTextEdit("IPv6 Prefix", self.interface.getIPv6Prefix())
     self.widgets["ipv6_gateway"] = qttable.addTextEdit("IPv6 Gateway", self.interface.getIPv6Gateway())
     self.widgets["ipv6_dns"] = qttable.addListEdit("IPv6 DNS", self.interface.getIPv6DNS(), "IPv6 DNS")
     self.widgets["owned"] = qttable.addBooleanEdit("Owned", self.interface.isOwned())