Re: [Plib-devel] [PATCH] puSlider/puaScrollBar: more work on optional'new behavior'
Brought to you by:
sjbaker
From: Fay, J. F Dr C. U. A. 46 S. <joh...@eg...> - 2009-01-28 18:58:28
|
Melchior, I realize this sounds backwards, but can you please send me diff files? I'll be going through the files line by line (well, screen by screen) anyway and I can't get to your links from here. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: Melchior FRANZ [mailto:mf...@us...] Sent: Wednesday, January 28, 2009 12:44 PM To: pli...@li... Subject: [Plib-devel] [PATCH] puSlider/puaScrollBar: more work on optional'new behavior' 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. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ plib-devel mailing list pli...@li... https://lists.sourceforge.net/lists/listinfo/plib-devel |