Network/IRC/IrcChannelWidget.py

changeset 6534
1a3e3d857467
parent 6532
f253f0f9ea7f
child 6645
ad476851d7e0
equal deleted inserted replaced
6533:b7df503cb673 6534:1a3e3d857467
1475 1475
1476 def __sendUserMessage(self): 1476 def __sendUserMessage(self):
1477 """ 1477 """
1478 Private slot to send a private message to a specific user. 1478 Private slot to send a private message to a specific user.
1479 """ 1479 """
1480 # TODO: code me 1480 from E5Gui import E5TextInputDialog
1481
1481 user = self.usersList.selectedItems()[0].text() 1482 user = self.usersList.selectedItems()[0].text()
1482 1483 ok, message = E5TextInputDialog.getText(
1484 self, self.tr("Send Message"),
1485 self.tr("Enter the message to be sent:"),
1486 minimumWidth=400)
1487 if ok and message:
1488 self.__processUserMessage("/MSG {0} {1}".format(user, message))
1483 1489
1484 def __sendUserQuery(self): 1490 def __sendUserQuery(self):
1485 """ 1491 """
1486 Private slot to send a query message to a specific user. 1492 Private slot to send a query message to a specific user.
1487 """ 1493 """
1488 # TODO: code me 1494 from E5Gui import E5TextInputDialog
1495
1489 user = self.usersList.selectedItems()[0].text() 1496 user = self.usersList.selectedItems()[0].text()
1497 ok, message = E5TextInputDialog.getText(
1498 self, self.tr("Send Query"),
1499 self.tr("Enter the message to be sent:"),
1500 minimumWidth=400)
1501 if ok and message:
1502 self.__processUserMessage("/QUERY {0} {1}".format(user, message))
1490 1503
1491 def __sendUserNotice(self): 1504 def __sendUserNotice(self):
1492 """ 1505 """
1493 Private slot to send a notice message to a specific user. 1506 Private slot to send a notice message to a specific user.
1494 """ 1507 """
1495 # TODO: code me 1508 from E5Gui import E5TextInputDialog
1509
1496 user = self.usersList.selectedItems()[0].text() 1510 user = self.usersList.selectedItems()[0].text()
1511 ok, message = E5TextInputDialog.getText(
1512 self, self.tr("Send Notice"),
1513 self.tr("Enter the message to be sent:"),
1514 minimumWidth=400)
1515 if ok and message:
1516 self.__processUserMessage("/NOTICE {0} {1}".format(user, message))
1497 1517
1498 def __pingUser(self): 1518 def __pingUser(self):
1499 """ 1519 """
1500 Private slot to send a ping to a specific user. 1520 Private slot to send a ping to a specific user.
1501 """ 1521 """

eric ide

mercurial