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
* Makefile for Linux installing - Kiooeht [evacipatedBox]
* Recognize www. as link - Kiooeht [evacipatedBox]
* Pester menu option to just pester a handle - Kiooeht [evacipatedBox]
* Bug fixes
* 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]

View file

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

View file

@ -1025,6 +1025,10 @@ class PesterWindow(MovingWindow):
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)
self.logv = logv
self.connect(logv, QtCore.SIGNAL('triggered()'),
@ -1075,6 +1079,7 @@ class PesterWindow(MovingWindow):
if not self.randhandler.running:
self.rand.setEnabled(False)
filemenu.addAction(userlistaction)
filemenu.addAction(talk)
filemenu.addAction(self.idleaction)
filemenu.addAction(grps)
filemenu.addAction(self.importaction)
@ -1511,6 +1516,7 @@ class PesterWindow(MovingWindow):
self.miniButton.move(*theme["main/minimize/loc"])
# menus
self.menu.move(*theme["main/menu/loc"])
self.talk.setText(theme["main/menus/client/talk"])
self.logv.setText(theme["main/menus/client/logviewer"])
self.grps.setText(theme["main/menus/client/addgroup"])
self.rand.setText(self.theme["main/menus/client/randen"])
@ -2115,6 +2121,19 @@ class PesterWindow(MovingWindow):
self.quirkmenu.quirktester.close()
self.quirkmenu = None
@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):
if not hasattr(self, 'logusermenu'):
self.logusermenu = None

View file

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

View file

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

View file

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

View file

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