Commit f45eacf9 authored by Mike Kremer's avatar Mike Kremer

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,
fileMenuEnd_(0),
stereoButton_(0),
moveButton_(0),
lightButton_(0),
pickButton_(0),
questionButton_(0),
globalDrawMenu_(0),
......@@ -357,20 +356,7 @@ CoreWidget( QVector<ViewMode*>& _viewModes,
viewerToolbar_->addWidget( moveButton_ )->setText(tr("Move"));
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_->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"pick.png") );
pickButton_->setMinimumSize( 16, 16 );
......
......@@ -591,7 +591,6 @@ public:
QToolButton* stereoButton_;
QToolButton* moveButton_;
QToolButton* lightButton_;
QToolButton* pickButton_;
QToolButton* questionButton_;
......@@ -1060,7 +1059,6 @@ public:
*/
void setExamineMode() { setActionMode(Viewer::ExamineMode ); };
void setPickingMode() { setActionMode(Viewer::PickingMode ); };
void setLightMode() { setActionMode(Viewer::LightMode ); };
void setQuestionMode(){ setActionMode(Viewer::QuestionMode ); };
void setActionMode(const Viewer::ActionMode _am);
......
......@@ -69,7 +69,6 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
// update Buttons
moveButton_->setDown(false);
lightButton_->setDown(false);
pickButton_->setDown(false);
questionButton_->setDown(false);
......@@ -79,7 +78,6 @@ void CoreWidget::setActionMode(const Viewer::ActionMode _am){
moveButton_->setDown(true);
break;
case Viewer::LightMode:
lightButton_->setDown(true);
break;
case Viewer::PickingMode:
pickButton_->setDown(true);
......
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