Proton-induced fluorescent switching of a new 2D-pi-A type vinylcyanoacetate-pyran dye.