Fixed unit test issue. Added basic object manipulation to actions. Added calibration wizards to actions. Added View controls to actions

This commit is contained in:
Lam Wei Lun
2026-09-08 18:23:51 +08:00
parent 2dce0ad24f
commit 846a95374f
2 changed files with 258 additions and 3 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class TestAppAction final : public AppAction
public:
TestAppAction() : AppAction("test", "Action title", "src-key", "Action source") {}
AppActionRunResult run() const override { return {}; }
AppActionRunResult run(const std::string& param = {}) const override { return {}; }
};
} // namespace
@@ -33,7 +33,7 @@ TEST_CASE("AppAction composes a stable id from prefix:title:source_key", "[speed
TEST_CASE("AppAction definitions are immutable after construction", "[speeddial][actions]")
{
using StringAccessor = const std::string& (AppAction::*)() const;
using StringAccessor = const std::string& (AppAction::*) () const;
STATIC_CHECK(std::is_same_v<decltype(&AppAction::id), StringAccessor>);
STATIC_CHECK(std::is_same_v<decltype(&AppAction::title), StringAccessor>);