Semi-analytic galaxies-I. synthesis of environmental and star-forming regulation mechanisms