Basic scrollArea work, win32 sound controlpanel shortcut
This commit is contained in:
parent
40bee90610
commit
a373c706ac
12 changed files with 159 additions and 13 deletions
|
|
@ -18,6 +18,12 @@
|
|||
#include <QPushButton>
|
||||
#include <QCheckBox>
|
||||
#include <QTimer>
|
||||
#include <QScrollArea>
|
||||
#include <QSize>
|
||||
#include <QMenuBar>
|
||||
#include <QMenu>
|
||||
|
||||
//#include <QScrollBar>
|
||||
/*
|
||||
* #else
|
||||
* class QSlider;
|
||||
|
|
@ -142,6 +148,7 @@ private slots:
|
|||
|
||||
private:
|
||||
int row;
|
||||
const int sessionCol = 2;
|
||||
QCheckBox *muteButton = nullptr;
|
||||
QLabel *mainLabel = nullptr, *leftChannelLabel = nullptr, *rightChannelLabel = nullptr;
|
||||
QSlider *mainSlider = nullptr;
|
||||
|
|
@ -164,6 +171,38 @@ private:
|
|||
|
||||
};
|
||||
|
||||
class HeaderWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
HeaderWidget(QWidget *parent = nullptr);
|
||||
|
||||
|
||||
//~HeaderWidget();
|
||||
//void updateMainVolume(float newValue);
|
||||
//void updateVolume(uint32_t channel, float newValue);
|
||||
//void updateMute(bool muted);
|
||||
|
||||
//void populateEndpointWidget(EndpointHandler *eph);
|
||||
//void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
|
||||
|
||||
//public slots:
|
||||
|
||||
//protected:
|
||||
//void customEvent(QEvent* ev) override;
|
||||
|
||||
//private slots:
|
||||
//void addSessionWidget(CustomWidgetEvent<SessionHandler*>* ev);
|
||||
//void removeSessionWidget(CustomWidgetEvent<SessionHandler*>* ev);
|
||||
|
||||
private:
|
||||
QGridLayout *layout;
|
||||
QPushButton *about;
|
||||
#ifdef WIN32
|
||||
QPushButton *openCP;
|
||||
QPushButton *startup;
|
||||
#endif
|
||||
};
|
||||
|
||||
class MainWindow : public QMainWindow {
|
||||
Q_OBJECT
|
||||
|
|
@ -196,6 +235,10 @@ private:
|
|||
QAction *trayIconMenuQuit;
|
||||
QTimer *ewsUpdateTimer;
|
||||
static constexpr uint64_t ewsUpdateTimerFrequency = 500;
|
||||
|
||||
QScrollArea *scrollArea;
|
||||
HeaderWidget* hw;
|
||||
//QMenuBar *menuBar;
|
||||
//public slots:
|
||||
// void setEndpointHandlers(std::vector<EndpointHandler*> *ephs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue