From: Carsten Niehaus Date: Wed, 28 Jun 2006 16:38:26 +0000 (+0000) Subject: Add the slots for zooming and measuring X-Git-Tag: v3.80.3~103^2~36 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=12c3a182c175dd63dbb228a2e50531fe88117029;p=libqmvoc.git Add the slots for zooming and measuring svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.h; revision=555877 --- diff --git a/kalzium/kalziumglwidget.h b/kalzium/kalziumglwidget.h index f18f1ed..109c029 100644 --- a/kalzium/kalziumglwidget.h +++ b/kalzium/kalziumglwidget.h @@ -183,7 +183,32 @@ class KalziumGLWidget : public QGLWidget */ void slotAtomsSelected( QList atoms ); + /** + * Activates the zoommode if @p zoom is true + */ + void slotZoom( bool zoom ){ + m_inZoom = zoom; + if ( m_inZoom ) + m_inMeasure = false; + } + + /** + * Activates the measuremode if @p measure is true + */ + void slotMeasure( bool measure ){ + m_inMeasure = measure; + + if ( m_inMeasure ) + m_inZoom = false; + } + protected: + ///if true the widget is in zoommode + bool m_inZoom; + + ///if true the widget is in zoommode + bool m_inMeasure; + /** * This method initializes OpenGL. Automatically called by Qt */