Commit cb5913dc authored by Jan Möbius's avatar Jan Möbius

Added render object widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16251 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 43534f41
......@@ -241,6 +241,10 @@ void CoreWidget::updatePopupMenuCoordsysNode(QMenu* _menu , const int /*_part*/
connect(showRendererDialog,SIGNAL(triggered()),this,SLOT(slotShowRenderManager()));
rendererMenu->addAction(showRendererDialog);
QAction* showRendererObjectWidget = new QAction(tr("Show render objects"),this);
connect(showRendererObjectWidget,SIGNAL(triggered()),this,SLOT(slotShowRenderObjectWidget()));
rendererMenu->addAction(showRendererObjectWidget);
rendererMenu->addSeparator();
for ( unsigned int i = 0 ; i < renderManager().available() ; ++i) {
......
......@@ -182,6 +182,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
helpWidget_(0),
postProcessorDialog_(0),
rendererDialog_(0),
rendererObjectWidget_(0),
stereoSettingsWidget_(0),
aboutWidget_(0),
optionsWidget_(0),
......
......@@ -96,6 +96,7 @@
#include <OpenFlipper/widgets/stereoSettingsWidget/stereoSettingsWidget.hh>
#include <OpenFlipper/widgets/postProcessorWidget/postProcessorWidget.hh>
#include <OpenFlipper/widgets/rendererWidget/rendererWidget.hh>
#include <OpenFlipper/widgets/rendererWidget/rendererObjectWidget.hh>
#include <OpenFlipper/Core/PluginInfo.hh>
......@@ -1103,10 +1104,15 @@ public:
public slots:
/// shows the widget for the rendermanager
void slotShowRenderManager();
/// Shows the widget containing the current render objects
void slotShowRenderObjectWidget();
private:
RendererDialog* rendererDialog_;
RendererDialog* rendererDialog_;
RendererObjectWidget* rendererObjectWidget_;
/** @} */
......
......@@ -68,4 +68,17 @@ void CoreWidget::slotShowRenderManager() {
}
void CoreWidget::slotShowRenderObjectWidget() {
if ( OpenFlipper::Options::nogui() )
return;
if ( ! rendererObjectWidget_ ) {
rendererObjectWidget_ = new RendererObjectWidget();
}
rendererObjectWidget_->show();
}
//=============================================================================
Markdown is supported
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