50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
#ifndef GTL_GUI_CONFIG_HARDWARE_DIALOG_H
|
|
#define GTL_GUI_CONFIG_HARDWARE_DIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "hw/gtl_hw.h"
|
|
|
|
#include "gui/ui_gtl_gui_config_hardware_dialog.h"
|
|
#include "gui/gui_global.h"
|
|
|
|
#include "gui/config/gtl_gui_config_hw_widget.h"
|
|
|
|
namespace gtl
|
|
{
|
|
namespace gui
|
|
{
|
|
namespace config
|
|
{
|
|
class GTL_GUI_EXPORT hardware_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit hardware_dialog(QString plugins_path, QWidget *parent = nullptr);
|
|
~hardware_dialog();
|
|
|
|
QString id() const;
|
|
qreal rate() const;
|
|
QString type() const;
|
|
|
|
hw::device* create_device();
|
|
hw::device* create_device(QString type);
|
|
|
|
int exec(QString type = "");
|
|
|
|
private:
|
|
Ui::config_hardware_dialog _ui;
|
|
|
|
gtl::hw::hw _hw;
|
|
|
|
private:
|
|
int get_widget_idex(QString type);
|
|
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif // GTL_GUI_CONFIG_HARDWARE_DIALOG_H
|