Article dialog implementation under progress
[biaweb_qt.git] / article_dialog.py
1 # BiaWeb Website content manager (c) 2010 V.Harishankar
2 # Category dialog class
3
4 import PyQt4
5 import ui_article_dialog
6
7 class ArticleDialog (PyQt4.QtGui.QDialog, ui_article_dialog.Ui_ArticleDialog):
8 def __init__ (self, parent):
9 PyQt4.QtGui.QDialog.__init__ (self, parent)
10 self.setupUi (self)
11
12 # when bold is clicked
13 def onBold (self):
14 textcur = self.content.textCursor ()
15 sel = textcur.selectedText ()
16 boldsel = "<b>" + str (sel) + "</b>"
17 textcur.insertText (boldsel)
18
19 # when block quote is clicked
20 def onBQuote (self):
21 textcur = self.content.textCursor ()
22 sel = textcur.selectedText ()
23 quotesel = "<blockquote>\n" + str (sel) + "\n</blockquote>"
24 textcur.insertText (quotesel)
25
26 # when bullet is clicked
27 def onBullet (self):
28 pass
29
30 # when code is clicked
31 def onCode (self):
32 textcur = self.content.textCursor ()
33 sel = textcur.selectedText ()
34 codesel = "<code>" + str (sel) + "</code>"
35 textcur.insertText (codesel)
36
37 # when horiz rule is clicked
38 def onHRule (self):
39 pass
40
41 # when image is clicked
42 def onImage (self):
43 pass
44
45 # when italic is clicked
46 def onItalic (self):
47 pass
48
49 # when link is clicked
50 def onLink (self):
51 pass
52
53 # when numbered is clicked
54 def onNumber (self):
55 pass
56
57 # when center is clicked
58 def onCenter (self):
59 pass
60
61 # when justify is clicked
62 def onJustify (self):
63 pass
64
65 # when left is clicked
66 def onLeft (self):
67 pass
68
69 # when right is clicked
70 def onRight (self):
71 pass
72
73 # when pre is clicked
74 def onPre (self):
75 pass
76
77 # when para is clicked
78 def onPara (self):
79 pass
80
81 # when table is clicked
82 def onTable (self):
83 pass
84
85 # when break is clicked
86 def onBreak (self):
87 pass