[p4] Fwd: p4v 2007.3 and Qt "styles"
Rick Macdonald
rickmacd at shaw.ca
Fri May 9 09:13:08 PDT 2008
I submitted this to Perforce support and got the standard reply:
"There is currently an enhancement request logged with us for this
feature, and I
have included your information and contact details with it. These are
reviewed on
a periodic basis by our developers, and should it be selected for
implementation,
we will notify you via email."
I came up with a trick (hardly worth doing) for the p4v help program
(assistant). Rename assistant to assistant.bin, and create a little
wrapper script to insert your -style setting. I tried it like this last
night:
--- bin/assistant ---
#!/bin/sh
cmd=`echo $0 | sed -e "s/assistant/assistant.bin -style windows/1"`
exec $cmd $*
The same trick doesn't work for p4v's launching of the merge tool,
because p4v executes the merge tool as arg0 from its own execution. So,
whatever you rename the actual p4v binary to, that's what it runs for
the merge tool and it bypasses your script.
A suggestion came from support to try running the merge tool as a
third-party merge program which calls p4v -merge with the -style setting
added. This will work, but you have some script work to do to get the
undocumented args that p4v uses to set proper file and depot names in
the merge window. Plus, you have to get this external merge program set
into the ~/.p4qt/appsettings.xml for every user.
Here is the command line that p4v uses to call its merge tool. b, l and
r mean base, left and right. These are to set proper names instead of
the ugly temp names that p4v creates to pass files to the tool. Add
-style=windows or whatever you like _after_ the -merge argument.
/home/rickm/SCM/GCTSCM/sccs2p4/tools/p4v-2007.3.151553/bin/p4v.bin
-merge
-nb //gct/batch/squid/src/modules/xy2xy/xp/nvhsxdec.F#5
-nl //gct/batch/squid/src/modules/xy2xy/xpv5/nvhsxdec.F#1
-nr
/home/rickm/SCM/GCTSCM/sccs2p4/tools/cvs2p4/convdir-main/gct/batch/squid/src/modules/xy2xy/xpv2/nvhsxdec.F
-nm Merge file used for resolve
-ll Source:
-rl Target:
-C none
/tmp/rickm(p4v)/timshel_localhost_1666/gct/batch/squid/src/modules/xy2xy/xp/nvhsxdec#5(BASE)[0].F
/tmp/rickm(p4v)/timshel_localhost_1666/gct/batch/squid/src/modules/xy2xy/xpv5/nvhsxdec(THEIR)[0].F
/home/rickm/SCM/GCTSCM/sccs2p4/tools/cvs2p4/convdir-main/gct/batch/squid/src/modules/xy2xy/xpv2/nvhsxdec.F
/tmp/rickm(p4v)/timshel_localhost_1666/gct/batch/squid/src/modules/xy2xy/xpv5/nvhsxdec(MERGE)[0].F
Rick
Rick Macdonald wrote:
> I looked a little harder, and made a list of the styles that I know of
> from my use of Qt3, plus what I found by searching through the output of
> "strings p4v". The "SGI" style from Qt3 seems to be gone; no problem for
> me; I never used it.
>
> Personally, I prefer the style from the list at the end, except I like
> when the middle mouse button will warp a scrollbar to where you click in
> the trough. I don't know which style name actually gives the style in
> the last list, since any string at all gives this style, as you can see
> from the last entry!
>
> Default:
>
> p4v -style=plastique (very light bluish color widgets; middle mouse
> button operates scrollbars)
>
> Unique in some way:
>
> p4v -style=motif (triangle tree icons instead of +/-; middle mouse
> button operates scrollbars)
> p4v -style=cde (same as motif, but purple-ish color)
> p4v -style=cleanlooks (similar to the list below, but overall widgets
> are much lighter beige, almost as light as the default bluish plastique)
>
> All these look the same (+/- folder icons) . There may be some subtle
> difference that I didn't spot.
>
> p4v -style=aqua
> p4v -style=common
> p4v -style=macintosh
> p4v -style=motifplus
> p4v -style=platinum
> p4v -style=windows
> p4v -style=windowsxp
> p4v -style=jeffbowles
>
> Rick
>
> Jeff A. Bowles wrote:
>
>> If possible, could you please tell us what sorta places we could look
>> at, on a user's machine, to experiment with this sort of color / font
>> / display issue?
>>
>> -Jeff Bowles
>>
>> ---------- Forwarded message ----------
>> From: *Rick Macdonald* <rickmacd at shaw.ca <mailto:rickmacd at shaw.ca>>
>> Date: Mon, May 5, 2008 at 10:10 AM
>> Subject: Re: [p4] p4v 2007.3 and Qt "styles"
>> To: Stephen Vance <steve at vance.com <mailto:steve at vance.com>>
>> Cc: Perforce Users Mailing List <perforce-user at perforce.com
>> <mailto:perforce-user at perforce.com>>
>>
>>
>> I certainly will, but I'm hoping there's an environment variable or a
>> setting in ~/.p4qt or elsewhere...
>>
>> Rick
>>
>> Stephen Vance wrote:
>>
>>> Submit a bug/enhancement request to Support?
>>>
>>> Steve
>>>
>>> Rick Macdonald wrote:
>>>
>>>> I've just switch to the latest p4v, 2007.3. The default style is
>>>> sickly pale looking to me. Too little contrast between widgets and
>>>> frames, and the whole thing is light, bright, and hard on my eyes.
>>>>
>>>> The command line -style argument seems a bit flakey. Most styles,
>>>> such as -style=sgi don't seem to do anything. In fact, other than
>>>> "cde" and "motif", every other style looks the same. Even
>>>> -style=foobar changes from the default to what you get with the other
>>>> options such as -style=windows.
>>>>
>>>> Anyway, this is fine except when p4v launches the merge tool. It
>>>> doesn't pass the style setting on the command line:
>>>>
>>>> rickm 6005 0.6 0.7 34288 15000 pts/4 S 10:02 0:00
>>>> /home/rickm/SCM/GCTSCM/sccs2p4/tools/p4v-2007.3.151553/bin/p4v.bin
>>>> -merge -nb //gct/batch/src/modules/xy2xy/v3.01/xy2xy.F#1 -nl
>>>> //gct/batch/src/modules/xy2xy/v3.04/xy2xy.F#2 -nr
>>>>
>>>>
>> /home/rickm/SCM/GCTSCM/sccs2p4/tools/cvs2p4/convdir-main/gct/batch/src/modules/xy2xy/xp/xy2xy.F
>>
>>>> -nm Merge file used for resolve -ll Source: -rl Target: -C none
>>>>
>>>>
>> /tmp/rickm(p4v)/timshel_localhost_1666/gct/batch/src/modules/xy2xy/v3.01/xy2xy#1(BASE)[0].F
>>
>> /tmp/rickm(p4v)/timshel_localhost_1666/gct/batch/src/modules/xy2xy/v3.04/xy2xy(THEIR)[0].F
>>
>> /home/rickm/SCM/GCTSCM/sccs2p4/tools/cvs2p4/convdir-main/gct/batch/src/modules/xy2xy/xp/xy2xy.F
>>
>> /tmp/rickm(p4v)/timshel_localhost_1666/gct/batch/src/modules/xy2xy/v3.04/xy2xy(MERGE)[0].F
>>
>>>> I realize this is more of a Qt question, but does anybody know how to
>>>> get a style setting to the merge tool when launched by p4v?
>>>>
>>>> Rick
>>>> _______________________________________________
>>>> perforce-user mailing list - perforce-user at perforce.com
>>>>
>> <mailto:perforce-user at perforce.com>
>>
>>>> http://maillist.perforce.com/mailman/listinfo/perforce-user
>>>>
>>>>
>>>>
>> _______________________________________________
>> perforce-user mailing list - perforce-user at perforce.com
>> <mailto:perforce-user at perforce.com>
>> http://maillist.perforce.com/mailman/listinfo/perforce-user
>>
>>
>>
>> --
>> ---
>> Jeff Bowles - jeff.a.bowles at gmail.com <mailto:jeff.a.bowles at gmail.com>
>>
> _______________________________________________
> perforce-user mailing list - perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
>
More information about the perforce-user
mailing list