Customizable status panel

Here you can propose new features, make suggestions etc.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 11058
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Customizable status panel

Post by *Hacker » 2013-03-27, 22:21 UTC

Hi Christian and all,
I would like to suggest a customizable status panel. One should be able to define it just like a custom tooltip where lines are separated by \n. The interesting new feature would be the ability to define different scopes for values for which it makes sense. The scopes would be:

- current file: TC would pass the filename under cursor to the WDX plugin, just as it is now; this is the default scope
- selected files: TC would pass the file names of all the selected files to the WDX plugin; the plugin could then show eg. the total length of all selected MP3's; the most commonly used codec for the selected videos, etc.
- all files in current dir: TC would either pass the current dir or a list of all files in the current dir to the plugin (up for discussion); same possibilities as above, just without the need to select all files
- current volume: useful for showing the free size, and I am sure there would be other uses
- other scopes - up for discussion

Another (IMO more limited) approach would be that TC only passes the file names to the WDX plugin one by one and then does all the calculations like SUM, AVERAGE, MEDIAN, COUNT, etc. by itself. The advantage would be that there needs to be no update of the plugin interface to be able to pass more than one file name and the benefits would be immediately available. Perhaps we could combine both approaches - allow plugin developers to come up with novel uses for what values can be shown for multiple files while we'd have this (backup) alternative for plugins which would not support this new system of returning one value after processing multiple files.


The next question would be how to define which scope to use for a given WDX plugin field.

Option 1: use new field names in plugins, like [=dirsizecalc.Size.SelectedFiles]
Option 2: the field names stay as they are now, like [dirsizecalc.Size] but a few radio buttons are added to the configuration dialog:
o File under cursor
o Selected files
o All files in current dir
o Current volume
If a legacy plugin cannot handle more than one file only the radio button "File under cursor" would be available.


This is pretty much an idea in progress. Any discussion about how this would best be implemented is very much welcome.

Thank you
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.

User avatar
MVV
Power Member
Power Member
Posts: 8142
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2013-03-28, 05:52 UTC

I think that both status panel and drive combobox panel texts may be customized this way. Some WDX (maybe internal) may return used/free/total/ drive space and accept any file. Some fields may have prefix to process all dir's files or focused or selected file(s), e.g. [sum=tc.size] or [sum_all=tc.size], with no prefix only focused file may be processed (this case may be used for free volume space too). I think it would be better to set different definition strings for cases with and without selection. But some problem is that someone may need to align some fields (such as text fields), especially with variable-width font.

JFierce7
Senior Member
Senior Member
Posts: 203
Joined: 2005-07-17, 10:47 UTC

Re: Customizable status panel

Post by *JFierce7 » 2018-08-22, 13:05 UTC

No news here? (yes I know there are even older posts regarding this topic...)

I simply want to put the drive's free space inside the status area in addition to existing entries.

Post Reply