Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if(TARGET plotjuggler_sdk::plugin_sdk)
add_subdirectory(toolbox_quaternion)
add_subdirectory(toolbox_reactive_scripts_editor)
add_subdirectory(toolbox_mosaico)
add_subdirectory(toolbox_transform_editor)
return()
endif()

Expand Down
2 changes: 1 addition & 1 deletion SDK_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.11.0
0.14.0
41 changes: 41 additions & 0 deletions toolbox_transform_editor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
find_package(nlohmann_json REQUIRED)

include(${CMAKE_CURRENT_LIST_DIR}/../cmake/EmbedUi.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/../cmake/EmbedManifest.cmake)

add_library(toolbox_transform_editor_plugin SHARED transform_editor_plugin.cpp)

target_compile_features(toolbox_transform_editor_plugin PRIVATE cxx_std_20)
target_compile_options(toolbox_transform_editor_plugin PRIVATE ${PJ_WARNING_FLAGS})

target_link_libraries(toolbox_transform_editor_plugin PRIVATE
plotjuggler_sdk::plugin_sdk
nlohmann_json::nlohmann_json
)

# When built as part of the PJ4 app (not standalone), link pj_dialog_engine_qt
# to get access to ChartPreviewWidget for the live preview chart.
if(TARGET pj_dialog_engine_qt)
target_link_libraries(toolbox_transform_editor_plugin PRIVATE pj_dialog_engine_qt)
target_compile_definitions(toolbox_transform_editor_plugin PRIVATE PJ_HAS_CHART_PREVIEW=1)
endif()

target_include_directories(toolbox_transform_editor_plugin PRIVATE
${CMAKE_CURRENT_BINARY_DIR}/generated
)

pj_embed_ui(toolbox_transform_editor_plugin
UI_FILE ${CMAKE_CURRENT_SOURCE_DIR}/transform_editor_dialog.ui
HEADER ${CMAKE_CURRENT_BINARY_DIR}/generated/transform_editor_dialog_ui.hpp
VAR_NAME kTransformEditorDialogUi
)

pj_embed_manifest(toolbox_transform_editor_plugin
HEADER ${CMAKE_CURRENT_BINARY_DIR}/generated/transform_editor_manifest.hpp
VAR_NAME kTransformEditorManifest
)

pj_emit_plugin_manifest(toolbox_transform_editor_plugin
FAMILY toolbox
MANIFEST_FILE ${CMAKE_CURRENT_SOURCE_DIR}/manifest.json
)
22 changes: 22 additions & 0 deletions toolbox_transform_editor/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os
from conan import ConanFile


_SDK_VERSION = (
open(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir, "SDK_VERSION"))
.read()
.strip()
)


class ToolboxTransformEditorConan(ConanFile):
name = "toolbox_transform_editor"
version = "0"
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeDeps", "CMakeToolchain"
requires = (
f"plotjuggler_sdk/{_SDK_VERSION}",
"gtest/1.17.0",
"nlohmann_json/3.12.0",
)
default_options = {"*:shared": False}
22 changes: 22 additions & 0 deletions toolbox_transform_editor/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"id": "toolbox-transform-editor",
"name": "Transform Editor",
"version": "1.0.0",
"description": "Create named derived time series using Lua functions. Equivalent to the Custom Series editor in PJ3.",
"author": "PlotJuggler Team",
"publisher": "PlotJuggler",
"website": "https://github.com/PlotJuggler/pj-official-plugins",
"repository": "https://github.com/PlotJuggler/pj-official-plugins",
"license": "MIT",
"icon_url": "",
"category": "toolbox",
"tags": [
"lua",
"transform",
"derived",
"custom",
"toolbox",
"hidden"
],
"min_plotjuggler_version": "4.0.0"
}
618 changes: 618 additions & 0 deletions toolbox_transform_editor/transform_editor_dialog.ui

Large diffs are not rendered by default.

1,841 changes: 1,841 additions & 0 deletions toolbox_transform_editor/transform_editor_plugin.cpp

Large diffs are not rendered by default.

Loading