Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual void OglGui::Slider::KeyboardFunc ( INT  c,
INT  state 
) [inline, virtual]

Definition at line 278 of file Slider.h.

References OglGui::Window::KeyboardFunc(), mAutoDirection, mHorizontal, mIncrement, mMaxVal, mMinVal, mPageIncrement, mUpsideDown, mVal, and SetValue().

00279     {
00280         Window::KeyboardFunc(c, state);
00281 
00282         // Next 3 for test purposes, later to be removed
00283         if (c == 'a') mAutoDirection = !mAutoDirection;
00284         if (c == 'u') mUpsideDown = !mUpsideDown;
00285         if (c == 'h') mHorizontal = !mHorizontal;
00286 
00287         if (c == oglLEFT || c== oglRIGHT || c == oglUP || c == oglDOWN)
00288             SetValue(mVal+((c==oglLEFT||c==oglUP) ? -mIncrement : mIncrement));
00289         if (c == oglPAGEUP || c == oglPAGEDOWN)
00290             SetValue(mVal+((c==oglPAGEUP) ? -mPageIncrement : mPageIncrement));
00291         if (c == oglHOME || c == oglEND)
00292             SetValue((c==oglHOME) ? mMinVal : mMaxVal);
00293         /* RvB: I want to remove this one
00294         if (mSliderListener)
00295             mSliderListener->SliderKeyEvent(this,c,state,mSliderListenerData);
00296         */
00297     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:06:12 2010 for ImpalaSrc by  doxygen 1.5.1