Rename kdepyuic => tdepyuic

pull/1/head
Slávek Banko 11 years ago
parent 9d39e8110a
commit a2e9913e83

@ -786,7 +786,7 @@ def create_makefiles():
sipconfig.ParentMakefile( sipconfig.ParentMakefile(
configuration = pyqtcfg, configuration = pyqtcfg,
subdirs = subdirs, subdirs = subdirs,
installs= [("pytdeconfig.py", opt_pytdemoddir), (srcPath("contrib/kdepyuic"), opt_tdebasedir + "/bin")] installs= [("pytdeconfig.py", opt_pytdemoddir), (srcPath("contrib/tdepyuic"), opt_tdebasedir + "/bin")]
).generate() ).generate()

@ -47,7 +47,7 @@ def getOptions ():
opterr = 0 opterr = 0
shortOptions = 'aip:' shortOptions = 'aip:'
longOptions = ['noapp', 'noimport', 'pyuic=', 'usekdei18n'] longOptions = ['noapp', 'noimport', 'pyuic=', 'usetdei18n']
try: try:
optlist, args = getopt.getopt (sys.argv [1:], shortOptions, longOptions) optlist, args = getopt.getopt (sys.argv [1:], shortOptions, longOptions)
@ -59,13 +59,13 @@ def getOptions ():
if opterr or (len (args) != 1): if opterr or (len (args) != 1):
print """\nUsage: print """\nUsage:
kdepyuic [options] filename.ui tdepyuic [options] filename.ui
Options: Options:
-a, --noapp Don't add TDEApplication code -a, --noapp Don't add TDEApplication code
-i, --noimport Don't add tdecore, tdeui import statements -i, --noimport Don't add tdecore, tdeui import statements
-p, --pyuic Path to pyuic program -p, --pyuic Path to pyuic program
--usekdei18n Adds KDEs default i18n functions to your Python KDE ui file --usetdei18n Adds TDEs default i18n functions to your Python TDE ui file
""" """
return FALSE return FALSE
@ -85,7 +85,7 @@ def checkOptions (optlist):
elif (pair [0] == '--pyuic') or (pair [0] == '-p'): elif (pair [0] == '--pyuic') or (pair [0] == '-p'):
pyuicPath = pair [1] pyuicPath = pair [1]
if (pair [0] == '--usekdei18n'): if (pair [0] == '--usetdei18n'):
i18nFunc=TRUE i18nFunc=TRUE
else: else:
i18nFunc=FALSE i18nFunc=FALSE
Loading…
Cancel
Save