mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Added "Window->Default views" action
This commit is contained in:
@@ -161,6 +161,7 @@ private slots:
|
||||
void downloadPoseGraph();
|
||||
void clearTheCache();
|
||||
void openPreferences();
|
||||
void setDefaultViews();
|
||||
void selectScreenCaptureFormat(bool checked);
|
||||
void takeScreenshot();
|
||||
void updateElapsedTime();
|
||||
|
||||
@@ -306,6 +306,7 @@ MainWindow::MainWindow(PreferencesDialog * prefDialog, QWidget * parent) :
|
||||
connect(_ui->actionDownload_all_clouds, SIGNAL(triggered()), this , SLOT(downloadAllClouds()));
|
||||
connect(_ui->actionDownload_graph, SIGNAL(triggered()), this , SLOT(downloadPoseGraph()));
|
||||
connect(_ui->menuEdit, SIGNAL(aboutToShow()), this, SLOT(updateEditMenu()));
|
||||
connect(_ui->actionDefault_views, SIGNAL(triggered(bool)), this, SLOT(setDefaultViews()));
|
||||
connect(_ui->actionAuto_screen_capture, SIGNAL(triggered(bool)), this, SLOT(selectScreenCaptureFormat(bool)));
|
||||
connect(_ui->actionScreenshot, SIGNAL(triggered()), this, SLOT(takeScreenshot()));
|
||||
connect(_ui->action16_9, SIGNAL(triggered()), this, SLOT(setAspectRatio16_9()));
|
||||
@@ -4093,6 +4094,23 @@ void MainWindow::openPreferences()
|
||||
_preferencesDialog->exec();
|
||||
}
|
||||
|
||||
void MainWindow::setDefaultViews()
|
||||
{
|
||||
_ui->dockWidget_posterior->setVisible(false);
|
||||
_ui->dockWidget_likelihood->setVisible(false);
|
||||
_ui->dockWidget_rawlikelihood->setVisible(false);
|
||||
_ui->dockWidget_statsV2->setVisible(false);
|
||||
_ui->dockWidget_console->setVisible(false);
|
||||
_ui->dockWidget_loopClosureViewer->setVisible(false);
|
||||
_ui->dockWidget_mapVisibility->setVisible(false);
|
||||
_ui->dockWidget_graphViewer->setVisible(false);
|
||||
_ui->dockWidget_odometry->setVisible(true);
|
||||
_ui->dockWidget_cloudViewer->setVisible(true);
|
||||
_ui->dockWidget_imageView->setVisible(true);
|
||||
_ui->toolBar->setVisible(_state != kMonitoring && _state != kMonitoringPaused);
|
||||
_ui->toolBar_2->setVisible(true);
|
||||
}
|
||||
|
||||
void MainWindow::selectScreenCaptureFormat(bool checked)
|
||||
{
|
||||
if(checked)
|
||||
|
||||
@@ -212,6 +212,7 @@
|
||||
<addaction name="action240p"/>
|
||||
</widget>
|
||||
<addaction name="menuShow_view"/>
|
||||
<addaction name="actionDefault_views"/>
|
||||
<addaction name="actionScreenshot"/>
|
||||
<addaction name="actionAuto_screen_capture"/>
|
||||
<addaction name="menuAspect_ratio_2"/>
|
||||
@@ -1220,6 +1221,11 @@
|
||||
<string>Cancel goal</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDefault_views">
|
||||
<property name="text">
|
||||
<string>Default views</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
||||
Reference in New Issue
Block a user