Commit f45eacf9 authored by Mike Kremer's avatar Mike Kremer
Browse files

Removed light mode button from core widget since this is now handled by type light plugin.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9803 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9731cd87
...@@ -97,7 +97,6 @@ CoreWidget( QVector<ViewMode*>& _viewModes, ...@@ -97,7 +97,6 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
fileMenuEnd_(0), fileMenuEnd_(0),
stereoButton_(0), stereoButton_(0),
moveButton_(0), moveButton_(0),
lightButton_(0),
pickButton_(0), pickButton_(0),
questionButton_(0), questionButton_(0),
globalDrawMenu_(0), globalDrawMenu_(0),
...@@ -358,19 +357,6 @@ CoreWidget( QVector<ViewMode*>& _viewModes, ...@@ -358,19 +357,6 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
moveButton_->setDown(true); moveButton_->setDown(true);
lightButton_ = new QToolButton( viewerToolbar_ );
lightButton_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"light-mode.png") );
lightButton_->setMinimumSize( 16, 16 );
lightButton_->setMaximumSize( 32, 32 );
lightButton_->setToolTip(tr("Switch to <b>light</b> mode."));
lightButton_->setWhatsThis(tr(
"Switch to <b>light</b> mode.<br>"
"Rotate lights using left mouse button."));
connect( lightButton_,SIGNAL( clicked() ), this, SLOT( setLightMode() ) );
viewerToolbar_->addWidget( lightButton_)->setText(tr("Light"));
pickButton_ = new QToolButton( viewerToolbar_ ); pickButton_ = new QToolButton( viewerToolbar_ );
pickButton_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"pick.png") ); pickButton_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"pick.png") );
pickButton_->setMinimumSize( 16, 16 ); pickButton_->setMinimumSize( 16, 16 );
......
...@@ -591,7 +591,6 @@ public: ...@@ -591,7 +591,6 @@ public:
QToolButton* stereoButton_; QToolButton* stereoButton_;
QToolButton* moveButton_; QToolButton* moveButton_;
QToolButton* lightButton_;
QToolButton* pickButton_; QToolButton* pickButton_;
QToolButton* questionButton_; QToolButton* questionButton_;
...@@ -1060,7 +1059,6 @@ public: ...@@ -1060,7 +1059,6 @@ public:
*/ */
void setExamineMode() { setActionMode(Viewer::ExamineMode ); }; void setExamineMode() { setActionMode(Viewer::ExamineMode ); };
void setPickingMode() { setActionMode(Viewer::PickingMode ); }; void setPickingMode() { setActionMode(Viewer::PickingMode ); };
void setLightMode() { setActionMode(Viewer::LightMode ); };
void setQuestionMode(){ setActionMode(Viewer::QuestionMode ); }; void setQuestionMode(){ setActionMode(Viewer::QuestionMode ); };
void setActionMode(const Viewer::ActionMode _am); void setActionMode(const Viewer::ActionMode _am);
......
...@@ -69,7 +69,6 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){ ...@@ -69,7 +69,6 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
// update Buttons // update Buttons
moveButton_->setDown(false); moveButton_->setDown(false);
lightButton_->setDown(false);
pickButton_->setDown(false); pickButton_->setDown(false);
questionButton_->setDown(false); questionButton_->setDown(false);
...@@ -79,7 +78,6 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){ ...@@ -79,7 +78,6 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
moveButton_->setDown(true); moveButton_->setDown(true);
break; break;
case Viewer::LightMode: case Viewer::LightMode:
lightButton_->setDown(true);
break; break;
case Viewer::PickingMode: case Viewer::PickingMode:
pickButton_->setDown(true); pickButton_->setDown(true);
......
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