[Plib-devel] [PATCH] puSlider/puaScrollBar: more work on optional 'new behavior'
Brought to you by:
sjbaker
From: Melchior F. <mf...@us...> - 2009-01-28 18:43:53
|
Here's another round of patches (or rather: full source files): puaScrollBar: - introduce [sg]etLineStepSize (using the slider's step size was a bad idea, as sliders also need a line-step (small step) if they don't use stepping) pu.h/puSlider.cxx/puaScrollBar: - if page-step size is <=0 use the old behavior (default), otherwise the new (i.e. do no longer use -1 for that) puaLargeInput: - fix a bug in puaLargeInput where increasing the widget width moved the text to the right - make sure added lines scroll the box down if the slider was in bottom position - let font changes also update the geometry - simplify and optimize the slider autohiding code - use puaScrollBar also for the bottom scrollbar. The "arrows" argument also sets the number of arrow buttons there, whereby the former meaning is retained (0, 1, 2 means 0, 1, 2 buttons for the vertical scrollbar). The "tens" are used for the bottom slider: decimal 12 means: one arrow button on the bottom scrollbar, and two on the vertical one. - setPageStepSize() for both sliders, enabling the new slider behavior puaList: - setPageStepSize() for the slider, enabling the new behavior The code works well in FlightGear and is valgrind-clean. If I should run into glitches, then I will, of course, submit fixes. ./src/pui/: http://members.aon.at/mfranz/plib/pu.h [45.2 kB] http://members.aon.at/mfranz/puSlider.cxx [6.0 kB] ./src/puAux/: http://members.aon.at/mfranz/plib/puAux.h [29.4 kB] http://members.aon.at/mfranz/plib/puAuxScrollBar.cxx [9.4 kB] http://members.aon.at/mfranz/plib/puAuxLargeInput.cxx [43.6 kB] http://members.aon.at/mfranz/plib/puAuxList.cxx [7.0 kB] ./doc/pui/: http://members.aon.at/mfranz/plib/index.html [105.5 kB] m. |