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

Popup Menu for wheels

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5923 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 9b790fd4
......@@ -1144,6 +1144,10 @@ glViewer::createWidgets(QStatusBar* _sb)
glBaseLayout_->addWheelY(wheelY);
glBaseLayout_->addWheelZ(wheelZ);
connect(wheelX_,SIGNAL(hideWheel()),this,SLOT(slotHideWheels()));
connect(wheelY_,SIGNAL(hideWheel()),this,SLOT(slotHideWheels()));
connect(wheelZ_,SIGNAL(hideWheel()),this,SLOT(slotHideWheels()));
setLayout(glBaseLayout_);
}
......@@ -1830,5 +1834,21 @@ void glViewer::snapshot()
}
void glViewer::slotHideWheels() {
wheelX_->hide();
wheelY_->hide();
wheelZ_->hide();
}
void glViewer::slotShowWheels() {
wheelX_->show();
wheelY_->show();
wheelZ_->show();
}
bool glViewer::wheelsVisible() {
}
//=============================================================================
//=============================================================================
......@@ -531,12 +531,7 @@ private:
// Base graphics widget layout
QtGLViewerLayout* glBaseLayout_;
// rotate around x-axis
ACG::QtWidgets::QtWheel* wheelX_;
// rotate around y-axis
ACG::QtWidgets::QtWheel* wheelY_;
// translate along z-axis
ACG::QtWidgets::QtWheel* wheelZ_;
// vector of current draw mode actions
std::vector< QAction * > drawMenuActions_;
......@@ -544,6 +539,29 @@ private:
// Used to calculate the time passed between redraws
QTime redrawTime_;
//===========================================================================
/** @name Wheels
* @{ */
//===========================================================================
public:
bool wheelsVisible();
public slots:
void slotShowWheels();
void slotHideWheels();
private:
// rotate around x-axis
ACG::QtWidgets::QtWheel* wheelX_;
// rotate around y-axis
ACG::QtWidgets::QtWheel* wheelY_;
// translate along z-axis
ACG::QtWidgets::QtWheel* wheelZ_;
/** @} */
//===========================================================================
/** @name view handling
* @{ */
......@@ -551,6 +569,8 @@ private:
signals:
void viewUpdated();
/** @} */
//===========================================================================
/** @name Stereo
* @{ */
......
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