summaryrefslogtreecommitdiff
path: root/tests/guiapp/maindialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/guiapp/maindialog.h')
-rw-r--r--tests/guiapp/maindialog.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/guiapp/maindialog.h b/tests/guiapp/maindialog.h
new file mode 100644
index 0000000..b2cb779
--- /dev/null
+++ b/tests/guiapp/maindialog.h
@@ -0,0 +1,51 @@
+#ifndef MAINDIALOG_H
+#define MAINDIALOG_H
+
+#include <QtGui/QDialog>
+
+namespace Ui {
+class MainDialog;
+}
+
+class SerialPort;
+class OptionsDialog;
+class TraceDialog;
+class QTimer;
+
+class MainDialog : public QDialog
+{
+ Q_OBJECT
+public:
+ explicit MainDialog(QWidget *parent = 0);
+ ~MainDialog();
+
+protected:
+ void changeEvent(QEvent *e);
+
+private slots:
+ void procShowPorts();
+ void procItemPortChanged(int idx);
+
+ void procControlButtonClick();
+ void procOptionsButtonClick();
+ void procIOButtonClick();
+ void procRtsButtonClick();
+ void procDtrButtonClick();
+
+ void procUpdateLines();
+
+private:
+ Ui::MainDialog *ui;
+ OptionsDialog *m_optionsDialog;
+ TraceDialog *m_traceDialog;
+ SerialPort *m_port;
+ QTimer *m_timer;
+
+ bool m_rts;
+ bool m_dtr;
+
+ void fillOpenModeComboBox();
+
+};
+
+#endif // MAINDIALOG_H