Commit Graph

66 Commits

Author SHA1 Message Date
Volker Lanz bc58e08b93 add saving of smart report to a html file
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119675
2010-04-27 16:10:54 +00:00
Volker Lanz be3fbd844a add a method to the backend plugin interface to let backend plugins set fs
command support types

export the fs implementation class symbols to let backend plugins access them

make the static properties holding the command support information in the
implementations public so backend plugins can change them

rename resizeInternal to resizeBackend in the resize filesystem job

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119648
2010-04-27 14:53:04 +00:00
Volker Lanz 1c97342be3 if the file system we want to set the combo box to cannot be found in it, set
it to the first value; don't set it to -1

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119609
2010-04-27 13:19:34 +00:00
Volker Lanz d603f21b1e updated: that is already implemented
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119580
2010-04-27 12:41:19 +00:00
Volker Lanz caeb99c821 updated, cannot reproduce the problem
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119575
2010-04-27 12:32:07 +00:00
Volker Lanz 19ed42c34b make sure we hide the scan progress dialog even if there is no progress at all
(most likely the case when there are no devices found at all)

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119566
2010-04-27 12:11:50 +00:00
Volker Lanz b28c212a9d make the spin boxes in SizeDialogBase work properly with aligned partitions,
mostly.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119547
2010-04-27 11:04:59 +00:00
Volker Lanz 1322c015e0 make sure start and end are aligned when updating a partition's length
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119081
2010-04-26 14:14:14 +00:00
Volker Lanz 42cc630639 update TODO
don't check for length constraints when moving a partition: the length must not
change anyway and the logic wouldn't work because the length DOES change in
between calls to update first and last sector

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119076
2010-04-26 14:03:41 +00:00
Volker Lanz 8dcd4cd1de use QDoubleSpinBox instead of the integer version for free space before and
after and for capacity so that fractions are possible for these values

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1118931
2010-04-26 08:50:57 +00:00
Volker Lanz 1747d31bd2 fix setupDialog and setupConstraints in SizeDialogBase and reverse the order
they're called in in the various dialog ctors to how it was in 1.0.x (which
makes a lot more sense)

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115388
2010-04-16 09:28:39 +00:00
Volker Lanz 067eeb018d Do not merge resize/new/delete ops if an extended partition is involved: Too
many things can go wrong, all of them leading to crashes.

BUG:232092

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115229
2010-04-15 17:34:34 +00:00
Volker Lanz 0bebc1a2d0 Don't update logicals when moving an extended partition:
Moving extended partitions is not allowed if they have logicals and calling the
resizeLogicals() method will remove the unallocated partition the user has with
an 98% probability clicked to drag from under our feet, causing moving to fail.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115167
2010-04-15 14:25:55 +00:00
Volker Lanz 3830db2b9c updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115136
2010-04-15 10:46:45 +00:00
Volker Lanz 17809b5107 updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114146
2010-04-12 20:39:30 +00:00
Volker Lanz 3d6b74453e check the constraints (first and last sector min and max) again after aligning
a partition to make sure we're not going over those. of course
PartitionTable::alignPartition() shouldn't move first and last sector to
anywhere it's not allowed to, but currently it seems buggy enough to do so and
the check won't hurt.

PartitionTable::alignPartition() still needs to be fixed, of course.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114084
2010-04-12 18:20:14 +00:00
Volker Lanz d98563b094 updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113950
2010-04-12 10:53:19 +00:00
Volker Lanz 7fd7cab700 updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113936
2010-04-12 10:15:44 +00:00
Volker Lanz 812b5082e5 updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113915
2010-04-12 08:51:51 +00:00
Volker Lanz 2f822dd21b check if device has more than 2^32 sectors if user wants to create an msdos
partition table on it and show a warning in that case. also make the default
GPT.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113771
2010-04-11 18:06:47 +00:00
Volker Lanz cf9ecebd1f turns out which sector alignment is used on import is determined by the app
wide default in the settings. well. for now, include the information in the
export, but ignore it on import.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113752
2010-04-11 17:16:43 +00:00
Volker Lanz 34f7a37010 one todo less
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113738
2010-04-11 16:09:59 +00:00
Volker Lanz 8c95cfc03b update
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113720
2010-04-11 15:36:26 +00:00
Volker Lanz 74aaf31554 updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113693
2010-04-11 14:28:19 +00:00
Volker Lanz 60fd180a41 updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1108262
2010-03-28 11:31:12 +00:00
Volker Lanz 6c417d16fd updated
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1107997
2010-03-27 13:22:20 +00:00
Volker Lanz 39e366c69f update
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1107707
2010-03-26 15:04:46 +00:00
Volker Lanz 8074a1e702 remove the kpart. it's totally broken now and would require a lot of work.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105785
2010-03-21 11:59:58 +00:00
Volker Lanz 5ca58c6c1c introduce a CoreBackendManager class.
convert the plugins into true KDE plugins with desktop file and all.

let the user pick a backend in the config dialog and load backends on the fly.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105758
2010-03-21 10:50:44 +00:00
Volker Lanz fa0293aad7 another todo
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105474
2010-03-20 11:07:00 +00:00
Volker Lanz edca30b707 add a details widget for the size dialog base and use it for first and last
sector

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1104707
2010-03-18 11:04:13 +00:00
Volker Lanz a892c765cb use a qdoublespinbox instead of a qspinbox for sectors so values higher than
2^31 fit

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1104299
2010-03-17 10:48:24 +00:00
Volker Lanz c384fdaf21 refactor the part resizer and the size dialog base so they're less ugly, less
confusing and don't use free sectors before and after the partition but just
plain start and end.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1103958
2010-03-16 11:40:54 +00:00
Volker Lanz a373fc44a3 update
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102407
2010-03-12 13:08:05 +00:00
Volker Lanz e5ac6e16b0 update todo
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102161
2010-03-11 22:56:42 +00:00
Volker Lanz ebf1612dc8 add setting of default FS to config dialog
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1101986
2010-03-11 14:17:21 +00:00
Volker Lanz fe9ad46a98 add option to specify the minimum log level
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1100568
2010-03-07 21:20:33 +00:00
Volker Lanz 4d6b168474 add a context menu to the log output to allow saving and clearing the log
refactor some code for context menu stuff.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1100535
2010-03-07 19:02:02 +00:00
Volker Lanz be3614ef89 some more TODO ideas
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1100453
2010-03-07 15:45:00 +00:00
Volker Lanz 1ad2964e43 sort of solved. for one, we have a define now to turn off threaded scanning.
also, the problems KFileDialog has as root don't seem to stem from solid.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098618
2010-03-04 00:08:28 +00:00
Volker Lanz 55a9af5a8d don't call updatePartitions() any more after pushing operations on the stack,
the push method itself emits a signal that will lead to updateOperations()
being called now.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098237
2010-03-03 10:09:51 +00:00
Volker Lanz dd9d20345d scan for devices in the backend, not the device scanner thread
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098235
2010-03-03 09:51:53 +00:00
Volker Lanz 754457ef51 turns out this is actually a feature...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098218
2010-03-03 09:11:55 +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 3392940beb add basic export-partitiontable-feature
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097939
2010-03-02 13:35:57 +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 1e2a852df9 remove all traces of libparted from the main binary and lib
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097708
2010-03-01 22:42:52 +00:00
Volker Lanz 6573273554 don't use children().size() but numPrimaries() to find out if a partition table
is empty.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097659
2010-03-01 20:20:46 +00:00
Volker Lanz 2e82663ca9 update info pane when creating partition table
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097656
2010-03-01 20:15:10 +00:00
Volker Lanz 02adb06d06 commit changes in the jobs: makes more sense and is required for flags anyway
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097654
2010-03-01 20:10:23 +00:00