DirSizeCalc 2.22 (content plugin)

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Except when I use SizeDisplayType=1 then the non custom fields [=dirsizecalc.Size.kB] [=dirsizecalc.Size.MB] and [=dirsizecalc.Size.GB] are all shown as [=dirsizecalc.Size.B] - wheras custom defined units are show as expected.
In this case the unit name changes from kB to KiB. If you change it manually it will work. The problem is that an already configured field won't be updated automatically.
DirSizeCalc doesn't show the same sizes inside and outside of zip archives when I use custom units.
I couldn't reproduce this problem yet. I have fixed an issue reading unit settings so let's try this again with beta 9.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

The problem is that an already configured field won't be updated automatically.
Ahh, I see.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

DirSizeCalc 2.00 BETA 9 has been released. The new version improves stability in the graphical configuration interface.

List of changes in Version 2.00 BETA 9:
  • CHANGED Directory Count field now shows number of directories if the recursive option is disabled.
  • FIXED Didn't read default unit settings if no custom unit was defined.
  • FIXED Various crashes when adding/deleting fields in the configuration tool.
Any comments are welcome but please note the list of known issues before posting:

- Just managing fields work.
- No unit managing.
- No way to change the location of DirSizeCalc.ini.
- No localization available.
- Explanation text for selected field just for the default field.
- No accurate window positioning.
- No proper handling of empty field and unit names.
- Controls not yet positioned precisely accurate.
- No apply button support. You have to click OK to save the changed settings persistently.


Technical help request:
I tried to center the main dialog but failed so far. It's property sheets dialog. I'm currently setting the DS_CENTER flag in the style member of the dialog template. Unfortunately it doesn't work although this solution can be found all over the web. If you know how to achieve this please let me know.

Please backup your existing DirSizeCalc.ini before using the configuration tool. It currently deletes all currently defined unit settings.

Download DirSizeCalc 2.00 BETA 9 (Totalcmd.net Server)

Download DirSizeCalc 2.00 BETA 9 (my own website)
Raymond
Senior Member
Senior Member
Posts: 454
Joined: 2003-02-08, 15:43 UTC

Post by *Raymond »

Lefteous wrote:List of changes in Version 2.00 BETA 9:
  • CHANGED Directory Count field now shows number of directories if the recursive option is disabled.
Now I'm very happy. Thank you!
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

This posting http://ghisler.ch/board/viewtopic.php?p=143101#143101 still applies to beta 9.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Sorry I still cannot reproduce it. Both sides are identical here. I wonder why WantByteDigits is handled as set for BMB2.


BTW: The link to the image in the other post is dead. It wasn't difficult to guess the correct name but you might want to fix it before it's too late.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I tried it with a fresh wincmd.ini, just to see if any TC-setting might be responsible - still the same result. Here is the wincmd.ini:

Code: Select all

[Configuration]
firstmnu=2106
SeparateTree=0
PanelsVertical=0
test=231
LanguageIni=WCMD_DAN.LNG
Mainmenu=WCMD_DAN.mnu
FirstTimeUnpack=0
[left]
path=c:\1\1\
ShowAllDetails=1
SpecialView=3
show=1
negative Sortorder=1
customsortorder=4
[right]
path=G:\zip\
ShowAllDetails=1
SpecialView=3
show=1
negative Sortorder=1
customsortorder=4

[CustomFields]
Titles=DirSizeCalc2
Widths1=88,22,-55,-50,-80,-80,-51,-51,-50,-54,-80,-67,-77,-62,-50,-42,22,56,77,-80
Headers1=Size (B)\nSize (kB)\nkbytes (TC)\nStørrelse (MiB)\nSize (MB)\nSize (GB)\nsize\nSize (All_Dims)\nStørrelse (BMB2)\nStørrelse (MB2)\nKomprimeret størrelse \nKompressionratio \nAntal mapper\nAntal filer\nTom\nIndeholder filer\nIndeholder undermapper\nSize (PM)
Contents1=[=dirsizecalc.Size.B]\n[=dirsizecalc.Size.kB]\n[=tc.size.kbytes]\n[=dirsizecalc.Size.MiB]\n[=dirsizecalc.Size.MB]\n[=dirsizecalc.Size.GB]\n[=tc.size]\n[=dirsizecalc.Size.All_Dims]\n[=dirsizecalc.Size.BMB2]\n[=dirsizecalc.Size.MB2]\n[=dirsizecalc.Compressed size]\n[=dirsizecalc.Compression Ratio]\n[=dirsizecalc.Directory Count]\n[=dirsizecalc.File Count]\n[=dirsizecalc.Empty]\n[=dirsizecalc.Contains Files]\n[=dirsizecalc.Contains Subdirectories]\n[=dirsizecalc.Size (PM).MB]
Options1=-1|1

[ContentPlugins]
0=%COMMANDER_PATH%\PLUGINS\WDX\DirSizeCalc\DirSizeCalc.wdx
0_flags=14
0_date=943831695
0_detect=
After analyzing it some more, I found out that it happens when I have a custom column with either of these 3 contents:

Code: Select all

[=tc.size.kbytes]
[=tc.size.Mbytes]
[=tc.size.Gbytes]
placed before the 3 columns [=dirsizecalc.Size.All_Dims], [=dirsizecalc.Size.BMB2], [=dirsizecalc.Size.MB2]

for example:

Code: Select all

Widths1=88,22,-80,-54,-80,-67
Headers1=Size kbytes (TC)\nSize (All_Dims)\nSize (BMB2)\nSize (MB2)
Contents1=[=tc.size.kbytes]\n[=dirsizecalc.Size.All_Dims]\n[=dirsizecalc.Size.BMB2]\n[=dirsizecalc.Size.MB2]
Options1=-1|1
Maybe that can be of some help?

Just for the record - here's my complete dirsizecalc.ini:

Code: Select all

[Default_CustomUnitConfig]
AllowedUnits=1
NumberOfDigits=1
DecimalSeparator=,
LeadingZero=1
ThousandSeparator=.
WantByteDigits=1
WantThousandSeparator=1
UseLangDefaultDecimalSeparator=1
UseLangDefaultThousandSeparator=1
SizeDisplayType=0

[General]
PassThroughValues=1
[Default_FieldConfig]
FieldIndex=0
CalcMode=0
FollowJunctionPoints=0
FollowMointPoints=0
Recursive=1
UseCache=1
[FieldConfig_Size]
FieldIndex=0
CalcMode=0
FollowJunctionPoints=1
FollowMointPoints=1
Recursive=1
UseCache=1
[FieldConfig_Compressed Size]
FieldIndex=1
CalcMode=0
FollowJunctionPoints=0
FollowMointPoints=0
Recursive=1
UseCache=1
[FieldConfig_Compression Ratio]
FieldIndex=2
CalcMode=0
FollowJunctionPoints=0
FollowMointPoints=0
Recursive=1
UseCache=1
[FieldConfig_Directory Count]
FieldIndex=3
CalcMode=0
FollowJunctionPoints=0
FollowMointPoints=0
Recursive=1
UseCache=1
[FieldConfig_File Count]
FieldIndex=4
CalcMode=0
FollowJunctionPoints=0
FollowMointPoints=0
Recursive=1
UseCache=1
[FieldConfig_Empty]
FieldIndex=5
CalcMode=0
FollowJunctionPoints=1
FollowMointPoints=1
Recursive=1
UseCache=1
[FieldConfig_Contains Files]
FieldIndex=6
CalcMode=0
FollowJunctionPoints=1
FollowMointPoints=1
Recursive=1
UseCache=1
[FieldConfig_Contains Subdirectories]
FieldIndex=7
CalcMode=0
FollowJunctionPoints=1
FollowMointPoints=1
Recursive=1
UseCache=1
[CustomFieldConfig_Size (PM)]
FieldIndex=0
CalcMode=0
FollowJunctionPoints=0
FollowMointPoints=0
Recursive=1
UseCache=1

[CustomUnitConfig_All_Dims]
AllowedUnits=15
NumberOfDigits=2
WantByteDigits=1

[CustomUnitConfig_BMB2]
AllowedUnits=5
NumberOfDigits=2

[CustomUnitConfig_MB2]
AllowedUnits=5
NumberOfDigits=2
MinFileSizeM=1
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Thanks for the contiued testing!
After analyzing it some more, I found out that it happens when I have a custom column with either of these 3 contents:

Code: Select all

[=tc.size.kbytes]
[=tc.size.Mbytes]
[=tc.size.Gbytes]
placed before the 3 columns [=dirsizecalc.Size.All_Dims], [=dirsizecalc.Size.BMB2], [=dirsizecalc.Size.MB2]
I have tried and can reproduce the problem. It seems TC forwards the value in the forward of this first column to DirSizeCalc. The plug-in expects the value in bytes. The plug-in SDK documentation says it's forwarded in bytes so you have found a bug in TC. I'll write a bug report.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Lefteous
Is it possible to translate "File count (no subdirs)" using LNG file?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2fenix_productions
Is it possible to translate "File count (no subdirs)" using LNG file?
Yes also custom fields can be translated. Just add a new entry to the appropriate section in dirsizecalc.lng. This is how it could be done for the German section:

Code: Select all

[deu]
File count (no subdirs)=Dateianzahl (keine Unterverzeichnisse)
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2Lefteous
Thank you.
I've tried this one previously but it didn't work. Now it is OK. Strange ;)
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Some OT posts moved to the Question about super_wdx plugin thread.

Hacker (Moderator)[/mod]
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.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

DirSizeCalc 2.00 BETA 10 has been released.

List of changes in Version 2.00 BETA 10:
  • ADDED Some settings of standard unit settings can now also be changed.
  • FIXED Set default field and unit name if user has entered an empty string.
  • FIXED Passed-through error values are now handled correctly.
  • DROPPED Completely removed the classic size display type. Binary is the new default.
  • ADDED The standard units now consist of both the binary and the decimal size display types.
  • DROPPED Removed the settings for using language default thousand and decimal separators. Language default thousand and decimal separators are now the defaults for the default unit.
  • ADDED Support for editing unit settings.
  • ADDED Edit field and unit dialogs are now positioned accurately.
Any comments are welcome but please note the list of known issues before posting:

- Please test only the settings utility in this version.
- No way to change the location of DirSizeCalc.ini.
- No localization available.
- Explanation text for selected field just for the default field.
- Controls not yet positioned precisely accurate.
- No apply button support. You have to click OK to save the changed settings persistently.
- No tabstops in field/unit edit dialogs.
- No proper handling of duplicate


Download DirSizeCalc 2.00 BETA 10 (Totalcmd.net Server)

Download DirSizeCalc 2.00 BETA 10 (my own website)
Last edited by Lefteous on 2008-03-19, 10:17 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can not make the custom size units work.

First of all the unit names doesn't show in the menu - all I see is blank items where the size units were supposed to be.

If I pick one of these blank units, or if I manually write the unit name in TC's custom column field, all I get it a column showing bytes.

Here is an example of a custom unit configuration:

Code: Select all

[CustomUnitConfig_mb2]
NumberOfDigits=0
DecimalSeparator=,
WantThousandSeparator=1
ThousandSeparator=.
AllowedUnits=4
MinFileSizeK=0
MinFileSizeM=0
MinFileSizeG=0
LeadingZero=1
WantByteDigits=1
SizeDisplayType=2
WantPrefix=1
which is an exact duplica of the [UnitConfig_MB] setting - but it shows bytes not MB!
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2petermad
Thanks for your report. I didn't really test the plug-in part of DirSizeCalc 2.00 BETA 10 although I made many changes there. It might not be a good idea to test this plug-in version thoroughly.

So this version is mainly to test the settings utility which should now read and write all settings correctly.

Sorry I should have wrote this in the announcement.
Post Reply