Commit Graph
5 Commits
Author SHA1 Message Date
Leo Rouleau 3e8d044d12 Devices: Move documentation to docs/develop/apps
Change-Id: I2ff31810df1a4afc16533d3820af61a1d2a8ccd1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11172
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-06-25 06:50:05 +00:00
Leo Rouleau 315411d839 Devices: extend dm_wrapper and new layout
Shows Device path in /dev if used and Driver used. New tree-view layout for Basic
Information and Attributes separated.

Changes:
- Added new attribute in device_manager to get the path of device
- Tree view layout that separates the Basic Information of a device,
  such as name or driver used and the Attributes that shows the rest
- new call in dm_wrapper
- new case in device_manager
- logic to add the new attributes as Device path and Driver used in
  DevicesView.cpp

Change-Id: I05eaf5d7cf9e3b5ec8e9f1e0ac5c6cf7561ccde5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11012
Reviewed-by: Kacper Kasper <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-06-12 20:16:56 +00:00
Leo Rouleau 10dd7132ab Devices: Fix memory leak
Resolves two possible memory leaks that could happen once the
application is closed.

Resolves the TODO: There is still a memory leak somewhere, hunt it down

Changes:
- Added a missing break statement for ATA/SCSI/IDE controllers when
  parsing in addDeviceAndChildren.
- Added a cleanup loop in DeleteDevices() to delete the category header
  devices.

Change-Id: I4836384aaf3fac6ba1b176247baac0239c6482cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10813
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-17 07:09:08 +00:00
Leo Rouleau 84dc21e19e Devices: Make get methods of Device const
adds const qualifiers to the devices class getter methods.

Resolves the TODO: Make Get methods of device const in
documentation/Todo.txt

Changes:
- Added const qualifiers to getter methods in Device.h and Device.cpp
- replaced operator[] with find() in Device.h and Device.cpp to prevent
map modification in const
- Removed the corresponding Todo entry in documentation/Todo.txt

Change-Id: I78d5ea31b2d7539bcefda7b3e57a484d16103c25
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10666
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-04-06 07:44:09 +00:00
Leo Rouleau 787ff471d3 Devices: Implement Order by Bus sorting feature
Adds a new sorting mode to the Devices app to allow users to view the
hardware tree sorted by bus connections.

Resolves the TODO: Implement BY_BUS in DevicesView.cpp

Changes:
- Added ORDER_BY_BUS state and kMsgOrderBus constant
- Added Bus option to the orderByPopupMenu
- Implemented alogrithm in RebuildDevicesOutline() to group devices under their CAT_BUS parent
- Added kMsgOrderBus in DevicesApplication to ensure it updates when
  selected

Change-Id: I266333e1ced25d231d73a0850e6a8ff3155084c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10481
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-03-25 12:33:28 +00:00