add trigger support
This commit is contained in:
parent
bccee9bd36
commit
c11630e50a
5 changed files with 180 additions and 8 deletions
19
mainwindow.h
19
mainwindow.h
|
|
@ -1,3 +1,5 @@
|
|||
|
||||
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
|
|
@ -5,6 +7,7 @@
|
|||
#include <memory>
|
||||
|
||||
#include "channelwidget.h"
|
||||
#include "triggerwidget.h"
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
|
|
@ -13,19 +16,21 @@ class MainWindow;
|
|||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
std::vector<std::shared_ptr<ChannelWidget>> channels;
|
||||
Ui::MainWindow *ui;
|
||||
Q_OBJECT
|
||||
std::vector<std::shared_ptr<ChannelWidget>> channels;
|
||||
std::vector<std::shared_ptr<TriggerWidget>> triggers;
|
||||
Ui::MainWindow *ui;
|
||||
|
||||
signals:
|
||||
void channelStateChanged(uint16_t device, uint16_t channel);
|
||||
void channelStateChanged(uint16_t device, uint16_t channel);
|
||||
|
||||
public:
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
explicit MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private:
|
||||
void enumerateDevices();
|
||||
void enumerateDevices();
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue