Add Stream and Device menus to main window menu bar
Stream and Device related actions from the File menu has been moved under these new menus
This commit is contained in:
parent
22b8c405f7
commit
2ee19da15c
@ -119,8 +119,11 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
|
||||
setupUi(this);
|
||||
|
||||
menuFile->insertActions(menuFile->actions().at(3), portsWindow->actions());
|
||||
menuFile->insertActions(menuFile->actions().at(3),
|
||||
portsWindow->portActions());
|
||||
menuEdit->addActions(clipboardHelper->actions());
|
||||
menuStreams->addActions(portsWindow->streamActions());
|
||||
menuDevices->addActions(portsWindow->deviceActions());
|
||||
|
||||
statsDock->setWidget(statsWindow);
|
||||
addDockWidget(Qt::BottomDockWidgetArea, statsDock);
|
||||
|
@ -25,6 +25,7 @@
|
||||
<addaction name="actionOpenSession" />
|
||||
<addaction name="actionSaveSession" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="separator" />
|
||||
<addaction name="actionPreferences" />
|
||||
<addaction name="actionFileExit" />
|
||||
</widget>
|
||||
@ -45,6 +46,17 @@
|
||||
<string>&Edit</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuStreams" >
|
||||
<property name="title" >
|
||||
<string>&Streams</string>
|
||||
</property>
|
||||
<addaction name="actionTest" />
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuDevices" >
|
||||
<property name="title" >
|
||||
<string>&Devices</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuView" >
|
||||
<property name="title" >
|
||||
<string>&View</string>
|
||||
@ -54,6 +66,8 @@
|
||||
</widget>
|
||||
<addaction name="menuFile" />
|
||||
<addaction name="menuEdit" />
|
||||
<addaction name="menuStreams" />
|
||||
<addaction name="menuDevices" />
|
||||
<addaction name="menuView" />
|
||||
<addaction name="menuHelp" />
|
||||
</widget>
|
||||
|
@ -233,6 +233,21 @@ bool PortsWindow::saveSession(
|
||||
return true;
|
||||
}
|
||||
|
||||
QList<QAction*> PortsWindow::portActions()
|
||||
{
|
||||
return tvPortList->actions();
|
||||
}
|
||||
|
||||
QList<QAction*> PortsWindow::streamActions()
|
||||
{
|
||||
return streamsWidget->actions();
|
||||
}
|
||||
|
||||
QList<QAction*> PortsWindow::deviceActions()
|
||||
{
|
||||
return devicesWidget->actions();
|
||||
}
|
||||
|
||||
void PortsWindow::clearCurrentSelection()
|
||||
{
|
||||
tvPortList->selectionModel()->clearCurrentIndex();
|
||||
|
@ -50,6 +50,10 @@ public:
|
||||
QString &error,
|
||||
QProgressDialog *progress = NULL);
|
||||
|
||||
QList<QAction*> portActions();
|
||||
QList<QAction*> streamActions();
|
||||
QList<QAction*> deviceActions();
|
||||
|
||||
signals:
|
||||
void currentPortChanged(const QModelIndex ¤t,
|
||||
const QModelIndex &previous);
|
||||
|
Loading…
Reference in New Issue
Block a user