This commit is contained in:
Stephen Dranger 2011-02-09 23:55:45 -06:00
parent db768e178b
commit 99a49efeed
17 changed files with 28 additions and 6 deletions

4
TODO
View file

@ -1,13 +1,13 @@
Features: Features:
* Tray doesn't disappear on windows after close * Tray doesn't disappear on windows after close
* System tray menu - Moods * Mood switching shows wrong mood!
* troll colors
* ctrl-tab should prefer new convos * ctrl-tab should prefer new convos
* Idling * Idling
* new sound on CEASE and BEGIN? * new sound on CEASE and BEGIN?
* User commands/stop user from sending commands accidentally * User commands/stop user from sending commands accidentally
* More complex quirks: random, spelling, by-sound * More complex quirks: random, spelling, by-sound
* change profile only once we have confirmation from server * change profile only once we have confirmation from server
* convert hex tags (<GFFFFFF> or <GFF0000>)
* convo backgrounds -- make them more like http://www.mspaintadventures.com/storyfiles/hs2/02546_2.gif * convo backgrounds -- make them more like http://www.mspaintadventures.com/storyfiles/hs2/02546_2.gif
* help button on quirks menu? * help button on quirks menu?
* help menu -- about and forum * help menu -- about and forum

View file

@ -236,8 +236,8 @@ class PesterText(QtGui.QTextEdit):
window.chatlog.log(chum.handle, convertTags(beginmsg, "bbcode")) window.chatlog.log(chum.handle, convertTags(beginmsg, "bbcode"))
self.append(convertTags(beginmsg)) self.append(convertTags(beginmsg))
msg = "<c=%s>%s: %s</c>" % (color, initials, msg)
msg = escapeBrackets(msg) msg = escapeBrackets(msg)
msg = "<c=%s>%s: %s</c>" % (color, initials, msg)
self.append(convertTags(msg)) self.append(convertTags(msg))
if chum is me: if chum is me:
window.chatlog.log(parent.chum.handle, convertTags(msg, "bbcode")) window.chatlog.log(parent.chum.handle, convertTags(msg, "bbcode"))

BIN
convo.pyc

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
irc.pyc

Binary file not shown.

BIN
memos.pyc

Binary file not shown.

BIN
menus.pyc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1 +1 @@
{"tabs": true, "soundon": true, "chums": ["marineAquist", "unknownTraveler", "tentacleTherapist", "macruralAlchemist", "vaginalEngineer", "mechanicalSpectacle", "carcinoGeneticist", "schlagzeugGator", "gamblingGenocider", "gardenGnostic", "superGhost", "centaursTesticle", "arachnidsGrip", "grimAuxiliatrix", "remoteBloodbath", "nitroZealist", "greenZephyr", "arsenicCatnip", "adiosToreador", "cuttlefishCuller", "rageInducer", "gallowsCalibrator", "caligulasAquarium", "terminallyCapricious", "illuminatedWax", "aquaMarinist", "maxiumumFatness", "elegantDiversion", "moirailBunp", "uroborosUnbound", "androidTechnician", "midnightSparrow", "apocalypseArisen", "acapellaWaterfall", "anguillaNuntia", "oilslickOrchid", "confusedTransient", "pretentiousFantasia"], "defaultprofile": "ghostDunk", "block": []} {"tabs": true, "soundon": true, "chums": ["marineAquist", "unknownTraveler", "tentacleTherapist", "macruralAlchemist", "vaginalEngineer", "mechanicalSpectacle", "carcinoGeneticist", "schlagzeugGator", "gamblingGenocider", "gardenGnostic", "superGhost", "centaursTesticle", "arachnidsGrip", "grimAuxiliatrix", "remoteBloodbath", "nitroZealist", "greenZephyr", "arsenicCatnip", "adiosToreador", "cuttlefishCuller", "rageInducer", "gallowsCalibrator", "caligulasAquarium", "terminallyCapricious", "illuminatedWax", "aquaMarinist", "maxiumumFatness", "elegantDiversion", "moirailBunp", "uroborosUnbound", "androidTechnician", "midnightSparrow", "apocalypseArisen", "acapellaWaterfall", "anguillaNuntia", "oilslickOrchid", "confusedTransient", "pretentiousFantasia", "aquaticMarinist"], "defaultprofile": "ghostDunk", "block": []}

View file

@ -521,6 +521,15 @@ class TrollSlumWindow(QtGui.QFrame):
blockChumSignal = QtCore.pyqtSignal(QtCore.QString) blockChumSignal = QtCore.pyqtSignal(QtCore.QString)
unblockChumSignal = QtCore.pyqtSignal(QtCore.QString) unblockChumSignal = QtCore.pyqtSignal(QtCore.QString)
class PesterMoodAction(QtCore.QObject):
def __init__(self, m, func):
QtCore.QObject.__init__(self)
self.mood = m
self.func = func
@QtCore.pyqtSlot()
def updateMood(self):
self.func(self.mood)
class PesterMoodHandler(QtCore.QObject): class PesterMoodHandler(QtCore.QObject):
def __init__(self, parent, *buttons): def __init__(self, parent, *buttons):
QtCore.QObject.__init__(self) QtCore.QObject.__init__(self)
@ -549,8 +558,11 @@ class PesterMoodHandler(QtCore.QObject):
oldbutton.setSelected(False) oldbutton.setSelected(False)
except KeyError: except KeyError:
pass pass
try:
newbutton = self.buttons[m] newbutton = self.buttons[m]
newbutton.setSelected(True) newbutton.setSelected(True)
except KeyError:
pass
newmood = Mood(m) newmood = Mood(m)
self.mainwindow.userprofile.chat.mood = newmood self.mainwindow.userprofile.chat.mood = newmood
if self.mainwindow.currentMoodIcon: if self.mainwindow.currentMoodIcon:
@ -1587,6 +1599,16 @@ class MainProgram(QtCore.QObject):
self.trayicon.connect(exitAction, QtCore.SIGNAL('triggered()'), self.trayicon.connect(exitAction, QtCore.SIGNAL('triggered()'),
self.widget, QtCore.SLOT('close()')) self.widget, QtCore.SLOT('close()'))
self.traymenu.addAction(exitAction) self.traymenu.addAction(exitAction)
moodMenu = self.traymenu.addMenu("SET MOOD")
self.moodactions = {}
for (i,m) in enumerate(Mood.moods):
maction = QtGui.QAction(m.upper(), self)
mobj = PesterMoodAction(i, self.widget.moods.updateMood)
self.trayicon.connect(maction, QtCore.SIGNAL('triggered()'),
mobj, QtCore.SLOT('updateMood()'))
self.moodactions[i] = mobj
moodMenu.addAction(maction)
self.trayicon.setContextMenu(self.traymenu) self.trayicon.setContextMenu(self.traymenu)
self.trayicon.show() self.trayicon.show()
self.trayicon.connect(self.trayicon, self.trayicon.connect(self.trayicon,