How to set wine (linux) internet proxy

Hey guys, im using linux (ubuntu) and i was wondering if there is a way that i can set wine to use proxy server (linux server running squid) or wrap any wine application using a tcp socks wrappers like proxy chains or tsocks such that i can connect to the internet using the proxy server.
