Commit Graph

33 Commits

Author SHA1 Message Date
Andrius Štikonas dcdffadc3e Port away from KDialog. 2014-05-17 03:06:58 +01:00
Andrius Štikonas 066cd120e7 Partially port away from KIcon. 2014-05-17 02:27:42 +01:00
Andrius Štikonas ed431cfcd5 Partially port away from KLocale.
KLocale was replaced with KLocalizedString and QLocale.
Only changes that do not break compilation with KDELibs4 are made.
2014-05-13 23:53:37 +01:00
Andrius Štikonas 2b537490ad Port away from KDebug. 2014-05-13 14:47:35 +01:00
Andrius Štikonas 298fcf1772 Set unresizable partitions as read only.
BUG:310632

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1327840
2012-12-09 15:54:22 +00:00
Andrius Štikonas 98034975a7 Correctly format byte size units.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1280226
2012-02-15 17:21:40 +00:00
Volker Lanz c4d159e6c5 krazy2 fixes
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1160573
2010-08-08 12:36:05 +00:00
Volker Lanz 9270dec7b2 remove debug output
align start and end when initializing the dialog if align is on

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140811
2010-06-21 15:15:19 +00:00
Volker Lanz c281271807 use Device::logicalSectorSize() instead of Partition::sectorSize() where ever
possible

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135513
2010-06-07 13:36:04 +00:00
Volker Lanz 91b6ce0a47 make formatted spinbox work when suffix or prefix are set
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129714
2010-05-23 14:05:57 +00:00
Volker Lanz 004e83447b turn off keyboard tracking for the spin boxes if align is on; this mostly
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
2010-04-27 11:21:16 +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 d08ce3ac78 move the updateLength-code from the part resizer widget to SizeDialogBase
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
2010-04-26 15:37:02 +00:00
Volker Lanz 80cbafc7cb set spin box stepping for capacity, too
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
2010-04-26 14:34:59 +00:00
Volker Lanz 0284f685a8 make PartitionAlignment::alignedFirstSector() and
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
2010-04-26 13:14:29 +00:00
Volker Lanz 32f610d28a make changing the free space after a partition work with aligning, mostly.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119010
2010-04-26 11:46:38 +00:00
Volker Lanz 6b89377253 make changing the free space before a partition work with aligning, mostly.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119007
2010-04-26 11:30:06 +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 ee5f16ad34 don't crash when creating a size dialog: don't set moveAllowed before the
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
2010-04-15 13:41:12 +00:00
Volker Lanz 82f08a4f8b use PartitionAlignment::sectorAlignment, not Config::sectorAlignment
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
2010-04-15 10:32:12 +00:00
Volker Lanz ea2e6cba9f move more code from setupConstraints to setupDialog as another workaround. this
really needs fixing.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1114067
2010-04-12 17:05:10 +00:00
Volker Lanz e3932ebf3f use "Advanced" as button text for the details button
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105464
2010-03-20 10:10:11 +00:00
Volker Lanz 791377f176 only return true from PartResizerWidget::movePartition() if the partition was
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
2010-03-19 14:13:04 +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 2ec1d5d282 Update free space before and after the partition in our own properties when
these values change or we'll lose track of the total size there is available.

BUG: 191740

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=964016
2009-05-05 20:01:40 +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
Laurent Montel 8ae4bd939d Fix includes
svn path=/trunk/kdereview/partitionmanager/; revision=877306
2008-10-29 07:45:19 +00:00
Volker Lanz f2e2bbdfe3 Disable OK button in resize dialog per default, enabling it if something's
modified.

svn path=/trunk/playground/sysadmin/partitionmanager/; revision=868381
2008-10-06 08:01:28 +00:00
Volker Lanz d1de6bce91 whitespace
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=868377
2008-10-06 07:48:45 +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