From: Ondrej H. <tan...@us...> - 2003-11-16 18:35:35
|
Update of /cvsroot/planeshift/planeshift/src/common/paws In directory sc8-pr-cvs1:/tmp/cvs-serv7289/src/common/paws Modified Files: pawscrollbar.h Log Message: reversed mode for scrollbars (forgot to commit this) Index: pawscrollbar.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/paws/pawscrollbar.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pawscrollbar.h 16 Nov 2003 18:16:23 -0000 1.2 --- pawscrollbar.h 16 Nov 2003 18:34:59 -0000 1.3 *************** *** 48,56 **** virtual bool OnButtonReleased( int button, pawsWidget* widget ); ! /** Set the max value that this scroll bar should have. * @param value The max value that this bar can have. */ ! virtual void SetMaxValue( float value ); /** Set the current value that this scroll bar should have. --- 48,56 ---- virtual bool OnButtonReleased( int button, pawsWidget* widget ); ! /** Set the max value that this scroll bar should have. * @param value The max value that this bar can have. */ ! virtual void SetMaxValue( float value ); /** Set the current value that this scroll bar should have. *************** *** 73,76 **** --- 73,81 ---- virtual void SetHorizontal (bool value); + /** + * Sets if scrollbar should return reversed scroll value: left/top=maxValue, right/bottom=minValue + */ + virtual void SetReversed(bool reversed) { this->reversed = reversed; } + // Scroll bars should not be focused. virtual bool OnGainFocus( bool notifyParent = true ) {return false;} *************** *** 89,92 **** --- 94,98 ---- csTicks scrollTicks; bool mouseDown; + bool reversed; int lastButton; *************** *** 95,99 **** bool horizontal; - bool reversed; }; --- 101,104 ---- |