Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BranchViewExtended wfx-plugin
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) Printable version
View previous topic :: View next topic  
Author Message
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Sun Oct 04, 2009 7:17 am    Post subject: BranchViewExtended wfx-plugin Reply with quote

BranchViewExtended is similar to standard Branch View but shows also all nested directories with their sizes.

Version 1.03
Branch View Extended 1.03 x86

Version 1.03 x64
Branch View Extended 1.03 x64


How to use:

You have to create button or start menu item with following parameters:

Command: cd
Parameters: \\\BranchViewEx\%p

Plugin works for current path, like standard Branch View.


Why to use:


I use it when I need to quick-free some disk space. In this case I set sorting method "Sort by size" and run this plugin. With this plugin I can find not only needless huge files but also needless huge directories containing a lot of small files (that is why I can't find them with standard Branch view) and buried deeply in file system (that's why I can't find them manually).


History


version 1.00 - First release

version 1.01
+ Show icons for directories

version 1.02
+ Temp panel plugin functionality
+ VERSION_INFO

version 1.03
+ Show icons for internal associations
+ Show icons for .exe, .lnk and .ico files
+ Plugin autoinstallation


Last edited by kotlomoy on Sun Apr 14, 2013 8:25 am; edited 12 times in total
Back to top
View user's profile Send private message Send e-mail
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Sun Oct 04, 2009 7:31 am    Post subject: Reply with quote

I've written this plugin for myself. It is first working version. It is untested and not very friendly. But it works for me fine.

Notes:
-- You cannot browse directories from this plugin.
-- You cannot start plugin directly from My Network Places.
-- This plugin shows directories as files with ./ extension (If you use color scheme for directories I recommend use this scheme for ./ files too).
-- This plugin doesn't follow symbolic links but shows them as directories (by the way you can browse them manually).
-- This plugin uses standard copying progress dialog to indicate progress.
_________________
BranchViewExtended
Back to top
View user's profile Send private message Send e-mail
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2024

PostPosted: Sun Oct 04, 2009 3:01 pm    Post subject: Reply with quote

Description shouldn't use "like Batch View" ... For anyone that doesn't use Batch View this entirely limits understanding what your plugin is meant to accomplish.
Back to top
View user's profile Send private message Send e-mail
Hacker
Moderator
Moderator


Joined: 06 Feb 2003
Posts: 9108
Location: Bratislava, Slovakia

PostPosted: Mon Oct 05, 2009 2:34 pm    Post subject: Reply with quote

kotlomoy,
Hm, Batch View? Branch View perhaps? Or am I missing something?

Roman
_________________
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Balderstrom
Power Member
Power Member


Joined: 11 Oct 2005
Posts: 2024

PostPosted: Mon Oct 05, 2009 2:58 pm    Post subject: Reply with quote

Maybe. I thought it was referencing a plugin "Batch View"
Like DiskDir & DiskDirEx(tended) or others.
Back to top
View user's profile Send private message Send e-mail
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Mon Oct 05, 2009 10:58 pm    Post subject: Reply with quote

Hacker wrote:
kotlomoy,
Hm, Batch View? Branch View perhaps? Or am I missing something?

Roman

Yes, Branch View. Smile I don't know why I copied BatchView everywhere Embarassed
_________________
BranchViewExtended
Back to top
View user's profile Send private message Send e-mail
ts4242
Power Member
Power Member


Joined: 02 Feb 2004
Posts: 1500
Location: Egypt

PostPosted: Tue Oct 06, 2009 4:14 am    Post subject: Reply with quote

2kotlomoy

Download, install, create toolbar button, click on the toolbar button but nothing happen.

I also tryed cd \\\BranchViewEx\%p from command line but didn't work too.

TC 7.50a/ Windows 7
_________________
Author of Ultra TC Editors
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 4533
Location: Russian Federation

PostPosted: Tue Oct 06, 2009 4:52 am    Post subject: Reply with quote

kotlomoy wrote:
(If you use color scheme for directories I recommend use this scheme for ./ files too)

I suggest to return special folder icon instead of default icon. This will help to distinguish folders and files.

ts4242 wrote:
I also tryed cd \\\BranchViewEx\%p from command line but didn't work too.

For me "cd \\\BatchViewEx\D:\Programs" works fine. You should specify correct plugin name that you see in Network Neighbor.
_________________
VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo…
Back to top
View user's profile Send private message Send e-mail
ts4242
Power Member
Power Member


Joined: 02 Feb 2004
Posts: 1500
Location: Egypt

PostPosted: Tue Oct 06, 2009 5:14 am    Post subject: Reply with quote

MVV wrote:
You should specify correct plugin name that you see in Network Neighbor.


Thanks!
_________________
Author of Ultra TC Editors
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Tue Oct 06, 2009 10:21 am    Post subject: Reply with quote

MVV wrote:

I suggest to return special folder icon instead of default icon. This will help to distinguish folders and files.

Not applicable to ./ files though

ts4242 wrote:
For me "cd \\\BatchViewEx\D:\Programs" works fine. You should specify correct plugin name that you see in Network Neighbor.

Thanks for notice. Fixed now.

cd \\\BranchViewEx\%p

should work fine now
_________________
BranchViewExtended
Back to top
View user's profile Send private message Send e-mail
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 4533
Location: Russian Federation

PostPosted: Tue Oct 06, 2009 10:48 am    Post subject: Reply with quote

kotlomoy wrote:
MVV wrote:

I suggest to return special folder icon instead of default icon. This will help to distinguish folders and files.

Not applicable to ./ files though

I mean that you should return folder icon handle in function FsExtractCustomIcon when TC asks you an icon for files with ./ extension.
_________________
VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo…
Back to top
View user's profile Send private message Send e-mail
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Tue Oct 06, 2009 12:39 pm    Post subject: Reply with quote

MVV wrote:
I mean that you should return folder icon handle in function FsExtractCustomIcon when TC asks you an icon for files with ./ extension.

Oh, I see. May be I'll try this, thanks
_________________
BranchViewExtended
Back to top
View user's profile Send private message Send e-mail
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Wed Oct 07, 2009 1:31 pm    Post subject: Reply with quote

MVV wrote:
I mean that you should return folder icon handle in function FsExtractCustomIcon when TC asks you an icon for files with ./ extension.

I made what you suggested:
cid-9a15473c9a985119.skydrive.live.com/self.aspx/!work/BranchViewEx%5E_Icons%5E5nonstable!%5E6.wfx

BUT:

-- When there is a LOT of directories (thousands) TC doesn't draw all my icons. More importantly that TC itself gets problems with redrawing of windows, buttons, menu... Confused

-- Now it takes more time to scan.
_________________
BranchViewExtended
Back to top
View user's profile Send private message Send e-mail
kotlomoy
Junior Member
Junior Member


Joined: 09 Mar 2008
Posts: 97
Location: moscow

PostPosted: Wed Oct 07, 2009 1:38 pm    Post subject: Reply with quote

Quote:
-- When there is a LOT of directories (thousands) TC doesn't draw all my icons. More importantly that TC itself gets problems with redrawing of windows, buttons, menu... Confused


This are changes I made:

Code:
HINSTANCE theDll = NULL;
BOOL APIENTRY DllMain( HINSTANCE hModule,
                 DWORD ul_reason_for_call,
                 LPVOID lpReserved
                 )
{
   theDll = hModule;
   return TRUE;
}

int __stdcall FsExtractCustomIcon(char* RemoteName,int ExtractFlags,HICON* TheIcon)
{
   if ('/' == RemoteName[ strlen( RemoteName ) - 1 ])
   {
      if(ExtractFlags&FS_ICONFLAG_SMALL)
         *TheIcon=(HICON)LoadImage(theDll,MAKEINTRESOURCE(IDI_ICON_FOLDER16),IMAGE_ICON,16,16,0);
      else
         *TheIcon=(HICON)LoadImage(theDll,MAKEINTRESOURCE(IDI_ICON_FOLDER32),IMAGE_ICON,32,32,0);

      return FS_ICON_EXTRACTED;
   }
   return FS_ICON_USEDEFAULT;
}


Can anybody find an error in this code? Rolling Eyes
_________________
BranchViewExtended
Back to top
View user's profile Send private message Send e-mail
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 4533
Location: Russian Federation

PostPosted: Thu Oct 08, 2009 12:53 am    Post subject: Reply with quote

You should extract icon during loading plugin and to keep its handle in memory, e.g. in DllMain. Later, when TC will ask you for icon, you just return its handle with flag FS_ICON_EXTRACTED. So, you don't need to spend some time to extract icon every time you need it. And there will be no difference in scan time.

BTW, if you call LoadImage every time in FsExtractCustomIcon, you must use FS_ICON_EXTRACTED_DESTROY flag to tell TC that icon should be destroyed after using. If you just return FS_ICON_EXTRACTED, your plugin creates extra system graphics object in each FsExtractCustomIcon call - I think this may cause troubles with drawing, especially if your function is being called many times.
_________________
VirtualPanel plugin: Temporary panel for TC (forum)
TOTALCMD.NET: TCFS2, NTLinks, CopyTree, AskParam, ConPaste, Sudo…
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Plugins and addons: devel.+support (English) All times are GMT - 6 Hours
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group