Go to the documentation of this file.
7 #include <QPainterPath>
11 #include <IceUtil/UUID.h>
14 #include <ArmarXCore/interface/components/BatteryManagementInterface.h>
18 Q_DECLARE_METATYPE(armarx::dto::BatteryStatus)
22 class ArmarXMainWindow;
30 void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;
36 QSize
sizeHint()
const Q_DECL_OVERRIDE;
74 QString txtPercentage;
77 armarx::BatteryManagementInterfacePrx batteryManagement;
79 dto::BatteryStatus
const invalidStatus{.name =
"invalid",
80 .state = dto::BatteryState::unavailable,
81 .designEnergy_Wh = -1,
82 .fullChargeEnergy_Wh = -1,
84 .energyFromFullCharge_pct = 0,
85 .fullEnergyFromDesignEnergy_pct = 0,
86 .temperature_degC = -1,
91 .remainingTime_h = -1,
95 dto::BatteryStatus lastStatus = invalidStatus;
102 return "BatteryWidget";
void setState(dto::BatteryState state)
The ArmarXMainWindow class.
BatteryIcon(QWidget *parent=0)
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE
QSize sizeHint() const Q_DECL_OVERRIDE
void setPercentage(int percentage)
This file offers overloads of toIce() and fromIce() functions for STL container types.