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

Multi View updates to Core widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4300 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 898a7a30
...@@ -975,7 +975,7 @@ void Core::snapshot( unsigned int _viewerId ){ ...@@ -975,7 +975,7 @@ void Core::snapshot( unsigned int _viewerId ){
void Core::resizeViewer(int _width, int _height ){ void Core::resizeViewer(int _width, int _height ){
if ( OpenFlipper::Options::gui() ){ if ( OpenFlipper::Options::gui() ){
//+40 / +20 corresponds to the bottom and right scrollbar //+40 / +20 corresponds to the bottom and right scrollbar
coreWidget_->examiner_widget_->resize(_width+40, _height+20); coreWidget_->examiner_widgets_[0]->resize(_width+40, _height+20);
} }
} }
......
...@@ -512,7 +512,7 @@ void Core::loadPlugin(QString filename, bool silent){ ...@@ -512,7 +512,7 @@ void Core::loadPlugin(QString filename, bool silent){
if ( globalAccessPlugin && OpenFlipper::Options::gui() ) { if ( globalAccessPlugin && OpenFlipper::Options::gui() ) {
supported = supported + "!!GLOBAL ACCESS!! "; supported = supported + "!!GLOBAL ACCESS!! ";
globalAccessPlugin->set_examiner( coreWidget_->examiner_widget_); globalAccessPlugin->set_examiner( coreWidget_->examiner_widgets_[0] );
} }
...@@ -697,7 +697,7 @@ void Core::loadPlugin(QString filename, bool silent){ ...@@ -697,7 +697,7 @@ void Core::loadPlugin(QString filename, bool silent){
supported = supported + "Picking "; supported = supported + "Picking ";
if ( checkSlot( plugin , "slotPickModeChanged(const std::string&)" ) ) if ( checkSlot( plugin , "slotPickModeChanged(const std::string&)" ) )
connect(coreWidget_->examiner_widget_,SIGNAL(signalPickModeChanged (const std::string &)), connect(coreWidget_->examiner_widgets_[0],SIGNAL(signalPickModeChanged (const std::string &)),
plugin,SLOT(slotPickModeChanged( const std::string &))); plugin,SLOT(slotPickModeChanged( const std::string &)));
if ( checkSignal(plugin,"addPickMode(const std::string)") ) if ( checkSignal(plugin,"addPickMode(const std::string)") )
...@@ -707,13 +707,17 @@ void Core::loadPlugin(QString filename, bool silent){ ...@@ -707,13 +707,17 @@ void Core::loadPlugin(QString filename, bool silent){
if ( checkSignal(plugin,"addHiddenPickMode(const std::string)") ) if ( checkSignal(plugin,"addHiddenPickMode(const std::string)") )
connect(plugin,SIGNAL(addHiddenPickMode( const std::string )), connect(plugin,SIGNAL(addHiddenPickMode( const std::string )),
this,SLOT(slotAddHiddenPickMode( const std::string )),Qt::DirectConnection); this,SLOT(slotAddHiddenPickMode( const std::string )),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeCursor(const std::string,QCursor)") ) if ( checkSignal(plugin,"setPickModeCursor(const std::string,QCursor)") )
connect(plugin,SIGNAL(setPickModeCursor( const std::string ,QCursor)), for ( uint i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
coreWidget_->examiner_widget_,SLOT(setPickModeCursor( const std::string ,QCursor)),Qt::DirectConnection); connect(plugin,SIGNAL(setPickModeCursor( const std::string ,QCursor)),
coreWidget_->examiner_widgets_[i],SLOT(setPickModeCursor( const std::string ,QCursor)),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeMouseTracking(const std::string,bool)") ) if ( checkSignal(plugin,"setPickModeMouseTracking(const std::string,bool)") )
connect(plugin,SIGNAL(setPickModeMouseTracking( const std::string ,bool)), for ( uint i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
coreWidget_->examiner_widget_,SLOT(setPickModeMouseTracking( const std::string ,bool)),Qt::DirectConnection); connect(plugin,SIGNAL(setPickModeMouseTracking( const std::string ,bool)),
coreWidget_->examiner_widgets_[i],SLOT(setPickModeMouseTracking( const std::string ,bool)),Qt::DirectConnection);
} }
//Check if the plugin supports INI-Interface //Check if the plugin supports INI-Interface
......
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