Simplify Property code (#1575)

* Remove the PropertyDelegate

* Remove some unused and redundant property types

* Use helper functions for Lua/Json conversion

* Solve a bug in SelectionProperty that occurred when re-setting options

* General simplification and refactoring of the code
This commit is contained in:
Emma Broman
2021-05-04 09:32:29 +02:00
committed by GitHub
parent d47ac2f248
commit 804444e267
135 changed files with 1560 additions and 6710 deletions
+3 -1
View File
@@ -27,6 +27,7 @@
#include <openspace/engine/globals.h>
#include <openspace/scripting/lualibrary.h>
#include <openspace/scripting/scriptengine.h>
#include <openspace/util/json_helper.h>
#include <ghoul/misc/profiling.h>
#include <ghoul/glm.h>
#include <sstream>
@@ -195,7 +196,8 @@ std::string KeybindingManager::generateJson() const {
json << R"("script": ")" << escapedJson(p.second.command) << "\",";
json << R"("remoteScripting": )"
<< (p.second.synchronization ? "true," : "false,");
json << R"("documentation": ")" << escapedJson(p.second.documentation) << "\",";
json << R"("documentation": ")"
<< escapedJson(p.second.documentation) << "\",";
json << R"("name": ")" << escapedJson(p.second.name) << "\"";
json << "}";
}