[rkward/frameworks] /: bookkeeping

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Dec 30 13:49:59 UTC 2015

Git commit 931b35877dcd35ea151023bb95457e9e23e7af5b by Thomas Friedrichsmeier.
Committed on 27/12/2015 at 20:02.
Pushed by tfry into branch 'frameworks'.


M  +12   -0    TODO
M  +1    -0    rkward/misc/getfilenamewidget.cpp


diff --git a/TODO b/TODO
index ee92f3a..8e3f634 100644
--- a/TODO
+++ b/TODO
@@ -12,6 +12,18 @@ Things to test at the end:
   - Moved installations, moved workspaces.
 - Window embedding
+Upcoming porting efforts: Port from QtScript to QJSEngine:
+- Unforunately, QJSEngine lacks support for pre-compiled JS (QScriptProgram), ATM (Qt 5.5). We'll need some other optimization.
+- Idea: Use _one_ engine for each plugin, _including_ any embedded plugins. Wrap existing JS code into a closure, exporting only the "primary" functions as properties of an object.
+  - Then, the scriptbackend will call plugin_a.preprocess(), etc.
+  - The scriptbackend knows which of the plugins it is currently dealing with, and thus can trivially relay all getValue()-calls as appropriate.
+- Same approach for UI scripting.
+Port from QtWebKit to QtWebEngine
+- Should be mostly unproblematic
+- Somewhat unfortunate that QWebElement will be gone. We might be using this to amend the context menu, e.g. for copying one section to clipboard / deleting one section, etc.
+  - Could perhaps be done by catching contextmenu event in JS, instead, then send to frontend, somehow.
 New features in R 3.1.0 to make use of / support:
 - A new browser command s has been added, to “step into” function calls.
diff --git a/rkward/misc/getfilenamewidget.cpp b/rkward/misc/getfilenamewidget.cpp
index d23c056..716532a 100644
--- a/rkward/misc/getfilenamewidget.cpp
+++ b/rkward/misc/getfilenamewidget.cpp
@@ -44,6 +44,7 @@ GetFileNameWidget::GetFileNameWidget (QWidget *parent, FileType mode, bool only_
 	if (mode == ExistingDirectory) {
 		mode_flags = KFile::Directory | KFile::ExistingOnly;
 #ifdef Q_OS_WIN
+		// KF5 TODO: Still needed?
 		// TODO: Hang on Windows when trying to select any dir (also in KFileDialog::getExistingDirectory ()). KDE 4.10
 		// this hack works around this, by using QFileDialog::getExistingDirectory ().
 		edit->button ()->disconnect (SIGNAL (clicked())); // Use old and new syntax, as we don't know, which way it was connected

More information about the rkward-tracker mailing list