Direct pester a handle without adding as chum

This commit is contained in:
Kiooeht 2012-01-04 17:36:47 -08:00
parent 805d6f1636
commit 5d46a91d98
7 changed files with 27 additions and 3 deletions

View file

@ -16,6 +16,7 @@ CHANGELOG
## 3.41.4 ## 3.41.4
* Makefile for Linux installing - Kiooeht [evacipatedBox] * Makefile for Linux installing - Kiooeht [evacipatedBox]
* Recognize www. as link - Kiooeht [evacipatedBox] * Recognize www. as link - Kiooeht [evacipatedBox]
* Pester menu option to just pester a handle - Kiooeht [evacipatedBox]
* Bug fixes * Bug fixes
* Don't require pygame (it's kind of optional, you just don't get sound) - Kiooeht [evacipatedBox] * Don't require pygame (it's kind of optional, you just don't get sound) - Kiooeht [evacipatedBox]
* Allow add chum dialog to open after adding an existing chum - Kiooeht [evacipatedBox] * Allow add chum dialog to open after adding an existing chum - Kiooeht [evacipatedBox]

View file

@ -21,12 +21,12 @@ Features
* Better NickServ registering * Better NickServ registering
* Unified data storage, OS-based user data location * Unified data storage, OS-based user data location
* Spectation notices (Idea: lexicalNuance) (probly WONTFIX) * Spectation notices (Idea: lexicalNuance) (probly WONTFIX)
* "Pester" menu option to just pester a handle
* Auto-login Nickserv * Auto-login Nickserv
* Make toast notifications only on certain chums * Make toast notifications only on certain chums
* Local alisas for chums * Local alisas for chums
* Italics/uderline - needed for canon * Italics/uderline - needed for canon
* Don't make new windows be all in your face and shit * Don't make new windows be all in your face and shit
* Hide offline friends per group
Bugs Bugs
---- ----

View file

@ -1025,6 +1025,10 @@ class PesterWindow(MovingWindow):
self.move(100, 100) self.move(100, 100)
talk = QtGui.QAction(self.theme["main/menus/client/talk"], self)
self.talk = talk
self.connect(talk, QtCore.SIGNAL('triggered()'),
self, QtCore.SLOT('openChat()'))
logv = QtGui.QAction(self.theme["main/menus/client/logviewer"], self) logv = QtGui.QAction(self.theme["main/menus/client/logviewer"], self)
self.logv = logv self.logv = logv
self.connect(logv, QtCore.SIGNAL('triggered()'), self.connect(logv, QtCore.SIGNAL('triggered()'),
@ -1075,6 +1079,7 @@ class PesterWindow(MovingWindow):
if not self.randhandler.running: if not self.randhandler.running:
self.rand.setEnabled(False) self.rand.setEnabled(False)
filemenu.addAction(userlistaction) filemenu.addAction(userlistaction)
filemenu.addAction(talk)
filemenu.addAction(self.idleaction) filemenu.addAction(self.idleaction)
filemenu.addAction(grps) filemenu.addAction(grps)
filemenu.addAction(self.importaction) filemenu.addAction(self.importaction)
@ -1511,6 +1516,7 @@ class PesterWindow(MovingWindow):
self.miniButton.move(*theme["main/minimize/loc"]) self.miniButton.move(*theme["main/minimize/loc"])
# menus # menus
self.menu.move(*theme["main/menu/loc"]) self.menu.move(*theme["main/menu/loc"])
self.talk.setText(theme["main/menus/client/talk"])
self.logv.setText(theme["main/menus/client/logviewer"]) self.logv.setText(theme["main/menus/client/logviewer"])
self.grps.setText(theme["main/menus/client/addgroup"]) self.grps.setText(theme["main/menus/client/addgroup"])
self.rand.setText(self.theme["main/menus/client/randen"]) self.rand.setText(self.theme["main/menus/client/randen"])
@ -2115,6 +2121,19 @@ class PesterWindow(MovingWindow):
self.quirkmenu.quirktester.close() self.quirkmenu.quirktester.close()
self.quirkmenu = None self.quirkmenu = None
@QtCore.pyqtSlot() @QtCore.pyqtSlot()
def openChat(self):
if not hasattr(self, "openchatdialog"):
self.openchatdialog = None
if not self.openchatdialog:
(chum, ok) = QtGui.QInputDialog.getText(self, "Pester Chum", "Enter a handle to pester:")
try:
if ok:
self.newConversation(unicode(chum))
except:
pass
finally:
self.openchatdialog = None
@QtCore.pyqtSlot()
def openLogv(self): def openLogv(self):
if not hasattr(self, 'logusermenu'): if not hasattr(self, 'logusermenu'):
self.logusermenu = None self.logusermenu = None

View file

@ -22,6 +22,7 @@
"randen": "Random Encounter", "randen": "Random Encounter",
"userlist": "Userlist", "userlist": "Userlist",
"addgroup": "Add Group", "addgroup": "Add Group",
"talk": "Pester",
"import": "Import", "import": "Import",
"reconnect": "Reconnect", "reconnect": "Reconnect",
"idle": "Idle", "idle": "Idle",

View file

@ -25,6 +25,7 @@
"randen": "Random Encounter", "randen": "Random Encounter",
"userlist": "Userlist", "userlist": "Userlist",
"addgroup": "Add Group", "addgroup": "Add Group",
"talk": "Pester",
"import": "Import", "import": "Import",
"reconnect": "Reconnect", "reconnect": "Reconnect",
"idle": "Idle", "idle": "Idle",

View file

@ -26,6 +26,7 @@
"randen": "RANDOM ENCOUNTER", "randen": "RANDOM ENCOUNTER",
"userlist": "USERLIST", "userlist": "USERLIST",
"addgroup": "ADD GROUP", "addgroup": "ADD GROUP",
"talk": "PESTER",
"import": "IMPORT", "import": "IMPORT",
"reconnect": "RECONNECT", "reconnect": "RECONNECT",
"idle": "IDLE", "idle": "IDLE",

View file

@ -24,6 +24,7 @@
"randen": "Random Encounter", "randen": "Random Encounter",
"userlist": "Fresh Targets", "userlist": "Fresh Targets",
"addgroup": "Add Group", "addgroup": "Add Group",
"talk": "Troll",
"import": "import U2;", "import": "import U2;",
"reconnect": "Reconnect", "reconnect": "Reconnect",
"idle": "Idle", "idle": "Idle",