alpha 7
This commit is contained in:
parent
e495ca7d24
commit
fb6c930566
3 changed files with 5 additions and 3 deletions
1
TODO
1
TODO
|
@ -1,6 +1,5 @@
|
||||||
Bugs:
|
Bugs:
|
||||||
* import quirks from 2.5!
|
* import quirks from 2.5!
|
||||||
* edit quirks?
|
|
||||||
* X and _ buttons move around all crazy like
|
* X and _ buttons move around all crazy like
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
3
convo.py
3
convo.py
|
@ -304,7 +304,6 @@ class PesterText(QtGui.QTextEdit):
|
||||||
|
|
||||||
def contextMenuEvent(self, event):
|
def contextMenuEvent(self, event):
|
||||||
textMenu = self.createStandardContextMenu()
|
textMenu = self.createStandardContextMenu()
|
||||||
print "self.textSelected is %s " %(self.textSelected)
|
|
||||||
if self.textSelected:
|
if self.textSelected:
|
||||||
self.submitLogAction = QtGui.QAction("Submit to Pesterchum QDB", self)
|
self.submitLogAction = QtGui.QAction("Submit to Pesterchum QDB", self)
|
||||||
self.connect(self.submitLogAction, QtCore.SIGNAL('triggered()'),
|
self.connect(self.submitLogAction, QtCore.SIGNAL('triggered()'),
|
||||||
|
@ -322,7 +321,7 @@ class PesterText(QtGui.QTextEdit):
|
||||||
htmldata = img2smiley(mimedata.data("text/html"))
|
htmldata = img2smiley(mimedata.data("text/html"))
|
||||||
textdoc = QtGui.QTextDocument()
|
textdoc = QtGui.QTextDocument()
|
||||||
textdoc.setHtml(htmldata)
|
textdoc.setHtml(htmldata)
|
||||||
logdata = textdoc.toPlainText()
|
logdata = "%s\n%s" % (self.submitLogTitle(), textdoc.toPlainText())
|
||||||
self.sending = QtGui.QDialog(self)
|
self.sending = QtGui.QDialog(self)
|
||||||
layout = QtGui.QVBoxLayout()
|
layout = QtGui.QVBoxLayout()
|
||||||
self.sending.sendinglabel = QtGui.QLabel("S3ND1NG...", self.sending)
|
self.sending.sendinglabel = QtGui.QLabel("S3ND1NG...", self.sending)
|
||||||
|
|
4
memos.py
4
memos.py
|
@ -237,6 +237,10 @@ class MemoText(PesterText):
|
||||||
self.initTheme(theme)
|
self.initTheme(theme)
|
||||||
self.setReadOnly(True)
|
self.setReadOnly(True)
|
||||||
self.setMouseTracking(True)
|
self.setMouseTracking(True)
|
||||||
|
self.textSelected = False
|
||||||
|
self.connect(self, QtCore.SIGNAL('copyAvailable(bool)'),
|
||||||
|
self, QtCore.SLOT('textReady(bool)'))
|
||||||
|
|
||||||
def initTheme(self, theme):
|
def initTheme(self, theme):
|
||||||
if theme.has_key("memos/scrollbar"):
|
if theme.has_key("memos/scrollbar"):
|
||||||
self.setStyleSheet("QTextEdit { %s } QScrollBar:vertical { %s } QScrollBar::handle:vertical { %s } QScrollBar::add-line:vertical { %s } QScrollBar::sub-line:vertical { %s } QScrollBar:up-arrow:vertical { %s } QScrollBar:down-arrow:vertical { %s }" % (theme["memos/textarea/style"], theme["memos/scrollbar/style"], theme["memos/scrollbar/handle"], theme["memos/scrollbar/downarrow"], theme["memos/scrollbar/uparrow"], theme["memos/scrollbar/uarrowstyle"], theme["memos/scrollbar/darrowstyle"] ))
|
self.setStyleSheet("QTextEdit { %s } QScrollBar:vertical { %s } QScrollBar::handle:vertical { %s } QScrollBar::add-line:vertical { %s } QScrollBar::sub-line:vertical { %s } QScrollBar:up-arrow:vertical { %s } QScrollBar:down-arrow:vertical { %s }" % (theme["memos/textarea/style"], theme["memos/scrollbar/style"], theme["memos/scrollbar/handle"], theme["memos/scrollbar/downarrow"], theme["memos/scrollbar/uparrow"], theme["memos/scrollbar/uarrowstyle"], theme["memos/scrollbar/darrowstyle"] ))
|
||||||
|
|
Loading…
Reference in a new issue