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

Added renderer dialog

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16244 383ad7c9-94d9-4d36-a494-682f7c89f535
parent aad8c79d
......@@ -1990,6 +1990,9 @@ void Core::loadPlugin(const QString& _filename,const bool _silent, QString& _lic
// Retrieve and store renderer information
if ( rendererInfo != 0) {
rendererInfo->plugin = renderPlugin;
rendererInfo->name = basePlugin->name();
rendererInfo->version = basePlugin->version();
rendererInfo->description = basePlugin->description();
ACG::SceneGraph::DrawModes::DrawMode supportedModes;
......
......@@ -61,6 +61,7 @@ set (directories
../widgets/snapshotDialog
../widgets/stereoSettingsWidget
../widgets/postProcessorWidget
../widgets/rendererWidget
)
# collect all header,source and ui files
......
......@@ -69,6 +69,12 @@ class DLLEXPORT RendererInfo{
/// Name of the plugin ( requested from the plugin on load)
QString name;
/// Version of the plugin ( requested from the plugin on load)
QString version;
/// Description of the plugin ( requested from the plugin on load)
QString description;
/// Supported DrawModes
ACG::SceneGraph::DrawModes::DrawMode modes;
......
......@@ -234,9 +234,15 @@ void CoreWidget::updatePopupMenuCoordsysNode(QMenu* _menu , const int /*_part*/
// Get the options action for the currently active renderer
if( renderManager()[ renderManager().activeId(PluginFunctions::activeExaminer() )]->optionsAction != 0 ) {
rendererMenu->addAction(renderManager()[ renderManager().activeId(PluginFunctions::activeExaminer() ) ]->optionsAction );
rendererMenu->addSeparator();
}
QAction* showRendererDialog = new QAction(tr("Show renderer manager"),this);
connect(showRendererDialog,SIGNAL(triggered()),this,SLOT(slotShowRenderManager()));
rendererMenu->addAction(showRendererDialog);
rendererMenu->addSeparator();
for ( unsigned int i = 0 ; i < renderManager().available() ; ++i) {
// Add a new Action with the renderer name
......@@ -280,10 +286,9 @@ void CoreWidget::updatePopupMenuCoordsysNode(QMenu* _menu , const int /*_part*/
}
QAction* showPostProcessorDialog = new QAction(tr("Show post processor manager"),this);
connect(showPostProcessorDialog,SIGNAL(triggered()),this,SLOT(slotShowPostProcessorManager()));
postProcessorMenu->addAction(showPostProcessorDialog);
postProcessorMenu->addSeparator();
......
......@@ -181,6 +181,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
stackMenu_(0),
helpWidget_(0),
postProcessorDialog_(0),
rendererDialog_(0),
stereoSettingsWidget_(0),
aboutWidget_(0),
optionsWidget_(0),
......
......@@ -95,6 +95,7 @@
#include <OpenFlipper/widgets/helpWidget/helpWidget.hh>
#include <OpenFlipper/widgets/stereoSettingsWidget/stereoSettingsWidget.hh>
#include <OpenFlipper/widgets/postProcessorWidget/postProcessorWidget.hh>
#include <OpenFlipper/widgets/rendererWidget/rendererWidget.hh>
#include <OpenFlipper/Core/PluginInfo.hh>
......@@ -1094,6 +1095,21 @@ public:
/** @} */
//===========================================================================
/** @name Renderer dialog
* @{ */
//===========================================================================
public slots:
void slotShowRenderManager();
private:
RendererDialog* rendererDialog_;
/** @} */
//===========================================================================
/** @name Stereo View Mode
* @{ */
......
......@@ -61,7 +61,6 @@ void CoreWidget::slotShowPostProcessorManager() {
return;
if ( ! postProcessorDialog_ ) {
std::cerr << "Create" << std::endl;
postProcessorDialog_ = new PostProcessorDialog();
}
......
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
* www.openflipper.org *
* *
*--------------------------------------------------------------------------- *
* This file is part of OpenFlipper. *
* *
* OpenFlipper is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as *
* published by the Free Software Foundation, either version 3 of *
* the License, or (at your option) any later version with the *
* following exceptions: *
* *
* If other files instantiate templates or use macros *
* or inline functions from this file, or you compile this file and *
* link it with other files to produce an executable, this file does *
* not by itself cause the resulting executable to be covered by the *
* GNU Lesser General Public License. This exception does not however *
* invalidate any other reasons why the executable file might be *
* covered by the GNU Lesser General Public License. *
* *
* OpenFlipper is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU LesserGeneral Public *
* License along with OpenFlipper. If not, *
* see <http://www.gnu.org/licenses/>. *
* *
\*===========================================================================*/
/*===========================================================================*\
* *
* $Revision: 15753 $ *
* $LastChangedBy: moeller $ *
* $Date: 2012-11-02 16:46:03 +0100 (Fr, 02 Nov 2012) $ *
* *
\*===========================================================================*/
//=============================================================================
//
// CLASS Core - IMPLEMENTATION
//
//=============================================================================
//== INCLUDES =================================================================
#include "CoreWidget.hh"
//== IMPLEMENTATION ==========================================================
void CoreWidget::slotShowRenderManager() {
if ( OpenFlipper::Options::nogui() )
return;
if ( ! rendererDialog_ ) {
rendererDialog_ = new RendererDialog();
}
rendererDialog_->show();
}
//=============================================================================
......@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
<string>post processors</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
......
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