Commit Graph

95 Commits

Author SHA1 Message Date
Volker Lanz 8ee33739c6 use previewDevices(), not the property itself, in OperationStack
use operationStack().previewDevices() where possible in the pm widget

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1089122
2010-02-12 13:30:28 +00:00
Volker Lanz eca8342e75 Clean up ListOperations.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1089102
2010-02-12 11:49:35 +00:00
Volker Lanz 7991de7fef Clean up ListDevices and, in the process, also MainWindow and the KCM.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1089088
2010-02-12 11:29:12 +00:00
Volker Lanz 921d6b18e6 add some config values for advanced stuff:
- 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
2010-02-11 22:26:51 +00:00
Volker Lanz bead785279 don't include headers no longer needed
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1088860
2010-02-11 20:11:57 +00:00
Volker Lanz 6f5680866c Add a DeviceScanner class. Move code to scan for devices from
core/libparted.cpp to this new class and use this class in
PartitionManagerWidget

Move the libparted-specific code to inspect _one_ device to a static method in
LibParted.

Make scanning for devices asynchronous with the new DeviceScanner class.

Introduce a progress dialog to show progress while scanning.

Rename the progress dialog for applying operations to something less generic.

Remove the signal emitted when the status bar should change: It's the same
logic used for the signal emitted when operations change.

Remove the onFinished() method in PartitionManagerWidget and directly connect
the finished signal from the apply-progress-dialog to the scanDevices slot.

Rename the PartitionManagerWidget::selectionChanged() signal to the less generic
PartitionManagerWidget::selectedPartitionChanged().

Rename PartitionManagerWidget::clearSelection() to the less generic
PartitionManagerWidget::clearSelectedPartition().

NOTE: The DeviceScanner class is a thread and exposes some race conditions if
not used with caution (aka workarounds). See comments in
PartitionManagerWidget::onScanDevicesFinished().

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1088844
2010-02-11 18:47:51 +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 058f79debd emit devicesChanged() on undo: the disk label type might change
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1083488
2010-02-01 10:40:28 +00:00
Yuri Chornoivan fe08f80bb6 typo: partitin->partition
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1082238
2010-01-30 07:03:57 +00:00
Volker Lanz 40a8e43747 make sure the info pane shows the new partition table type name
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1081932
2010-01-29 11:35:07 +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 275dfde876 revert r1077006: don't show all devices in partition tree. it's just too
confusing.

but do keep the code to show the first device by default. also add code to make
sure the devices list shows the selected devices as indeed selected in the list
widget.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1081532
2010-01-28 16:43:27 +00:00
Volker Lanz 16dae55d04 revert 1077129: re-add devices list. this is just not usable with >4 devices
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1081529
2010-01-28 16:27:28 +00:00
Volker Lanz 44af166f83 rename all values in CommandSupportType to make them more unique
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1081018
2010-01-27 13:00:14 +00:00
Volker Lanz 8b6f51e0f1 add minimal dbus support
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1080818
2010-01-27 00:28:43 +00:00
Volker Lanz a6427ee3ce rename log class to Log to avoid clashes with the C math lib function of the
same name

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1080742
2010-01-26 21:12:42 +00:00
Volker Lanz 4f5253e6a2 remove devices list
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1077129
2010-01-19 12:56:27 +00:00
Volker Lanz f67ca33866 move setSelectedDevice method to a more suitable position in the file
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1077016
2010-01-19 10:34:53 +00:00
Volker Lanz c98b1d702b yet another fix for info pane layout
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1077012
2010-01-19 10:31:42 +00:00
Volker Lanz e16357d14b show all devices in the tree widget
show the first device per default

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1077006
2010-01-19 10:23:20 +00:00
Volker Lanz 90720ad383 hard code some size hint into the file system support dialog so it doesn't open
way too small on first time. also, add some const accessors to the class while
we're at it.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1076607
2010-01-18 13:46:45 +00:00
Volker Lanz 908bfe3669 add "shred partition" feature
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1076584
2010-01-18 12:31:00 +00:00
Volker Lanz d975416a53 allow removing a mount point by clearing its mount path
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075868
2010-01-16 22:31:39 +00:00
Volker Lanz 57f900812a no else required here
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075864
2010-01-16 22:28:52 +00:00
Volker Lanz fd147f1902 oh dear... if people are nice enough to fix your speling mistakes, at least
don't kill their corrections...

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075859
2010-01-16 22:18:13 +00:00
Volker Lanz 14a62a236e allow setting how to identify a FS in fstab (uuid, label, device node)
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075858
2010-01-16 22:16:04 +00:00
Volker Lanz 0ab5b8a0af somehow this little piece of code was lost: update the information pane's
layout when the user modifies the dock position.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075831
2010-01-16 21:14:19 +00:00
Volker Lanz bf3ae5ea4d enhanced mount point editing. should mostly work and not eat your fstab.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075809
2010-01-16 20:21:42 +00:00
Volker Lanz c250deab55 update partitions after mount point dialog has been accepted
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075807
2010-01-16 20:18:32 +00:00
Yuri Chornoivan 2d2d120568 typo fix
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075512
2010-01-16 10:28:16 +00:00
Volker Lanz 5b7cfd7f8b begin integration of MountManager dialogs
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1075244
2010-01-15 18:08:01 +00:00
Volker Lanz 8058585d49 Improved device discovery via Solid.
Use the Solid-provided icon name for devices.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1074953
2010-01-15 01:46:45 +00:00
Volker Lanz 8694682e72 Allow the info pane dock to be docked in any dock area.
Adjust to being docked at the top or bottom by layouting the information in
more columns than just two.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1073610
2010-01-12 14:36:16 +00:00
Volker Lanz 0487aa276c set size hint of list items to 32 pixel height in the devices list, too. looks
better

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1071252
2010-01-07 19:24:13 +00:00
Volker Lanz 71ed639866 set size hints for list items to 32 pixel height to make the app look less
condensed

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1071251
2010-01-07 19:23:34 +00:00
Volker Lanz 72b0cdac0d Don't disable updates for the partition widget while applying operations. This
leads to corrupted graphics unter Qt4.6 and should not be necessary anymore as
executing operations will not delete any partition objects.

BUG:218685

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062710
2009-12-15 18:43:30 +00:00
Volker Lanz 765e4a381d Don't static_cast a child to a partition widget, use qobject_cast to make sure
we don't get unintended side effects.

BUG:218532

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062049
2009-12-13 16:48:07 +00:00
Volker Lanz 7a014a5bba revert 1062035 -- wrong commit in wrong tree.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062037
2009-12-13 16:05:45 +00:00
Volker Lanz 7ab322b49c backport r1062035: don't delete all of info pane's children on clear or newer
oxygen versions (KDE SC 4.4) make us crash.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062036
2009-12-13 16:00:33 +00:00
Volker Lanz 4ce72c8269 Don't delete all the info pane's QWidget children on clear(). KDE SC 4.4's
Oxygen KStyle inserts children into widgets for its transition effects that
would get deleted that way.

Maybe this deserves some discussion some day if Oxygen is entitled to modify
the application's object tree? Anyway, this fix works around it and everyone is
happy for now.

BUG:218478
CCMAIL:hugo@oxygen-icons.org


svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1062035
2009-12-13 15:57:58 +00:00
Volker Lanz 5036af3e5d cleanup some stuff: whitespace fixes, add some q_disable_copy macros, add some
initialisations to class headers

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1046678
2009-11-09 13:51:08 +00:00
Volker Lanz f77ffc9964 use qpointers for modal dialogs, as discussed here:
http://www.kdedevelopers.org/node/3919


svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1006484
2009-08-03 20:08:38 +00:00
Volker Lanz 051af47ad2 fix include guards
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1006483
2009-08-03 20:07:49 +00:00
Volker Lanz ddefbe5186 make the ctor explicit, just for style
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1006482
2009-08-03 20:06:59 +00:00
Volker Lanz f2fa7f71cb Always show the current file system in the partition properties dialog's file
system combo box, even if it cannot be created, is too big or too small or
whatever.

BUG: 195156

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=977467
2009-06-04 11:07:17 +00:00
Laurent Montel 962d4e92da Fixuifiles
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=968215
2009-05-15 11:23:37 +00:00
Volker Lanz 5c0acb2bba Read and display UUID for some filesystems.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=964310
2009-05-06 14:19:23 +00:00
Volker Lanz 52914fdc57 Make sure text in QLabels is selectable if the label is in interesting in the
slightest.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=964255
2009-05-06 12:22:59 +00:00
Volker Lanz 4b958cdfae Don't assume the parent widget is the top level window where the title for the
progress information has to be set.

BUG: 191773

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=964135
2009-05-06 05:43:08 +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