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

Viewmode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12712 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 04b819b3
......@@ -415,6 +415,37 @@ void SplatCloudRenderingControlPlugin::initializePlugin()
// connect events to slots
connect( defaultsWidgetCancelButton, SIGNAL( clicked() ), this, SLOT( slotDefaultsWidgetCancelButtonClicked() ) );
connect( defaultsWidgetApplyButton, SIGNAL( clicked() ), this, SLOT( slotDefaultsWidgetApplyButtonClicked() ) );
// ----------------------------------
// -------- create view mode --------
// ----------------------------------
// toolboxes
QStringList viewModeToolboxes;
viewModeToolboxes += "Data Control";
viewModeToolboxes += "SplatCloud Estimator";
viewModeToolboxes += "SplatCloud Rendering Control";
// toolbars
QStringList viewModeToolbars;
viewModeToolbars += "Main Toolbar";
viewModeToolbars += "Viewer Toolbar";
viewModeToolbars += "Color Toolbar";
viewModeToolbars += "Viewing Directions";
// context menus
QStringList viewModeContextMenus;
viewModeContextMenus += "DataControl->Material Properties";
viewModeContextMenus += "DataControl->Object";
viewModeContextMenus += "SplatCloudEstimatorPlugin->SplatCloud Estimator";
viewModeContextMenus += "SplatCloudRenderingControlPlugin->SplatCloud Rendering Control";
viewModeContextMenus += "ViewControl->Visualization";
// emit signals to add new viewmode
emit defineViewModeToolboxes ( "SplatCloud", viewModeToolboxes );
emit defineViewModeToolbars ( "SplatCloud", viewModeToolbars );
emit defineViewModeContextMenus( "SplatCloud", viewModeContextMenus );
emit defineViewModeIcon ( "SplatCloud", "SplatCloudType.png" );
}
......
......@@ -64,6 +64,7 @@
#include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/BasePlugin/ToolboxInterface.hh>
#include <OpenFlipper/BasePlugin/ContextMenuInterface.hh>
#include <OpenFlipper/BasePlugin/ViewModeInterface.hh>
#include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/common/Types.hh>
......@@ -72,12 +73,13 @@
//== CLASS DEFINITION ============================================
class SplatCloudRenderingControlPlugin : public QObject, BaseInterface, ToolboxInterface, ContextMenuInterface, LoggingInterface
class SplatCloudRenderingControlPlugin : public QObject, BaseInterface, ToolboxInterface, ContextMenuInterface, ViewModeInterface, LoggingInterface
{
Q_OBJECT
Q_INTERFACES( BaseInterface )
Q_INTERFACES( ToolboxInterface )
Q_INTERFACES( ContextMenuInterface )
Q_INTERFACES( ViewModeInterface )
Q_INTERFACES( LoggingInterface )
signals:
......@@ -91,6 +93,12 @@ signals:
//-- ContextMenu Interface--
void addContextMenuItem( QAction *_action, DataType _objectType, ContextMenuType _type );
//-- ViewMode Interface--
void defineViewModeToolboxes ( QString _mode, QStringList _usedWidgets );
void defineViewModeToolbars ( QString _mode, QStringList _usedToolbars );
void defineViewModeContextMenus( QString _mode, QStringList _usedContextMenus );
void defineViewModeIcon ( QString _mode, QString _iconName );
//-- Logging Interface --
void log( Logtype _type, QString _message );
void log( QString _message );
......
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