Commit Graph

309 Commits

Author SHA1 Message Date
Volker Lanz 40ae70af25 move config stuff to its own src subdir
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105772
2010-03-21 11:32:31 +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 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 36dccf2c55 new text for "align partition" checkbox
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1105449
2010-03-20 08:56:01 +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
Laurent Montel 0b456bcfcc Fix ui files
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1103483
2010-03-15 08:28:53 +00:00
Volker Lanz 537108c78f simplify dialog
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102174
2010-03-11 23:51:10 +00:00
Volker Lanz 3ab91021c1 make sure to show the right fs color even for extended partitions in the
new-partition-dialog

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102170
2010-03-11 23:33:41 +00:00
Volker Lanz 9091e883e6 handle default button for custom widgets in configure dialog
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102086
2010-03-11 19:40:42 +00:00
Volker Lanz d013c6d386 add default value and single step of 512 to sector alignment
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102066
2010-03-11 18:45:21 +00:00
Volker Lanz 7ebfbdb597 remove amps from kguiitems in message boxes, let KDE handle shortcuts
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102034
2010-03-11 16:55:27 +00:00
Volker Lanz 54def83c4e wording fix
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102031
2010-03-11 16:45:59 +00:00
Volker Lanz f2f55e00fa improve wording
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102027
2010-03-11 16:43:00 +00:00
Volker Lanz 34278260f3 some wording and i18n fixes.
don't use amp in ui files, let KDE figure out the shortcuts in dialogs

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1102025
2010-03-11 16:34:48 +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 867ca54aca use configure icon, not app icon, for general settings page
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1101339
2010-03-09 22:39:03 +00:00
Volker Lanz 2e7510e816 add visibility to the config class
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
2010-03-09 17:13:22 +00:00
Volker Lanz 156dcf9e33 add some i18n comments to make clearer what the header text is supposed to mean
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1100689
2010-03-08 10:28:00 +00:00
Volker Lanz e55a076615 fix typo
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1100688
2010-03-08 10:27:05 +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 8d71ec34b4 removed no longer used method declartion showPartitionContextMenu
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1100487
2010-03-07 16:54:12 +00:00
Volker Lanz 5aceae05fc negate the THREADED define so threaded device scanning is on by default
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098818
2010-03-04 11:52:37 +00:00
Volker Lanz 899d27fb34 introduce a define to disable threaded device scanning in case we don't find a
workaround for the solid problem.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098456
2010-03-03 18:58:14 +00:00
Volker Lanz 532d84f6e5 move stuff from advanced page to general page
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098326
2010-03-03 13:32:35 +00:00
Volker Lanz 10054c2577 not used anymore
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098316
2010-03-03 13:22:34 +00:00
Volker Lanz 42359826d2 use List face type for config dialog and some icons
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098247
2010-03-03 10:46:23 +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 23d78e20b4 just show a "scanning..." msg if there is no device node set
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098233
2010-03-03 09:49:44 +00:00
Volker Lanz 1bc2951102 the progress dialog is set to autoclose so it's not necessary to hide it in the
main window

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098231
2010-03-03 09:48:59 +00:00
Volker Lanz 4427937088 rename all progressChanged signals to progress for consistency
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098220
2010-03-03 09:18:59 +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 845f44ccef make sure we still have a selected partition when trying to use it (now that
the signal handler for operationsChanged in MainWindow calls updatePartitions,
this is required)

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1098148
2010-03-02 23:56:21 +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 afffc3b4d8 don't assume a device always has a partition table.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097675
2010-03-01 21:13:36 +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 856ef859eb rename msdos_vista to msdos and make sure to use sector-based-alignment instead
of vista. also use cylinder based instead of msdos legacy.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1097441
2010-03-01 12:00:07 +00:00
Volker Lanz f1ab5d8d7f fix off by one
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1096696
2010-02-27 12:52:00 +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 a8b19642fc rename "snapping" to "aligning" partitions
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095443
2010-02-24 11:06:32 +00:00
Volker Lanz bd1f7b8c5d allow changing the msdos partition alignment from the device properties
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095438
2010-02-24 10:47:22 +00:00
Volker Lanz 6dba1bbbd1 remove unused signal
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1095437
2010-02-24 10:45:26 +00:00
Volker Lanz 2eb8c42c1d Remove the few lines related to dbus stuff as long as we're not using any of it
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
2010-02-23 16:30:05 +00:00
Volker Lanz 5d278d64b8 make sure not to show our own status bar if we're a kpart
init m_ActionCollection first so isKPart() is guaranteed to work as early as
possible

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1093899
2010-02-21 17:54:52 +00:00
Volker Lanz 4d036f7783 clean up xml gui file and copy changes to kpart's rc file, too
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1093893
2010-02-21 17:38:24 +00:00
Volker Lanz f8a79b009d save and restore dialog sizes for edit mount points and mount options
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1093882
2010-02-21 17:07:47 +00:00
Volker Lanz 9c73e8f052 save and restore size for configure dialog
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1093877
2010-02-21 17:03:22 +00:00
Volker Lanz 241ae7105e add action to hide/show menu bar
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1093874
2010-02-21 16:58:27 +00:00
Volker Lanz baa03c4d78 don't pass a pointer to the selected device to ListDevice::updateDevices: this
doesn't have any effect anyway.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1092963
2010-02-19 21:25:48 +00:00
Volker Lanz 51f3be7690 don't connect do itemActivated for listDevies, connect to itemDoubleClicked.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1092961
2010-02-19 21:09:14 +00:00
Yuri Chornoivan fb63e4886f typo fix
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1092260
2010-02-18 16:43:04 +00:00
Volker Lanz e8e8796d46 add action for device properties to collection.
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
2010-02-18 00:06:36 +00:00
Volker Lanz 16861abe7d The available and used colors in the config aren't part of the file system color array.
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
2010-02-17 23:00:55 +00:00
Volker Lanz 4849ec5ff8 Add colors to identify each individual type of file system plus a config page
to change these colors.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091881
2010-02-17 19:39:24 +00:00
Volker Lanz 06e7a29038 Add some more columns to the partition tree now that columns can easily be
hidden. Pick a sane set of columns to show by default, too.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091807
2010-02-17 16:11:16 +00:00
Volker Lanz 51faaebb38 Add some basic configuration dialog stuff.
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
2010-02-17 13:18:25 +00:00
Volker Lanz 1f3ed68b34 add read-only flag to PartTableWidget
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091653
2010-02-17 10:06:23 +00:00
Volker Lanz 26365e1079 allow turning on and off columns in the partition tree; save and restore the
settings in the config

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1091219
2010-02-16 20:07:33 +00:00
Volker Lanz f8b36e35b5 move the code to detect if we're a KPart to its own method
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1089609
2010-02-13 14:21:05 +00:00
Volker Lanz d0a66f66e1 use the modal window attribute to disable the main window while a progress
dialog is running instead of the hackish way we did that

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1089565
2010-02-13 12:31:29 +00:00
Volker Lanz d9fd184c9d Add some basic read-write-locking to the previewDevices.
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
2010-02-13 11:25:56 +00:00
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
Volker Lanz 3c0d91f9d9 Sort items in file system combo boxes case insensitively.
BUG: 191739

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=963992
2009-05-05 19:33:55 +00:00
Volker Lanz 4b3394d482 Explicitly set the default file system as selected on init.
BUG: 191738

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=963991
2009-05-05 19:31:10 +00:00
Volker Lanz ed2a78210d Revert the init-with-singleshot-timer hack because it seems to break the kpart
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957959
2009-04-23 07:27:27 +00:00
Volker Lanz d17aca5338 Clean up includes, forward defines and a few other things.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957555
2009-04-22 12:54:37 +00:00
Volker Lanz 1fa99f0341 Move QTreeWidget for the log output to its own class.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957548
2009-04-22 12:41:30 +00:00
Volker Lanz 0ff681dd8d Make the kcm work.
Don't use a hardcoded filename for the configuration; pass a name for the
configuration file to PartitionManagerWidget::init() instead, so the kcm and
the standalone app can each have an rc file of their own.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957525
2009-04-22 10:35:44 +00:00
Volker Lanz 0ae47a0723 Write the config after modifying it, don't rely on the main window to do it.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957498
2009-04-22 09:22:46 +00:00
Volker Lanz 4f6f488b6b Try to remember the currently selected device when updating the devices list.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957497
2009-04-22 09:21:35 +00:00
Volker Lanz e32146bbb5 fix indentation
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957469
2009-04-22 08:03:47 +00:00
Volker Lanz 678d4d5e67 make setSelectedDevice a slot
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957468
2009-04-22 07:59:33 +00:00
Volker Lanz 0dc566ae2b remove commented out code
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957467
2009-04-22 07:59:09 +00:00
Volker Lanz 2b79c12152 Rename "Create New Partition Table" to "New Partition Table" to save some space
Fix a bug that would not allow the user to delete a newly created logical
partition because the app thought there were higher-numbered logical partitions
still present.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957442
2009-04-22 07:14:11 +00:00
Volker Lanz 44eef78bc0 * Refactor MainWindow and split it up into several classes for the central
widget and the docks.
* Add a first version of a kcontrol kcm for KDE Partition Manager based on
  these refactored classes. Still a lot left to do, though.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=957231
2009-04-21 16:36:43 +00:00
Volker Lanz 2c2587902e Don't use values() in foreach. Also, use qDeleteAll() if possible.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=954970
2009-04-16 16:41:54 +00:00
Volker Lanz 9bda1ce0e4 Init the main window class in a slot called with a single shot timer to speed
up perceived startup time for the application.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=954798
2009-04-16 11:37:00 +00:00
Albert Astals Cid f7177b8319 this is a progress information, so use rescanning and not rescan
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=951849
2009-04-10 12:24:18 +00:00
Volker Lanz b663b3f273 Add context menu to list of operations.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=944420
2009-03-25 14:53:50 +00:00
Volker Lanz 8874263386 Allow setting a file system label in the NewDialog.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=944331
2009-03-25 12:58:32 +00:00
Volker Lanz aff8493c9a fix spacer position in the layout
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=944330
2009-03-25 12:58:02 +00:00
Andrew Coles 9cbec4ebe4 Plural-form correction.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=941151
2009-03-18 23:27:36 +00:00
Volker Lanz 5c7cc1eceb Use cylinder size of the device as minimum partition size.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=908074
2009-01-09 08:41:25 +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 6c4d8711d4 Don't assume a fixed minimum width is sufficient for extended partitions: It's
not. Partition widgets that have children need to have the minium width
dynamically calculated.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=907517
2009-01-08 10:13:42 +00:00
Volker Lanz 80bee5cfc4 Merge the kpart stuff from branches/work/partitionmanager/kpartstuff and
disable it in the build by default.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=902274
2008-12-27 22:12:42 +00:00
Volker Lanz 0d9d8bea7e No tooltips for mutable part widgets (the tooltip's content would be out of
date as soon as the part widget is modified).

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=902199
2008-12-27 17:12:13 +00:00
Volker Lanz 1eec719a7d HIG improvements: Use radio buttons instead of combo box for partition role;
also add buddies and shortcuts.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=902047
2008-12-27 13:37:44 +00:00
Volker Lanz a7a090381f Fix text capitalization according to
http://techbase.kde.org/Projects/Usability/HIG/Capitalization

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=902032
2008-12-27 12:01:29 +00:00
Volker Lanz b97e5225be Output reason why a mount or unmount might have failed.
Patch by Marcel Partap <mpartap@gmx.net>

CCBUG: 178708


svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=901487
2008-12-25 16:46:40 +00:00
Volker Lanz 5536e16c3e show tooltips for partwidgets
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=897984
2008-12-17 10:19:58 +00:00
Volker Lanz 36c787f40f don't try to print capacity if it isn't valid
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=887293
2008-11-21 13:57:14 +00:00
Volker Lanz 0f917174a5 Use itemDoubleClicked() instead of itemActivated() for partition tree widget.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=887243
2008-11-21 13:00:59 +00:00
Volker Lanz d611536684 Fix warnings in gcc 4.3
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=887192
2008-11-21 12:28:39 +00:00
Andrius Štikonas f0f9f13256 Use i18ncp() instead of i18nc() for proper plural support.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=886664
2008-11-19 19:58:59 +00:00
Volker Lanz 74c692a4cc Use Ok and Cancel buttons instead of Apply and Close in part props dialog.
svn path=/trunk/kdereview/partitionmanager/; revision=879224
2008-11-02 19:21:36 +00:00
Laurent Montel 8ae4bd939d Fix includes
svn path=/trunk/kdereview/partitionmanager/; revision=877306
2008-10-29 07:45:19 +00:00
Laurent Montel 34ced586d7 Fix forward declaration
svn path=/trunk/kdereview/partitionmanager/; revision=877303
2008-10-29 07:41:08 +00:00
Volker Lanz 6dd8aa8b29 Add KUIT markers.
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=869687
2008-10-09 19:21:56 +00:00
Allen Winter fcaa2c7586 fix include guards. found while I was testing krazy false positive fixes
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=869633
2008-10-09 14:44:32 +00:00
Volker Lanz dcc0525184 Make krazy happy.
svn path=/trunk/playground/sysadmin/partitionmanager/; revision=869258
2008-10-08 16:26:10 +00:00
Volker Lanz f10ffb5001 Show an info message if no device is selected or the selected device has no
valid partition table.

No need to overwrite paintEvent().

svn path=/trunk/playground/sysadmin/partitionmanager/; revision=868394
2008-10-06 09:18:31 +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 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
Albert Astals Cid 58ee52dc31 missing comma
Spotted by mvillarino

svn path=/trunk/playground/sysadmin/partitionmanager/; revision=865408
2008-09-27 13:49:19 +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