AtCore 1.0.72
AtCore is a API to manage the serial connection between the computer and 3D Printers.
Loading...
Searching...
No Matches
commandwidget.h
Go to the documentation of this file.
1/* AtCore KDE Libary for 3D Printers
2 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
3 SPDX-FileCopyrightText: 2018, 2020 Chris Rizzitello <rizzitello@kde.org>
4*/
5
6#pragma once
7
8#include <QWidget>
9
10#include "atcorewidgets_export.h"
11
12class QLineEdit;
13
20class ATCOREWIDGETS_EXPORT CommandWidget : public QWidget
21{
22 Q_OBJECT
23public:
24 explicit CommandWidget(QWidget *parent = nullptr);
25 ~CommandWidget() = default;
26
27signals:
32 void commandPressed(const QString &command);
33
38 void messagePressed(const QString &message);
39
40private:
41 QLineEdit *lineCommand = nullptr;
42 QLineEdit *lineMessage = nullptr;
43};
CommandWidget provides a widget to send commands or messages to the printer.
Definition commandwidget.h:21
~CommandWidget()=default
void commandPressed(const QString &command)
User has requested to send a command.
void messagePressed(const QString &message)
User has requested to send a message.