add actions for the receiver merge mode
This commit is contained in:
parent
4a1c50cdf1
commit
758740704c
|
@ -4,6 +4,7 @@
|
|||
#include "multiversemodel.h"
|
||||
#include "ui_multiverseview.h"
|
||||
#include "universeview.h"
|
||||
#include <QActionGroup>
|
||||
|
||||
/**
|
||||
* @brief MultiverseView::MultiverseView
|
||||
|
@ -21,9 +22,14 @@ MultiverseView::MultiverseView(QWidget *parent, QSacnNode *node)
|
|||
ui->actionUnsubscribe->setEnabled(false);
|
||||
ui->actionInspect->setEnabled(false);
|
||||
ui->actionDiscovery->setChecked(node->discoveryEnabled());
|
||||
ui->menubar->setNativeMenuBar(false);
|
||||
|
||||
sortProxy->setSourceModel(model);
|
||||
|
||||
auto mergeMode = new QActionGroup(this);
|
||||
mergeMode->addAction(ui->actionMergeModeHTP);
|
||||
mergeMode->addAction(ui->actionMergeModeLTP);
|
||||
|
||||
ui->multiverseView->setModel(sortProxy);
|
||||
ui->multiverseView->setSortingEnabled(true);
|
||||
ui->multiverseView->sortByColumn(MultiverseModel::Column::Universe,
|
||||
|
|
|
@ -58,9 +58,19 @@
|
|||
<property name="title">
|
||||
<string>Receiver</string>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuMerge_Mode">
|
||||
<property name="title">
|
||||
<string>Merge Mode</string>
|
||||
</property>
|
||||
<addaction name="actionMergeModeHTP"/>
|
||||
<addaction name="actionMergeModeLTP"/>
|
||||
</widget>
|
||||
<addaction name="actionSubscribe"/>
|
||||
<addaction name="actionUnsubscribe"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionDiscovery"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="menuMerge_Mode"/>
|
||||
<addaction name="actionReceiverHoldLastLook"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuSource">
|
||||
|
@ -108,7 +118,8 @@
|
|||
</widget>
|
||||
<action name="actionSubscribe">
|
||||
<property name="icon">
|
||||
<iconset theme="call-start"/>
|
||||
<iconset theme="call-start">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Subscribe</string>
|
||||
|
@ -125,7 +136,8 @@
|
|||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="call-stop"/>
|
||||
<iconset theme="call-stop">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Unsubscribe</string>
|
||||
|
@ -139,7 +151,8 @@
|
|||
</action>
|
||||
<action name="actionCreate">
|
||||
<property name="icon">
|
||||
<iconset theme="document-new"/>
|
||||
<iconset theme="document-new">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Create</string>
|
||||
|
@ -156,7 +169,8 @@
|
|||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="edit-delete"/>
|
||||
<iconset theme="edit-delete">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Terminate</string>
|
||||
|
@ -170,7 +184,8 @@
|
|||
</action>
|
||||
<action name="actionUACN">
|
||||
<property name="icon">
|
||||
<iconset theme="network-server"/>
|
||||
<iconset theme="network-server">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>User Assigned Component Name</string>
|
||||
|
@ -184,7 +199,8 @@
|
|||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="edit-find"/>
|
||||
<iconset theme="edit-find">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Inspect</string>
|
||||
|
@ -221,7 +237,7 @@
|
|||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>false</bool>
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
|
@ -284,6 +300,37 @@
|
|||
<string>Retain at least 1 inacitve source on this universe.</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMergeModeLTP">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>LTP</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Latest Takes Precedence</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMergeModeHTP">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>HTP</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Highest Takes Precedence</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
Loading…
Reference in New Issue