An unified shell model scheme to evaluate simultaneously the contributions of bound single-particle states, Gamow resonances, antibound (virtual) states and continuum complex scattering states is presented. The formalism could be very suitable to study processes occurring in the continuum part of the nuclear spectra.