AtCore  1.0.70
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Signals | Public Member Functions | Private Attributes | List of all members
CommandWidget Class Reference

CommandWidget provides a widget to send commands or messages to the printer. More...

#include <commandwidget.h>

Inheritance diagram for CommandWidget:

Signals

void commandPressed (const QString &command)
 User has requested to send a command. More...
 
void messagePressed (const QString &message)
 User has requested to send a message. More...
 

Public Member Functions

 CommandWidget (QWidget *parent=nullptr)
 
 ~CommandWidget ()=default
 

Private Attributes

QLineEdit * lineCommand = nullptr
 
QLineEdit * lineMessage = nullptr
 

Detailed Description

CommandWidget provides a widget to send commands or messages to the printer.

Usage: Connect to commandPressed or messagePressed to capture the events.

Constructor & Destructor Documentation

◆ CommandWidget()

CommandWidget::CommandWidget ( QWidget *  parent = nullptr)

◆ ~CommandWidget()

CommandWidget::~CommandWidget ( )
default

Member Function Documentation

◆ commandPressed

void CommandWidget::commandPressed ( const QString &  command)
signal

User has requested to send a command.

Parameters
commandThe command to send.

◆ messagePressed

void CommandWidget::messagePressed ( const QString &  message)
signal

User has requested to send a message.

Parameters
messageThe message to send.

Member Data Documentation

◆ lineCommand

QLineEdit* CommandWidget::lineCommand = nullptr
private

◆ lineMessage

QLineEdit* CommandWidget::lineMessage = nullptr
private

The documentation for this class was generated from the following files: