History log of /haiku/src/apps/drivesetup/MainWindow.cpp
Revision Date Author Comments
# b014491b 28-Mar-2023 Zardshard <0azrune6@zard.anonaddy.com>

DriveSetup: Preserve focus on rescan

Before, pressing Disk->Rescan would keep the previous item selected but
move the keyboard focus to the first element.

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


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


# 76fc09c0 08-Mar-2021 Adrien Destugues <pulkomandy@pulkomandy.tk>

DriveSetup: fix logic to enable the "change parameters" menu

Just ask the partition if its parameters can be changed, instead of
trying to guess.

Now the menu is always disabled. This is because none of our
partitioning systems actually allow changing any of the parameters of an
already created partition (they don't enable B_DISK_SYSTEM_SUPPORTS_SETTING_PARAMETERS).

Fixes #11641 (but we should implement editing parameters in the intel
partitionning system to set the active partition).

Change-Id: I242e7f73c4188824ba0e3984c0d97172da84e9a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3765
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


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

DriveSetup: allow formatting a mounted partition

It is automatically unmounted, if possible.

Part of #16304.


# 3d29f848 14-Oct-2020 Murai Takashi <tmurai01@gmail.com>

drivesetup: Fix -Wformat-security

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


# 53830ab7 11-Apr-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

DriveSetup: disable 'Open with diskprobe' when no partition selected

This was part of the original DriveSetup patch but I missed it when
splitting it in smaller parts.


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

DriveSetup: add "open with DiskProbe" menu

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


# 2876fb7c 21-Jan-2019 Rob Gill <rrobgill@protonmail.com>

apps/DriveSetup Warn before formatting Intel extended Partition

* Provide a specific warning should a user select formatting the
intel extended partition. Formatting this partition results in
the loss of any subpartitions, and results in no usable partition.
(as described in bug #9856).

Change-Id: I6fb71f3329596217364f3be56b7ca225a1f26441
Reviewed-on: https://review.haiku-os.org/c/886
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>


# 2e7e161d 11-Dec-2018 Murai Takashi <tmurai01@gmail.com>

drivesetup: Fix PVS 832

Fix 'parentRow' is assigned values twice successively.

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


# e495a73b 22-Dec-2016 Jessica Hamilton <jessica.l.hamilton@gmail.com>

partitioning: set partition name in partition table if supported.


# b0a48e38 09-Dec-2014 Puck Meerburg <puck@puckipedia.nl>

DriveSetup: Also mount BDiskDevices which contain a file system.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

GCI2014, Fixes #6783.

* The "Mount All" Tracker menu only mounted partitions, not disks filled
directly with a filesystem.


# 2824c5d3 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


# 372072c8 11-Dec-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit/DiskUsage/DriveSetup post-hrev46520 fixes

* StyledEdit - make Find/Replace windows non zoomable, select the search
string view on showing the window for repetitional search;
* Devices - fix plain property list background - to standard one and
restore read-only state of this pane;
* DriveSetup - remove radio-mode of drive list context popup menu;
* DiskUsage - SetLowColor to parent background to avoid small text
rendering issue.

Many thanks to Sergei Reznikov for testing and pointing issues out.


# 93d99e83 06-Dec-2013 Freeman Lou <freemanlou2430@Yahoo.com>

DriveSetup: propose to force unmount if umount failed

* Propose to repeat unmount attemp with force unmount flag in case the unmount
attempt was unsuccsessful;
* Fixes #8548;

- GCI 2013


# 491bbe77 22-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

DriveSetup: Implement optimal zoom for main window

* Fixes #6265 and #8672.

- GCI 2013


# abc7fddf 24-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

DriveSetup: Context menu for drives/partitions added

* Fixes #9906.

- GCI 2013


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


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

Minor style cleanup.


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


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

Fixed design issues in BPartitionParameterEditor.

* The user of an editor needed knowledge about the editor in order to make
use of it.
* Furthermore, the BPartitionParameterEditor exposed type specific
functionality that it shouldn't know anything about, either.
* We may now define a number of known parameters per editor type; right now
there is only "type" as it's needed by DriveSetup.
* Adapted all disk systems, and DriveSetup to the new API.
* Renamed CreateParamsPanel, and InitializeParamsPanel to *ParametersPanel
in DriveSetup.
* They now share a common base class AbstractParametersPanel.


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

DriveSetup: improved default window size.

* The default width will no longer make the parameters and partition type
columns visible.
* Fixed default size of those two columns -- I did not notice that the column
state was being restored before, and thought it would just be another oddity
of BColumnListView :-)
* Since MainWindow maintains its size pretty much itself, the constructor no
longer gets a BRect.
* The window will now also be resized vertically to make space for all the
partitions (only affects first launch without settings file).
* Also made the window a bit higher by default.


# 8317edb3 28-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: Removed (some) knowledge about initialization.

* Instead of guessing whether or not to show the InitParamsPanel, the panel
will now no longer show itself if the disk system does not have an editor,
and silently succeed.
* This also fixed a potential crash if the editor could not be created for
some reason.
* Minor cleanup.


# 403869b9 28-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: improved error reporting.


# f142407b 23-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: improved error reporting when deleting a partition.


# b039ee65 23-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.

* Renamed *MI members to *MenuItem.


# 1aa6f649 07-Nov-2012 threedeyes <3dEyes@gmail.com>

NTFS: renamed [NTFS File System] to [NT File System] to be consistent with Be File System


# a6de4932 03-Nov-2012 threedeyes <3dEyes@gmail.com>

DriveSetup: Added ntfs support.


# 816aded4 18-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added Installer and DriveSetup to image.


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


# 33d23e8f 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Show a quick warning when formatting raw disk

* Another translation candidate :)


# 8fe3bba7 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Don't show unimplemented tools


# 448216af 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Text / context cleanup

* Make sure we use consistant terminology
* No more Formatted partition "" messages when
doing a partition map
* This commit will require translation work


# badea728 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Reorganize Disk menu.

* Group destructive and non-destructive operations
* Rename Disk->Format to Wipe (seems like a more modern term)
* Mostly bikeshed :)


# 47689d6e 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Refactor gui layout as per ML thread

* Move disk partitioning systems under Disk menu
* Found and created bug #8827 (this wasn't introduced
by my changes and was pre-existing)
* My testing resulted in no regressions, however
please test though!


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


# 6436e467 12-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

MainWindow::_UpdateMenus():
* Don't fall back to the disk device, if no partition was selected. No idea why
that was done. It led to operations (like initialize) being enabled that
would fail, if invoked.
* Don't check CanInitialize() on the selected partition with its current disk
system to determine whether to enable the initialization menu. No idea why
that was done either. It led to the menu being disabled, when there was no
reason for it.
* Also disable the initialization menu when no partition is selected.


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


# 2925a66e 30-May-2011 Jérôme Duval <korli@users.berlios.de>

revert r41842


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


# e761436d 30-May-2011 Jérôme Duval <korli@users.berlios.de>

Also enables the Initialize menu when the partition is also a device: Hopefully should fix #7572.


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


# 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


# 066522e8 14-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Localization changes. Use of B_TRANSLATE_APP_NAME(). Small cleanups.

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


# 32ba4bef 19-Dec-2010 Stephan Aßmus <superstippi@gmx.de>

Make the list view focused by default, this allows to use DriveSetup with
the keyboard and fixes ticket #4746. I did not test creating new
partitions.


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


# b9d2622d 19-Dec-2010 Stephan Aßmus <superstippi@gmx.de>

Since "Mount all" is not connected to a selected disk/partition,
the Partition menu shall never be disabled. Fixed enabled state
of some other menus/entries after this change. Fixes ticket #6783.


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


# 2f3ce2bf 23-Oct-2010 Bryce Groff <bgroff@hawaii.edu>

DriveSetup:
- File system is now only displayed when the partition actually has a filesystem.
- Now checks if the DiskSystem supports initializing.
- Updated the *ParamsPanels, as well as, the Disk System add-ons to use the new storage api changes (see below).

Storage Kit:
- Simplified the parameters editor system. Now all parameter editor requests go through a single function, GetParameterEditor, and pass a B_PARAMETER_EDITOR_TYPE to request a particular parameter editor.
- Moved DiskDeviceAddOnManager.h to the headers directory, as it is now required by InitParamsPanel.


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


# 574e9995 17-Oct-2010 Bryce Groff <bgroff@hawaii.edu>

Re-worded initialization's alert box text.


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


# b1538331 19-Sep-2010 Matt Madia <mattmadia@gmail.com>

Applied diver's patch to localize DriveSetup's window title.
Fixes #6608. Thanks!


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


# 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


# 06237dd8 29-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed obsolete check. Initialization parameter editing is provided by the
disk system add-ons.


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


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# 5ea21f5d 12-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Improved text of error message.


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


# d478944d 31-Aug-2009 Stephan Aßmus <superstippi@gmx.de>

* Some menu items were enabled for the completely wrong partitions, because
the BPartition pointer in _UpdateMenus() was toast after calling
CancelModifications() on the disk. Most importantly, the Mount/Unmount
items are now correctly enabled/disabled. And you can no longer initialize
mounted partitions...
* Added some debug output to help track down why BDiskDeviceRoster
notifications don't work anymore. I am pretty sure those did work at one
time.

+alphabranch.


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


# f7a0f575 31-Aug-2009 Stephan Aßmus <superstippi@gmx.de>

When no settings file is found, resize the list view and the window such that
all columns are seen (taking care not to become bigger than the screen) and
center the window on screen.

+alphabranch


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


# ce98f989 13-Aug-2009 Bryce Groff <bgroff@hawaii.edu>

Revert back Mount menu item. One should be able to mount disk devices that contain raw filesystems.


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


# 4a6a6b6d 12-Aug-2009 Bryce Groff <bgroff@hawaii.edu>

Updated menu changes.
* Disable Init menu for partitions that are read only, or have no media (ie. empty cdrom)
* Disable Delete menu for partitions that are devices.
* Disable Mount menu for partitions that are devices.


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


# 4199b368 03-Aug-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff: Correctly notify the user when committing the
modifications for deleting a partition failed.


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


# 56938474 30-Jul-2009 Jonas Sundström <jonas@kirilla.com>

Set partition list view to single-select.

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


# 64a8eb7a 25-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Jeroen Oortwijn: Remove additional space from error message.
Thanks a lot!


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


# 821d6af0 25-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Jeroen Oortwijn: Use the validated name instead of the original one.
Thanks a lot!


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


# 7f96148c 20-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff with changes by myself:
* Added missing name parameter to the partitioning system module child creation
and child creation validation hooks. Pass the name to them.
* Added BPartitionParameterEditor interface, which is/will be used for editing
disk system specific parameters.
* Implemented partition parameter editors for BFS initialization and Intel
partition map child creation.
* Fixed the incorrect supported child partition type iteration in the Intel
partition map add-on. It does now return actual types.
* Handle the "active" flag parameter in the Intel partitioning system module.
* DriveSetup:
- Replaced the "Create" submenu by a simple menu item. The type can now by
chosen in the dialog.
- Make use of initialization and child creation parameter editors. Some
non-generic code has been moved to the respective editor implementations
(BFS, intel partitioning system).


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


# 31af3734 11-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff with small changes by myself:
* Fixed _Create(): Now it correctly supports nested partitions and uses the
selected partitionable space.
* Fixed _Delete(): Should also work for nested partitions, now.
* Changes to keep the disk view and menu item state in sync.


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


# dc59ebe7 25-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff with small changes by myself: Implemented partition
creation (ATM BFS only) and deletion.


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


# 4ee70e3b 15-May-2009 Stephan Aßmus <superstippi@gmx.de>

* Adopt the Init menu to the currently available
disk systems. For disk devices, we allow not only
file systems, but any disk system. This gets us
"Intel Partition Map" and "Intel Extended Partition".
I managed to initialize a disk with Intel Partition
Map this way.
* I imported a large chunk of currently disabled code
from Ingo's partitioner command line tool, which can
eventually be used to create partitions in the empty
space. I kept the "Create" menu still disabled, but
the correct content types are actually retrieved already,
which are "Intel Primary Partition" and "Intel Extended
Partition".


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


# 9ba6067e 24-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Thou shalt compile before thou commitst!


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


# 7cd194ff 24-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

If Deskbar is not running, prevent minimizing (untested).


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


# 4fba3522 11-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


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


# 54337aaf 09-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Small style cleanups.


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


# 9de19e0d 26-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

Calling BDiskDeviceSystem::CommitModifications() will delete all BPartition
children of the device and recreate them so that they are updated to any
changes. MainWindow::_Initialize() was using a stale BPartition pointer
after calling CommitModifications(). Now the pointer is recreated from the
id. Should fix #2548. Untested.


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


# eb9c6bd3 24-Jul-2008 Rene Gollent <anevilyak@gmail.com>

Adopt Axel's solution to the unmount/rmdir problem (only remove from rootfs) in DriveSetup also.



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


# 5c4fff2e 23-Jul-2008 Rene Gollent <anevilyak@gmail.com>

Tracker and DriveSetup now attempt to clean up the mount point after successfully unmounting the volume.



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


# 7c730d1e 20-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

When initializing a partition, default to the existing partition name. If
there is none, default to "Haiku".


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


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

I think the ListPopulatorVisitor gets BDiskSystems allocated on the stack,
so tracking the modification preparations is both unnecessary and
as canceling is performed on a stale pointer...


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


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

Accidentially removed one preparation/cancellation too many. Added it back
but cancel only if preparing was successful.


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


# dce81a09 29-Mar-2008 Jérôme Duval <korli@users.berlios.de>

scan drives again once initialize is done


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


# 59312709 20-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* Maintain the previously selected partition when rescanning drives (ie also
when mounting/unmounting a partition).
* Set the enabled state of the Unmount menu item when a partition is not
mounted (was using previous state from last partition).


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


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

Incorporate work done by James Urquhart (jamesu):
* Use our own BBitmapStringField implementation which also requires our
own BColumn implementation. This is just a visual improvement which makes
both the eventual partiton icon and device label indent with the outline
level of the list item
* when setting the Unmount menu item enabled state, check wether the
partition in question is the /boot volume and disallow unmounting.


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


# b0a48e3844d112672ce382e4d632308cef579b8b 09-Dec-2014 Puck Meerburg <puck@puckipedia.nl>

DriveSetup: Also mount BDiskDevices which contain a file system.

Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

GCI2014, Fixes #6783.

* The "Mount All" Tracker menu only mounted partitions, not disks filled
directly with a filesystem.


# 2824c5d3a428b1f52fb41e7cf84ef1690cfadc80 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


# 372072c899b83235838fe0c70e68e2aadf243f9e 11-Dec-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit/DiskUsage/DriveSetup post-hrev46520 fixes

* StyledEdit - make Find/Replace windows non zoomable, select the search
string view on showing the window for repetitional search;
* Devices - fix plain property list background - to standard one and
restore read-only state of this pane;
* DriveSetup - remove radio-mode of drive list context popup menu;
* DiskUsage - SetLowColor to parent background to avoid small text
rendering issue.

Many thanks to Sergei Reznikov for testing and pointing issues out.


# 93d99e8353208d2919cc0f0fc841066adec00a36 06-Dec-2013 Freeman Lou <freemanlou2430@Yahoo.com>

DriveSetup: propose to force unmount if umount failed

* Propose to repeat unmount attemp with force unmount flag in case the unmount
attempt was unsuccsessful;
* Fixes #8548;

- GCI 2013


# 491bbe7797c6cfc073a1161bdb03d48602333035 22-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

DriveSetup: Implement optimal zoom for main window

* Fixes #6265 and #8672.

- GCI 2013


# abc7fddf07d3cc3f296681275cf392993e50743b 24-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

DriveSetup: Context menu for drives/partitions added

* Fixes #9906.

- GCI 2013


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


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

Minor style cleanup.


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


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

Fixed design issues in BPartitionParameterEditor.

* The user of an editor needed knowledge about the editor in order to make
use of it.
* Furthermore, the BPartitionParameterEditor exposed type specific
functionality that it shouldn't know anything about, either.
* We may now define a number of known parameters per editor type; right now
there is only "type" as it's needed by DriveSetup.
* Adapted all disk systems, and DriveSetup to the new API.
* Renamed CreateParamsPanel, and InitializeParamsPanel to *ParametersPanel
in DriveSetup.
* They now share a common base class AbstractParametersPanel.


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

DriveSetup: improved default window size.

* The default width will no longer make the parameters and partition type
columns visible.
* Fixed default size of those two columns -- I did not notice that the column
state was being restored before, and thought it would just be another oddity
of BColumnListView :-)
* Since MainWindow maintains its size pretty much itself, the constructor no
longer gets a BRect.
* The window will now also be resized vertically to make space for all the
partitions (only affects first launch without settings file).
* Also made the window a bit higher by default.


# 8317edb3504120db3ddff0c3270a7ae9a55719f6 28-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: Removed (some) knowledge about initialization.

* Instead of guessing whether or not to show the InitParamsPanel, the panel
will now no longer show itself if the disk system does not have an editor,
and silently succeed.
* This also fixed a potential crash if the editor could not be created for
some reason.
* Minor cleanup.


# 403869b9fe4c2b40f24e69033a8936d265840fcd 28-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: improved error reporting.


# f142407b03b984b38e7600f4de527d4a8b6a4e4e 23-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

DriveSetup: improved error reporting when deleting a partition.


# b039ee6572e456ad87d7240fe9e79bada2917105 23-Jan-2013 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.

* Renamed *MI members to *MenuItem.


# 1aa6f649535f5f2e1b9edd42bf48137a3ccd8723 07-Nov-2012 threedeyes <3dEyes@gmail.com>

NTFS: renamed [NTFS File System] to [NT File System] to be consistent with Be File System


# a6de493213ff3ff2700469fb45ddb1b39ab15c14 03-Nov-2012 threedeyes <3dEyes@gmail.com>

DriveSetup: Added ntfs support.


# 816aded4c161cb68946562c79e05c5a7eb145268 18-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added Installer and DriveSetup to image.


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


# 33d23e8fed4f33534319306bffffbe376fe015b8 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Show a quick warning when formatting raw disk

* Another translation candidate :)


# 8fe3bba7272250f4be51e8247e5f0ab049c67dc2 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Don't show unimplemented tools


# 448216aff890d4a8d5538b87a43f3ebd5bac83b6 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Text / context cleanup

* Make sure we use consistant terminology
* No more Formatted partition "" messages when
doing a partition map
* This commit will require translation work


# badea728fa8d7c91e70a3cc52e37da25b42239a9 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Reorganize Disk menu.

* Group destructive and non-destructive operations
* Rename Disk->Format to Wipe (seems like a more modern term)
* Mostly bikeshed :)


# 47689d6e987c36c1b0157387f9c0636cff44e44f 03-Aug-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

DriveSetup: Refactor gui layout as per ML thread

* Move disk partitioning systems under Disk menu
* Found and created bug #8827 (this wasn't introduced
by my changes and was pre-existing)
* My testing resulted in no regressions, however
please test though!


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


# 6436e4676f2f43a9773fba8e521f0719d8a60f8a 12-Jun-2011 Ingo Weinhold <ingo_weinhold@gmx.de>

MainWindow::_UpdateMenus():
* Don't fall back to the disk device, if no partition was selected. No idea why
that was done. It led to operations (like initialize) being enabled that
would fail, if invoked.
* Don't check CanInitialize() on the selected partition with its current disk
system to determine whether to enable the initialization menu. No idea why
that was done either. It led to the menu being disabled, when there was no
reason for it.
* Also disable the initialization menu when no partition is selected.


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


# 2925a66e804e1e0a601149a62e135d95cb07b494 30-May-2011 Jérôme Duval <korli@users.berlios.de>

revert r41842


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


# e761436deee54e040b0347002da7ccd388f02c51 30-May-2011 Jérôme Duval <korli@users.berlios.de>

Also enables the Initialize menu when the partition is also a device: Hopefully should fix #7572.


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


# 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


# 066522e87b5aa9f25957e3f419ac3a0565edbb4f 14-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Localization changes. Use of B_TRANSLATE_APP_NAME(). Small cleanups.

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


# 32ba4befc446a1add30a31434d9d8dead07f03fd 19-Dec-2010 Stephan Aßmus <superstippi@gmx.de>

Make the list view focused by default, this allows to use DriveSetup with
the keyboard and fixes ticket #4746. I did not test creating new
partitions.


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


# b9d2622de12cd8c03dd263a8adb4ff260f0da378 19-Dec-2010 Stephan Aßmus <superstippi@gmx.de>

Since "Mount all" is not connected to a selected disk/partition,
the Partition menu shall never be disabled. Fixed enabled state
of some other menus/entries after this change. Fixes ticket #6783.


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


# 2f3ce2bf7ee30d5039ca706f86b51e3145a663f5 23-Oct-2010 Bryce Groff <bgroff@hawaii.edu>

DriveSetup:
- File system is now only displayed when the partition actually has a filesystem.
- Now checks if the DiskSystem supports initializing.
- Updated the *ParamsPanels, as well as, the Disk System add-ons to use the new storage api changes (see below).

Storage Kit:
- Simplified the parameters editor system. Now all parameter editor requests go through a single function, GetParameterEditor, and pass a B_PARAMETER_EDITOR_TYPE to request a particular parameter editor.
- Moved DiskDeviceAddOnManager.h to the headers directory, as it is now required by InitParamsPanel.


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


# 574e99959673cc5b49ddea1fb9c7f6ad6b6977e1 17-Oct-2010 Bryce Groff <bgroff@hawaii.edu>

Re-worded initialization's alert box text.


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


# b15383313c252dc615df6caa25fe1099bd50e9fb 19-Sep-2010 Matt Madia <mattmadia@gmail.com>

Applied diver's patch to localize DriveSetup's window title.
Fixes #6608. Thanks!


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


# 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


# 06237dd800313de81a22490aa090e8cf4a194ecf 29-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed obsolete check. Initialization parameter editing is provided by the
disk system add-ons.


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


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# 5ea21f5d2d3e2215f6cbcc3b7722faea698cb656 12-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Improved text of error message.


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


# d478944d26e09d0873e2e8fab35539c3a6711ee5 31-Aug-2009 Stephan Aßmus <superstippi@gmx.de>

* Some menu items were enabled for the completely wrong partitions, because
the BPartition pointer in _UpdateMenus() was toast after calling
CancelModifications() on the disk. Most importantly, the Mount/Unmount
items are now correctly enabled/disabled. And you can no longer initialize
mounted partitions...
* Added some debug output to help track down why BDiskDeviceRoster
notifications don't work anymore. I am pretty sure those did work at one
time.

+alphabranch.


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


# f7a0f575a88b6a68498ee22393eb9201f912831c 31-Aug-2009 Stephan Aßmus <superstippi@gmx.de>

When no settings file is found, resize the list view and the window such that
all columns are seen (taking care not to become bigger than the screen) and
center the window on screen.

+alphabranch


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


# ce98f98948624710bd5a544639eb50018c2adcc3 13-Aug-2009 Bryce Groff <bgroff@hawaii.edu>

Revert back Mount menu item. One should be able to mount disk devices that contain raw filesystems.


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


# 4a6a6b6d1c76c74f167756e1c961cd98696e42fd 12-Aug-2009 Bryce Groff <bgroff@hawaii.edu>

Updated menu changes.
* Disable Init menu for partitions that are read only, or have no media (ie. empty cdrom)
* Disable Delete menu for partitions that are devices.
* Disable Mount menu for partitions that are devices.


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


# 4199b368073194e77b91a6eb82e0c9d8728695cd 03-Aug-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff: Correctly notify the user when committing the
modifications for deleting a partition failed.


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


# 56938474d1bb0e81142a12406d549754db2fe9e1 30-Jul-2009 Jonas Sundström <jonas@kirilla.com>

Set partition list view to single-select.

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


# 64a8eb7a027e56594448d9845a3d8958df606724 25-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Jeroen Oortwijn: Remove additional space from error message.
Thanks a lot!


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


# 821d6af0796ca5b72d864a9f9b5af86a7edae9f9 25-Jul-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by Jeroen Oortwijn: Use the validated name instead of the original one.
Thanks a lot!


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


# 7f96148cacdbf4ed476c22e6e8148b7f44a91d9e 20-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff with changes by myself:
* Added missing name parameter to the partitioning system module child creation
and child creation validation hooks. Pass the name to them.
* Added BPartitionParameterEditor interface, which is/will be used for editing
disk system specific parameters.
* Implemented partition parameter editors for BFS initialization and Intel
partition map child creation.
* Fixed the incorrect supported child partition type iteration in the Intel
partition map add-on. It does now return actual types.
* Handle the "active" flag parameter in the Intel partitioning system module.
* DriveSetup:
- Replaced the "Create" submenu by a simple menu item. The type can now by
chosen in the dialog.
- Make use of initialization and child creation parameter editors. Some
non-generic code has been moved to the respective editor implementations
(BFS, intel partitioning system).


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


# 31af37348891f335c3850212ffc37a8fe01a61e9 11-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff with small changes by myself:
* Fixed _Create(): Now it correctly supports nested partitions and uses the
selected partitionable space.
* Fixed _Delete(): Should also work for nested partitions, now.
* Changes to keep the disk view and menu item state in sync.


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


# dc59ebe78baea7622ef3328bea170c14ec9ed351 25-Jun-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Bryce Groff with small changes by myself: Implemented partition
creation (ATM BFS only) and deletion.


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


# 4ee70e3bbaf997c862c7edf9ae8075c2c4734213 15-May-2009 Stephan Aßmus <superstippi@gmx.de>

* Adopt the Init menu to the currently available
disk systems. For disk devices, we allow not only
file systems, but any disk system. This gets us
"Intel Partition Map" and "Intel Extended Partition".
I managed to initialize a disk with Intel Partition
Map this way.
* I imported a large chunk of currently disabled code
from Ingo's partitioner command line tool, which can
eventually be used to create partitions in the empty
space. I kept the "Create" menu still disabled, but
the correct content types are actually retrieved already,
which are "Intel Primary Partition" and "Intel Extended
Partition".


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


# 9ba6067e9da1ec3c13cfa7b34ac7f349ea31979f 24-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Thou shalt compile before thou commitst!


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


# 7cd194fffb9a0a828af8371684aca07fc59ea50f 24-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

If Deskbar is not running, prevent minimizing (untested).


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


# 4fba3522e02906506b6c713ef5b57d72e9458fef 11-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


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


# 54337aafca3dc152ee4320ae3432860a20c7e393 09-Apr-2009 Stephan Aßmus <superstippi@gmx.de>

Small style cleanups.


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


# 9de19e0d0e5f36f109c70c62ebdef9371b0e901a 26-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

Calling BDiskDeviceSystem::CommitModifications() will delete all BPartition
children of the device and recreate them so that they are updated to any
changes. MainWindow::_Initialize() was using a stale BPartition pointer
after calling CommitModifications(). Now the pointer is recreated from the
id. Should fix #2548. Untested.


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


# eb9c6bd38ace4388ad137a9b4b645e062ecc5c21 24-Jul-2008 Rene Gollent <anevilyak@gmail.com>

Adopt Axel's solution to the unmount/rmdir problem (only remove from rootfs) in DriveSetup also.



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


# 5c4fff2ef1406c5533f5c388ccb3670881c08d40 23-Jul-2008 Rene Gollent <anevilyak@gmail.com>

Tracker and DriveSetup now attempt to clean up the mount point after successfully unmounting the volume.



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


# 7c730d1ed4f4734058950b67e4a676d2c7e52672 20-Jul-2008 Stephan Aßmus <superstippi@gmx.de>

When initializing a partition, default to the existing partition name. If
there is none, default to "Haiku".


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


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

I think the ListPopulatorVisitor gets BDiskSystems allocated on the stack,
so tracking the modification preparations is both unnecessary and
as canceling is performed on a stale pointer...


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


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

Accidentially removed one preparation/cancellation too many. Added it back
but cancel only if preparing was successful.


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


# dce81a0945d80e614931e1c336672d26bc35caff 29-Mar-2008 Jérôme Duval <korli@users.berlios.de>

scan drives again once initialize is done


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


# 59312709aeed55e24533dc3c49956fa1f220e316 20-Feb-2008 Stephan Aßmus <superstippi@gmx.de>

* Maintain the previously selected partition when rescanning drives (ie also
when mounting/unmounting a partition).
* Set the enabled state of the Unmount menu item when a partition is not
mounted (was using previous state from last partition).


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


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

Incorporate work done by James Urquhart (jamesu):
* Use our own BBitmapStringField implementation which also requires our
own BColumn implementation. This is just a visual improvement which makes
both the eventual partiton icon and device label indent with the outline
level of the list item
* when setting the Unmount menu item enabled state, check wether the
partition in question is the /boot volume and disallow unmounting.


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