[p4] Question about p4v command line

Arnt Gulbrandsen arnt at gulbrandsen.priv.no
Tue Jan 30 02:39:22 PST 2007


G Barthelemy writes:
> On 1/30/07, Dan Konigsbach <DKonigsbach at dominator.com> wrote:
>>  - When is the -win parameter required?  What does its value represent?
>>  ...
>
> ...
>
> I queried support about it (particularly as "-win 1234" worked on my 
> Windows host but not on others), and their answer was that this is an 
> undocumented interface and is not currently supported, but that using 
> "-win 0" should work for most.

That'll be the window ID, I guess.

If you know the ID of a window, you can operate on it. If p4win wants 
p4v to draw in a window owned by p4win, it can to tell p4v the ID of 
that window and p4v feeds the number into this function:
http://doc.trolltech.com/4.2/qwidget.html#create

The IDs are assigned by the window system and are essentially random. 
Any decent GUI toolkit should be able to tell you the ID of a window 
you created, though, so if you have a window, you can make p4v draw in 
it.

(I'm simplifying a little bit.)

Arnt


More information about the perforce-user mailing list