API Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
WinchDeploymentWidget.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <QWidget>
4namespace Ui
5{
6 class WinchDeploymentDialogUI;
7}
8namespace NDEVR
9{
10 class Motor;
11 class Button;
12 struct PopupInfo;
13 class WinchDeploymentDialog;
14 class DistanceEncoder;
15 /**--------------------------------------------------------------------------------------------------
16 \brief Provides an interface for controlling a motor involved with a particular Deployment.
17 **/
19 {
20 public:
21 MotorDeploymentWidget(QWidget* parent = nullptr);
22 MotorDeploymentWidget(Motor* winch, QWidget* parent = nullptr);
23 void setMotor(Motor* winch);
24 void startMotor(bool up, bool constant);
25 void stopWinch();
26 protected:
27 void setupUI();
29 protected:
36 };
38 {
39 public:
40 WinchDeploymentDialog(QWidget* parent = nullptr);
41 WinchDeploymentDialog(Motor* winch, QWidget* parent = nullptr);
42 void setMotor(Motor* winch);
43 protected:
44 void setupUI();
45 protected:
48 Ui::WinchDeploymentDialogUI* ui;
49 };
50}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:56
A core widget that allows the user to click one of many button types.
Definition Button.h:66
A distance encoder is a device that measures distance by generating pulses in response to an object's...
Definition DistanceEncoder.h:36
Provides an interface for controlling a motor involved with a particular Deployment.
Definition WinchDeploymentWidget.h:19
MotorDeploymentWidget(QWidget *parent=nullptr)
Button * m_deploy_down
Definition WinchDeploymentWidget.h:33
WinchDeploymentDialog * m_deployment_dialog
Definition WinchDeploymentWidget.h:35
void setMotor(Motor *winch)
Button * m_deploy_constant_up
Definition WinchDeploymentWidget.h:32
Motor * m_motor
Definition WinchDeploymentWidget.h:30
MotorDeploymentWidget(Motor *winch, QWidget *parent=nullptr)
void startMotor(bool up, bool constant)
WinchDeploymentDialog * deploymentDialog()
Button * m_deploy_constant_down
Definition WinchDeploymentWidget.h:31
Button * m_deploy_up
Definition WinchDeploymentWidget.h:34
A motor is a device which produces rotational spin. This could be anything from a servo motor to a ra...
Definition Motor.h:44
Definition WinchDeploymentWidget.h:38
WinchDeploymentDialog(QWidget *parent=nullptr)
Motor * m_winch
Definition WinchDeploymentWidget.h:46
Ui::WinchDeploymentDialogUI * ui
Definition WinchDeploymentWidget.h:48
void setMotor(Motor *winch)
WinchDeploymentDialog(Motor *winch, QWidget *parent=nullptr)
DistanceEncoder * m_encoder
Definition WinchDeploymentWidget.h:47
Definition ACIColor.h:37
Definition FontEditor.h:6