[Plib-cvs] plib/src/puAux puAux.h,1.4,1.5 puAuxLargeInput.cxx,1.4,1.5
Brought to you by:
sjbaker
From: John F. F. <fa...@us...> - 2005-05-06 18:54:21
|
Update of /cvsroot/plib/plib/src/puAux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32321 Modified Files: puAux.h puAuxLargeInput.cxx Log Message: Removing deprecated subwidget from puaLargeInput; also adding a bug fix to selecting the entire line Index: puAux.h =================================================================== RCS file: /cvsroot/plib/plib/src/puAux/puAux.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- puAux.h 6 May 2005 18:39:17 -0000 1.4 +++ puAux.h 6 May 2005 18:54:08 -0000 1.5 @@ -147,7 +147,7 @@ puFrame *frame ; puSlider *bottom_slider ; // Horizontal slider at bottom of window - puScrollBar *right_slider ; // Vertical slider at right of window + puaScrollBar *right_slider ; // Vertical slider at right of window char *wrapped_text ; // Pointer to word-wrapped text in the box Index: puAuxLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/puAux/puAuxLargeInput.cxx,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- puAuxLargeInput.cxx 6 May 2005 18:39:18 -0000 1.4 +++ puAuxLargeInput.cxx 6 May 2005 18:54:08 -0000 1.5 @@ -31,7 +31,7 @@ static void puaLargeInputHandleRightSlider ( puObject *slider ) { - float val = ((puScrollBar *)slider)->getMaxValue () - slider->getFloatValue () ; + float val = ((puaScrollBar *)slider)->getMaxValue () - slider->getFloatValue () ; puaLargeInput* text = (puaLargeInput*) slider->getUserData () ; //int lines_in_window = text->getLinesInWindow () ; @@ -97,8 +97,8 @@ // bottom_slider->setCBMode( PUSLIDER_DELTA ); } - right_slider = new puScrollBar ( w - slider_width, (bottom_slider?slider_width:0), - h - (bottom_slider?slider_width:0), arrows, TRUE, slider_width ) , + right_slider = new puaScrollBar ( w - slider_width, (bottom_slider?slider_width:0), + h - (bottom_slider?slider_width:0), arrows, TRUE, slider_width ) , right_slider->setValue ( 1.0f ) ; // All the way to the top // right_slider->setDelta(0.1f); right_slider->setSliderFraction (1.0f) ; @@ -183,6 +183,9 @@ if ( select_start_position < 0 ) select_start_position = 0 ; + if ( *(temp_text + select_start_position + 1) != '\n' ) + select_start_position ++ ; + while ( ( select_start_position > 0 ) && ( *(temp_text + select_start_position) != '\n' ) ) select_start_position -- ; |