GUI M8d
This commit is contained in:
parent
e649dea9c1
commit
a07f94c93d
10 changed files with 718 additions and 25 deletions
|
|
@ -69,6 +69,19 @@ public:
|
|||
|
||||
uint32_t findPwNodeIdByName(const std::string &name) const;
|
||||
|
||||
struct NodeVolumeState {
|
||||
float volume = 1.0f;
|
||||
bool mute = false;
|
||||
};
|
||||
|
||||
void setNodeVolumeState(QtNodes::NodeId nodeId, const NodeVolumeState &state);
|
||||
NodeVolumeState nodeVolumeState(QtNodes::NodeId nodeId) const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void nodeVolumeChanged(QtNodes::NodeId nodeId, NodeVolumeState previous,
|
||||
NodeVolumeState current);
|
||||
|
||||
public:
|
||||
struct ViewState {
|
||||
double scale;
|
||||
double centerX;
|
||||
|
|
@ -125,4 +138,7 @@ private:
|
|||
std::unordered_map<std::string, QPointF> m_savedPositions;
|
||||
std::vector<PendingGhostConnection> m_pendingGhostConnections;
|
||||
ViewState m_savedViewState{};
|
||||
|
||||
std::unordered_map<QtNodes::NodeId, NodeVolumeState> m_volumeStates;
|
||||
std::unordered_map<QtNodes::NodeId, QWidget *> m_volumeWidgets;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue