aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-07-04 13:21:07 +1000
committerNeil <nyamatongwe@gmail.com>2022-07-04 13:21:07 +1000
commitc1549b377be73f2d6b4aae1f05f2f1f4227514e5 (patch)
treeb1863b9909722c127497226701fef77828c102b0
parent47fe110d09b18bc10aecdf5c8777fb367cf22dec (diff)
downloadscintilla-mirror-c1549b377be73f2d6b4aae1f05f2f1f4227514e5.tar.gz
Remove ScintillaEditPy from WidgetGen.py as it was removed in Scintilla 5.1.5.
-rw-r--r--qt/ScintillaEdit/WidgetGen.py23
1 files changed, 3 insertions, 20 deletions
diff --git a/qt/ScintillaEdit/WidgetGen.py b/qt/ScintillaEdit/WidgetGen.py
index 62f8ec8e5..53d725988 100644
--- a/qt/ScintillaEdit/WidgetGen.py
+++ b/qt/ScintillaEdit/WidgetGen.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-# WidgetGen.py - regenerate the ScintillaWidgetCpp.cpp and ScintillaWidgetCpp.h files
+# WidgetGen.py - regenerate the ScintillaEdit.cpp and ScintillaEdit.h files
# Check that API includes all gtkscintilla2 functions
import sys
@@ -92,20 +92,6 @@ def arguments(v, stringResult, options):
ret = ret + p2Type + " " + normalisedName(v["Param2Name"], options)
return ret
-def printPyFile(f, options):
- out = []
- for name in f.order:
- v = f.features[name]
- if v["Category"] != "Deprecated":
- feat = v["FeatureType"]
- if feat in ["val"]:
- out.append(name + "=" + v["Value"])
- if feat in ["evt"]:
- out.append("SCN_" + name.upper() + "=" + v["Value"])
- if feat in ["fun"]:
- out.append("SCI_" + name.upper() + "=" + v["Value"])
- return out
-
def printHFile(f, options):
out = []
for name in f.order:
@@ -202,7 +188,7 @@ def gtkNames():
def usage():
print("WidgetGen.py [-c|--clean][-h|--help][-u|--underscore-names]")
print("")
- print("Generate full APIs for ScintillaEdit class and ScintillaConstants.py.")
+ print("Generate full APIs for ScintillaEdit class.")
print("")
print("options:")
print("")
@@ -242,9 +228,6 @@ def main(argv):
"/* ", True, printCPPFile(f, options))
GenerateFile("ScintillaEdit.h.template", "ScintillaEdit.h",
"/* ", True, printHFile(f, options))
- GenerateFile("../ScintillaEditPy/ScintillaConstants.py.template",
- "../ScintillaEditPy/ScintillaConstants.py",
- "# ", True, printPyFile(f, options))
if checkGTK:
names = set(methodNames(f))
#~ print("\n".join(names))
@@ -259,7 +242,7 @@ def main(argv):
raise
if cleanGenerated:
- for file in ["ScintillaEdit.cpp", "ScintillaEdit.h", "../ScintillaEditPy/ScintillaConstants.py"]:
+ for file in ["ScintillaEdit.cpp", "ScintillaEdit.h"]:
try:
os.remove(file)
except OSError: