This commit is contained in:
Stephen Dranger 2011-02-23 05:27:37 -06:00
parent e495ca7d24
commit fb6c930566
3 changed files with 5 additions and 3 deletions

1
TODO
View file

@ -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:

View file

@ -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)

View file

@ -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"] ))