1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef DIALOG_H
- #define DIALOG_H
-
- #include <QDialog>
-
- namespace Ui {
- class Dialog;
- }
- class QTimer;
- class QextSerialPort;
-
- 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();
-
- private:
- Ui::Dialog *ui;
- QTimer *timer;
- QextSerialPort *port;
- };
-
- #endif // DIALOG_H
|