History log of /haiku/src/apps/activitymonitor/ActivityWindow.cpp
Revision Date Author Comments
# 396ffed5 28-Sep-2022 Augustin Cavalier <waddlesplash@gmail.com>

ActivityMonitor: Remove non-Haiku code, use more spacing constants.


# 58af5dce 24-Dec-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

ActivityMonitor: add CPU speed graph

The info is now available in cpu_info, we should do something with it.

Change-Id: Iac7bd697783d63b5c84c7da33770b3c9a7d417b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4832
Reviewed-by: Kacper Kasper <kacperkasper@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 15ba64aa 13-Jul-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Unify Settings menu shortcut

Use , as the shortcut key for settings in all built-in apps. Some used
S, but that's already the shortcut for saving. , is the recommended
shortcut in the HIG already, but built-in apps were not updated to
match.

Fixes #11733.


# 85200a1c 25-May-2019 Augustin Cavalier <waddlesplash@gmail.com>

ActivityMonitor: Add swap space to the default memory graph.

I was doing some analysis of the memory areas the kernel was using
after a long uptime, and found that there were 1.3GB worth of
"slab area"s, but the kernel was "only" using 550MB according to
ProcessController ... but then I realized I wasn't looking at
swap, which showed another 700MB of usage.

So, adding it to ActivityMonitor's main memory graph seems to
make sense then. At least most Linux system monitors do this.


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


# d0ac6099 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use B_USE_WINDOW_SPACING

Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.


# 2603848d 14-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

ActivityMonitor: improve initial window size, and position.

* By making it scale with the font size, and by using
BWindow::CenterOnScreen().


# 8361c0f1 23-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

ActivityMonitor: Fix leak of message when saving settings.

Adding a message to a message does not transfer ownership.


# 2031159e 02-Dec-2013 Jérôme Duval <jerome.duval@gmail.com>

ActivityMonitor: completes hrev46476

* set the settings window feel to modal when going always on top.
* fix the settings window activation when already opened.


# 89e0a7fb 01-Dec-2013 Freeman Lou <freemanlou2430@Yahoo.com>

ActivityMonitor: Settings now modal when always on top enabled.

* #9534

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# 57ad8744 07-Mar-2013 Ryan Leavengood <leavengood@gmail.com>

Use GetBool and SetBool convenience methods for always on top.


# f4b00418 07-Mar-2013 Ryan Leavengood <leavengood@gmail.com>

Save always on top setting and fix style issues.


# b58ffb0b 06-Mar-2013 Matt Madia <mattmadia@gmail.com>

Automatic whitespace cleanup. No functional change.


# 6cf270f8 10-Feb-2013 Dancsó Róbert <dancso.robert@d-rendszer.hu>

Added "Always on top" menu to the ActivityMonitor.

Signed-off-by: Matt Madia <mattmadia@gmail.com>


# 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.


# 11c7ff53 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

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


# 560ff447 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

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


# b97c5149 15-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)

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


# 47798a10 13-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Localization changes. Stop using AddCatalogEntryAttribute rule in Jamfiles.

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


# 50988196 13-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Fixing #6926 "ActivityMonitor localization patch" by Jorma Karvonen.
This application was already localized but some lines were missed. The name
of floating Settings window localized using B_TRANSLATE_WITH_CONTEXT to prevent
possible functionality breackage during using it from other module (and other
translation context) by window scripting.



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


# 5b6139e3 17-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Made app name localizable, as it seems that it should be possible after all.


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


# 4840a72f 08-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Localized, part of a GCI task (thanks protonux)


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


# 8b0cc2ea 02-Sep-2010 Alex Wilson <yourpalal2@gmail.com>

Fix simple regression from r38512 in ActivityMonitor. Expected default spacing was 0, but this must now be explicitly requested.


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


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# e3bf105a 09-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

When adding a new view in Activity Monitor, make sure the new view use the same refresh interval as the already existing views, to avoid having different refresh intervals active in the monitor.


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


# 1bb87bd0 13-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a settings window - right now, you can only change the time interval,
though.
* Shortened the time interval defaults to 250 ms; the drawing updates are made
every 500 ms - this still seems to have only little influence on CPU load over
here (YMMV).
* The resolution/scale change is now applied to all views, not just the current.
* Changed the pen size of the chart to 1.5.


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


# 51591198 14-Jul-2008 Axel Dörfler <axeld@pinc-software.de>

* Now use two views when starting (one memory, one CPU usage). The third view
that is added to the window is a networking monitor, all later views default
to CPU usage again.
* DataSources can now share a single adaptive scale, so that they become
comparable in a single view.
* The networking in/out sources are now using this feature.
* DataHistory::ValueAt() now uses binary search to find the right data_item;
this also fixes bug #2140, and makes it possible to change the refresh rate
(which is not yet implemented, though).
* Zooming the timeline now also works by clicking the first mouse button and
dragging the mouse around (instead of only via the scroll wheel, in case you
hadn't noticed yet :-)).


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


# 3f315b26 18-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Moved the "Remove View" functionality into the popup menu of the ActivityView


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


# 065e8de0 17-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Improved layout of the activity views: each view now has separate layout
items for the history and the legend, causing the history parts of all
views to be of equal size if used (which ActivityWindow now does, of course).


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


# 00d5cfaa 18-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

Fixed view persistence again.


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


# cbd4bc95 17-Apr-2008 François Revol <revol@free.fr>

Made ActivityMonitor buildable under BeOS (at least BONE).
This is only temporary, to help test adding data sources, so the gross #ifdef __HAIKU__ are intentional to keep BeOS-only code (without layout support) trackable. It is not fully functional but sufficient for testing and will go away later.


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


# 3a4a2141 13-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

Some more work on the ActivityMonitor:
* Added legend.
* Added network receiving/sending DataSource.
* Now uses the new layout engine.
* Added support for per CPU DataSources, and added a per CPU CPU usage
DataSource.
* The DataSources can now be turned on and off via popup menu.
* You can now add more than one view to the window.
* The DataSources of the ActivityViews are now remembered.
* Now uses an offscreen bitmap to reduce flicker (it should now no longer
flicker with accelerated graphics).


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


# 18d3e65e 06-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* The beginnings of an activity monitor application. Very bare and feature-less
right now, but it's already working (and shows that we better compute our
system_info::cached_pages field directly).
* I am not sure if we want to keep this app here, merge it with
ProcessController, or have it as a separate (3rdparty) app. Opinions welcome.


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


# 2603848d7d91b37df8894ae3b1bf4fb2f1020c88 14-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

ActivityMonitor: improve initial window size, and position.

* By making it scale with the font size, and by using
BWindow::CenterOnScreen().


# 8361c0f11a24c782a7ab21e8f26a5f0236ec6a4c 23-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

ActivityMonitor: Fix leak of message when saving settings.

Adding a message to a message does not transfer ownership.


# 2031159e73cc6506c6a60f4caec806b852a69e20 02-Dec-2013 Jérôme Duval <jerome.duval@gmail.com>

ActivityMonitor: completes hrev46476

* set the settings window feel to modal when going always on top.
* fix the settings window activation when already opened.


# 89e0a7fb849124f2cb25a80410de15ba2f43eb38 01-Dec-2013 Freeman Lou <freemanlou2430@Yahoo.com>

ActivityMonitor: Settings now modal when always on top enabled.

* #9534

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# 57ad8744837fa88a3bbc87e63a72bfdbfa99596e 07-Mar-2013 Ryan Leavengood <leavengood@gmail.com>

Use GetBool and SetBool convenience methods for always on top.


# f4b00418348b564b3daf32e0c7f937c2a47a5ea3 07-Mar-2013 Ryan Leavengood <leavengood@gmail.com>

Save always on top setting and fix style issues.


# b58ffb0b4af5504e251c09b30885823cd384fcd4 06-Mar-2013 Matt Madia <mattmadia@gmail.com>

Automatic whitespace cleanup. No functional change.


# 6cf270f88e7c79ef2fc4c31b76eb79f9085bb9ca 10-Feb-2013 Dancsó Róbert <dancso.robert@d-rendszer.hu>

Added "Always on top" menu to the ActivityMonitor.

Signed-off-by: Matt Madia <mattmadia@gmail.com>


# 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.


# 11c7ff531a01b64773d8a8f0e02c1c7c9f27ca29 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

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


# 560ff4478d5c85455ea3e5ed5e392ef93132d545 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

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


# b97c51490af2a4e3a20d6baf7d31e59b63924e99 15-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)

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


# 47798a10f7838631d031aabb0078bf66d011cfbd 13-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Localization changes. Stop using AddCatalogEntryAttribute rule in Jamfiles.

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


# 509881961f852ee4e7ed7f463d19f74f7ceacce9 13-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Fixing #6926 "ActivityMonitor localization patch" by Jorma Karvonen.
This application was already localized but some lines were missed. The name
of floating Settings window localized using B_TRANSLATE_WITH_CONTEXT to prevent
possible functionality breackage during using it from other module (and other
translation context) by window scripting.



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


# 5b6139e3986b4b0dc36c00381edba49da9b11145 17-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Made app name localizable, as it seems that it should be possible after all.


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


# 4840a72fa71f80b8db50990f04b9901da16de08d 08-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Localized, part of a GCI task (thanks protonux)


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


# 8b0cc2ea429ba929a01a7cba8482701393dc21b8 02-Sep-2010 Alex Wilson <yourpalal2@gmail.com>

Fix simple regression from r38512 in ActivityMonitor. Expected default spacing was 0, but this must now be explicitly requested.


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


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# e3bf105abfda7995e8f9a1be031e2cdcb9ad0f42 09-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

When adding a new view in Activity Monitor, make sure the new view use the same refresh interval as the already existing views, to avoid having different refresh intervals active in the monitor.


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


# 1bb87bd0b16cfc690abe9a3a492ff8a755f1eced 13-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a settings window - right now, you can only change the time interval,
though.
* Shortened the time interval defaults to 250 ms; the drawing updates are made
every 500 ms - this still seems to have only little influence on CPU load over
here (YMMV).
* The resolution/scale change is now applied to all views, not just the current.
* Changed the pen size of the chart to 1.5.


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


# 51591198d6bef95aae6948b6d2c879c549141648 14-Jul-2008 Axel Dörfler <axeld@pinc-software.de>

* Now use two views when starting (one memory, one CPU usage). The third view
that is added to the window is a networking monitor, all later views default
to CPU usage again.
* DataSources can now share a single adaptive scale, so that they become
comparable in a single view.
* The networking in/out sources are now using this feature.
* DataHistory::ValueAt() now uses binary search to find the right data_item;
this also fixes bug #2140, and makes it possible to change the refresh rate
(which is not yet implemented, though).
* Zooming the timeline now also works by clicking the first mouse button and
dragging the mouse around (instead of only via the scroll wheel, in case you
hadn't noticed yet :-)).


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


# 3f315b26d22f01ec0752cd634817252c268454f7 18-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Moved the "Remove View" functionality into the popup menu of the ActivityView


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


# 065e8de0d5ffd72d355f2f800b88e8bc12b7c19d 17-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Improved layout of the activity views: each view now has separate layout
items for the history and the legend, causing the history parts of all
views to be of equal size if used (which ActivityWindow now does, of course).


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


# 00d5cfaa7e36fe8877b3c9a998e716de4822082c 18-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

Fixed view persistence again.


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


# cbd4bc95732d8effec986f41fd877beec55cf19b 17-Apr-2008 François Revol <revol@free.fr>

Made ActivityMonitor buildable under BeOS (at least BONE).
This is only temporary, to help test adding data sources, so the gross #ifdef __HAIKU__ are intentional to keep BeOS-only code (without layout support) trackable. It is not fully functional but sufficient for testing and will go away later.


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


# 3a4a214197712d83f79b1f035937ada3d486dbea 13-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

Some more work on the ActivityMonitor:
* Added legend.
* Added network receiving/sending DataSource.
* Now uses the new layout engine.
* Added support for per CPU DataSources, and added a per CPU CPU usage
DataSource.
* The DataSources can now be turned on and off via popup menu.
* You can now add more than one view to the window.
* The DataSources of the ActivityViews are now remembered.
* Now uses an offscreen bitmap to reduce flicker (it should now no longer
flicker with accelerated graphics).


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


# 18d3e65ebdb42c4a1a7e2963101de48107b930f1 06-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* The beginnings of an activity monitor application. Very bare and feature-less
right now, but it's already working (and shows that we better compute our
system_info::cached_pages field directly).
* I am not sure if we want to keep this app here, merge it with
ProcessController, or have it as a separate (3rdparty) app. Opinions welcome.


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