History log of /haiku/src/preferences/virtualmemory/SettingsWindow.cpp
Revision Date Author Comments
# c0349163 27-Mar-2014 Dariusz Knociński <dknoto@gmail.com>

Preferences/VirtualMemory: fixed crash when exiting from not fully initialized application.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>


# d0ac6099 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use B_USE_WINDOW_SPACING

Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.


# aaa7d926 21-Apr-2015 Janus <janus2@ymail.com>

Preferences: improve layout.

* Sounds use LayoutBuilder vs. GroupLayoutBuilder.
* Time standard spacing.
* VirtualMemory standard spacing.


# d02aaee1 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Add more memory info in system_info

system_info now contains all information previously available only
through __get_system_info_etc(B_MEMORY_INFO, ...).


# 82ee3401 07-Jan-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

virtualmemory: Fix wording of auto swap management

* Fixes #9136
* Setting this also assumes the boot partition.
* "Automatic swap management" is more generalized


# b772f88c 07-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Fix user prompt string typo. Thanks ttcoder!


# 59c59573 06-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Add a BStatusBar to show swap file usage

* Correct a situation where disabling the auto swap without
adjusting the swap size would result in an invalid swap
size getting written to the configuration


# 5e7287f9 07-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Style cleanup; check for success of fs_stat_dev

* Cleanup as per Axel on the ML
* Remove superfluous else statements


# 5dff4257 06-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Center properly on screen

* On first run, dialog was at 0,0
* Rename window location/settings file
from VM_data to virtualmemory_preferences


# 91390fb0 06-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Add an automatic swap option swap_auto

* Add swap_auto to the virtual memory settings file
* Disable controls based on the context of what is enabled
* hamishm gave permission to adjust his copyrights to Haiku, Inc.


# 91a8191a 05-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Style fix. bootDev to gBootDev. No functional change


# ab4f0016 05-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: More throughly translate BAlert window titles

* Ensure we call translate BAlert window titles


# b8838e91 06-Sep-2012 Hamish Morrison <hamish@lavabit.com>

VM Preflet: Add support for device selection

* Enables swap file to be placed on non-boot partition
* Changes tied closely to recent kernel virtual memory change


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


# 560ff447 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# d374a272 16-Mar-2011 Jonas Sundström <jonas@kirilla.com>

App name localization.

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


# bdb26235 04-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Fix style violations and a few other issues that were pointed out. Thanks!

Also moved private methods to the bottom of source files.


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


# 71d86b67 03-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Apply another patch from Hamish Morrison to improve the VirtualMemory preflet.
Pretty much implements everything needed to set a swap volume once that is
implemented on the kernel side. This also improves the behavior of the Default
button.

A few changes I made:

- When the swap volume feature is turned on in the code, default to the boot
volume if the settings file does not have one set.
- Don't show the volumes menu field in the GUI if the swap volume feature is
not on.


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


# a89161d3 01-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

More changes for #1746 from hamish with a few small changes by me.


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


# b03f6b71 01-Jan-2011 Stephan Aßmus <superstippi@gmx.de>

Fix coding style and improve readability and correctness.
(value != 0 != value == 1).


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


# a1712b28 01-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Fix #1746: Apply patch by hamish which sets the virtual memory size to the
default minimum instead of zero when the user turns on virtual memory. Thanks!


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


# 8eff03f5 25-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* fixed all build warnings by collectcatkeys that I found
* automatic whitespace cleanup

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


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# 733c3ae4 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# 34df891e 12-Jan-2010 Karsten Heimrich <host.haiku@gmx.de>

* Fix ticket #5243
* Fix some copy & paste error in size string.



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


# eb7157a4 11-Jan-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Localize virtualmemory preflet.
Patch done by mt, with some changes by me following sentence-casing of the preflet.


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


# 9c1a9b92 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


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


# fbe95ad4 26-Aug-2009 François Revol <revol@free.fr>

Fix warning: deprecated conversion from string constant to 'char*'.


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


# 608990b4 03-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Haiku's VM does not need the swap file to be as large as physical memory
at minimum to be able to work with it.


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


# 60097e84 01-Oct-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed gcc4 warnings. BSlider::UpdateText() actually returns a const char *, not a char *

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


# 3f64fbd0 16-Aug-2007 Ryan Leavengood <leavengood@gmail.com>

Committing patch by Justin O'Dell to fix the Defaults buttons on several
preferences apps. This fixes most of bug #254.

This is his first contribution to Haiku, and hopefully the first of many.

Thanks Justin!


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


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

* Fixed wrong resizing mode.
* Fixed center on screen algorithm for multi-screen scenarios.


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


# 56c56cf1 02-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* No longer sets the minimum/maximum slider limits to the same value - instead, if
this happens (the volume is too small to host a swap file), the slider is now
simply disabled.
* Removed that .doxygen-conf file that somehow ended up here.


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


# f84e00e2 10-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Although VirtualMemory did respect the font height already, it didn't care
if the window was wide enough for the strings - it now does.


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


# f877fb74 10-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Rewrote VirtualMemory, added some Haiku specific functionality (currently disabled).


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


# aaa7d92685de060c2e8143e06408f1a3c716a0b0 21-Apr-2015 Janus <janus2@ymail.com>

Preferences: improve layout.

* Sounds use LayoutBuilder vs. GroupLayoutBuilder.
* Time standard spacing.
* VirtualMemory standard spacing.


# d02aaee17e007631fcfa91a012ec7b6386927012 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Add more memory info in system_info

system_info now contains all information previously available only
through __get_system_info_etc(B_MEMORY_INFO, ...).


# 82ee340110ec97e4a19db79f37be96d79278f0ae 07-Jan-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

virtualmemory: Fix wording of auto swap management

* Fixes #9136
* Setting this also assumes the boot partition.
* "Automatic swap management" is more generalized


# b772f88c88e8fbbe2f498b38d32135893beca3b8 07-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Fix user prompt string typo. Thanks ttcoder!


# 59c595739c6e9469a43529aac8434646902f30a3 06-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Add a BStatusBar to show swap file usage

* Correct a situation where disabling the auto swap without
adjusting the swap size would result in an invalid swap
size getting written to the configuration


# 5e7287f9871d70f007b386c00fcbe5563b3898f5 07-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Style cleanup; check for success of fs_stat_dev

* Cleanup as per Axel on the ML
* Remove superfluous else statements


# 5dff42570ec6fd50968d25286a67de64a6166248 06-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Center properly on screen

* On first run, dialog was at 0,0
* Rename window location/settings file
from VM_data to virtualmemory_preferences


# 91390fb0d3bd29163f2bcea85904879f29e21cb2 06-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Add an automatic swap option swap_auto

* Add swap_auto to the virtual memory settings file
* Disable controls based on the context of what is enabled
* hamishm gave permission to adjust his copyrights to Haiku, Inc.


# 91a8191a2524f700a30ce0fbdde430de25360f1a 05-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Style fix. bootDev to gBootDev. No functional change


# ab4f00168585ea92fa81f29f4967b61a9edb4b95 05-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: More throughly translate BAlert window titles

* Ensure we call translate BAlert window titles


# b8838e91d9410fe5e11365ae4a130c21cb6e4916 06-Sep-2012 Hamish Morrison <hamish@lavabit.com>

VM Preflet: Add support for device selection

* Enables swap file to be placed on non-boot partition
* Changes tied closely to recent kernel virtual memory change


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


# 560ff4478d5c85455ea3e5ed5e392ef93132d545 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# d374a27286b8a52974a97dba0d5966ea026a665d 16-Mar-2011 Jonas Sundström <jonas@kirilla.com>

App name localization.

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


# bdb262352edbc396361df0af4bba407e947fe8d2 04-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Fix style violations and a few other issues that were pointed out. Thanks!

Also moved private methods to the bottom of source files.


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


# 71d86b674b80b0f4c1efb00416870d6d06d673bf 03-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Apply another patch from Hamish Morrison to improve the VirtualMemory preflet.
Pretty much implements everything needed to set a swap volume once that is
implemented on the kernel side. This also improves the behavior of the Default
button.

A few changes I made:

- When the swap volume feature is turned on in the code, default to the boot
volume if the settings file does not have one set.
- Don't show the volumes menu field in the GUI if the swap volume feature is
not on.


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


# a89161d34bbf3e2bd052522e5621cd92af0e0905 01-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

More changes for #1746 from hamish with a few small changes by me.


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


# b03f6b7126b63700307512f693b94d06a420352b 01-Jan-2011 Stephan Aßmus <superstippi@gmx.de>

Fix coding style and improve readability and correctness.
(value != 0 != value == 1).


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


# a1712b28a6fca88c0ecb086747be08e077e72fd3 01-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Fix #1746: Apply patch by hamish which sets the virtual memory size to the
default minimum instead of zero when the user turns on virtual memory. Thanks!


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


# 8eff03f5705966c294c96a4e249bb525069b8e78 25-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

* fixed all build warnings by collectcatkeys that I found
* automatic whitespace cleanup

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


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


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


# 733c3ae4894469f5ea36e77cfa776f7e75152215 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

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


# 34df891ea0803c0d3ff3ffe1ad7ad2d7601f01a1 12-Jan-2010 Karsten Heimrich <host.haiku@gmx.de>

* Fix ticket #5243
* Fix some copy & paste error in size string.



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


# eb7157a4b6d2dfb36b40bf00969ea2a53844a8ec 11-Jan-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Localize virtualmemory preflet.
Patch done by mt, with some changes by me following sentence-casing of the preflet.


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


# 9c1a9b926aa0b1890a011a44398379d1c47f09c1 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


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


# fbe95ad4586ed671aa735f260f6200b3c778b12f 26-Aug-2009 François Revol <revol@free.fr>

Fix warning: deprecated conversion from string constant to 'char*'.


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


# 608990b4880934724a3feeef9d36fd7c7269d61b 03-Mar-2009 Axel Dörfler <axeld@pinc-software.de>

* Haiku's VM does not need the swap file to be as large as physical memory
at minimum to be able to work with it.


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


# 60097e84338cdc9c8e3bbda94ed19f38ab7f69ca 01-Oct-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

fixed gcc4 warnings. BSlider::UpdateText() actually returns a const char *, not a char *

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


# 3f64fbd01189eedc6d8f69808d096e72a9b364a7 16-Aug-2007 Ryan Leavengood <leavengood@gmail.com>

Committing patch by Justin O'Dell to fix the Defaults buttons on several
preferences apps. This fixes most of bug #254.

This is his first contribution to Haiku, and hopefully the first of many.

Thanks Justin!


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


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

* Fixed wrong resizing mode.
* Fixed center on screen algorithm for multi-screen scenarios.


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


# 56c56cf1e3e7ef1ba900e88846307f5b1d74787b 02-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* No longer sets the minimum/maximum slider limits to the same value - instead, if
this happens (the volume is too small to host a swap file), the slider is now
simply disabled.
* Removed that .doxygen-conf file that somehow ended up here.


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


# f84e00e27c654b0c6753ddfd56bec3192d307f1d 10-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Although VirtualMemory did respect the font height already, it didn't care
if the window was wide enough for the strings - it now does.


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


# f877fb742fc9de4bf202111901bc686c94f9ba6d 10-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Rewrote VirtualMemory, added some Haiku specific functionality (currently disabled).


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