History log of /haiku/src/apps/powerstatus/PowerStatus.cpp
Revision Date Author Comments
# ef1427bb 30-Jan-2024 Augustin Cavalier <waddlesplash@gmail.com>

PowerStatus: Add logic to automatically install in Deskbar.

Modeled after NetworkStatus. Also add it to
default_deskbar_items.sh.

Fixes #18748.


# 3e4b839b 30-Nov-2022 Samuel D. Crow <samuraileumas@yahoo.com>

PowerStatus: Abort cleanly after battery not detected.

fixes #18113

Change-Id: Id346807cea95fc4814f261cc0203fa6f8e4ee132
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5873
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 4fb9b300 05-Aug-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

PowerStatus: exit early if no battery is detected.

Fixes #7472


# c3c3360f 19-Oct-2017 John Scipione <jscipione@gmail.com>

Deskbar and PowerStatus: style updates

80 char limit in BarApp.cpp
2 newlines and remove unnecessary curly braces in StatusView.cpp

Replicant: tiny whitespace style fix and remove trailing tab chars


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


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


# 3bd54e05 24-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll: i18n PowerStatus. Thanks!


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


# 173ed092 04-Dec-2010 Joachim Seemer <humdingerb@googlemail.com>

Changed wording of installation alert again.

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


# 7cf8a711 04-Dec-2010 Joachim Seemer <humdingerb@googlemail.com>

Changed wording of installation alert.

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


# 95ea1dab 11-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Improved the disabled look (in case there is no battery -- apparently, the
ACPI interface needs some more work, as it currently uses
BATTERY_CRITICAL_STATE to report that there is no battery...).
* Cleanup of many more of Clemens' coding style violations...


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


# bd767f5a 11-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Worked over the battery look a bit, looks much better now IMO.
* Made the replicant transparent (for background images).
* Fixed many of Clemen's coding style violations.


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


# d75bff02 01-Dec-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed the build under haiku

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


# d493e695 29-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

Wrote a small application to show the power status in a window, replicant, or the
Deskbar tray. Currently only works under BeOS, and has rather ugly graphics; Haiku
doesn't have an APM kernel interface yet, and I was too lazy to make any nice
icons/drawings :)


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


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


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


# 3bd54e05be18c72d8a22cae8aa0cd9657ebefb7c 24-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll: i18n PowerStatus. Thanks!


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


# 173ed09251c229c111a5ef5fa492b861dcc99994 04-Dec-2010 Joachim Seemer <humdingerb@googlemail.com>

Changed wording of installation alert again.

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


# 7cf8a711bc34f7dfff270d2473ea68817b247dec 04-Dec-2010 Joachim Seemer <humdingerb@googlemail.com>

Changed wording of installation alert.

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


# 95ea1dab5af35be055bf55b19937dfc9bf55caae 11-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Improved the disabled look (in case there is no battery -- apparently, the
ACPI interface needs some more work, as it currently uses
BATTERY_CRITICAL_STATE to report that there is no battery...).
* Cleanup of many more of Clemens' coding style violations...


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


# bd767f5a4e51e6fb6ee3d4f81085052dfb6ee11c 11-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Worked over the battery look a bit, looks much better now IMO.
* Made the replicant transparent (for background images).
* Fixed many of Clemen's coding style violations.


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


# d75bff02b302115eee0d2679d9d00c20fac59f93 01-Dec-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed the build under haiku

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


# d493e695274d0c429af354899cfdef575d23569a 29-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

Wrote a small application to show the power status in a window, replicant, or the
Deskbar tray. Currently only works under BeOS, and has rather ugly graphics; Haiku
doesn't have an APM kernel interface yet, and I was too lazy to make any nice
icons/drawings :)


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