Pesterdunk Ghostchum!!

This commit is contained in:
Kiooeht 2012-06-08 02:02:12 -07:00
parent 1f5fd9d42f
commit 73f66789da
5 changed files with 13 additions and 1 deletions

View file

@ -1174,6 +1174,8 @@ class PesterOptions(QtGui.QDialog):
self.refreshtheme = QtGui.QPushButton("Refresh current theme", self) self.refreshtheme = QtGui.QPushButton("Refresh current theme", self)
self.connect(self.refreshtheme, QtCore.SIGNAL('clicked()'), self.connect(self.refreshtheme, QtCore.SIGNAL('clicked()'),
parent, QtCore.SLOT('themeSelectOverride()')) parent, QtCore.SLOT('themeSelectOverride()'))
self.ghostchum = QtGui.QCheckBox("Pesterdunk Ghostchum!!", self)
self.ghostchum.setChecked(self.config.ghostchum())
self.buttonOptions = ["Minimize to Taskbar", "Minimize to Tray", "Quit"] self.buttonOptions = ["Minimize to Taskbar", "Minimize to Tray", "Quit"]
self.miniBox = QtGui.QComboBox(self) self.miniBox = QtGui.QComboBox(self)
@ -1360,6 +1362,7 @@ class PesterOptions(QtGui.QDialog):
layout_theme.addWidget(QtGui.QLabel("Pick a Theme:")) layout_theme.addWidget(QtGui.QLabel("Pick a Theme:"))
layout_theme.addWidget(self.themeBox) layout_theme.addWidget(self.themeBox)
layout_theme.addWidget(self.refreshtheme) layout_theme.addWidget(self.refreshtheme)
layout_theme.addWidget(self.ghostchum)
self.pages.addWidget(widget) self.pages.addWidget(widget)
# Advanced # Advanced

View file

@ -1673,6 +1673,10 @@ class PesterWindow(MovingWindow):
self.trollslum.changeTheme(theme) self.trollslum.changeTheme(theme)
if hasattr(self, 'allusers') and self.allusers: if hasattr(self, 'allusers') and self.allusers:
self.allusers.changeTheme(theme) self.allusers.changeTheme(theme)
if self.config.ghostchum():
self.theme["main"]["icon"] = "themes/pesterchum/pesterdunk.png"
self.theme["main"]["newmsgicon"] = "themes/pesterchum/ghostchum.png"
self.setWindowIcon(PesterIcon(self.theme["main/icon"]))
# system tray icon # system tray icon
self.updateSystemTray() self.updateSystemTray()
@ -2354,7 +2358,10 @@ class PesterWindow(MovingWindow):
self.config.set('idleTime', idlesetting) self.config.set('idleTime', idlesetting)
self.idlethreshold = 60*idlesetting self.idlethreshold = 60*idlesetting
# theme # theme
self.themeSelected() ghostchumsetting = self.optionmenu.ghostchum.isChecked()
curghostchum = self.config.ghostchum()
self.config.set('ghostchum', ghostchumsetting)
self.themeSelected(ghostchumsetting != curghostchum)
# randoms # randoms
if self.randhandler.running: if self.randhandler.running:
self.randhandler.setRandomer(self.optionmenu.randomscheck.isChecked()) self.randhandler.setRandomer(self.optionmenu.randomscheck.isChecked())

View file

@ -221,6 +221,8 @@ class userConfig(object):
return self.config.get('notifyOptions', self.SIGNIN | self.NEWMSG | self.NEWCONVO | self.INITIALS) return self.config.get('notifyOptions', self.SIGNIN | self.NEWMSG | self.NEWCONVO | self.INITIALS)
def lowBandwidth(self): def lowBandwidth(self):
return self.config.get('lowBandwidth', False) return self.config.get('lowBandwidth', False)
def ghostchum(self):
return self.config.get('ghostchum', False)
def addChum(self, chum): def addChum(self, chum):
if chum.handle not in self.chums(): if chum.handle not in self.chums():
fp = open(self.filename) # what if we have two clients open?? fp = open(self.filename) # what if we have two clients open??

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B