History log of /haiku/src/preferences/virtualmemory/Settings.cpp
Revision Date Author Comments
# fce7f3a7 09-Dec-2020 X512 <danger_mail@list.ru>

integrate AutoDeleter's into pointers

Change-Id: I6c3925a7aec4d0647c76c2a03aad7b08985d7166
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3490
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# cdccd323 09-Dec-2020 X512 <danger_mail@list.ru>

use common AutoDeleter types

Change-Id: I115e14b76f3ff049c5f7d9471efd3619a0038fcf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3483
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>


# 36aafa56 04-Dec-2020 X512 <danger_mail@list.ru>

fix build after CObjectDeleter interface change

Change-Id: I76e217abcd13c22c4d68170e07333cdde4d7a891
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3461
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 721d056e 14-Sep-2012 Ryan Leavengood <leavengood@gmail.com>

Don't call unload_driver_settings twice. Thanks Hamish.


# f78dd124 13-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Use AutoDeleter on the settings

* Prevents a minor memory leak
* Thanks for catching this Axel!


# 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


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

VM Preflet: More correctly calculate default swap


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


# 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


# 6314232f 17-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added VirtualMemory preferences to image.


# 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


# 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


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 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


# 721d056e11263bcb58f155eb0203d0689da22f47 14-Sep-2012 Ryan Leavengood <leavengood@gmail.com>

Don't call unload_driver_settings twice. Thanks Hamish.


# f78dd1249a1c71736fc7725db6b955d2fa6d3ff0 13-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

VM Preflet: Use AutoDeleter on the settings

* Prevents a minor memory leak
* Thanks for catching this Axel!


# 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


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

VM Preflet: More correctly calculate default swap


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


# 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


# 6314232f4525b70a69d931c16817bbb61ce6bf0f 17-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added VirtualMemory preferences to image.


# 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


# 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


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 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