Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Tasssadar committed Jul 5, 2024
1 parent f295228 commit 2d38b64
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ dependencies:
idf: ">=5.1"
RB3201-RBProtocol-library:
git: https://github.com/RoboticsBrno/RB3201-RBProtocol-library.git
version: v13.3.3
version: 49f81d8fae9d5eea1ce2b44ed786ec6ed25174b7
6 changes: 0 additions & 6 deletions src/builder/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ class Arm : public Widget, public BuilderMixin<Arm, gridui::Arm> {
addCallback("grab", cb);
return *this;
}

protected:
virtual void serialize(std::ostream& ss) {
Widget::serialize(ss);
extra().remove("info");
}
};

};
Expand Down
3 changes: 0 additions & 3 deletions src/builder/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ Widget::Widget(const char* type, WidgetState& state)
, m_type(type) {
}

Widget::~Widget() {
}

rbjson::Object& Widget::extra() {
return m_state.data();
}
Expand Down
3 changes: 1 addition & 2 deletions src/builder/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ class Widget {

public:
Widget(Widget&& o) noexcept;
virtual ~Widget();

const char *widgetTypeName() const { return m_type; }

protected:
Widget(const char* type, WidgetState& state);

virtual void serialize(std::ostream& ss);
void serialize(std::ostream& ss);

rbjson::Object& extra();
rbjson::Object& style();
Expand Down
3 changes: 3 additions & 0 deletions src/gridui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ void _GridUi::commit() {

auto& w = m_widgets[i];
w->serialize(stream);
if(strcmp(w->m_type, "Arm") == 0) {
w->extra().remove("info");
}
w.reset();
}
m_widgets.clear();
Expand Down

0 comments on commit 2d38b64

Please sign in to comment.