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

Multi View updates to Core widget

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4300 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ae2ff16e
......@@ -975,7 +975,7 @@ void Core::snapshot( unsigned int _viewerId ){
void Core::resizeViewer(int _width, int _height ){
if ( OpenFlipper::Options::gui() ){
//+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){
if ( globalAccessPlugin && OpenFlipper::Options::gui() ) {
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){
supported = supported + "Picking ";
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 &)));
if ( checkSignal(plugin,"addPickMode(const std::string)") )
......@@ -707,13 +707,17 @@ void Core::loadPlugin(QString filename, bool silent){
if ( checkSignal(plugin,"addHiddenPickMode(const std::string)") )
connect(plugin,SIGNAL(addHiddenPickMode( const std::string )),
this,SLOT(slotAddHiddenPickMode( const std::string )),Qt::DirectConnection);
if ( checkSignal(plugin,"setPickModeCursor(const std::string,QCursor)") )
connect(plugin,SIGNAL(setPickModeCursor( const std::string ,QCursor)),
coreWidget_->examiner_widget_,SLOT(setPickModeCursor( const std::string ,QCursor)),Qt::DirectConnection);
for ( uint i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
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)") )
connect(plugin,SIGNAL(setPickModeMouseTracking( const std::string ,bool)),
coreWidget_->examiner_widget_,SLOT(setPickModeMouseTracking( const std::string ,bool)),Qt::DirectConnection);
for ( uint i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i )
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
......
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