DirSizeCalc 2.22 (content plugin)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Well, then here is another thing:

If I configure like this:

http://madsenworld.dk/tcmd/dcc_b10.png

I get this:

Code: Select all

[CustomUnitConfig_Custom unit 0]
NumberOfDigits=1
DecimalSeparator=,
WantThousandSeparator=1
ThousandSeparator=.
AllowedUnits=5
MinFileSizeK=1024
MinFileSizeM=0
MinFileSizeG=1073741824
LeadingZero=1
WantByteDigits=1
SizeDisplayType=1
WantPrefix=1
I would expext this:

Code: Select all

[CustomUnitConfig_Custom unit 0]
NumberOfDigits=1
DecimalSeparator=,
WantThousandSeparator=1
ThousandSeparator=.
AllowedUnits=5
MinFileSizeK=
MinFileSizeM=0
MinFileSizeG=
LeadingZero=1
WantByteDigits=1
SizeDisplayType=1
WantPrefix=1
Or this:

Code: Select all

[CustomUnitConfig_Custom unit 0]
NumberOfDigits=1
DecimalSeparator=,
WantThousandSeparator=1
ThousandSeparator=.
AllowedUnits=5
MinFileSizeK=0
MinFileSizeM=0
MinFileSizeG=0
LeadingZero=o
WantByteDigits=1
SizeDisplayType=1
WantPrefix=1
I guess that AllowedUnits=5 rules out MinFileSizeK and MinFileSizeG, but it is a little confusing that MinFileSizeK and MinFileSizeG gets a value when they are unselected.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

I think it would be strange if you would activate the checkboxes and suddenly a default value would appear. The edit boxes are deactivated to indicate that the values aren't used.
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

DirSizeCalc can't calculate size of directory inside archive :(
Without this feature plugin (very great though) is useless for me :cry:
#213083 Single user license
BranchViewExtended
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

DirSizeCalc can't calculate size of directory inside archive
It can, open your eyes.

Icfu
This account is for sale
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2kotlomoy
You have to start the settings tool and select the size field. Then have a look at the "Total Commander 7 bug workaround" box.
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Post by *kotlomoy »

Hmm... nop, it can not :(

How it was just after installing DirSizeCalc:
Sorting directories by size works.
Column "Size (in background)" is empty inside archives.


I have launched DirSizeCalcSettings.exe and ticked option "Show values for Size field even in archives...". Then I've reinstalled plugin.

How it is now:
Sorting directories by size does not work.
Inside archives the field "Size (in background)" shows size of files.
Inside archives the field "Size (in background)" shows nulls instead of size of directories.


What wrong with it?
#213083 Single user license
BranchViewExtended
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2kotlomoy
What wrong with it?
That's why the option is called "Total Commander 7 bug workaround". Plug-in can request passing of sizes of files in archives frm Total Commander. If a plug-in enables this feature Total Commander also disables sorting by this column. This is how it works now and the user has to decide which of both features is important. As you can imagine I'm not really happy about this. I hope it will be changed in Total Commander 7.5.
Inside archives the field "Size (in background)" shows nulls instead of size of directories.
Unfortunately this is not supported by Total Commander at the moment. I hope it will be added in Total Commander 7.5. See also this feature request thread:
http://www.ghisler.ch/board/viewtopic.php?p=121297#121297
Feel free to support my request.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

DirSizeCalc 2.00 BETA 11 has been released.

List of changes in Version 2.00 BETA 11:
  • FIXED Dulicate field/unit names are now handled properly.
  • ADDED Localization. Currently the language file contains an English template and a German translation.
  • FIXED Minumum file size now displays the proper prefix depending on the chosen size display type.
  • FIXED Custom units didn't work in the last version.
  • FIXED Standard units now consider potentially changed settings.
  • FIXED Couldn't change "show prefix" for standard units.
  • DROPPED Default field and default unit are now obsolote.
  • FIXED Labels for empty type fields were not updated.
  • ADDED Change location dialog.
  • ADDED Unit preview dialog.
Any comments are welcome but please note the list of known issues before posting:

- Controls not yet positioned precisely accurate.
- No tabstops in field/unit edit dialogs.

This version supports localization. The file pluginst.inf contains a string that describes the plug-in. The file dirsizecalc.lng contains the localization for the plug-in and the settings utility. It's a good time to start your translation although I cannot promise that there will be minor changes to the language file.

This is last beta release of DirSizeCalc 2. The releases before DirSizeCalc 2 final will be release candidates that include minor bugfixes and hopefully some translations. I will also write a documentation.

Download DirSizeCalc 2.00 BETA 11 (Totalcmd.net Server)

Download DirSizeCalc 2.00 BETA 11 (my own website)
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Danish translation can be downloaded at: http://madsenworld.dk/tcmd/wdx_dirsizecalc_2.00_danish.zip


Shouldn't the word prefix in string 403 and 415 rather be suffix ? - after all, it is put at the end of the field. Or if it is put in the front in some langages then use affix ?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Thanks for your translation.
Shouldn't the word prefix in string 403 and 415 rather be suffix ? - after all, it is put at the end of the field. Or if it is put in the front in some langages then use affix ?
I'm not sure
http://en.wikipedia.org/wiki/Binary_prefix
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

In computing, binary prefixes are names or associated symbols that can precede a unit of measure (such as a byte)
I think the crucial words here are: "precede a unit of measure" - so the prefix is kilo or mega, and it is prefixed to the word byte.

But in the case of DirSizeCalc it is the whole unit (e.g. kilobyte, kB of KiB) that we are referring to - it is not a matter of wether you want to show Ki, Mi ot Gi in front of B, but wether you want to show KiB, MiB or GiB at all - and if you chose to have the unit shown, then have it show as a suffix.

Maybe it would be better to use:

Code: Select all

403=Multipliers and units
415=Show &unit
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

But in the case of DirSizeCalc it is the whole unit
The option allows the user to choose between SI prefixes and binary prefixes.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

But it also allows the user to choose between showing units or not (string 415).

So maby it is only string 415 that needs changing. I must admit I didn't know what it was for the first time i saw it.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
So maby it is only string 415 that needs changing.
Yes I think it could be changed.
I must admit I didn't know what it was for the first time i saw it.
I hope the new unit preview dialog will make unit configuration much easier as it's makes changes visible instantly.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I hope the new unit preview dialog will make unit configuration much easier as it's makes changes visible instantly.
That unit preview is a great addendum :-)

I wonder if it would be possible to have the DirSizeCalcSettings.exe make the plugin reload when any changes have been made. Now I have to change the view to one not having any dirsizecalc fields, then remove plugins from memory and then reselect the custom columns view that I wanted to see the changes for - or restart TC.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply