Don't allow editing of config category names. Fix import.

This commit is contained in:
John Schember 2009-04-12 12:48:16 -04:00
parent a48dd172db
commit 1bd3829c6b
2 changed files with 399 additions and 397 deletions

View File

@ -18,7 +18,7 @@ from calibre.utils.config import prefs
from calibre.gui2.widgets import FilenamePattern from calibre.gui2.widgets import FilenamePattern
from calibre.gui2.library import BooksModel from calibre.gui2.library import BooksModel
from calibre.ebooks import BOOK_EXTENSIONS from calibre.ebooks import BOOK_EXTENSIONS
from calibre.ebooks.epub.iterator import is_supported from calibre.ebooks.oeb.iterator import is_supported
from calibre.library import server_config from calibre.library import server_config
from calibre.customize.ui import initialized_plugins, is_disabled, enable_plugin, \ from calibre.customize.ui import initialized_plugins, is_disabled, enable_plugin, \
disable_plugin, customize_plugin, \ disable_plugin, customize_plugin, \

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0" > <ui version="4.0" >
<author>Kovid Goyal</author> <author>Kovid Goyal</author>
<class>Dialog</class> <class>Dialog</class>
@ -24,7 +23,7 @@
<item> <item>
<widget class="QListView" name="category_view" > <widget class="QListView" name="category_view" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Expanding"> <sizepolicy vsizetype="Expanding" hsizetype="MinimumExpanding" >
<horstretch>1</horstretch> <horstretch>1</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -35,6 +34,9 @@
<bold>true</bold> <bold>true</bold>
</font> </font>
</property> </property>
<property name="editTriggers" >
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="tabKeyNavigation" > <property name="tabKeyNavigation" >
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -67,7 +69,7 @@
<item> <item>
<widget class="QStackedWidget" name="stackedWidget" > <widget class="QStackedWidget" name="stackedWidget" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<horstretch>100</horstretch> <horstretch>100</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -563,7 +565,7 @@
<item> <item>
<widget class="QLineEdit" name="email_from" > <widget class="QLineEdit" name="email_from" >
<property name="toolTip" > <property name="toolTip" >
<string>&lt;p&gt;This is what will be present in the From: field of emails sent by calibre.&lt;br&gt; Set it to your email address</string> <string>&lt;p>This is what will be present in the From: field of emails sent by calibre.&lt;br> Set it to your email address</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -640,7 +642,7 @@
<item row="3" column="0" > <item row="3" column="0" >
<widget class="QGroupBox" name="groupBox_5" > <widget class="QGroupBox" name="groupBox_5" >
<property name="toolTip" > <property name="toolTip" >
<string>&lt;p&gt;A mail server is useful if the service you are sending mail to only accepts email from well know mail services.</string> <string>&lt;p>A mail server is useful if the service you are sending mail to only accepts email from well know mail services.</string>
</property> </property>
<property name="title" > <property name="title" >
<string>Mail &amp;Server</string> <string>Mail &amp;Server</string>
@ -649,7 +651,7 @@
<item row="0" column="0" colspan="4" > <item row="0" column="0" colspan="4" >
<widget class="QLabel" name="label_16" > <widget class="QLabel" name="label_16" >
<property name="text" > <property name="text" >
<string>calibre can &lt;b&gt;optionally&lt;/b&gt; use a server to send mail</string> <string>calibre can &lt;b>optionally&lt;/b> use a server to send mail</string>
</property> </property>
<property name="wordWrap" > <property name="wordWrap" >
<bool>true</bool> <bool>true</bool>