Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Access TSVN Shell Context Menu

Project highlights: :. Download .: :. Support .: :. FAQ .: :. Translations .: :. Donate .: :. Report Bug .:

tortoisesvn
Discussion topic

Hide all messages in topic

All messages in topic

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-18 13:18:16 PDT
Message On Oct 16, 7:32 pm, Stefan Küng <tortoise...@gmail.com> wrote:
> As of r17454, the verbs are now fixed strings.
> Can you please have a look?
>
> Stefan

Very nice! Yes, it is exactly what I need! Thank you Stefan.
PS: The "tsvn_" prefix is good idea to prevent conflict with other
shell commands.

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-10-16 10:32:22 PDT
Message On 12.10.2009 21:02, stepand76 wrote:
> Hi Stefan, I need to know if improving this is on your plan? If so, I
> would I like to know when it will be done. I need to know the verbs
> for my SW. Thank you again.

As of r17454, the verbs are now fixed strings.
Can you please have a look?

Stefan

--
        ___
   oo // \\ "De Chelonian Mobile"
  (_,\/ \_/ \ TortoiseSVN
    \ \_/_\_/> The coolest Interface to (Sub)Version Control
    /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-10-12 12:09:43 PDT
Message On 12.10.2009 21:02, stepand76 wrote:
> Hi Stefan, I need to know if improving this is on your plan? If so, I
> would I like to know when it will be done. I need to know the verbs
> for my SW. Thank you again.

Sorry, I can't give you an estimate on how I can get this done. But I
will get it done before we release 1.7 :)

Stefan

--
        ___
   oo // \\ "De Chelonian Mobile"
  (_,\/ \_/ \ TortoiseSVN
    \ \_/_\_/> The coolest Interface to (Sub)Version Control
    /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-12 12:02:14 PDT
Message Hi Stefan, I need to know if improving this is on your plan? If so, I
would I like to know when it will be done. I need to know the verbs
for my SW. Thank you again.

Stepan

> Finding the fixed verbs is not a problem. Implementing it will take some
> time though.
>
> Stefan

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-05 13:21:14 PDT
Message I understand. I will look forward. Thank you.

Stepan

On 5 říj, 22:10, Stefan Küng <tortoise...@gmail.com> wrote:
> On 05.10.2009 09:14, Hans-Emil Skogh wrote:
>

> Finding the fixed verbs is not a problem. Implementing it will take some
> time though.
>
> Stefan

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-10-05 13:10:25 PDT
Message On 05.10.2009 09:14, Hans-Emil Skogh wrote:
> > But (as I already wrote) it will be better to use some simple and
> > permanent identifiers as verbs.
> > For example: "update", "commit", "diff", "diff_with_prev",
> > "show_log", ... I'm affraid of you change text of commands in
> > future... Anyway many thanks once again!
> Yes, the names of the commands have changed in the past (and sometimes
> even changes context sensitively...), so I guess it would be a good idea
> to keep simple "fixed" verbs.
> Stefan, would it help you if someone wrote a complete list of proposed
> verbs for the context menu items?

Finding the fixed verbs is not a problem. Implementing it will take some
time though.

Stefan

--
        ___
   oo // \\ "De Chelonian Mobile"
  (_,\/ \_/ \ TortoiseSVN
    \ \_/_\_/> The coolest Interface to (Sub)Version Control
    /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-05 13:06:01 PDT
Message I'm ready to prepare it.

On 5 říj, 09:14, Hans-Emil Skogh <Hans-Emil.Sk...@​tritech.se> wrote:
> Yes, the names of the commands have changed in the past (and sometimes even changes context sensitively...), so I guess it would be a good idea to keep simple "fixed" verbs.
>
> Stefan, would it help you if someone wrote a complete list of proposed verbs for the context menu items?
>
> Hans-Emil

Re: Access TSVN Shell Context Menu

Author "Hans-Emil Skogh" <Hans-Emil dot Skogh at tritech dot se>
Full name "Hans-Emil Skogh" <Hans-Emil dot Skogh at tritech dot se>
Date 2009-10-05 00:14:28 PDT
Message > But (as I already wrote) it will be better to use some simple and
> permanent identifiers as verbs.
> For example: "update", "commit", "diff", "diff_with_prev",
> "show_log", ... I'm affraid of you change text of commands in
> future... Anyway many thanks once again!

Yes, the names of the commands have changed in the past (and sometimes even changes context sensitively...), so I guess it would be a good idea to keep simple "fixed" verbs.
 
Stefan, would it help you if someone wrote a complete list of proposed verbs for the context menu items?
 
Hans-Emil
Attachments

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-02 13:25:42 PDT
Message Thanks, now it works. The verbs are language independent. It allways
equals to text of english commands. Great! But (as I already wrote) it
will be better to use some simple and permanent identifiers as verbs.
For example: "update", "commit", "diff", "diff_with_prev",
"show_log", ... I'm affraid of you change text of commands in
future... Anyway many thanks once again!

Stepan



On 1 říj, 19:26, Stefan Küng <tortoise...@gmail.com> wrote:
> On 01.10.2009 09:00, stepand76 wrote:
>
>
> Ups, sorry.
> fixed in r17324.
>
> Stefan

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-10-01 10:26:07 PDT
Message On 01.10.2009 09:00, stepand76 wrote:
> Stefan, many thanks for working on this. But it is still language
> dependent. The verb contains localised and also english command text.
> Please see this report (czech windows, czech lang. pack).
>
> Anyway it would be better to use some simple identifiers as verbs. For
> example: update, commit, diff, diff_with_prev, show_log, ...
>
> Text=P&rozkoumat wID=132 Verb=Explore
> Text=O&tevřít wID=133 Verb=open

Ups, sorry.
fixed in r17324.

Stefan

--
        ___
   oo // \\ "De Chelonian Mobile"
  (_,\/ \_/ \ TortoiseSVN
    \ \_/_\_/> The coolest Interface to (Sub)Version Control
    /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-01 00:43:01 PDT
Message Yes, I'm using TortoiseSVN-1.6.99.1​7317-dev-win32-svn-1​.6.5-dev.msi

On 1 říj, 09:05, Jean-Marc van Leerdam <j.m.van.leer...@​gmail.com>
wrote:
> Are you using the latest nightly build
> (TortoiseSVN-1.6.99.​17317-dev-win32-svn-​1.6.5-dev.msi or
> TortoiseSVN-1.6.99.1​7317-dev-x64-svn-1.6​.5-dev.msi)?

Re: Access TSVN Shell Context Menu

Author jeanmarc
Full name Jean-Marc van Leerdam
Date 2009-10-01 00:05:47 PDT
Message Hi,

2009/10/1 stepand76 <stepand76 at gmail dot com>:
> Stefan, many thanks for working on this. But it is still language
> dependent. The verb contains localised and also english command text.
> Please see this report (czech windows, czech lang. pack).
>
On 30 zář, 20:02, Stefan Küng <tortoise...@gmail.com> wrote:
> Fixed in r17315.

Are you using the latest nightly build
(TortoiseSVN-1.6.99.​17317-dev-win32-svn-​1.6.5-dev.msi or
TortoiseSVN-1.6.99.1​7317-dev-x64-svn-1.6​.5-dev.msi)?


--
Regards,

Jean-Marc
--
. ___
. @@ // \\ "De Chelonian Mobile"
. (_,\/ \_/ \ TortoiseSVN
. \ \_/_\_/> The coolest Interface to (Sub)Version Control
. /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-10-01 00:00:49 PDT
Message Stefan, many thanks for working on this. But it is still language
dependent. The verb contains localised and also english command text.
Please see this report (czech windows, czech lang. pack).

Anyway it would be better to use some simple identifiers as verbs. For
example: update, commit, diff, diff_with_prev, show_log, ...

Text=P&rozkoumat wID=132 Verb=Explore
 Text=O&tevřít wID=133 Verb=open
--------
 Text=E&xtrahovat vše... wID=130 Verb=extract
 Text=Otestovat systémem &AVG wID=129 Verb=
--------
 Text=SVN Aktualizovat (&Update) wID=98 Verb=SVN Update
 Text=SVN Odevzdat (&Commit)... wID=99 Verb=SVN Commit...
 Text=&TortoiseSVN wID=126
     Text=&Porovnat s předchozí revizí wID=100 Verb=Porovnat s
předchozí revizí&Diff with previous version
    --------
     Text=Zobrazit &log záznamy wID=102 Verb=Zobrazit log záznamyShow
&log
     Text=&Průzkumník úložiště wID=103 Verb=Průzkumník úložiště&Repo-
browser
     Text=Zjistit modi&fikace wID=104 Verb=Zjistit modifikaceCheck for
modi&fications
     Text=&Graf revizí wID=105 Verb=Graf revizíRevision &graph
    --------
     Text=Akt&ualizovat na revizi... wID=107 Verb=Aktualizovat na
revizi...&Update to revision...
     Text=Přejme&novat... wID=108 Verb=Přejmenovat...R​e&name...
     Text=&Smazat wID=109 Verb=Smazat&Delete
     Text=Zam&knout... wID=110 Verb=Zamknout...Get loc&k...
    --------
     Text=Větev/značka (Branch/&tag)... wID=112 Verb=Větev/značka
(Branch/tag)...Branc​h/&tag...
     Text=Překlopit (&Switch)... wID=113 Verb=Překlopit
(Switch)...S&witch...
     Text=Sloučit (&Merge)... wID=114 Verb=Sloučit (Merge)...&Merge...
    --------
     Text=Obvinit (&Blame)... wID=116 Verb=Obvinit (Blame)...&Blame...
     Text=Vymazat a přidat do seznamu k &ignorování wID=119
         Text=crystal_project.zip wID=117
         Text=*.zip wID=118 Verb=*.zip
    --------
     Text=Vlastnosti wID=121 Verb=VlastnostiProperties
    --------
     Text=Na&stavení wID=123 Verb=Nastavení&Settings
     Text=&Nápověda wID=124 Verb=Nápověda&Help
     Text=About wID=125 Verb=AboutAbout
--------
 Text=Otevřít v pro&gramu... wID=96 Verb=openas
 Text=&TextPad wID=94
 Text=&Obnovit předchozí verze wID=28 Verb=PreviousVersions
--------
 Text=Ode&slat wID=92
     Text=Ode&slat wID=29
--------
 Text=Vyj&mout wID=25 Verb=cut
 Text=&Kopírovat wID=26 Verb=copy
--------
 Text=Vytvořit zástupc&e wID=17 Verb=link
 Text=O&dstranit wID=18 Verb=delete
--------
 Text=&Vlastnosti wID=20 Verb=properties



On 30 zář, 20:02, Stefan Küng <tortoise...@gmail.com> wrote:
> Fixed in r17315.

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-09-30 11:02:59 PDT
Message On Wed, Sep 30, 2009 at 18:40, Stefan Kueng <tortoisesvn at gmail dot com> wrote:
> On 30.09.2009 16:58, stepand76 wrote:
>>
>> There is a text report of my shell menu. Czech Windows Vista, TSVN
>> 1.6.5 switched to english and czech language. Text value is from
>> GetMenuItemInfo function,  Verb value is from
>> IContextMenu.GetCommandString method. Both are same and depends on
>> TSVN Language. Well it looks like a bug. Should it be fixed?
>
> Yes, this is a bug in TSVN.
> I'll have a look.

Fixed in r17315.

Stefan

--
       ___
  oo // \\ "De Chelonian Mobile"
 (_,\/ \_/ \ TortoiseSVN
   \ \_/_\_/> The coolest Interface to (Sub)Version Control
   /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-09-30 09:40:18 PDT
Message On 30.09.2009 16:58, stepand76 wrote:
> There is a text report of my shell menu. Czech Windows Vista, TSVN
> 1.6.5 switched to english and czech language. Text value is from
> GetMenuItemInfo function, Verb value is from
> IContextMenu.GetCommandString method. Both are same and depends on
> TSVN Language. Well it looks like a bug. Should it be fixed?

Yes, this is a bug in TSVN.
I'll have a look.

Stefan

--
        ___
   oo // \\ "De Chelonian Mobile"
  (_,\/ \_/ \ TortoiseSVN
    \ \_/_\_/> The coolest Interface to (Sub)Version Control
    /_/ \_\ http://tortoisesvn.net

Re: Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-09-30 07:58:37 PDT
Message There is a text report of my shell menu. Czech Windows Vista, TSVN
1.6.5 switched to english and czech language. Text value is from
GetMenuItemInfo function, Verb value is from
IContextMenu.GetCommandString method. Both are same and depends on
TSVN Language. Well it looks like a bug. Should it be fixed?


TSVN in English:

 Text=P&rozkoumat wID=132 Verb=Explore
 Text=O&tevřít wID=133 Verb=open
--------
 Text=E&xtrahovat vše... wID=130 Verb=extract
 Text=Otestovat systémem &AVG wID=129 Verb=Otestovat systémem &AVG
--------
 Text=SVN &Update wID=98 Verb=SVN Update
 Text=SVN &Commit... wID=99 Verb=SVN Commit...
 Text=&TortoiseSVN wID=126
     Text=&Diff with previous version wID=100 Verb=Diff with previous
version&Diff with previous version
    --------
     Text=Show &log wID=102 Verb=Show logShow &log
     Text=&Repo-browser wID=103 Verb=Repo-browser​&Repo-browser
     Text=Check for modi&fications wID=104 Verb=Check for
modificationsCheck for modi&fications
     Text=Revision &graph wID=105 Verb=Revision graphRevision &graph
    --------
     Text=&Update to revision... wID=107 Verb=Update to
revision...&Update to revision...
     Text=Re&name... wID=108 Verb=Rename...Re&name...
     Text=&Delete wID=109 Verb=Delete&Delete
     Text=Get loc&k... wID=110 Verb=Get lock...Get loc&k...
    --------
     Text=Branch/&tag... wID=112 Verb=Branch/tag...Br​anch/&tag...
     Text=S&witch... wID=113 Verb=Switch...S&witch...
     Text=&Merge... wID=114 Verb=Merge...&Merge...
    --------
     Text=&Blame... wID=116 Verb=Blame...&Blame...
     Text=Delete and add to &ignore list wID=119
         Text=crystal_project.zip wID=117
         Text=*.zip wID=118 Verb=*.zip
    --------
     Text=Properties wID=121 Verb=PropertiesProperties
    --------
     Text=&Settings wID=123 Verb=Settings&Settings
     Text=&Help wID=124 Verb=Help&Help
     Text=A&bout wID=125 Verb=AboutA&bout
--------
 Text=Otevřít v pro&gramu... wID=96 Verb=openas
 Text=&TextPad wID=94
 Text=&Obnovit předchozí verze wID=28 Verb=PreviousVersions
--------
 Text=Ode&slat wID=92
     Text=Ode&slat wID=29
--------
 Text=Vyj&mout wID=25 Verb=cut
 Text=&Kopírovat wID=26 Verb=copy
--------
 Text=Vytvořit zástupc&e wID=17 Verb=link
 Text=O&dstranit wID=18 Verb=delete
--------
 Text=&Vlastnosti wID=20 Verb=properties




TSVN CZECH:

Text=P&rozkoumat wID=132 Verb=Explore
 Text=O&tevřít wID=133 Verb=open
--------
 Text=E&xtrahovat vše... wID=130 Verb=extract
 Text=Otestovat systémem &AVG wID=129 Verb=Otestovat systémem &AVG
--------
 Text=SVN Aktualizovat (&Update) wID=98 Verb=SVN Aktualizovat (Update)
 Text=SVN Odevzdat (&Commit)... wID=99 Verb=SVN Odevzdat (Commit)...
 Text=&TortoiseSVN wID=126
     Text=&Porovnat s předchozí revizí wID=100 Verb=Porovnat s
předchozí revizí&Porovnat s předchozí revizí
    --------
     Text=Zobrazit &log záznamy wID=102 Verb=Zobrazit log
záznamyZobrazit &log záznamy
     Text=&Průzkumník úložiště wID=103 Verb=Průzkumník
úložiště&Průzkumník úložiště
     Text=Zjistit modi&fikace wID=104 Verb=Zjistit modifikaceZjistit
modi&fikace
     Text=&Graf revizí wID=105 Verb=Graf revizí&Graf revizí
    --------
     Text=Akt&ualizovat na revizi... wID=107 Verb=Aktualizovat na
revizi...Akt&ualizovat na revizi...
     Text=Přejme&novat... wID=108 Verb=Přejmenovat...P​řejme&novat...
     Text=&Smazat wID=109 Verb=Smazat&Smazat
     Text=Zam&knout... wID=110 Verb=Zamknout...Zam​&knout...
    --------
     Text=Větev/značka (Branch/&tag)... wID=112 Verb=Větev/značka
(Branch/tag)...Větev/značka (Branch/&tag)...
     Text=Překlopit (&Switch)... wID=113 Verb=Překlopit
(Switch)...Překlopit (&Switch)...
     Text=Sloučit (&Merge)... wID=114 Verb=Sloučit (Merge)...Sloučit
(&Merge)...
    --------
     Text=Obvinit (&Blame)... wID=116 Verb=Obvinit (Blame)...Obvinit
(&Blame)...
     Text=Vymazat a přidat do seznamu k &ignorování wID=119
         Text=crystal_project.zip wID=117
         Text=*.zip wID=118 Verb=*.zip
    --------
     Text=Vlastnosti wID=121 Verb=VlastnostiVlastnosti
    --------
     Text=Na&stavení wID=123 Verb=NastaveníNa&stavení
     Text=&Nápověda wID=124 Verb=Nápověda&Nápověda
     Text=O &aplikaci wID=125 Verb=O aplikaciO &aplikaci
--------
 Text=Otevřít v pro&gramu... wID=96 Verb=openas
 Text=&TextPad wID=94
 Text=&Obnovit předchozí verze wID=28 Verb=PreviousVersions
--------
 Text=Ode&slat wID=92
     Text=Ode&slat wID=29
--------
 Text=Vyj&mout wID=25 Verb=cut
 Text=&Kopírovat wID=26 Verb=copy
--------
 Text=Vytvořit zástupc&e wID=17 Verb=link
 Text=O&dstranit wID=18 Verb=delete
--------
 Text=&Vlastnosti wID=20 Verb=properties




On 30 zář, 15:59, Stefan Küng <tortoise...@gmail.com> wrote:
> On Wed, Sep 30, 2009 at 15:33, stepand76 <stepan...@gmail.com> wrote:
> The verb must not depend on language! If it is, then that would be a
> bug in TSVN.
>
> The MSDN (http://msdn.microsof​t.com/en-us/library/​bb776094%28VS.85%29.​aspx)
> clearly states that:
> "The language-independent command name, or verb, is a name that can be
> passed..."

Re: Access TSVN Shell Context Menu

Author steveking
Full name Stefan Küng
Date 2009-09-30 06:59:38 PDT
Message On Wed, Sep 30, 2009 at 15:33, stepand76 <stepand76 at gmail dot com> wrote:
> My task is to integrate TSVN command to our application. I'm playing
> with the TSVN shell context menu. I'm using the
> IContextMenu.QueryContextMenu method to access TSVN shell context menu
> and then I'm browsing trough the returned menu. I also can execute the
> commands (using IContextMenu.InvokeCommand). It works very well. But I
> don't know how to recognise the individual items. Using
> GetMenuItemInfo I can get:
>
> type of the item
> verb (depends on language, cannot be used)

The verb must not depend on language! If it is, then that would be a
bug in TSVN.

The MSDN (http://msdn.microsof​t.com/en-us/library/​bb776094%28VS.85%29.​aspx)
clearly states that:
"The language-independent command name, or verb, is a name that can be
passed..."
        ===============

Stefan

--
       ___
  oo // \\ "De Chelonian Mobile"
 (_,\/ \_/ \ TortoiseSVN
   \ \_/_\_/> The coolest Interface to (Sub)Version Control
   /_/ \_\ http://tortoisesvn.net

Access TSVN Shell Context Menu

Author stepand76 <stepand76 at gmail dot com>
Full name stepand76 <stepand76 at gmail dot com>
Date 2009-09-30 06:33:55 PDT
Message Hi *,

My task is to integrate TSVN command to our application. I'm playing
with the TSVN shell context menu. I'm using the
IContextMenu.QueryContextMenu method to access TSVN shell context menu
and then I'm browsing trough the returned menu. I also can execute the
commands (using IContextMenu.InvokeCommand). It works very well. But I
don't know how to recognise the individual items. Using
GetMenuItemInfo I can get:

type of the item
verb (depends on language, cannot be used)
help (depends on language, cannot be used)
id (not unique, cannot be used)
icon

It would be great to add some custom data to MENUITEMINFO (MIIM_DATA)
to each menu item when creating the context menu. This data should
contain some unique id to recognise it in application.

Is it possible in future? Or is there another way to recognise that
menu items? Thank you.

PS: I know about tsvn-automation (http://tortoisesvn.n​et/docs/release/
TortoiseSVN_en/tsvn-​automation.html) and also about TSVN COM
interface. But it doesn't allow to determine what items (commands) are
visible (enabled) for the set of selected files.
Messages per page: