Help Needed !!!

1 view
Skip to first unread message

MG

unread,
May 7, 2008, 4:12:16 PM5/7/08
to SharpFile
Hi longueur.software (!!!)

I would like to retrieve the path of selected items for the panel1 and
the panel2 in this part of your code (for example when I press F4 I
want to launch my file synchronizer and pass as argument those paths).
How can I do that ? I saw you added some part of code in dualparent.cs
but I can't to do anything with... arf it's still a little bit
difficult for me :) or perhaps not really fully implemented...

ListView.cs Line 443

private void listView_KeyUp(object sender, KeyEventArgs e) {
// TODO: Should be specified by config.
if (e.KeyCode == Keys.F2) {
if (this.SelectedItems.Count > 0) {
ListViewItem item = this.SelectedItems[0];

if (!(item.Tag is ParentDirectoryInfo) && !
(item.Tag is RootDirectoryInfo)) {
item.BeginEdit();
}
}
}
}

Thanks a lot.(I keep an eye alldays on your project very
interresting..).

longueur...@gmail.com

unread,
May 11, 2008, 9:05:08 AM5/11/08
to SharpFile
Yep, it was my intention for a future version to have support for
custom keys to start a tool from the menu. But it won't be until after
0.7. I can try to whip up some quick code for you in the next few
days.

MG

unread,
May 12, 2008, 4:08:04 PM5/12/08
to SharpFile
I will be cool if I can quickly retrieve thoses panels paths in
listview.cs

Thanks you a a lot for your support

longueur...@gmail.com

unread,
May 20, 2008, 11:47:02 PM5/20/08
to SharpFile
Since I fixed (I think) the compressed file support, configurable keys
is the next step. In the next day or two, I should at least have some
code in svn that you can use to get something up and running.

longueur...@gmail.com

unread,
May 22, 2008, 11:19:16 PM5/22/08
to SharpFile
I just committed some code and updated issue 25 with some details. You
should be able to figure out how to add a key code to the config file,
but if not, just reply in this thread. There is still some issues with
the code and it needs to be improved, but that should at least help
you out. Sorry it took so long :).

MG

unread,
May 24, 2008, 1:31:50 PM5/24/08
to SharpFile
Thanks a lot Adam


It's ok for me to add a key code in the config file which call a
program with the selected path of the selected panel but I don't kown
how to call a program with selected paths of twice panels (for example
to launch a directory synchronizer).

It will be usefull to have {SelectedPath}, {SelectedPathPanel1} and
{SelectedPathPanel2} as arguments variables

{SelectedPath} will be used to call a program with only one argument
(the selected one) as example a texteditor,...
{SelectedPathPanel1} and {SelectedPathPanel2} will be used to call a
program which need twice arguments (one of each panel) as example a
directory synchronizer,...

for example
<Tools>
<Tool Name="DirectorySynchronizer" Path="dirsync"
Arguments="source={SelectedPathPanel1}
destination={SelectedPathPanel2}">
<Keys>
<Key>Fx</Key>
</Keys>
</Tool>
</Tools>

longueur...@gmail.com

unread,
May 25, 2008, 10:42:27 AM5/25/08
to SharpFile
There are already some other options in addition to SelectedPath.
There is SelectedPath1, SelectedPath2, SelectedFile, SelectedFile1,
and SelectedFile2.

So, you should be able to do something like:
<Tools>
<Tool Name="DirectorySynchronizer" Path="dirsync"
Arguments="source={SelectedPath1} destination={SelectedPath2}">
<Keys>
<Key>Fx</Key>
</Keys>
</Tool>
</Tools>

Sorry that wasn't more clear. Do you think SelectedPathPanel1 is a
better name than SelectedPath1? It would be easy to change the
variable name. Hopefully at some point, there will be a GUI for all of
the config file values which would make changing the configuration
easier.

MG

unread,
May 25, 2008, 2:39:58 PM5/25/08
to SharpFile
Oups sorry I haven't seen thoses variables.

Ok I test it and tell you.

MG

unread,
May 25, 2008, 2:55:46 PM5/25/08
to SharpFile

YOU'RE THE BEST !!! It works very well !!! GREAT !!! MARVELLOUS !!!!
thanks a lot :)
Reply all
Reply to author
Forward
0 new messages