summaryrefslogtreecommitdiff
path: root/tests/guiapp/optionsdialog.h
blob: c4ac69de3c212132bb1f1e1bced5ea79c13e148f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H

#include <QtGui/QDialog>

namespace Ui {
class OptionsDialog;
}

class SerialPort;

class OptionsDialog : public QDialog
{
    Q_OBJECT
public:
    explicit OptionsDialog(SerialPort *port, QWidget *parent = 0);
    ~OptionsDialog();

protected:
    void showEvent(QShowEvent *e);

private slots:
    void procFillingOptions();
    void procApplyButtonClick();

private:
    Ui::OptionsDialog *ui;
    SerialPort *m_port;
    int m_rate;
    int m_data;
    int m_parity;
    int m_stop;
    int m_flow;
    int m_policy;

    void detectOptions();
};

#endif // OPTIONSDIALOG_H