[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [TSVN] how should the UI look like

From: Rainer Müller <mueller_rainer_at_gmx.de>
Date: 2005-04-09 20:23:26 CEST

Molle Bestefich wrote:
> This is beyond "keeping dangerous features tucked away from the user".
> It's a plain old treasure island "I want this gold treasure stuffed in
> a place where only I can find it again! Mwa-ha-ha.." idea.
>
> Magic key combinations with no GUI equivalent were never a sane way of
> doing things like this.

You can even use it if you only have a keyboard. Maybe you don't know
the way TortoiseCVS does it which is intuitive IMO. Even the status bar
text tells that you can access the Update dialog by holding down Ctrl
before clicking Update (Ctrl + Enter for keyboarders also works).

I just looked through the source of TortoiseCVS to find out how they did
it. They just use the GetASyncKeyState API to determine if Ctrl is hold
down.

        bool IsControlDown()
        {
           return GetAsyncKeyState(VK_CONTROL) < 0;
        }

Couldn't we use that, too? So if you hold down Ctrl at the time clicking
"Lock" it would force the locking (or display a dialog).

We could even improve the UI more if we get rid of the "Update to
revision..." entry and integrate that by holding down Ctrl and choosing
"Update".

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Apr 9 20:23:40 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.