PyQt4.QtGui.QDialog.__init__ (self, parent)
self.setupUi (self)
+ # when bold is clicked
+ def onBold (self):
+ textcur = self.content.textCursor ()
+ sel = textcur.selectedText ()
+ boldsel = "<b>" + str (sel) + "</b>"
+ textcur.insertText (boldsel)
+
+ # when block quote is clicked
+ def onBQuote (self):
+ textcur = self.content.textCursor ()
+ sel = textcur.selectedText ()
+ quotesel = "<blockquote>\n" + str (sel) + "\n</blockquote>"
+ textcur.insertText (quotesel)
+
+ # when bullet is clicked
+ def onBullet (self):
+ pass
+
+ # when code is clicked
+ def onCode (self):
+ textcur = self.content.textCursor ()
+ sel = textcur.selectedText ()
+ codesel = "<code>" + str (sel) + "</code>"
+ textcur.insertText (codesel)
+
+ # when horiz rule is clicked
+ def onHRule (self):
+ pass
+
+ # when image is clicked
+ def onImage (self):
+ pass
+
+ # when italic is clicked
+ def onItalic (self):
+ pass
+
+ # when link is clicked
+ def onLink (self):
+ pass
+
+ # when numbered is clicked
+ def onNumber (self):
+ pass
+
+ # when center is clicked
+ def onCenter (self):
+ pass
+
+ # when justify is clicked
+ def onJustify (self):
+ pass
+
+ # when left is clicked
+ def onLeft (self):
+ pass
+
+ # when right is clicked
+ def onRight (self):
+ pass
+
+ # when pre is clicked
+ def onPre (self):
+ pass
+
+ # when para is clicked
+ def onPara (self):
+ pass
+
+ # when table is clicked
+ def onTable (self):
+ pass
+
+ # when break is clicked
+ def onBreak (self):
+ pass