18 from PyQt6.QtGui import QIcon, QPainter, QTextCursor, QDesktopServices |
18 from PyQt6.QtGui import QIcon, QPainter, QTextCursor, QDesktopServices |
19 from PyQt6.QtWidgets import ( |
19 from PyQt6.QtWidgets import ( |
20 QWidget, QListWidgetItem, QMenu, QApplication, QInputDialog, QLineEdit |
20 QWidget, QListWidgetItem, QMenu, QApplication, QInputDialog, QLineEdit |
21 ) |
21 ) |
22 |
22 |
23 from E5Gui import EricMessageBox, EricFileDialog |
23 from EricWidgets import EricMessageBox, EricFileDialog |
24 from E5Gui.EricApplication import ericApp |
24 from EricWidgets.EricApplication import ericApp |
25 |
25 |
26 from .Ui_IrcChannelWidget import Ui_IrcChannelWidget |
26 from .Ui_IrcChannelWidget import Ui_IrcChannelWidget |
27 |
27 |
28 from .IrcUtilities import ircFilter, ircTimestamp, getChannelModesDict |
28 from .IrcUtilities import ircFilter, ircTimestamp, getChannelModesDict |
29 |
29 |
1481 |
1481 |
1482 def __sendUserMessage(self): |
1482 def __sendUserMessage(self): |
1483 """ |
1483 """ |
1484 Private slot to send a private message to a specific user. |
1484 Private slot to send a private message to a specific user. |
1485 """ |
1485 """ |
1486 from E5Gui import EricTextInputDialog |
1486 from EricWidgets import EricTextInputDialog |
1487 |
1487 |
1488 user = self.usersList.selectedItems()[0].text() |
1488 user = self.usersList.selectedItems()[0].text() |
1489 ok, message = EricTextInputDialog.getText( |
1489 ok, message = EricTextInputDialog.getText( |
1490 self, self.tr("Send Message"), |
1490 self, self.tr("Send Message"), |
1491 self.tr("Enter the message to be sent:"), |
1491 self.tr("Enter the message to be sent:"), |
1495 |
1495 |
1496 def __sendUserQuery(self): |
1496 def __sendUserQuery(self): |
1497 """ |
1497 """ |
1498 Private slot to send a query message to a specific user. |
1498 Private slot to send a query message to a specific user. |
1499 """ |
1499 """ |
1500 from E5Gui import EricTextInputDialog |
1500 from EricWidgets import EricTextInputDialog |
1501 |
1501 |
1502 user = self.usersList.selectedItems()[0].text() |
1502 user = self.usersList.selectedItems()[0].text() |
1503 ok, message = EricTextInputDialog.getText( |
1503 ok, message = EricTextInputDialog.getText( |
1504 self, self.tr("Send Query"), |
1504 self, self.tr("Send Query"), |
1505 self.tr("Enter the message to be sent:"), |
1505 self.tr("Enter the message to be sent:"), |
1509 |
1509 |
1510 def __sendUserNotice(self): |
1510 def __sendUserNotice(self): |
1511 """ |
1511 """ |
1512 Private slot to send a notice message to a specific user. |
1512 Private slot to send a notice message to a specific user. |
1513 """ |
1513 """ |
1514 from E5Gui import EricTextInputDialog |
1514 from EricWidgets import EricTextInputDialog |
1515 |
1515 |
1516 user = self.usersList.selectedItems()[0].text() |
1516 user = self.usersList.selectedItems()[0].text() |
1517 ok, message = EricTextInputDialog.getText( |
1517 ok, message = EricTextInputDialog.getText( |
1518 self, self.tr("Send Notice"), |
1518 self, self.tr("Send Notice"), |
1519 self.tr("Enter the message to be sent:"), |
1519 self.tr("Enter the message to be sent:"), |