Commit 653e2af8 authored by Jan Möbius's avatar Jan Möbius
Browse files

Run without ui

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11419 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8792a102
......@@ -50,20 +50,23 @@ TypeCameraPlugin::TypeCameraPlugin() {
}
void TypeCameraPlugin::pluginsInitialized() {
contextMenu_ = new QMenu(tr("Rendering"));
QAction* lastAction;
if ( OpenFlipper::Options::gui() ){
contextMenu_ = new QMenu(tr("Rendering"));
lastAction = contextMenu_->addAction( tr("Show viewing frustum") );
lastAction->setCheckable(true);
lastAction->setChecked(false);
lastAction->setToolTip(tr("Visualize cameras viewing frustum."));
lastAction->setStatusTip( lastAction->toolTip() );
QAction* lastAction;
// Add context menu
emit addContextMenuItem(contextMenu_->menuAction(), DATA_CAMERA, CONTEXTOBJECTMENU);
lastAction = contextMenu_->addAction( tr("Show viewing frustum") );
lastAction->setCheckable(true);
lastAction->setChecked(false);
lastAction->setToolTip(tr("Visualize cameras viewing frustum."));
lastAction->setStatusTip( lastAction->toolTip() );
connect(contextMenu_, SIGNAL(triggered(QAction*)), this ,SLOT(contextMenuClicked(QAction*)));
// Add context menu
emit addContextMenuItem(contextMenu_->menuAction(), DATA_CAMERA, CONTEXTOBJECTMENU);
connect(contextMenu_, SIGNAL(triggered(QAction*)), this ,SLOT(contextMenuClicked(QAction*)));
}
}
void TypeCameraPlugin::slotUpdateContextMenuObject(int _objectId) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment