Public Member Functions |
| | accessors (int, ui_posx,-1) |
| | accessors (int, ui_posy,-1) |
| | accessors (QString, core_rawpath,"./") |
| | accessors (int, player_dsp, 0) |
| | accessors (int, alsa_latency, 150) |
| | accessors (bool, dsp_verbose, false) |
| | accessors (QString, alsa_dev,"hw:0,0") |
| | accessors (QString, oss_dsp,"/dev/dsp") |
| | accessors (bool, oss_init_fragments, false) |
| | accessors (int, oss_fragments, 16) |
| | accessors (bool, oss_nolatencyaccounting, false) |
| | accessors (int, oss_latency, 150) |
| | accessors (int, bpm_channel, 1) |
| | accessors (bool, player_rms, false) |
| | accessors (float4, player_rms_target, 0.12) |
| | accessors (unsigned2, disabled_capacities, 0) |
| | accessors (QString, jack_dev,"") |
| | accessors (int, jack_latency, 150) |
| | accessors (QString, jack_lout,"") |
| | accessors (QString, jack_rout,"") |
| | accessors (int, dsp_playrate, 44100) |
| | PlayerConfig () |
| | PlayerConfig (QString configname) |
| void | load_ui_position (QDialog *dialog) |
| void | save_ui_position (QDialog *dialog) |
| void | save () |
| void | load () |
| void PlayerConfig::load_ui_position |
( |
QDialog * |
dialog |
) |
|
This is a tricky piece of code because not all window managers behave properly. IceWM for instance will fill in the borders and the likes after the window has positioned, resulting in a difference between setting a position and reading it afterward when finishing the dialog box. An extra problem is that the window decoration is filled in by the window manager, resulting in an asynchronous change of the window position. So in this function we cannot simply measure the shift introduced by setting the position. We can also not simply measure new updates to the position and ignore them because then the end user cannot reposition the window. We cannot use the window rectangle and the internal rectangle because some window managers might behave differently. So what can we do ? We can try to position the window again once the decorations are complete..
Referenced by normal_start(), setup_start(), and Player::timerTick().