Code highlighting implemented
[biaweb_qt.git] / ui_article_dialog.py
index 7e42cc7..d9dc575 100644 (file)
@@ -2,7 +2,7 @@
 
 # Form implementation generated from reading ui file 'article_dialog.ui'
 #
-# Created: Sun Nov 28 13:59:41 2010
+# Created: Sun Nov 28 17:32:45 2010
 #      by: PyQt4 UI code generator 4.7.4
 #
 # WARNING! All changes made in this file will be lost!
@@ -156,11 +156,6 @@ class Ui_ArticleDialog(object):
         self.linebreak.setAutoRaise(False)
         self.linebreak.setObjectName("linebreak")
         self.gridLayout.addWidget(self.linebreak, 4, 21, 1, 1)
-        self.content = QtGui.QPlainTextEdit(ArticleDialog)
-        self.content.setMinimumSize(QtCore.QSize(0, 210))
-        self.content.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
-        self.content.setObjectName("content")
-        self.gridLayout.addWidget(self.content, 5, 0, 1, 22)
         self.label_4 = QtGui.QLabel(ArticleDialog)
         self.label_4.setObjectName("label_4")
         self.gridLayout.addWidget(self.label_4, 6, 0, 1, 2)
@@ -233,6 +228,14 @@ class Ui_ArticleDialog(object):
         self.blockquote.setAutoRaise(False)
         self.blockquote.setObjectName("blockquote")
         self.gridLayout.addWidget(self.blockquote, 4, 15, 1, 1)
+        self.content = QtGui.QPlainTextEdit(ArticleDialog)
+        self.content.setMinimumSize(QtCore.QSize(0, 210))
+        font = QtGui.QFont()
+        font.setFamily("Monospace")
+        self.content.setFont(font)
+        self.content.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
+        self.content.setObjectName("content")
+        self.gridLayout.addWidget(self.content, 5, 0, 1, 22)
 
         self.retranslateUi(ArticleDialog)
         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), ArticleDialog.accept)
@@ -392,8 +395,8 @@ class Ui_ArticleDialog(object):
 "p, li { white-space: pre-wrap; }\n"
 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Center para</p>\n"
-"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+C</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
-        self.paracenter.setShortcut(QtGui.QApplication.translate("ArticleDialog", "Ctrl+C", None, QtGui.QApplication.UnicodeUTF8))
+"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Shortcut: Ctrl+O</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
+        self.paracenter.setShortcut(QtGui.QApplication.translate("ArticleDialog", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
         self.paraleft.setToolTip(QtGui.QApplication.translate("ArticleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
 "p, li { white-space: pre-wrap; }\n"