History log of /haiku/src/apps/diskusage/App.cpp
Revision Date Author Comments
# b59abca8 05-Apr-2022 Jim906 <jim_l@fastmail.com>

DiskUsage: Ensure window opens on screen

* Use BWindow::MoveOnScreen to center the window if it opens outside of the screen frame.
* Fixes #16980.

Change-Id: Icf777aea70ed0e91f57bcd425b3dddbdcb7600df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5180
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 18497f03 04-Dec-2016 Janus <janus2@ymail.com>

DiskUsage: minor clean up

* remove unused code.
* make fPreviousSnapshot local.
* change app_flags to B_SINGLE_LAUNCH
when it is invoked by add-on reuses an already scanned volume


# 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


# 9eb3adda 30-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Adapted to use TrackerAddonAppLaunch.h. A little cleanup. Not necessary for alphabranch.

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


# de23995a 08-Sep-2008 Stephan Aßmus <superstippi@gmx.de>

* Full integration as a Tracker add-on. Code taken from TextSearch.
* Fixed settings file saving when the settings file didn't exist yet.
* Fixed problem with launching DiskUsage with refs. In that case, ReadyToRun()
is called later than RefsReceived(). I remember the same thing happens on
BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27371 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


# 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


# 9eb3adda451068cecfe17fd9fbe813f79afaf945 30-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Adapted to use TrackerAddonAppLaunch.h. A little cleanup. Not necessary for alphabranch.

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


# de23995a7fe8eb1d6f5e52a03de68b6e97808e65 08-Sep-2008 Stephan Aßmus <superstippi@gmx.de>

* Full integration as a Tracker add-on. Code taken from TextSearch.
* Fixed settings file saving when the settings file didn't exist yet.
* Fixed problem with launching DiskUsage with refs. In that case, ReadyToRun()
is called later than RefsReceived(). I remember the same thing happens on
BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27371 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