Move ui item stubs from header to src
This commit is contained in:
2024-09-07 15:48:35 +02:00
parent 00e515066e
commit fc181726b9
2 changed files with 15 additions and 10 deletions
+11
View File
@@ -138,3 +138,14 @@ json UI_item::to_json() const
j["visible"] = visible; j["visible"] = visible;
return j; return j;
} }
void UI_item::click() const {};
void UI_item::set_selected(std::string selected)
{
UNUSED(selected);
};
void UI_item::set_value(double value)
{
UNUSED(value);
};
+3 -9
View File
@@ -42,15 +42,9 @@ class UI_item
virtual json to_json() const; virtual json to_json() const;
virtual void click() const {}; virtual void click() const;
virtual void set_selected(std::string selected) virtual void set_selected(std::string selected);
{ virtual void set_value(double value);
UNUSED(selected);
};
virtual void set_value(double value)
{
UNUSED(value);
};
protected: protected:
std::string m_id; std::string m_id;