mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
These are all design documents that I thought I had lost. It's may make me cringe, but it's still cool to use it to see how far I've come.
46 lines
861 B
C++
46 lines
861 B
C++
#ifndef DIALOG_H
|
|
#define DIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
namespace Ui {
|
|
class Dialog;
|
|
}
|
|
class QTimer;
|
|
class QextSerialPort;
|
|
class QextSerialEnumerator;
|
|
|
|
class Dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit Dialog(QWidget *parent = 0);
|
|
~Dialog();
|
|
|
|
protected:
|
|
void changeEvent(QEvent *e);
|
|
|
|
private Q_SLOTS:
|
|
void onPortNameChanged(const QString &name);
|
|
void onBaudRateChanged(int idx);
|
|
void onParityChanged(int idx);
|
|
void onDataBitsChanged(int idx);
|
|
void onStopBitsChanged(int idx);
|
|
void onQueryModeChanged(int idx);
|
|
void onTimeoutChanged(int val);
|
|
void onOpenCloseButtonClicked();
|
|
void onSendButtonClicked();
|
|
void onReadyRead();
|
|
|
|
void onPortAddedOrRemoved();
|
|
|
|
private:
|
|
Ui::Dialog *ui;
|
|
QTimer *timer;
|
|
QextSerialPort *port;
|
|
QextSerialEnumerator *enumerator;
|
|
};
|
|
|
|
#endif // DIALOG_H
|