mirror of
https://github.com/BotChain-Robots/dev-tools.git
synced 2026-07-08 15:07:22 +02:00
Cleanup for release
This commit is contained in:
23
include/tabs/InformationTab.h
Normal file
23
include/tabs/InformationTab.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <chrono>
|
||||
#include "libcontrol.h"
|
||||
#include <ftxui/component/component.hpp>
|
||||
|
||||
using namespace ftxui;
|
||||
|
||||
class InformationTab {
|
||||
public:
|
||||
InformationTab(std::shared_ptr<RobotController> robot_controller, uint8_t device_id);
|
||||
Component createComponent();
|
||||
|
||||
private:
|
||||
std::shared_ptr<RobotController> robot_controller_;
|
||||
uint8_t device_id_;
|
||||
|
||||
std::string getModuleTypeString(ModuleType type);
|
||||
std::string getConnectionTypeString(Messaging::ConnectionType type);
|
||||
std::string formatTimeSince(const std::chrono::time_point<std::chrono::system_clock>& time_point);
|
||||
};
|
||||
Reference in New Issue
Block a user