History log of /haiku-fatelf/src/apps/diskusage/PieView.cpp
Revision Date Author Comments
# 2e2e8f7d 23-Dec-2012 Humdinger <humdingerb@gmail.com>

Fixed case of GUI strings.


# 3e52a3d5 14-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: added ability to cancel an ongoing scan. fixes #6801.

Also, progress now goes from 0.0 to 1.0 rather than from 0.00 to 100.00
(to avoid a * 100, followed by a / 100)


# 9029fc70 12-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: update status view after zoom in or zoom out. fixes #6756.


# a4ef1e81 03-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: remove path monitoring and "outdated view" notification

Was unreliable, too many files to monitor (would exceed too easily the 4096 files limit).


# 4c3295fc 15-Aug-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Tweak DiskUsage pie view colors and drawing
* Use colors from http://haiku-os.org/files/downloads/2007-03-20_haiku-color-palette.png
* The pie view used a simple multiplication to lighten the colors, leading to overflows. Use tint_color instead
* The outline of each pie slice was drawn with lines, which did not align perfectly. Use StrokeArc with a slightly bigger pen size than the colored area instead.

Screenshot of the result:
http://pulkomandy.tk/drop/diskusage.png/


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# f6df6995 31-Oct-2011 Rene Gollent <anevilyak@gmail.com>

Apply patch by Olivier Coursiere that fixes #8075: the color index variable
wasn't constrained to the size of the color array, leading to an overflow +
crash when a large number of files were scanned. Thanks!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43036 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 372bd6a1 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Use be_control_look to draw the progressbar. The previously hardcoded one was
following the BeOS look, not our.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d779aa8 22-Feb-2011 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage :
* add two missing break; (CID 3301, 3302)
* replace strcpy, strcat and sprintf by strlcpy, strlcat and snprintf
(CID 6804, 6805, 6806, 6807, 6808, 8962, 8963)
* remove a PrintToStream (left by accident for debugging purposes)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40631 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 973f8e21 14-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Applied yet another localization patch from Jorma Karvonen. Fixes #7169.

Beside of localization task some refactoring was performed:
- strings, stored previously in resources were moved from resource definition
file to cpp files at the place of using;
- cleanup of resource definitions and Common.cpp/Common.h.

Additionall tasks, made by S.Zharski:
- the rests of resource handling tasks were purged out from Common.cpp/Common.h;
- Common.h renamed to DiskUsage.h;
- the rests of code from Common.cpp merged into DiskUsage.cpp;
- the preprocessor tricks and magics targeted mainly for resources support
were removed;
- some code style fixes and "internationalization style" fixes were made.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40493 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dde4ac43 12-Oct-2010 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage enhancement (ticket #3520)

* the volume are now displayed in tabs, mounting and unmounting volume adds and remove tabs accordingly
* the infos (file size, etc..) are now displayed below the graph
* node monitoring tells you when your current view is outdated. (the ticket suggested to adjust the view automatically, but I'll wait for comments on this first).
* Drag&Dropping a file on the graph changes the tabview to the tab representing the volume owning that file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38958 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 15676f3a 01-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Code style cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37331 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98d5d91c 07-Mar-2010 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: Usability enhancement

* When clicking in a outer sector, the middle circle now takes the color the outer sector had, helping to keep some consistency.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35779 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 962bcf7d 15-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by stpere:
* Make DiskUsage use Tracker's "Get Info" panel instead of it's own (still
falls back to it's own when Tracker isn't running...)
* Fixed some drawing issues.
* Removed the window aspect constraints.

Thanks a lot! Philippe, please have a look how I changed the license, and the
only coding style violation is that you need to watch out for the 80 chars per
line limit. :-) Great work!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30171 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fc60ab16 08-Sep-2008 Rene Gollent <anevilyak@gmail.com>

gcc4 build fixes.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27381 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f75a7bf5 07-Sep-2008 Stephan Aßmus <superstippi@gmx.de>

Imported the nice disk usage tool "Guido" into the repo as "DiskUsage". Guido
was originally written by Mike Steed. The code was freely available from his
website at one point, which I am no longer able to find. I believe the license
was a kind of public domain, at least compatible with our MIT/X11 license.

The original code was well written with it's own coding style which was not
very far from the Haiku coding style. I have hopefully adopted it completely
to our coding style. While I did this, I came across several places with
comments for a minor bug which I was able to resolve all. I also found ways
to simplify certain places and I elliminated all non-necessary "inter-class
knowledge" which was used to directly access members of other classes which
should have been private.

All in all, this should be a nice little addition, a useful tool which I found
handy a lot of times. If I should not have added this without first consulting
everyone, please voice your disagreement, and it can be removed it again. It
is not part of the image yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27357 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3e52a3d5e5479a4de086a481f3363765149fbd4e 14-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: added ability to cancel an ongoing scan. fixes #6801.

Also, progress now goes from 0.0 to 1.0 rather than from 0.00 to 100.00
(to avoid a * 100, followed by a / 100)


# 9029fc709be59c8c572373ff5c005c9010c6d657 12-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: update status view after zoom in or zoom out. fixes #6756.


# a4ef1e81ce551344c4f9d7489104a621ff390ed2 03-Nov-2012 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: remove path monitoring and "outdated view" notification

Was unreliable, too many files to monitor (would exceed too easily the 4096 files limit).


# 4c3295fc92ffeae75a603777bdc28041c3ff17df 15-Aug-2012 Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>

Tweak DiskUsage pie view colors and drawing
* Use colors from http://haiku-os.org/files/downloads/2007-03-20_haiku-color-palette.png
* The pie view used a simple multiplication to lighten the colors, leading to overflows. Use tint_color instead
* The outline of each pie slice was drawn with lines, which did not align perfectly. Use StrokeArc with a slightly bigger pen size than the colored area instead.

Screenshot of the result:
http://pulkomandy.tk/drop/diskusage.png/


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# f6df6995b6b4a58f3fa5c6b8c8853ad4c38628df 31-Oct-2011 Rene Gollent <anevilyak@gmail.com>

Apply patch by Olivier Coursiere that fixes #8075: the color index variable
wasn't constrained to the size of the color array, leading to an overflow +
crash when a large number of files were scanned. Thanks!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43036 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 372bd6a1132c9672f1f4160c245ad460f647b925 02-Mar-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Use be_control_look to draw the progressbar. The previously hardcoded one was
following the BeOS look, not our.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d779aa8df90e02f0d5f0b497d1cb6d947ceaa0d 22-Feb-2011 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage :
* add two missing break; (CID 3301, 3302)
* replace strcpy, strcat and sprintf by strlcpy, strlcat and snprintf
(CID 6804, 6805, 6806, 6807, 6808, 8962, 8963)
* remove a PrintToStream (left by accident for debugging purposes)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40631 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 973f8e214d612688c4a30fd48572a7eb57c902be 14-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Applied yet another localization patch from Jorma Karvonen. Fixes #7169.

Beside of localization task some refactoring was performed:
- strings, stored previously in resources were moved from resource definition
file to cpp files at the place of using;
- cleanup of resource definitions and Common.cpp/Common.h.

Additionall tasks, made by S.Zharski:
- the rests of resource handling tasks were purged out from Common.cpp/Common.h;
- Common.h renamed to DiskUsage.h;
- the rests of code from Common.cpp merged into DiskUsage.cpp;
- the preprocessor tricks and magics targeted mainly for resources support
were removed;
- some code style fixes and "internationalization style" fixes were made.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40493 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dde4ac438661765184581a6aeb2cd098d6b1a06f 12-Oct-2010 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage enhancement (ticket #3520)

* the volume are now displayed in tabs, mounting and unmounting volume adds and remove tabs accordingly
* the infos (file size, etc..) are now displayed below the graph
* node monitoring tells you when your current view is outdated. (the ticket suggested to adjust the view automatically, but I'll wait for comments on this first).
* Drag&Dropping a file on the graph changes the tabview to the tab representing the volume owning that file.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38958 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 15676f3a876aa89db228c24032b7d6ee970253d6 01-Jul-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Code style cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37331 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 98d5d91cbf738f24973367c8cd93f1a72ea2a15d 07-Mar-2010 Philippe Saint-Pierre <stpere@gmail.com>

DiskUsage: Usability enhancement

* When clicking in a outer sector, the middle circle now takes the color the outer sector had, helping to keep some consistency.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35779 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 962bcf7da154e9ccf723bd28fb1e36b2f59ed075 15-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by stpere:
* Make DiskUsage use Tracker's "Get Info" panel instead of it's own (still
falls back to it's own when Tracker isn't running...)
* Fixed some drawing issues.
* Removed the window aspect constraints.

Thanks a lot! Philippe, please have a look how I changed the license, and the
only coding style violation is that you need to watch out for the 80 chars per
line limit. :-) Great work!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30171 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fc60ab16f5c51c3393ebb1d4095bac89931dbbe0 08-Sep-2008 Rene Gollent <anevilyak@gmail.com>

gcc4 build fixes.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27381 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f75a7bf508f3156d63a14f8fd77c5e0ca4d08c42 07-Sep-2008 Stephan Aßmus <superstippi@gmx.de>

Imported the nice disk usage tool "Guido" into the repo as "DiskUsage". Guido
was originally written by Mike Steed. The code was freely available from his
website at one point, which I am no longer able to find. I believe the license
was a kind of public domain, at least compatible with our MIT/X11 license.

The original code was well written with it's own coding style which was not
very far from the Haiku coding style. I have hopefully adopted it completely
to our coding style. While I did this, I came across several places with
comments for a minor bug which I was able to resolve all. I also found ways
to simplify certain places and I elliminated all non-necessary "inter-class
knowledge" which was used to directly access members of other classes which
should have been private.

All in all, this should be a nice little addition, a useful tool which I found
handy a lot of times. If I should not have added this without first consulting
everyone, please voice your disagreement, and it can be removed it again. It
is not part of the image yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27357 a95241bf-73f2-0310-859d-f6bbb57e9c96