#include const std::string configjson = "{\n" " \"visual\": {\n" " \"gtk_theme\": \"Adwaita\", //Use \"\" for default theme, At least these two exist on all systems: Adwaita, Raleigh\n" " \"gtk_theme_variant\": \"\", //Use \"\" for default variant, and \"dark\" for dark theme variant\n" " \"gtk_sourceview_style\": \"classic\" //Choices on default install: classic, cobalt, kate, oblivion, solarized-dark, solarized-light, tango\n" " },\n" " \"source\": {\n" " \"clang_types\": {\n" " \"43\": \"def:type\",\n" " \"46\": \"def:preprocessor\",\n" " \"109\": \"def:constant\",\n" " \"702\": \"def:statement\",\n" " \"705\": \"def:comment\"\n" " },\n" " \"tab_size\": 2,\n" " \"tab_char\": \" \", //Use \"\\t\" for regular tab\n" " \"highlight_current_line\": true,\n" " \"show_line_numbers\": true\n" " },\n" " \"keybindings\": {\n" " \"new_file\": \"n\",\n" " \"open_folder\": \"o\",\n" " \"open_file\": \"o\",\n" " \"save\": \"s\",\n" " \"save_as\": \"s\",\n" " \"quit\": \"q\",\n" " \"split_window\": \"s\",\n" " \"close_tab\": \"w\",\n" " \"edit_copy\": \"c\",\n" " \"edit_cut\": \"x\",\n" " \"edit_paste\": \"v\",\n" " \"edit_undo\": \"z\",\n" " \"edit_redo\": \"z\",\n" " \"edit_find\": \"f\",\n" " \"source_goto_line\": \"g\",\n" " \"source_center_cursor\": \"l\",\n" " \"source_goto_declaration\": \"d\",\n" " \"source_goto_method\": \"m\",\n" " \"source_rename\": \"r\",\n" " \"compile_and_run\": \"Return\",\n" " \"compile\": \"Return\",\n" " \"run_command\": \"Return\",\n" " \"kill_last_running\": \"Escape\",\n" " \"force_kill_last_running\": \"Escape\"\n" " },\n" " \"project\": {\n" " \"make_command\": \"make\"\n" " },\n" " \"directoryfilter\": {\n" " \"ignore\": [\n" " \"cmake\",\n" " \"#\",\n" " \"~\",\n" " \".idea\",\n" " \".so\"\n" " ],\n" " \"exceptions\": [\n" " \"cmakelists.txt\"\n" " ]\n" " }\n" "}\n"; const std::string menuxml = "\n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" " \n" "\n"; const std::string pluginspy = "#!/usr/bin/python \n" "import juci_to_python_api as juci \n" "import glob \n" "\n" "def loadplugins(): \n" " plugin_files = glob.glob(\"../plugins/*.py\") \n" " for current_file in plugin_files: \n" " juci.initPlugin(current_file) \n" "loadplugins() \n"; const std::string snippetpy = "#!/usr/bin/python \n" "#snippet plugin \n" "import juci_to_python_api as juci, inspect \n" " \n" "def initPlugin(): \n" " juci.addMenuElement(\"Snippet\") \n" " juci.addSubMenuElement(\"SnippetMenu\", #name of parent menu \n" " \"Insert snippet\", #menu description \n" " \"insertSnippet()\", #function to execute \n" " inspect.getfile(inspect.currentframe()), #plugin path \n" " \"space\") \n" "snippets = {} \n" " \n" "snippets[\"for\"] = \"\"\"\\\n" "for(int i=0; i \n" " \n" "int main(int argc, char *argv[]) { \n" " std::cout << \"Hello, world! << std::endl; \n" "} \n" "\"\"\" \n" " \n" "def getSnippet(word): \n" " try: \n" " output = snippets[word] \n" " except KeyError: \n" " output = word \n" " return output \n" " \n" "def insertSnippet(): \n" " theWord=juci.getWord() \n" " output=getSnippet(theWord) \n" " juci.replaceWord(output) \n";