update partition widget after changing the alignment type since now the
unallocated space might have changed.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127793
alleviates the problems arising from overwriting the spin box values if the new
value is illegal since we don't see values while they are being entered
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119551
because that's where it's actually being used exclusively.
don't update the spinbox value in
SizeDialogBase::onFreeSpaceBefore/AfterChanged() because if we do that the user
cannot enter values digit by digit anymore (we'll just overwrite what he entered
after each keystroke)
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119113
make sure we set the correct value for the free space spinboxes after
calculating the new first/last sector
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119091
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
PartitionAlignment::alignedLastSector() take the min and max first/last, the
min length and the max length as args, making a lot of stuff in
PartitionAlignment superfluous.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119051
to delete and re-create the unallocated first and last child in an extended
partition, which is a waste of resources
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1116005
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
partitions (i.e., just remove any children)
call resizeLogicals() when a new partition's role changes in NewDialog so it
gets an unallocated child if it's now extended or the unallocated child is
removed if not anymore.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115223
the ResizeDialog to said dialog instead of cluttering the
PartitionManagetWidget's call with that.
Call updatePartitions() after exec'ing ResizeDialog() even if the dialog was
not accepted as it might have deleted and re-created unallocated children of
extended partitions anyway -- and that would crash us later.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115191
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
partWidget is created
make sure to always create unallocated partitions when resizing an extended,
not only if it already has one.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115158
Make sure aligning partitions actually works in the part resizer. Could still
need work and even thought.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115134
anymore because when aligning the resized partition it is no longer known if an
existing partition is the source of the temporary copy or some other partition.
Let the ResizeDialog modify the original and restore its start and end sector
after the dialog has been executed instead.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115133
let the PartResizerWidget know the state of the align checkbox
use the toggled, not the stateChanged signal from the align checkbox
make sure PartResizerWidget::setMoveAllowed is called before PartResizerWidget::init
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1115131
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
means the PartWidget doesn't need to know its PartTableWidget anymore.
Don't keep a list of child widgets, Qt will do that for us.
Remove the showChildren param and property from PartWidget, it wasn't used
anymore.
Rename active() to isActive() in PartWidget for consistency.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114033
partition table on it and show a warning in that case. also make the default
GPT.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113771
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
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
actually moved.
set single step for the sector spinboxes to align value
add a checkbox to turn off aligning the partition
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105207
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
create an instance of the config in main() instead of the main window.
configure the backend plugin to load via the config file
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1101230
the push method itself emits a signal that will lead to updateOperations()
being called now.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098237
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
the signal handler for operationsChanged in MainWindow calls updatePartitions,
this is required)
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098148
anyway.
Refactor PartitionManagerWidget() and MainWindopw(), moving lots of stuff not
directly related to the PartTableWidget/TreePartition-combo from the former to
the latter. This completely breaks the KCM for now.
Remember the currently selected device across rescans.
Use the partition and device container widget for the context menus of
partitions and devices.
Use QMegatObject::connectSlotByName() where possible, even setting object names
where required to make that work.
Emit operationsChanged() and devicesChanged() in OperationStack because only
that makes any sense.
Add devices properties to toolbar.
Rename itemActivated signal in PartTableWidget to itemDoubleClicked.
DeviceScanner, OperationRunner and OperationStack are child QObjects of
MainWindow now.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095086
init m_ActionCollection first so isKPart() is guaranteed to work as early as
possible
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1093899
add the device properties action to device context menu.
open device properties when double clicking device in tree widget.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091984
Actually do use these colors in the part widget.
Improve the look of the selection in the part widget.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091952
Remove the option to create msdos-vista-compatible partition tables. Instead,
use a global config to determine which alignment to use.
Add a device properties dialog.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091755
Remove comment about race conditions when setting the selected device. Turns
out this wasn't at all the case. It was a signal loop, instead.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1089499
- allow applying operations for non-root users if
"allowApplyOperationsForNonRoot" is set to true (default is false)
- hide the radio button to create vista msdos partition tables unless
"allowCreateVistaPartitionTable" is true (default is false). The reason for
this is that there are, of course, no "vista msdos partition tables" in
reality, it's just a Microsoft stupidity that only works as long as there is
actually a partition starting at sector 2048 in that partition table. If the
partition table is just created empty, we have no way to determine it was
meant to be a "vista msdos partition table".
- allow settings the sector alignment for msdos-vista partition tables (default
is 2048, just like vista).
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1088920