Plugin-Make ini edit courier font & 1pt larger than default.

This commit is contained in:
Jim Miller
2012-02-12 15:21:55 -06:00
parent dac306d0ba
commit d001799372
3 changed files with 21 additions and 6 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class FanFictionDownLoaderBase(InterfaceActionBase):
description = 'UI plugin to download FanFiction stories from various sites.'
supported_platforms = ['windows', 'osx', 'linux']
author = 'Jim Miller'
version = (1, 4, 0)
version = (1, 4, 1)
minimum_calibre_version = (0, 8, 30)
#: This field defines the GUI plugin class that contains all the code
+12 -5
View File
@@ -9,7 +9,7 @@ __docformat__ = 'restructuredtext en'
import traceback, copy
from PyQt4.Qt import (QDialog, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit,
from PyQt4.Qt import (QDialog, QWidget, QVBoxLayout, QHBoxLayout, QLabel, QLineEdit, QFont,
QTextEdit, QComboBox, QCheckBox, QPushButton, QTabWidget, QVariant)
from calibre.gui2 import dynamic, info_dialog
@@ -58,10 +58,7 @@ copylist = ['personal.ini',
'updatedefault',
'fileform',
'collision',
'deleteotherforms',
'addtolists',
'addtoreadlists',
'addtolistsonread']
'deleteotherforms']
# fake out so I don't have to change the prefs calls anywhere. The
# Java programmer in me is offended by op-overloading, but it's very
@@ -293,6 +290,11 @@ class PersonalIniTab(QWidget):
self.l.addWidget(self.label)
self.ini = QTextEdit(self)
try:
self.ini.setFont(QFont("Courier",
self.plugin_action.gui.font().pointSize()+1));
except Exception as e:
print("Couldn't get font: %s"%e)
self.ini.setLineWrapMode(QTextEdit.NoWrap)
self.ini.setText(prefs['personal.ini'])
self.l.addWidget(self.ini)
@@ -324,6 +326,11 @@ class ShowDefaultsIniDialog(QDialog):
self.ini = QTextEdit(self)
self.ini.setToolTip("These are all of the plugin's configurable options\nand their default settings.")
try:
self.ini.setFont(QFont("Courier",
get_gui().font().pointSize()+1));
except Exception as e:
print("Couldn't get font: %s"%e)
self.ini.setLineWrapMode(QTextEdit.NoWrap)
self.ini.setText(text)
self.ini.setReadOnly(True)
+8
View File
@@ -58,6 +58,14 @@
<p>
The CSS included in the HTML and EPUB output formats is now a customizable parameter.
</p>
<h3>Support for Custom Replacement of Metadata</h3>
<p>
There's now a customizable parameter to include a list of regular expressions to replace metadata as you see fit.
</p>
<p>
Examples of how to use both new features can be found in the
<a href="http://www.mobileread.com/forums/showthread.php?p=1962034#post1962034">plugin forum</a>.
</p>
<p>
If you have any problems with this application, please
report them in