History log of /haiku/src/kits/interface/Deskbar.cpp
Revision Date Author Comments
# 1826e60d 08-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Do not locate DeskBar window by its name

The name changes when translations are enabled. Use the index instead.

Fixes #8982.

Thanks to X512 for catching the problem!

Change-Id: I3c4e943f8476e46e7378a50e83a7758f694a8dc0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2606
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# efafab64 02-Nov-2018 Axel Dörfler <axeld@pinc-software.de>

Deskbar: Resizable tray

* Adds max width and height arguments to
instantiate_deskbar_(item|entry).
* Old applications just stay with a 16x16 scaled icon, though.
* All used apps within the repository are converted to the new call
besides the input_server input method icon (that will need further
API changes in the input_server).

Change-Id: I29cc439396917be2c24135888459d31364997dff
Reviewed-on: https://review.haiku-os.org/656
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 5fd3bc6d 03-Nov-2018 Axel Dörfler <axeld@pinc-software.de>

BDeskbar: Moved constants to shared header

* Instead of duplicating them in different files.


# 4824497d 27-Nov-2017 John Scipione <jscipione@gmail.com>

BDeskbar: Set auto hide default value to false

Didn't notice this before so had to do a quick fix. Catch it before
Coverity can.


# fc23c097 26-Nov-2017 John Scipione <jscipione@gmail.com>

BDeskbar & Deskbar: export window bool settings to BDeskbar

Add methods to get and set "Always on top", "Auto raise", and "auto hide"
which are all booleans which control aspects of the Deskbar window to
BDeskbar.

Set the bool to the default value initially. Check if sending the
message succeeds, if so check the reply which also fills out the bool.
Don't check to see if reply succeeded because the bool will only be
overwritten if it did.

Follow the BDeskbar convention Is...() for getter, Set...() for setter
e.g IsAlwaysOnTop() is the getter, SetAlwaysOnTop() is the setter.

Define new message constants to call the newly created methods.
Follow BDeskbar convention: 'gtla' is used for getter, 'stla' for setter.
g/s for getter/setter, tla is an all-lowercase code unique to each
getter/setter pair.

Copy/paste these message constants into BarApp.h unchanged. Replace four
letter codes with imported message constants in BarApp.cpp and
BarWindow.cpp. Much nicer than using bare codes.

The new BDeskbar methods are all handled by TBarApp. The getters send
back a reply message containing the bool while the setters fall through
to existing setter cases.


# f8811591 26-Nov-2017 John Scipione <jscipione@gmail.com>

BDeskbar: Style fixes

Update Copyright in cpp, add myself, alphabetize, standardize
Pointer style in cpp
Update some comments
Some 80 char stuff
pragma section headers
whitespace


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

Should have been part of yesterday's Deskbar changes.



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


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

* Added new Haiku method IsRunning().
* Rewrote header.


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


# 860b3252 06-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Almost rewrote BDeskbar. Fixed some bugs. Added some ToDo comments - the
functions will currently deadlock when called from within the Deskbar.


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


# 4c6085f6 29-Oct-2004 Jérôme Duval <korli@users.berlios.de>

Clean up


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


# 9326cb6d 31-Oct-2003 François Revol <revol@free.fr>

better error report from BDeskbar::RemoveItem(), though OpenDeskbar should be fixed too


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


# d80dc8f7 04-Jul-2003 Jérôme Duval <korli@users.berlios.de>

Fixed status_t BDeskbar::AddItem(entry_ref *addon, int32 *id)


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


# 0fb7a107 28-Sep-2002 shatty <shatty@nowhere.fake>

fixed newline at end of file.


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


# 63c051f2 25-Sep-2002 jrand <jrand@nowhere.fake>

Adding implementation and tests for global function get_deskbar_frame().


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


# b5b2bdae 24-Sep-2002 jrand <jrand@nowhere.fake>

Finishing BDeskbar implementation and fixing minor test issue.


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


# 74ec84df 23-Sep-2002 jrand <jrand@nowhere.fake>

Adding first attempt at source code for BDeskbar.


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


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

Should have been part of yesterday's Deskbar changes.



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


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

* Added new Haiku method IsRunning().
* Rewrote header.


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


# 860b32520c070ec7ea650222dcb5da1316b24cf2 06-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Almost rewrote BDeskbar. Fixed some bugs. Added some ToDo comments - the
functions will currently deadlock when called from within the Deskbar.


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


# 4c6085f68c80f6c1b2aee2011c9a0bd6e4781278 29-Oct-2004 Jérôme Duval <korli@users.berlios.de>

Clean up


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


# 9326cb6d822732e0b3c403cdacb90455cf6ee1eb 31-Oct-2003 François Revol <revol@free.fr>

better error report from BDeskbar::RemoveItem(), though OpenDeskbar should be fixed too


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


# d80dc8f76a463f7914ef798ccb8a04fd17ab3b93 04-Jul-2003 Jérôme Duval <korli@users.berlios.de>

Fixed status_t BDeskbar::AddItem(entry_ref *addon, int32 *id)


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


# 0fb7a1079b0c36bbc12f3a5012d657fba3bef34f 28-Sep-2002 shatty <shatty@nowhere.fake>

fixed newline at end of file.


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


# 63c051f2832931e47a0f7a0b9201a292e8fb990e 25-Sep-2002 jrand <jrand@nowhere.fake>

Adding implementation and tests for global function get_deskbar_frame().


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


# b5b2bdae33bae0f337835f08dc0d7b05502a3510 24-Sep-2002 jrand <jrand@nowhere.fake>

Finishing BDeskbar implementation and fixing minor test issue.


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


# 74ec84df176ac23ae029b9db0889f82e25f1b30d 23-Sep-2002 jrand <jrand@nowhere.fake>

Adding first attempt at source code for BDeskbar.


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