diff options
Diffstat (limited to 'recipes-demo/de10-nano-qt-usb-gadget-app/files/dialog.h')
-rw-r--r-- | recipes-demo/de10-nano-qt-usb-gadget-app/files/dialog.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-demo/de10-nano-qt-usb-gadget-app/files/dialog.h b/recipes-demo/de10-nano-qt-usb-gadget-app/files/dialog.h new file mode 100644 index 0000000..fc8a0dd --- /dev/null +++ b/recipes-demo/de10-nano-qt-usb-gadget-app/files/dialog.h @@ -0,0 +1,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 |