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 861B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 QextSerialEnumerator;
  10. class Dialog : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit Dialog(QWidget *parent = 0);
  15. ~Dialog();
  16. protected:
  17. void changeEvent(QEvent *e);
  18. private Q_SLOTS:
  19. void onPortNameChanged(const QString &name);
  20. void onBaudRateChanged(int idx);
  21. void onParityChanged(int idx);
  22. void onDataBitsChanged(int idx);
  23. void onStopBitsChanged(int idx);
  24. void onQueryModeChanged(int idx);
  25. void onTimeoutChanged(int val);
  26. void onOpenCloseButtonClicked();
  27. void onSendButtonClicked();
  28. void onReadyRead();
  29. void onPortAddedOrRemoved();
  30. private:
  31. Ui::Dialog *ui;
  32. QTimer *timer;
  33. QextSerialPort *port;
  34. QextSerialEnumerator *enumerator;
  35. };
  36. #endif // DIALOG_H