debug.h y endpointwidget
This commit is contained in:
parent
826373aee4
commit
b006896ccb
9 changed files with 121 additions and 30 deletions
|
|
@ -8,23 +8,48 @@
|
|||
#include <QLabel>
|
||||
#include <QSlider>
|
||||
#include <QGridLayout>
|
||||
//#include "global.h"
|
||||
#include "contclasses.h"
|
||||
//#include <Q>
|
||||
//#include <QWidgets>
|
||||
|
||||
|
||||
class EndpointWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
EndpointWidget(EndpointHandler* eph, QWidget *parent = nullptr);
|
||||
//void populateEndpointWidget(EndpointHandler *eph);
|
||||
//void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
|
||||
|
||||
private:
|
||||
QLabel *mainLabel = nullptr, *leftChannelLabel = nullptr, *rightChannelLabel = nullptr;
|
||||
QSlider *mainSlider = nullptr;
|
||||
QSlider *leftChannelSlider = nullptr;
|
||||
QSlider *rightChannelSlider = nullptr;
|
||||
QGridLayout *layout = nullptr;
|
||||
//std::vector<EndpointHandler*> *ephs;
|
||||
//std::vector<QSlider> *sliders;
|
||||
|
||||
//public slots:
|
||||
// void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
|
||||
|
||||
//signals:
|
||||
//void valueChanged(int value);
|
||||
|
||||
};
|
||||
|
||||
|
||||
class MainWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
//QWidget *centralWidget;
|
||||
|
||||
public:
|
||||
MainWindow(std::vector<EndpointHandler*> *ephs, QWidget *parent = nullptr);
|
||||
void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
|
||||
//void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
|
||||
|
||||
private:
|
||||
std::vector<EndpointHandler*> *ephs;
|
||||
std::vector<QSlider> *sliders;
|
||||
//std::vector<EndpointHandler*> *ephs;
|
||||
std::vector<EndpointWidget*> ews;
|
||||
QWidget *widget;
|
||||
QGridLayout *layout;
|
||||
//QLabel *pintas;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue