There are no experts here, only posers.
No one can answer my question?
That may actually well be the case, as you have posted some weird circuit doing some weird things without much explanation.
Others may be put off by your constant whining
I suppose the way it's meant to work is that at high charging current, Q2 turns on and passes current through D3. Then R6 pulls up the ADJ voltage seen by LM317 and thus increases its output voltage. So R6 will determine how much the voltage increases during charging - less resistance is more boost.
R2 is in parallel with RS so it could be just one resistor. It determines "float" voltage. You will get ~2V for each 240Ω here, so maybe ~1.5kΩ is a good starting point for tuning.
I suppose D2 is some sort of thermal compensation, it should probably be kept at similar temperature as the battery.