History log of /haiku/src/bin/keymap/main.cpp
Revision Date Author Comments
# 6cd9975b 08-Dec-2020 Murai Takashi <tmurai01@gmail.com>

bin/keymap: Fix memory leak

Fix leak of memory allocated to 'app'.
Pointed out by Clang Static Analyzer.

Change-Id: I2cbd005d42d4747937ee4b6e12ccf409f122ea24
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3478
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 514bace9 16-Dec-2018 Augustin Cavalier <waddlesplash@gmail.com>

keymap: Allocate BApplication on the heap.

Avoids triggering an assert at program exit.


# d113c00b 23-Nov-2018 Augustin Cavalier <waddlesplash@gmail.com>

Remove more HOST_PLATFORM_SUNOS cruft.


# 490dc7aa 16-Sep-2015 François Revol <revol@free.fr>

keymap: avoid showing usage twice


# 910f10f2 20-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Added libshared_build.a, currently only contains Keymap.cpp.
* keymap and <build>keymap are now using the BKeymap class as a base as well.


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


# e27f2019 23-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* Added ability to save a "styles" attribute for StyledEdit. This implements
ticket #4032.


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


# 30dcc55d 23-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* More or less rewrote main.cpp to use getopt_long() instead of the self-made
argument evaluation. Also separated the evaluation from performing the
options, solving a TODO, and added long versions for the options.
* Changed Keymap methods to work on a path instead of entry_refs - this
simplifies the code a bit over the place.
* Added new option to load a source keymap directly (-s, --load-source).
* Renamed some methods to make clearer what they do.
* Added a way to directly write a source keymap to a file (by specifying the
-o option together with -d).
* Coding style cleanup, ordered Keymap methods in the order they are declared.


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


# 4d121ec0 09-Aug-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber with changes by myself: Work towards Solaris
build platform support.


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


# 1174007c 12-Apr-2008 Rene Gollent <anevilyak@gmail.com>

Modified bin/keymap's -h option to write a variable to the generated header
indicating the name of the keymap. Correspondingly, modified input_server
to use the aforementioned variable in order to write the name attribute
to ~/config/Key_map. This allows Keymap prefs to correctly recognize the name
of the default keymap on a fresh build.



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


# 980e1e66 01-Jun-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed build on linux

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


# c8467d6b 01-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* Further improved error handling in class Keymap.
* Improved header output, it now looks a lot nicer.
* Fixed style issues of that header, too: replaced "s" prefix with the
correct "k" prefix.


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


# 37e0ed4a 01-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* Improved error output.
* Fixed some minor style issues.
* fChars was allocated with new[] but deleted with free() in the Keymap destructor.


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


# 41c243b1 19-Mar-2005 Jérôme Duval <korli@users.berlios.de>

renamed key_map.cpp to main.cpp


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


# 490dc7aa16761765db39315028b96c56e5c3b3dc 16-Sep-2015 François Revol <revol@free.fr>

keymap: avoid showing usage twice


# 910f10f2fcf05e0973ffc60734515b369c103ca6 20-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* Added libshared_build.a, currently only contains Keymap.cpp.
* keymap and <build>keymap are now using the BKeymap class as a base as well.


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


# e27f20198782c62e6cd78d41a3f35d708b343920 23-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* Added ability to save a "styles" attribute for StyledEdit. This implements
ticket #4032.


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


# 30dcc55d0a860cde18da7c32ba5f7f66f50a8764 23-Jun-2009 Axel Dörfler <axeld@pinc-software.de>

* More or less rewrote main.cpp to use getopt_long() instead of the self-made
argument evaluation. Also separated the evaluation from performing the
options, solving a TODO, and added long versions for the options.
* Changed Keymap methods to work on a path instead of entry_refs - this
simplifies the code a bit over the place.
* Added new option to load a source keymap directly (-s, --load-source).
* Renamed some methods to make clearer what they do.
* Added a way to directly write a source keymap to a file (by specifying the
-o option together with -d).
* Coding style cleanup, ordered Keymap methods in the order they are declared.


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


# 4d121ec0678890dc6c2b19bdf11a7b9e02785462 09-Aug-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber with changes by myself: Work towards Solaris
build platform support.


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


# 1174007caf16a1da0e3369b6955f427b8e0d41b5 12-Apr-2008 Rene Gollent <anevilyak@gmail.com>

Modified bin/keymap's -h option to write a variable to the generated header
indicating the name of the keymap. Correspondingly, modified input_server
to use the aforementioned variable in order to write the name attribute
to ~/config/Key_map. This allows Keymap prefs to correctly recognize the name
of the default keymap on a fresh build.



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


# 980e1e66ca1c7bcbc58d790204b1148cdd0c20a5 01-Jun-2006 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed build on linux

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


# c8467d6ba1214f36708f6339fde811de6045e45e 01-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* Further improved error handling in class Keymap.
* Improved header output, it now looks a lot nicer.
* Fixed style issues of that header, too: replaced "s" prefix with the
correct "k" prefix.


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


# 37e0ed4ace909ec0236ca34949d52a73a7e7be42 01-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* Improved error output.
* Fixed some minor style issues.
* fChars was allocated with new[] but deleted with free() in the Keymap destructor.


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


# 41c243b187b5ae44c0852f263845f11a9bb1f41f 19-Mar-2005 Jérôme Duval <korli@users.berlios.de>

renamed key_map.cpp to main.cpp


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