Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dialog.h 761B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef DIALOG_H
  2. #define DIALOG_H
  3. #include <QDialog>
  4. namespace Ui {
  5. class Dialog;
  6. }
  7. class QTimer;
  8. class QextSerialPort;
  9. class Dialog : public QDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit Dialog(QWidget *parent = 0);
  14. ~Dialog();
  15. protected:
  16. void changeEvent(QEvent *e);
  17. private Q_SLOTS:
  18. void onPortNameChanged(const QString &name);
  19. void onBaudRateChanged(int idx);
  20. void onParityChanged(int idx);
  21. void onDataBitsChanged(int idx);
  22. void onStopBitsChanged(int idx);
  23. void onQueryModeChanged(int idx);
  24. void onTimeoutChanged(int val);
  25. void onOpenCloseButtonClicked();
  26. void onSendButtonClicked();
  27. void onReadyRead();
  28. private:
  29. Ui::Dialog *ui;
  30. QTimer *timer;
  31. QextSerialPort *port;
  32. };
  33. #endif // DIALOG_H