mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
This commit is contained in:
parent
f435e0a25f
commit
e312c4a60e
@ -283,7 +283,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_8" >
|
<widget class="QLabel" name="label_8" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>For help with writing advanced news profiles, please visit <a href="https://libprs500.kovidgoyal.net/wiki/UserProfiles">UserProfiles</a></string>
|
<string>For help with writing advanced news profiles, please visit <a href="https://__appname__.kovidgoyal.net/wiki/UserProfiles">UserProfiles</a></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap" >
|
<property name="wordWrap" >
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
<string>libprs500</string>
|
<string>__appname__</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon" >
|
<property name="windowIcon" >
|
||||||
<iconset resource="images.qrc" >:/library</iconset>
|
<iconset resource="images.qrc" >:/library</iconset>
|
||||||
@ -105,7 +105,7 @@
|
|||||||
<string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<string><html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For help visit <a href="http://libprs500.kovidgoyal.net/user_manual"><span style=" text-decoration: underline; color:#0000ff;">libprs500.kovidgoyal.net</span></a><br /><br /><span style=" font-weight:600;">libprs500</span>: %1 by <span style=" font-weight:600;">Kovid Goyal</span> %2<br />%3</p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For help visit <a href="http://__appname__.kovidgoyal.net/user_manual"><span style=" text-decoration: underline; color:#0000ff;">__appname__.kovidgoyal.net</span></a><br /><br /><span style=" font-weight:600;">__appname__</span>: %1 by <span style=" font-weight:600;">Kovid Goyal</span> %2<br />%3</p></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
<property name="textFormat" >
|
<property name="textFormat" >
|
||||||
<enum>Qt::RichText</enum>
|
<enum>Qt::RichText</enum>
|
||||||
|
@ -22,6 +22,9 @@ from functools import partial
|
|||||||
from PyQt4.uic import compileUi
|
from PyQt4.uic import compileUi
|
||||||
|
|
||||||
check_call = partial(subprocess.check_call, shell=True)
|
check_call = partial(subprocess.check_call, shell=True)
|
||||||
|
sys.path.insert(1, os.path.abspath('..%s..'%os.sep))
|
||||||
|
|
||||||
|
from libprs500 import __appname__
|
||||||
|
|
||||||
def find_forms():
|
def find_forms():
|
||||||
forms = []
|
forms = []
|
||||||
@ -43,6 +46,7 @@ def build_forms(forms):
|
|||||||
buf = cStringIO.StringIO()
|
buf = cStringIO.StringIO()
|
||||||
compileUi(form, buf)
|
compileUi(form, buf)
|
||||||
dat = buf.getvalue()
|
dat = buf.getvalue()
|
||||||
|
dat = dat.replace('__appname__', __appname__)
|
||||||
dat = dat.replace('import images_rc', 'from libprs500.gui2 import images_rc')
|
dat = dat.replace('import images_rc', 'from libprs500.gui2 import images_rc')
|
||||||
dat = dat.replace('from library import', 'from libprs500.gui2.library import')
|
dat = dat.replace('from library import', 'from libprs500.gui2.library import')
|
||||||
dat = dat.replace('from widgets import', 'from libprs500.gui2.widgets import')
|
dat = dat.replace('from widgets import', 'from libprs500.gui2.widgets import')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user