aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_node.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-03 15:06:09 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-03 15:06:09 +0100
commitcd89c506cf45b6de221f89388fb146efca96599c (patch)
tree8a30d05a87b83507e23a66f2b21c9d0845396182 /confui/ui_node.h
parentb2c10c7e3871e10d1862ae409fbc2826d2fdaa74 (diff)
add update function to node component
Diffstat (limited to 'confui/ui_node.h')
-rw-r--r--confui/ui_node.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/confui/ui_node.h b/confui/ui_node.h
index c37f373..f5fdbbd 100644
--- a/confui/ui_node.h
+++ b/confui/ui_node.h
@@ -1,6 +1,11 @@
#pragma once
#include <QWidget>
+#include <QLabel>
+#include <QHBoxLayout>
+#include <QCheckBox>
+#include <QPushButton>
+#include <QString>
#include "mesh_connector.h"
@@ -10,7 +15,17 @@ class CDNodeWidget : public QWidget {
private:
cd_s_node* _node;
+ QHBoxLayout* main_layout;
+ QHBoxLayout* float_left;
+ QHBoxLayout* float_right;
+ QLabel* label_node_name;
+ QLabel* label_node_address;
+ QCheckBox* switch_on_off;
+ QPushButton* button_add_remove;
+
public:
CDNodeWidget(cd_s_node* node, QWidget *parent = nullptr);
virtual ~CDNodeWidget();
+ virtual void update();
+ virtual void set_node(cd_s_node* node);
};