void SceneWidget::prepareContextMenu(QMenu* menu) { menu->addAction("Open Point Cloud", this, SLOT(slotOpenPointCloud())); //QMenu* scene_widget_menu = menu->addMenu("Scene Widget"); //menu->addMenu(scene_widget_menu); OSGViewerWidget::prepareContextMenu(menu); return; }
void pcl::modeler::MainWindow::connectFileMenuActions() { connect(this->ui_->actionOpenPointCloud, SIGNAL(triggered()), this, SLOT(slotOpenPointCloud())); connect(this->ui_->actionImportPointCloud, SIGNAL(triggered()), this, SLOT(slotImportPointCloud())); connect(this->ui_->actionSavePointCloud, SIGNAL(triggered()), this, SLOT(slotSavePointCloud())); connect(this->ui_->actionClosePointCloud, SIGNAL(triggered()), this, SLOT(slotClosePointCloud())); createRecentPointCloudActions(); connect(this->ui_->actionOpenProject, SIGNAL(triggered()), this, SLOT(slotOpenProject())); connect(this->ui_->actionSaveProject, SIGNAL(triggered()), this, SLOT(slotSaveProject())); connect(this->ui_->actionCloseProject, SIGNAL(triggered()), this, SLOT(slotCloseProject())); createRecentProjectActions(); connect(this->ui_->actionExit, SIGNAL(triggered()), this, SLOT(slotExit())); }