History log of /haiku/src/apps/drivesetup/DiskView.cpp
Revision Date Author Comments
# 9c274ccd 28-Feb-2024 Pascal Abresch <nep-git@packageloss.eu>

Document new rgb_color apis, apply their usage.

Change-Id: I48f1bedd3abfb3b445c1c7090ce43504bcff4537
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7485
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# d9848639 10-Jan-2021 Adrien Destugues <adrien.destugues@opensource.viveris.fr>

DriveSetup: clarify partition state

DriveSetup does not make it clear when there is empty space or when a
partition is not formatted. Reword things a bit to make this easier to
understand.

This was a common source of confusion in various video reviews of Haiku,
with people trying to install Haiku to a partition that had not been
formatted.

Part of #16304


# abdd9ab4 28-Aug-2019 Humdinger <humdingerb@gmail.com>

DriveSetup: Tweak mount mode icons and colors

* Use 2D icons for mount modes: encrypted, file, readonly, shared
('boot' already uses he 2D Overlay_leaf)
* Use more vibrant colors for used space indicators.
(red = readonly, green = BFS, blue = non-BFS, grey/orange = encrypted)
* Don't have boot/bfs partitions override readonly status (red) with
green. Keep it simple: if anything mounts read-only, show in red.

Change-Id: I4a7c53e1c1d3c6f4be35cbd680b2a7b5e1f9bea3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1755
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# fc8ec821 09-Apr-2019 Dancsó Róbert <dancso.robert@d-rendszer.hu>

DriveSetup: vizualize more information

- Show a lock for encrypted partitions (bitlocker, pgp, safeboot, luks)
- Show icons for boot, shared, virtual or read-only partitions
- Use different colors for boot, bfs, encrypted partitions
- Show partition usage in visual overview (only for mounted volumes)
- Add more infos in the parameter column
- Add columns with free space and block size

Fixes #10098 (as mentionned there, TrueCrypt/DriveEncryption can't be
detected)

Change-Id: I44914bacfabadaec4f862c8816f9575dc9617798
Reviewed-on: https://review.haiku-os.org/c/1399
Reviewed-by: Kacper Kasper <kacperkasper@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>


# 510138aa 09-Apr-2019 Dancsó Róbert <dancso.robert@d-rendszer.hu>

DriveSetup: automatically select single disk

When there is only one disk, automatically select it.
Otherwise, do not select anything to make sure the user does not
accidentally do things to the wrong disk.

Change-Id: I834415bda6bc43692697bdfa9030f35ffc94048f
Reviewed-on: https://review.haiku-os.org/c/1397
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


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

Minor style cleanup.


# c8ae0dd8 30-Nov-2012 Dancsó Róbert <dancso.robert@d-rendszer.hu>

DriveSetup: Added disk name to the DiskView.

* The disk device name will be shown on the disk map.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>


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


# 5421c7d6 20-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Fix all localized applications, as an include was missing in some of them
* dstcheck : the generated catalog is now 'dstcheck.catkeys' instead of 'en.catkeys', so that it does not conflict with
other localized apps in the bin/ folder.


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


# b0eb1f9a 28-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Adding missing #undef B_TRANSLATE_CONTEXT

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


# 28ebad8f 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@36665 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d24c647 21-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Localized DriveSetup.


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


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

* Now listens to disk device notifications, and rescans its device list when
something comes in -- this could be greatly improved, though.
* Cleanup.


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


# 441ad0b8 16-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

* Don't continue with initializing a partition if the user cancelled the
parameter panel... Doh!
* Force update the disk view when rescanning the disks (a newly initialized
partition will now also show the correct name in the DiskView).


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


# a9cc6c1e 16-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

The modification preparations were not properly maintained which could
cause all kinds of trouble when finally trying to initialize a partition.
In various situations, the disk would already be prepared for modifications
in which case PrepareModifications() will return an error when called again.


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


# 967d7204 03-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* Implemented support for generating global partition_ids for partitionable
spaces. This way we can use all the existing logic to select them in either
list view or the disk layout view. IAW, selecting empty spaces now works.
* Changed the way the Create menu works. It is now only enabled if a space
item is selected and then the sub items are filled with the types that
the parent partition says it supports for child creation. (Does not
yet seem to work.)
* PartitionViews for spaces were not put into the partition_id -> view map.
* Fixed focus indication when switching the disk for the disk layout view,
previously, the correct view was only selected when the disk did not change.
* Added a temporary work around to avoid showing bogus space items at all
(those smaller than a "cylinder size"). Currently hard coded to 8 MB size.
But I already have an idea how we could fix this in the Disk Device API
implementation.


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


# e9510468 03-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

Fixes the build for the app_server test environment.


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


# 8d2c63c7 01-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* To be able to call BPartition::GetPartitioningIngo(), you need to call
PrepareModifications() on the parent BDiskDevice first. Hm. I should
probably reorganize things a bit.
* Selecting these empty spaces is still not supported.
* Fixed inserting empty spaces in the DiskView at the correct index.


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


# 56d794d6 01-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* implemented detecting and displaying available space on devices and
partitions - I couldn't test it yet, but what is definitely missing
is being able to select these spaces to create new partitions on them
* fixed the bug that if you select a partition on another disk, the
disk view does not switch to the new disk. (I was comparing disk
pointers, but since I deleted the old BDiskDevice instance first, the
new one got assigned the same pointer... at least it appears I am not
leaking memory anywhere... :-))


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


# ec103c3c 27-Jan-2008 Stephan Aßmus <superstippi@gmx.de>

Moved DriveSetup from preferences to apps. Changed HaikuImage script
accordingly.


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


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

Minor style cleanup.


# c8ae0dd87c35ee47eaf8281b8460b07118668758 30-Nov-2012 Dancsó Róbert <dancso.robert@d-rendszer.hu>

DriveSetup: Added disk name to the DiskView.

* The disk device name will be shown on the disk map.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>


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


# 5421c7d682a251f1cbcdfa1bf870ca1170584135 20-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Fix all localized applications, as an include was missing in some of them
* dstcheck : the generated catalog is now 'dstcheck.catkeys' instead of 'en.catkeys', so that it does not conflict with
other localized apps in the bin/ folder.


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


# b0eb1f9aff65f6fd8ae2baa72ed40eed78abafc0 28-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Adding missing #undef B_TRANSLATE_CONTEXT

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


# 28ebad8ff65bc98ce2f1246c25708300b458320a 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@36665 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d24c6470f0b2ceb3ea4973ae1e8311068271810 21-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Localized DriveSetup.


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


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

* Now listens to disk device notifications, and rescans its device list when
something comes in -- this could be greatly improved, though.
* Cleanup.


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


# 441ad0b87ec9d4bbf62f769ab6abf7bd6d902605 16-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

* Don't continue with initializing a partition if the user cancelled the
parameter panel... Doh!
* Force update the disk view when rescanning the disks (a newly initialized
partition will now also show the correct name in the DiskView).


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


# a9cc6c1e3d0bc8e17f0be330588683813dd63a85 16-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

The modification preparations were not properly maintained which could
cause all kinds of trouble when finally trying to initialize a partition.
In various situations, the disk would already be prepared for modifications
in which case PrepareModifications() will return an error when called again.


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


# 967d72041f81ab74e2cd286cf91ed2b594ba91f5 03-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* Implemented support for generating global partition_ids for partitionable
spaces. This way we can use all the existing logic to select them in either
list view or the disk layout view. IAW, selecting empty spaces now works.
* Changed the way the Create menu works. It is now only enabled if a space
item is selected and then the sub items are filled with the types that
the parent partition says it supports for child creation. (Does not
yet seem to work.)
* PartitionViews for spaces were not put into the partition_id -> view map.
* Fixed focus indication when switching the disk for the disk layout view,
previously, the correct view was only selected when the disk did not change.
* Added a temporary work around to avoid showing bogus space items at all
(those smaller than a "cylinder size"). Currently hard coded to 8 MB size.
But I already have an idea how we could fix this in the Disk Device API
implementation.


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


# e9510468350ea8bffbed51c7b376a1d1352610df 03-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

Fixes the build for the app_server test environment.


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


# 8d2c63c70338e994e4038393eb1269b908c849f3 01-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* To be able to call BPartition::GetPartitioningIngo(), you need to call
PrepareModifications() on the parent BDiskDevice first. Hm. I should
probably reorganize things a bit.
* Selecting these empty spaces is still not supported.
* Fixed inserting empty spaces in the DiskView at the correct index.


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


# 56d794d68eaf9562d60cb397db1a030561960c2e 01-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* implemented detecting and displaying available space on devices and
partitions - I couldn't test it yet, but what is definitely missing
is being able to select these spaces to create new partitions on them
* fixed the bug that if you select a partition on another disk, the
disk view does not switch to the new disk. (I was comparing disk
pointers, but since I deleted the old BDiskDevice instance first, the
new one got assigned the same pointer... at least it appears I am not
leaking memory anywhere... :-))


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


# ec103c3c389cb3f2827c816f7544eb2a51ea49c6 27-Jan-2008 Stephan Aßmus <superstippi@gmx.de>

Moved DriveSetup from preferences to apps. Changed HaikuImage script
accordingly.


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