Commit Graph

13 Commits

Author SHA1 Message Date
Volker Lanz ea4031b645 add methods to each operation to return if the op targets a given device or
partition

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129811
2010-05-23 20:13:46 +00:00
Volker Lanz 7f33130265 Add a ctor to CreatePartitionTableOperation that takes a PartitionTable
pointer, not a PartitionTable::Type. This is required for the import.

Add a basic import partition table feature to the GUI and make it work.

Add calls to PartitionManagerWidget::updatePartitions(),
MainWindow::enableActions() and the selectedPartitionChanged handler to the
operationsChanged handler to make sure the info pane and actions are always
updated when the operation stack changes (e.g. on undo). TODO: remove all
updatePartition() and similar calls from methods in PartitionManagerWidget.

Make the device properties action disabled per default and enable it only if a
device is selected. It's actually possible for no device to be selected if the
backend doesn't find any devices at all.

Fix status tips and markup.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098154
2010-03-03 00:15:26 +00:00
Volker Lanz a383d17f75 don't read the new partition table's type name from the device's partition
table: it might not yet have been set to the new partition table and thus this
will either be wrong or even crash if the device doesn't have a partition table
at all

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097709
2010-03-01 22:48:23 +00:00
Volker Lanz 8bc47ee964 rename any occurences of "disk label" to partition table for consistency
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095455
2010-02-24 11:32:12 +00:00
Volker Lanz df26044041 rename LibParted class to LibPartedBackend (plus files)
introduce a CoreBackend superclass for all future backends


svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095129
2010-02-23 18:04:45 +00:00
Volker Lanz c809be064a begin work on new disk label type for msdos(vista)
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1083614
2010-02-01 16:32:45 +00:00
Volker Lanz 7d90e9f78d don't assume on creating a new partition table that the existing partition
table will be able to inform us about first and last usable sector... need to
have some defaults here.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1082202
2010-01-29 23:20:22 +00:00
Volker Lanz c2f127d903 make GPT support work: account for GPT writing a copy of its meta information
to the end of the device, thus requiring us to leave some free space at the end

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1082076
2010-01-29 16:41:42 +00:00
Volker Lanz 87f2f41e1f add basic support for GPT disk labels
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1081931
2010-01-29 11:25:28 +00:00
Volker Lanz 306667e09e Don't assume a device always has a valid partition table. This is the correct
fix for what I initially tried to fix with commit 898001.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=908045
2009-01-09 07:10:59 +00:00
Volker Lanz 70766b856e fix undoing create new partition table: if the "old" partition table is empty,
don't insert unallocated space as it is invalid; insert unallocated space in
the ctor for the create partition table op instead where it's always the
correct thing to do.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=898001
2008-12-17 11:23:30 +00:00
Volker Lanz 26d914e7c8 Don't allow creating a new partition table on a device with currently mounted
partitions.

svn path=/trunk/playground/sysadmin/partitionmanager/; revision=868375
2008-10-06 07:31:11 +00:00
Volker Lanz d6dc26bd90 import of KDE Partition Manager
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=864431
2008-09-24 19:32:01 +00:00