History log of /haiku/src/add-ons/input_server/filters/shortcut_catcher/KeyCommandMap.cpp
Revision Date Author Comments
# d0c1fd8a 16-Jul-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Shortcuts: fix node monitoring of settings file. Fixes #6278.

The initial checks for the settings path were unnecessary, and
prevented node monitoring from starting when the settings file
didn't exist.


# ab97fc05 30-Jun-2014 John Scipione <jscipione@gmail.com>

Replace FindFirst() == 0 with StartsWith()

Thanks PulkoMandy.


# 03a7aaf9 29-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: Add Jessica Hamilton to authors

... with permission to recognize her contributions here.


# 9c1ca606 29-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: Small refactor to FindPaths()

Should be functionally identical.

* Removed / after Tracker, thanks Axel.
* BString::FindFirst() returns an index not a status_t so check that
it finds the path at the start of the string (index 0).
* Put paths.CountStrings() in a count variable.

I wanted to clean this code up because I use it as a reference.


# 2a6a3109 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: tiny style fix


# f1e2e389 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: rename a couple variables

Fix build, msg => message

Fix warning use int32, not uint32

Also do a bit of refactoring.


# 78daf289 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: A few 80 char limit fixes


# d2da54de 12-Jun-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Shortcuts: use BPathFinder instead of find_directory. Fixes #9958.

* Previously, BPath::Append() would return an empty path if the
path didn't exist (and an error); in a nightly image, the
B_USER_ADDONS_DIRECTORY didn't exist, triggering the bug.
* Replaced the code with calls to BPathFinder instead, which takes
care of the empty path automatically.


# abca6dab 12-Jun-2014 John Scipione <jscipione@gmail.com>

Revert "shortcut_catcher: Fix KeyCommandMap::_DeleteHKSList()"

This reverts commit cb3243fbbd1f06f5c205c7cbc3a6911586d6cf9e.

Sorry, this might do bad things.


# 1ecf19b8 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: style overhaul


# cb3243fb 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: Fix KeyCommandMap::_DeleteHKSList()

You can't increment the list item counter as you delete because the count
decreases as you go. Instead delete the first item until there are no more
items, then delete the list.


# 38fa81bf 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove B_COMMON*_DIRECTORY and kCommon*Directory constants

* This does intentionally break source compatibility, so that a review
of concerned code is forced.
* Binary compatibility should be maintained in most cases. The values
of the constants for the writable directories are now used for the
writable system directories. The values for the non-writable
directories are mapped to "/boot/system/data/empty/...", an empty or
non-existent directory, so that they will simply be skipped in search
paths. Only code that explicitly expects to find something in a
B_COMMON_* directory, will fail.


# 8f9c2223 12-Jul-2013 Philippe Saint-Pierre <stpere@gmail.com>

Shortcut catcher: crash fix, better monitoring of setting file

* Fix bad memory cleaning I introduced in earlier commit, causing crash in add-on
* Upon detecting the deletion of setting file, shortcuts weren't properly removed
* The node monitoring would not filter the right file on every case

Thanks Diver.


# 1412a36a 10-Jul-2013 Philippe Saint-Pierre <stpere@gmail.com>

Shortcut add-on: change to accomodate tracker add-ons

* Ignore shortcuts regardings tracker add-ons. Its settings file is now shared
with Tracker, and those are now handled by Tracker.
* Use a BPathMonitor as specified in a TODO to check the presence and changes on
the settings file. (#6278)
* Use a message to ask Tracker to launch/open folders as specified in TODO


# 81033e26 01-Aug-2012 Ryan Leavengood <leavengood@gmail.com>

Add TODO about the Shortcuts settings file management.

Now we can close #6278.


# 2ae22b9b 26-Oct-2010 Jonas Sundström <jonas@kirilla.com>

Correction of code style.

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


# 7327585b 25-Oct-2010 Jonas Sundström <jonas@kirilla.com>

Create settings file if missing, so shortcut_catchers node monitoring works. Prior to this change, the add-on would not sense the Shortcuts preferences creating the file, and it wouldn't work right away but only after a reboot. This improves first boot, first use.

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


# 672b4d78 21-Oct-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Give a better name than the default "user thread" to Shortcuts's
input_server filter BLoopers, too.


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


# a256ee64 09-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Cleanup, no functional change.


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


# be2b0592 30-Oct-2009 Fredrik Modeen <fredrik@modeen.se>

So here it goes..
I hope I have fixed all parts that don't follow our guidelines. (that python script was good start)
This is the filter..

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


# d0c1fd8a17b76b722c3ddb5daa6dda0b3a4e9d92 16-Jul-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Shortcuts: fix node monitoring of settings file. Fixes #6278.

The initial checks for the settings path were unnecessary, and
prevented node monitoring from starting when the settings file
didn't exist.


# ab97fc0564b95efa4abc73a754dcc31b2d515b1f 30-Jun-2014 John Scipione <jscipione@gmail.com>

Replace FindFirst() == 0 with StartsWith()

Thanks PulkoMandy.


# 03a7aaf926adc90c58051e23445c7ad8f9c488f1 29-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: Add Jessica Hamilton to authors

... with permission to recognize her contributions here.


# 9c1ca606f09709e7fa1ba8211027029a48b92669 29-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: Small refactor to FindPaths()

Should be functionally identical.

* Removed / after Tracker, thanks Axel.
* BString::FindFirst() returns an index not a status_t so check that
it finds the path at the start of the string (index 0).
* Put paths.CountStrings() in a count variable.

I wanted to clean this code up because I use it as a reference.


# 2a6a3109e580db0217b9943ed9b09c1a5c431b83 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: tiny style fix


# f1e2e389bed05932986eda7a7458f5ca57231ec8 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: rename a couple variables

Fix build, msg => message

Fix warning use int32, not uint32

Also do a bit of refactoring.


# 78daf289c3043e2e26b291d1d56df527271b06c2 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: A few 80 char limit fixes


# d2da54dee23b5d4c24889d7bbde2eb7803f79ab9 12-Jun-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Shortcuts: use BPathFinder instead of find_directory. Fixes #9958.

* Previously, BPath::Append() would return an empty path if the
path didn't exist (and an error); in a nightly image, the
B_USER_ADDONS_DIRECTORY didn't exist, triggering the bug.
* Replaced the code with calls to BPathFinder instead, which takes
care of the empty path automatically.


# abca6dabb6d6f7b9a3b854f8745365cbfeac381c 12-Jun-2014 John Scipione <jscipione@gmail.com>

Revert "shortcut_catcher: Fix KeyCommandMap::_DeleteHKSList()"

This reverts commit cb3243fbbd1f06f5c205c7cbc3a6911586d6cf9e.

Sorry, this might do bad things.


# 1ecf19b82f7ebecaebf9611cd11badaa09fae087 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: style overhaul


# cb3243fbbd1f06f5c205c7cbc3a6911586d6cf9e 12-Jun-2014 John Scipione <jscipione@gmail.com>

shortcut_catcher: Fix KeyCommandMap::_DeleteHKSList()

You can't increment the list item counter as you delete because the count
decreases as you go. Instead delete the first item until there are no more
items, then delete the list.


# 38fa81bf8f0ccc37a615a9f5bd333f9b781322b3 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove B_COMMON*_DIRECTORY and kCommon*Directory constants

* This does intentionally break source compatibility, so that a review
of concerned code is forced.
* Binary compatibility should be maintained in most cases. The values
of the constants for the writable directories are now used for the
writable system directories. The values for the non-writable
directories are mapped to "/boot/system/data/empty/...", an empty or
non-existent directory, so that they will simply be skipped in search
paths. Only code that explicitly expects to find something in a
B_COMMON_* directory, will fail.


# 8f9c2223a391cf7b3ff91ca5cc031a0656852c78 12-Jul-2013 Philippe Saint-Pierre <stpere@gmail.com>

Shortcut catcher: crash fix, better monitoring of setting file

* Fix bad memory cleaning I introduced in earlier commit, causing crash in add-on
* Upon detecting the deletion of setting file, shortcuts weren't properly removed
* The node monitoring would not filter the right file on every case

Thanks Diver.


# 1412a36abcf4b4e7a7e652a19c4a70b3c2227c06 10-Jul-2013 Philippe Saint-Pierre <stpere@gmail.com>

Shortcut add-on: change to accomodate tracker add-ons

* Ignore shortcuts regardings tracker add-ons. Its settings file is now shared
with Tracker, and those are now handled by Tracker.
* Use a BPathMonitor as specified in a TODO to check the presence and changes on
the settings file. (#6278)
* Use a message to ask Tracker to launch/open folders as specified in TODO


# 81033e260a3808f317fe7eb59fdc51721022c0d0 01-Aug-2012 Ryan Leavengood <leavengood@gmail.com>

Add TODO about the Shortcuts settings file management.

Now we can close #6278.


# 2ae22b9b1b2b1d18bb1f97b09a8aea3f0474b79c 26-Oct-2010 Jonas Sundström <jonas@kirilla.com>

Correction of code style.

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


# 7327585ba353b3ddd6f2d628c406501649b0f8ef 25-Oct-2010 Jonas Sundström <jonas@kirilla.com>

Create settings file if missing, so shortcut_catchers node monitoring works. Prior to this change, the add-on would not sense the Shortcuts preferences creating the file, and it wouldn't work right away but only after a reboot. This improves first boot, first use.

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


# 672b4d78005b6052fce8541590b6f4952aa668d0 21-Oct-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Give a better name than the default "user thread" to Shortcuts's
input_server filter BLoopers, too.


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


# a256ee64d94a0c148d2d1e0ecd0f77504a838ae9 09-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Cleanup, no functional change.


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


# be2b059224841fae64b916b5ee308924fd3f7bf3 30-Oct-2009 Fredrik Modeen <fredrik@modeen.se>

So here it goes..
I hope I have fixed all parts that don't follow our guidelines. (that python script was good start)
This is the filter..

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