aboutsummaryrefslogtreecommitdiff
path: root/recipes-demo/de10-nano-qt-usb-gadget-app/files/dialog.h
blob: fc8a0dd580a1655150c5953351486e4038f660cd (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
#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

private slots:
    void on_pushButton_Exit_clicked();

    void on_pushButton_Apply_clicked();


    void on_pushButton_Current_clicked();

private:
    Ui::Dialog *ui;

    bool GadgetEnable(bool bEnable);
    bool QueryCurrentSetting(bool *bEnable, const bool bShowError=true);

};

#endif // DIALOG_H