History log of /haiku/src/apps/drivesetup/CreateParametersPanel.cpp
Revision Date Author Comments
# f4abe406 23-Mar-2021 Adrien Destugues <adrien.destugues@opensource.viveris.fr>

DriveSetup: fix creating partitions

The code paths for creating a new partition and editing an existing one
are more mixed together than I thought:

- CreateParametersPanel reuses a method from ChangeParametersPanel which
I had modified.
- In the storage kit, the code to create the parameter editor is also
shared between the two.

The problem is that when creating a partition, we have only the parent
BPartition. When modifying parameters, we have the child, and we need
to get some things from the child (the current parameters), and some
from the parent (the parameter editor).

Fixes #16859.

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


# c61ed599 14-Apr-2013 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Fixes #9673


# 8940ad25 12-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: Added support for changing partition parameters.

* Does not seem to work yet, though. The intel disk system should support it
now, but apparently the partition's delegate is not yet fully initialized
for whatever reason.


# 32da57f7 12-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: solved a few issues of CreateParametersPanel.

* I obviously wasn't really done last time: now the panel behaves as it should.


# 0d7d4957 04-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: improved size slider.

* It uses size_for_string() to display all sizes which also fixes
using MiB for one, and MB for the other size string.
* It is no longer limited to 1M granularity by itself, but can have
arbitrary granularity as long as the number of possible values
remain smaller than 2^31.
* This means it can also handle values beyond 4TB now.
* The sizes that are set programmatically retain their full resolution.
* CreateParametersPanel still uses 1M granularity for now, though,
as we would otherwise need to be able to parse a size string with
a unit.


# cf0ea4fb 04-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: fixed crash in CreateParametersPanel.

* Changed order of calling Init() vs. _CreateViewControls(). This
fixes bug #9422.
* The panel now hides (instead of disabling) the name or type control
if those aren't supported, anyway.


# dbd6a97c 04-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.

* Reordred methods to their declaration order.


# 4ec2ca4e 01-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: renamed some files, fixed catalog.

* Already renamed the classes within those files earlier.
* The AbstractParametersPanel class was missing from the catalog.


# c61ed599d4a2aa1ad04d20ea4a698be1cfad9449 14-Apr-2013 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Fixes #9673


# 8940ad259ab803eff8176766a73f8f531142c3b6 12-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: Added support for changing partition parameters.

* Does not seem to work yet, though. The intel disk system should support it
now, but apparently the partition's delegate is not yet fully initialized
for whatever reason.


# 32da57f74b8855c63e422aa74628d904f99f8ba7 12-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: solved a few issues of CreateParametersPanel.

* I obviously wasn't really done last time: now the panel behaves as it should.


# 0d7d4957aa66aa619207df0807c1085c0b02c17f 04-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: improved size slider.

* It uses size_for_string() to display all sizes which also fixes
using MiB for one, and MB for the other size string.
* It is no longer limited to 1M granularity by itself, but can have
arbitrary granularity as long as the number of possible values
remain smaller than 2^31.
* This means it can also handle values beyond 4TB now.
* The sizes that are set programmatically retain their full resolution.
* CreateParametersPanel still uses 1M granularity for now, though,
as we would otherwise need to be able to parse a size string with
a unit.


# cf0ea4fbba83aad60e13d8a421f3097f8da178b5 04-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: fixed crash in CreateParametersPanel.

* Changed order of calling Init() vs. _CreateViewControls(). This
fixes bug #9422.
* The panel now hides (instead of disabling) the name or type control
if those aren't supported, anyway.


# dbd6a97c7b6295e7a20b301a810aec4d6a6d7345 04-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.

* Reordred methods to their declaration order.


# 4ec2ca4e1645f59237d611942f08f442370c5cfe 01-Feb-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: renamed some files, fixed catalog.

* Already renamed the classes within those files earlier.
* The AbstractParametersPanel class was missing from the catalog.