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

Debuggin code for tracing bug

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11552 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 84381653
......@@ -61,7 +61,9 @@
//-----------------------------------------------------------------------------
void CoreWidget::setActionMode(const Viewer::ActionMode _am){
std::cerr << "Switching action mode 1 " << std::endl;
if (_am != actionMode_) {
std::cerr << "Switching action mode 2 " << std::endl;
lastActionMode_ = actionMode_;
actionMode_ = _am;
......@@ -72,6 +74,7 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
pickButton_->setDown(false);
questionButton_->setDown(false);
std::cerr << "Switching action mode 3 " << std::endl;
switch (_am)
{
case Viewer::ExamineMode:
......@@ -87,6 +90,7 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
break;
}
std::cerr << "Switching action mode 4 " << std::endl;
// update cursor
switch ( _am )
{
......@@ -107,10 +111,14 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
break;
}
std::cerr << "Switching action mode 5 " << std::endl;
//update Viewers
for ( unsigned int i = 0 ; i < OpenFlipper::Options::examinerWidgets() ; ++i ) {
std::cerr << "Configuring viewer " << i << std::endl;
examiner_widgets_[i]->sceneGraph( PluginFunctions::getSceneGraphRootNode() );
examiner_widgets_[i]->trackMouse(false);
......@@ -135,6 +143,7 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
break;
}
}
std::cerr << "Switching action mode 6 " << std::endl;
//emit pickmodeChanged with either the name of the current pickmode or an empty string
if( pickingMode() )
......@@ -246,6 +255,7 @@ void CoreWidget::hidePopupMenus()
void CoreWidget::pickMode( int _id )
{
std::cerr << "Setting pick mode" << std::endl;
if (_id < (int) pick_modes_.size() )
{
pick_mode_idx_ = _id;
......
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