core: add flags to basic block ; ui_qt: add color in basic block depending on flags