Loading editor/widgets/CMakeLists.txt +1 Changes for editor/widgets/CMakeLists.txt: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ add_subdirectory(textbox) add_subdirectory(grid) add_subdirectory(table) add_subdirectory(image) add_subdirectory(svg) add_subdirectory(button) add_subdirectory(customhtml) add_subdirectory(section) Loading editor/widgets/svg/CMakeLists.txt +14 Changes for editor/widgets/svg/CMakeLists.txt: 14 added lines, 0 removed lines. Original line number Diff line number Diff line add_library(svg SHARED svg.cpp) if(TARGET blogidev) add_dependencies(svg blogidev) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(svg PUBLIC blogidev kernel32.lib uuidp::uuidp htmlpp::htmlpp json-c::json-c tinyxml2::tinyxml2) else() target_link_libraries(svg PUBLIC blogidev dl uuidp::uuidp htmlpp::htmlpp json-c::json-c tinyxml2::tinyxml2) endif() else() target_link_libraries(svg PUBLIC editor_plugin_base uuidp::uuidp htmlpp::htmlpp json-c::json-c tinyxml2::tinyxml2 dl) endif() install(TARGETS svg DESTINATION lib/blogi/plugins/webedit) editor/widgets/svg/svg.cpp +667 File added.Preview size limit exceeded, changes collapsed. Show changes editor/widgets/svg/translations.h +63 Changes for editor/widgets/svg/translations.h: 63 added lines, 0 removed lines. Original line number Diff line number Diff line /******************************************************************************* Copyright (c) 2025, Jan Koester jan.koester@gmx.net All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #pragma once #include <string> #include <unordered_map> namespace blogi { namespace webedit { namespace svg_i18n { inline const std::unordered_map<std::string, std::string>& de() { static const std::unordered_map<std::string, std::string> m = { {"Alt Text", "Alt-Text"}, {"Border", "Rahmen"}, {"Border Radius", "Eckradius"}, {"Color", "Farbe"}, {"Custom CSS", "Eigenes CSS"}, {"Height", "Höhe"}, {"Height (Mobile)", "Höhe (Mobil)"}, {"Hidden", "Ausgeblendet"}, {"Hidden (Mobile)", "Ausgeblendet (Mobil)"}, {"Link URL", "Link-URL"}, {"Media (from MediaDB)", "Medium (aus MediaDB)"}, {"Preview Height (px)", "Vorschauhöhe (px)"}, {"Preview Width (px)", "Vorschaubreite (px)"}, {"Source", "Quelle"}, {"SVG Markup", "SVG-Code"}, {"Width", "Breite"}, {"Width (Mobile)", "Breite (Mobil)"}, }; return m; } inline const std::unordered_map<std::string, std::string>& en() { static const std::unordered_map<std::string, std::string> m = {}; return m; } }}} Loading
editor/widgets/CMakeLists.txt +1 Changes for editor/widgets/CMakeLists.txt: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ add_subdirectory(textbox) add_subdirectory(grid) add_subdirectory(table) add_subdirectory(image) add_subdirectory(svg) add_subdirectory(button) add_subdirectory(customhtml) add_subdirectory(section) Loading
editor/widgets/svg/CMakeLists.txt +14 Changes for editor/widgets/svg/CMakeLists.txt: 14 added lines, 0 removed lines. Original line number Diff line number Diff line add_library(svg SHARED svg.cpp) if(TARGET blogidev) add_dependencies(svg blogidev) if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") target_link_libraries(svg PUBLIC blogidev kernel32.lib uuidp::uuidp htmlpp::htmlpp json-c::json-c tinyxml2::tinyxml2) else() target_link_libraries(svg PUBLIC blogidev dl uuidp::uuidp htmlpp::htmlpp json-c::json-c tinyxml2::tinyxml2) endif() else() target_link_libraries(svg PUBLIC editor_plugin_base uuidp::uuidp htmlpp::htmlpp json-c::json-c tinyxml2::tinyxml2 dl) endif() install(TARGETS svg DESTINATION lib/blogi/plugins/webedit)
editor/widgets/svg/svg.cpp +667 File added.Preview size limit exceeded, changes collapsed. Show changes
editor/widgets/svg/translations.h +63 Changes for editor/widgets/svg/translations.h: 63 added lines, 0 removed lines. Original line number Diff line number Diff line /******************************************************************************* Copyright (c) 2025, Jan Koester jan.koester@gmx.net All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ #pragma once #include <string> #include <unordered_map> namespace blogi { namespace webedit { namespace svg_i18n { inline const std::unordered_map<std::string, std::string>& de() { static const std::unordered_map<std::string, std::string> m = { {"Alt Text", "Alt-Text"}, {"Border", "Rahmen"}, {"Border Radius", "Eckradius"}, {"Color", "Farbe"}, {"Custom CSS", "Eigenes CSS"}, {"Height", "Höhe"}, {"Height (Mobile)", "Höhe (Mobil)"}, {"Hidden", "Ausgeblendet"}, {"Hidden (Mobile)", "Ausgeblendet (Mobil)"}, {"Link URL", "Link-URL"}, {"Media (from MediaDB)", "Medium (aus MediaDB)"}, {"Preview Height (px)", "Vorschauhöhe (px)"}, {"Preview Width (px)", "Vorschaubreite (px)"}, {"Source", "Quelle"}, {"SVG Markup", "SVG-Code"}, {"Width", "Breite"}, {"Width (Mobile)", "Breite (Mobil)"}, }; return m; } inline const std::unordered_map<std::string, std::string>& en() { static const std::unordered_map<std::string, std::string> m = {}; return m; } }}}