Commit Graph

41 Commits

Author SHA1 Message Date
Philippe Saint-Pierre
41e6527c1f Tracker addons: strip shortcut from name, instead use resource 2013-07-11 12:38:41 -04:00
Humdinger
2e2e8f7d2e Fixed case of GUI strings. 2012-12-23 18:30:02 +01:00
Philippe Saint-Pierre
46db18d199 DiskUsage: Truncating of tabs could lead to deadlock (#9170) 2012-11-17 22:00:47 -05:00
Philippe Saint-Pierre
5dcd116f40 DiskUsage: avoid leaking the saved scan snapshot 2012-11-14 23:07:22 -05:00
Philippe Saint-Pierre
3e52a3d5e5 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)
2012-11-14 22:33:44 -05:00
Philippe Saint-Pierre
9029fc709b DiskUsage: update status view after zoom in or zoom out. fixes #6756. 2012-11-14 22:33:44 -05:00
Philippe Saint-Pierre
a4ef1e81ce DiskUsage: remove path monitoring and "outdated view" notification
Was unreliable, too many files to monitor (would exceed too easily the 4096 files limit).
2012-11-14 22:33:44 -05:00
Adrien Destugues - PulkoMandy
4c3295fc92 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/
2012-08-15 10:32:04 +02:00
Oliver Tappe
546208a539 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.
2012-04-16 21:31:22 +02:00
Philippe Saint-Pierre
a9e957e2de DiskUsage: Implement truncation in tabs labels
* To allow more devices to be shown and accessible within
  DiskUsage, truncate the columns names if necessary.

Might help but not quite fix #6800.
2011-11-13 22:20:25 -05:00
Rene Gollent
f6df6995b6 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
2011-10-31 17:07:47 +00:00
Oliver Tappe
e54b10160f Close #3223 with patch provided by Humdinger (which I adjusted to the current state of the code).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-29 16:06:08 +00:00
Jonas Sundström
560ff4478d Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-25 22:13:48 +00:00
Jonas Sundström
066522e87b Localization changes. Use of B_TRANSLATE_APP_NAME(). Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-14 14:41:13 +00:00
Philippe Saint-Pierre
95780b6475 Allow DiskUsage to be used as a Tracker add-on again.
Fixes #7343.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-07 19:13:21 +00:00
Philippe Houdoin
372bd6a113 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
2011-03-02 11:17:19 +00:00
Philippe Saint-Pierre
471b5ec496 DiskUsage :
* Reduce the height of the StatusView. It was way taller than necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 00:22:24 +00:00
Philippe Saint-Pierre
8d779aa8df 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
2011-02-23 01:08:25 +00:00
Siarzhuk Zharski
973f8e214d 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
2011-02-14 18:26:15 +00:00
Philippe Saint-Pierre
dde4ac4386 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
2010-10-12 23:50:09 +00:00
Joachim Seemer
7fd93693fd Use binary prefixes (KiB, MiB, GiB...). Fixes #6551.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-09-05 08:58:09 +00:00
Oliver Tappe
4b920fd031 * fix warnings in diskusage
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-19 16:28:42 +00:00
Wim van der Meer
6020035bb0 Fixes a ''virtual status_t BMenuItem::Invoke(BMessage*)' was hidden' warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-02 03:16:03 +00:00
Wim van der Meer
15676f3a87 Code style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-02 03:07:18 +00:00
Wim van der Meer
afa4fdf51e Fixes a 'deprecated conversion from string constant to 'char*'' warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-02 01:31:57 +00:00
Philippe Saint-Pierre
98d5d91cbf 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
2010-03-07 21:07:24 +00:00
Joachim Seemer
d12b250c96 Changed path to user guide help. Should fix #2891. Thanks, diver, for noticing. [BTW, paths to help files are another thing to remember for localization.]
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34056 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-11-15 09:00:31 +00:00
Stephan Aßmus
c1b274fd67 * Removed auto mounter code from Tracker.
* Tracker forwards auto mounter related messages to the mount_server.
* Rewrote AutoMounterSettings to not know AutoMounter and use
  the layout-management.
* Moved the "Eject When Unmounting" setting into the Mount Settings.
* Launch the mount_server during boot, but delay the script until all
  previously mounted volumes have been mounted. This solves some annoying
  timing bugs during boot. For example when you have desktop backgrounds
  on other volumes and some servers don't deal well with the situation
  of links to add-ons on other volumes becoming valid with a delay...
* src/kits/tracker/Commands.h includes the private headers/private/
  mount/MountServer.h header, which made adjustments to the DiskUsage
  Jamfile necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-10-12 14:52:17 +00:00
Jonas Sundström
1932021874 Restore the initial copyright year.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33203 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-20 10:24:43 +00:00
Jonas Sundström
8362330647 Resource clean-up. Removing bitmap icons. Updating copyright dates. Removing dead code and redundant comments. Ending files in a newline.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 19:08:43 +00:00
Jonas Sundström
9eb3adda45 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
2009-08-31 01:28:59 +00:00
Ryan Leavengood
f3f9e93a0c Some application MIME signature fixing.
We really should come up with a way to avoid the duplication between the rdef
and source code...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 03:33:37 +00:00
Stephan Aßmus
b2c9ef19dd Replaced duplicated DriveSetup icon with zuMi's DiskUsage icon. According to
a Trac comment, Ryan prefers it. Another argument pro zuMi's version is that
it is a bit more neutral, since DiskUsage can be invoked on folders, not just
entire disks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-08 08:53:33 +00:00
Stephan Aßmus
962bcf7da1 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
2009-04-15 14:49:06 +00:00
Stephan Aßmus
c3f8b9752e Patch by Chico CHEN: Just use the new path of the userguide in DiskUsage and
the help button comes to live. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 19:42:01 +00:00
Michael Lotz
fb3e35fcec Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2
build. I sure hope that this doesn't break the build for anyone else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:05:15 +00:00
Rene Gollent
fc60ab16f5 gcc4 build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:49:54 +00:00
Stefano Ceccherini
032d13f49a (gcc4) local variable shadows a parameter
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:27:31 +00:00
Stefano Ceccherini
5dcbba3155 gcc4 complains on missing declaration of exit()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-08 13:26:36 +00:00
Stephan Aßmus
de23995a7f * 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
2008-09-08 11:02:39 +00:00
Stephan Aßmus
f75a7bf508 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
2008-09-07 14:18:01 +00:00