|
@@ -1,6 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
import os, re
|
|
|
|
|
|
from PyQt5 import QtCore
|
|
@@ -11,12 +19,14 @@ from PyQt5.QtWebKit import QWebSettings
|
|
|
from PyQt5.QtWebKitWidgets import QWebView, QWebInspector
|
|
|
from PyQt5.QtPrintSupport import QPrintPreviewDialog, QPrinter
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
from classes import highlighter
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
class WebkitView(QWebView):
|
|
|
def __init__(self, parent, core):
|
|
|
self.parent = parent
|
|
@@ -79,6 +89,12 @@ class WebkitView(QWebView):
|
|
|
def evaluateJS(self, command):
|
|
|
self.page().mainFrame().evaluateJavaScript(command)
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
class WebkitInspector(QWebInspector):
|
|
|
def __init__(self, parent, webkitview):
|
|
|
super(WebkitInspector, self).__init__(parent)
|
|
@@ -87,6 +103,11 @@ class WebkitInspector(QWebInspector):
|
|
|
self.showMaximized()
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
class WebViewToolBar(QWidget):
|
|
|
def __init__(self, parent):
|
|
|
super(WebViewToolBar, self).__init__(parent)
|
|
@@ -184,7 +205,11 @@ class WebViewToolBar(QWidget):
|
|
|
print("onGenPDF")
|
|
|
self.parent.webkitview.ongenPDF()
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
class CodeEditor(QPlainTextEdit):
|
|
|
def __init__(self, core, tabs, file, mode):
|
|
|
super(CodeEditor, self).__init__()
|
|
@@ -239,7 +264,6 @@ class CodeEditor(QPlainTextEdit):
|
|
|
self.changed = False
|
|
|
|
|
|
|
|
|
-
|
|
|
class Editor(QWidget):
|
|
|
def __init__(self, parent, core):
|
|
|
super(Editor, self).__init__()
|
|
@@ -266,6 +290,11 @@ class Editor(QWidget):
|
|
|
self.scsstab.setText()
|
|
|
self.jstab.setText()
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
class DesignStack(QWidget):
|
|
|
def __init__(self, core):
|
|
|
super(DesignStack, self).__init__()
|