]> Git trees. - libqmvoc.git/commitdiff
Add the slots for zooming and measuring
authorCarsten Niehaus <cniehaus@gmx.de>
Wed, 28 Jun 2006 16:38:26 +0000 (16:38 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Wed, 28 Jun 2006 16:38:26 +0000 (16:38 +0000)
svn path=/trunk/KDE/kdeedu/kalzium/src/kalziumglwidget.h; revision=555877

kalzium/kalziumglwidget.h

index f18f1ed1c573d28037a1ef8440f0311b6283a0f9..109c0295abae437b5482bbf5f6708ea6ffc18ea4 100644 (file)
@@ -183,7 +183,32 @@ class KalziumGLWidget : public QGLWidget
                 */
                void slotAtomsSelected( QList<OpenBabel::OBAtom*> 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
                 */