core & ui_qt: start to reimplement selection