History log of /haiku/src/preferences/keymap/Keymap.h
Revision Date Author Comments
# 7889cac6 12-May-2013 John Scipione <jscipione@gmail.com>

Keymap: Add Defaults button to revert keymap

Fixes #9980

Since hrev44455 we save your modifier keys settings when you switch
keymaps so you could get your modifiers keys messed up and unable to
get back to normal. This Defaults button allows you to override all
that and go back to the default US-International keymap with default
modifiers so you can start with a fresh slate and set things up the
way you want.

Also moved Revert button to the left side next to the Defaults button.
We do this on other preflets, the right side is reserved for an Apply
or OK button, and, if the preflet doesn't have one, is left empty.


# 09dc3850 05-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Added missing 'const' for the entry_ref paramter of Load(), and Save().
* Cleaned up Keymap.h.


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


# b44c25de 16-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Factored out a single base class out of the three Keymap implementations we
had in our tree.
* Adapted Keymap, <input>keyboard, and consoled to use it - the additional
functionality is implemented via a subclass in the first two cases.
* "keymap" will come next.


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


# aa0f32cf 12-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* removed KeymapMessageFilter, as it is no longer needed
* fixed a couple of issues with respect to internal/external naming of
keymaps and the respective files, hopefully such that there's always one
keymap active in the view: either one that has been selected or (Current)
if any changes have been applied
* replaced the dead-key-menubar with a menufield (thanks Axel, looking much
better)
cleanup:
* removed remnants of Use-button (message constant and switch-case)
* dropped 'Save' menu item, as it wasn't implemented anyway and would now
never be enabled
* removed fFirstTime, as it caused problems, but did not serve any purpose
anymore


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


# 83936c1c 12-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* Added support for selecting the dead key trigger characters from a menubar,
offering two choices for acute and diaeresis as well as allowing to switch
off each dead key completely.
* moved the textview on a line of its own such that the dead key menu and
the modifier-switching button live together on one line
* added enum dead_key_index and used it at a couple of places instead of
having to use the magic numbers 1-5
* refactored the actual updating of the fChars buffer from SetKey() into
_SetChars(), which is now being invoked by SetDeadKeyTrigger(), too

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


# 83656437 10-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* dead keys can now be enabled/disabled via middle mouse button
* fDragKey must be reset in MouseUp() as otherwise it is not possible to
drag a key from one keymap to the textview and then from the textview to the
same key of another keymap
* _HandleDeadKey() now ignores modifier keys as otherwise dead keys that
required pressing a modifier (like the tilde on the German keyboard) failed
to highlight the resulting characters
What's still missing is a way to edit the resulting characters for each dead key, but I am not yet sure how to do that in an elegant way

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


# 751c91b7 31-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Added Keymap::operator=().


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


# ebe98045 30-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Added ability to change modifier keys (per drag and drop).
* Added button to switch shortcut modifier keys.
* Added option to make the KeyboardLayoutView non-editable.


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


# d6eac75e 28-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Imported Modifier() and KeyForModifier() from the Keymap class in the
keyboard input server add-on. We should really have a common source for this
somewhere...
* Used that functionality to change the modifiers when using the mouse, too.


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


# 53f936a0 25-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* The Keymap now has a listener mechanism for changes.
* If the current Keymap is changed, the selection and use/revert buttons now
actually work.


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


# 6835544f 25-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Started implementing a SetKey() function to change the current keymap;
right now, it can only replace keys with the same mapped length.
* Cleanup.


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


# 94a62911 23-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Made GetChars() save against uninitialized keymaps (it will no longer crash).
* Added Map() function.
* Minor cleanup.


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


# 487171f0 11-Apr-2008 Rene Gollent <anevilyak@gmail.com>

Keymap preferences now saves an attribute on the Key_map file to indicate
what keymap it came from. This allows us to indicate the current keymap in
the list views. I'm not sure how to get the build system to populate that
attribute by default though.



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


# 793fb95c 29-Feb-2008 Alexandre Deckner <alex@zappotek.com>

* not a "chef d'oeuvre" but revert and apply buttons should behave as
expected now
* removed some dead code


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


# ad93c2f5 25-Feb-2008 Alexandre Deckner <alex@zappotek.com>

* style cleanup, new style casts, license header updates


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


# a10cf76e 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


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


# 7889cac6cf4c8b7b8378356eec3ab30a70650794 12-May-2013 John Scipione <jscipione@gmail.com>

Keymap: Add Defaults button to revert keymap

Fixes #9980

Since hrev44455 we save your modifier keys settings when you switch
keymaps so you could get your modifiers keys messed up and unable to
get back to normal. This Defaults button allows you to override all
that and go back to the default US-International keymap with default
modifiers so you can start with a fresh slate and set things up the
way you want.

Also moved Revert button to the left side next to the Defaults button.
We do this on other preflets, the right side is reserved for an Apply
or OK button, and, if the preflet doesn't have one, is left empty.


# 09dc38501a8991d6bc8d1c9464bcb78fd11f6070 05-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Added missing 'const' for the entry_ref paramter of Load(), and Save().
* Cleaned up Keymap.h.


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


# b44c25de42ce39022f701d5637797b2f57e63679 16-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Factored out a single base class out of the three Keymap implementations we
had in our tree.
* Adapted Keymap, <input>keyboard, and consoled to use it - the additional
functionality is implemented via a subclass in the first two cases.
* "keymap" will come next.


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


# aa0f32cfbd81659c01209ada37d0148cdd34727d 12-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* removed KeymapMessageFilter, as it is no longer needed
* fixed a couple of issues with respect to internal/external naming of
keymaps and the respective files, hopefully such that there's always one
keymap active in the view: either one that has been selected or (Current)
if any changes have been applied
* replaced the dead-key-menubar with a menufield (thanks Axel, looking much
better)
cleanup:
* removed remnants of Use-button (message constant and switch-case)
* dropped 'Save' menu item, as it wasn't implemented anyway and would now
never be enabled
* removed fFirstTime, as it caused problems, but did not serve any purpose
anymore


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


# 83936c1c26990457a3de22f0df6d8fa005e24026 12-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* Added support for selecting the dead key trigger characters from a menubar,
offering two choices for acute and diaeresis as well as allowing to switch
off each dead key completely.
* moved the textview on a line of its own such that the dead key menu and
the modifier-switching button live together on one line
* added enum dead_key_index and used it at a couple of places instead of
having to use the magic numbers 1-5
* refactored the actual updating of the fChars buffer from SetKey() into
_SetChars(), which is now being invoked by SetDeadKeyTrigger(), too

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


# 83656437205323cf56b5e6a30dfd6e2f135f2ab8 10-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* dead keys can now be enabled/disabled via middle mouse button
* fDragKey must be reset in MouseUp() as otherwise it is not possible to
drag a key from one keymap to the textview and then from the textview to the
same key of another keymap
* _HandleDeadKey() now ignores modifier keys as otherwise dead keys that
required pressing a modifier (like the tilde on the German keyboard) failed
to highlight the resulting characters
What's still missing is a way to edit the resulting characters for each dead key, but I am not yet sure how to do that in an elegant way

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


# 751c91b7e12e7be15849d53c0774aa96cfb2d598 31-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Added Keymap::operator=().


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


# ebe98045d7383cee5d80c918eb5667b7b9106181 30-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Added ability to change modifier keys (per drag and drop).
* Added button to switch shortcut modifier keys.
* Added option to make the KeyboardLayoutView non-editable.


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


# d6eac75eb2afc425ea20397a9c0c73337709c98f 28-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Imported Modifier() and KeyForModifier() from the Keymap class in the
keyboard input server add-on. We should really have a common source for this
somewhere...
* Used that functionality to change the modifiers when using the mouse, too.


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


# 53f936a0a7bab0496eefc0679e4f13c8a58ca308 25-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* The Keymap now has a listener mechanism for changes.
* If the current Keymap is changed, the selection and use/revert buttons now
actually work.


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


# 6835544f8febdf774a7bd8190a9c84f242821df6 25-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Started implementing a SetKey() function to change the current keymap;
right now, it can only replace keys with the same mapped length.
* Cleanup.


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


# 94a62911e6787da54d429d5af122874f5ed1c1ac 23-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Made GetChars() save against uninitialized keymaps (it will no longer crash).
* Added Map() function.
* Minor cleanup.


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


# 487171f0b915ae973e4b8bb80cb8c989e48e543e 11-Apr-2008 Rene Gollent <anevilyak@gmail.com>

Keymap preferences now saves an attribute on the Key_map file to indicate
what keymap it came from. This allows us to indicate the current keymap in
the list views. I'm not sure how to get the build system to populate that
attribute by default though.



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


# 793fb95c82d4325c5df176fc407d3234f96daf59 29-Feb-2008 Alexandre Deckner <alex@zappotek.com>

* not a "chef d'oeuvre" but revert and apply buttons should behave as
expected now
* removed some dead code


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


# ad93c2f5ebcde6ff4a231ebd422dee2773c8f502 25-Feb-2008 Alexandre Deckner <alex@zappotek.com>

* style cleanup, new style casts, license header updates


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


# a10cf76ef5b9e8c726ebc47183abd6943023cf8f 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


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