From 12c3a182c175dd63dbb228a2e50531fe88117029 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Wed, 28 Jun 2006 16:38:26 +0000 Subject: [PATCH] Add the slots for zooming and measuring svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.h; revision=555877 --- kalzium/kalziumglwidget.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) 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 */ -- 2.47.3