Commit Graph

191 Commits

Author SHA1 Message Date
Chantara Tith f5a7a324ff Deactivate Volume Group right away without Apply operation. 2016-08-15 17:38:00 +01:00
Chantara Tith f167642d87 Set LVM operations/actions to invisible when other device is selected. 2016-08-15 17:38:00 +01:00
Andrius Štikonas a379c4ab31 Also add deactivate volume group action to .rc file. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 561269a2e6 Convert to C++11 for loop where it is safe to do so. 2016-08-15 17:38:00 +01:00
Chantara Tith 9525683522 Add deactivating LVM VG action. 2016-08-15 17:38:00 +01:00
Chantara Tith 7f61e77eb5 Add selected device to ResizeVolumeDialog. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 175ea6a5ed Do not attempt removing LVM VG if there are active LVs. 2016-08-15 17:38:00 +01:00
Chantara Tith ce9ad5559e Enable Smart Status for Disk Device only. 2016-08-15 17:38:00 +01:00
Chantara Tith 906f85a54d Disable resize/remove volume group action when LVM device is not selected. 2016-08-15 17:38:00 +01:00
Chantara Tith 9f3e3bc5f0 Add functionality to specify PE size when creating VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 100277b0e1 Display warning message when trying to remove VG with existing LV. 2016-08-15 17:38:00 +01:00
Chantara Tith b8be4f7c79 Add volume resizing dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 9a4e54fb42 Add remove and resize action to MainWindow. 2016-08-15 17:38:00 +01:00
Chantara Tith 4f564d52f5 Initial work on createvolume widget and dialog. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 84e16503f4 Fix if/else statements of previous commit. 2016-07-24 19:07:31 +01:00
Andrius Štikonas 169588dc0f Make sure empty KLocalizedStrings are not converted to QStrings. 2016-07-24 18:47:33 +01:00
Andrius Štikonas f81cb3cc30 Improve semantic markup. 2016-07-18 02:21:14 +01:00
Andrius Štikonas ee3466f1f8 Do not convert empty KLocalizedStrings into QStrings. 2016-07-06 16:02:06 +01:00
Andrius Štikonas 6c78120883 Reduce usage of moc. 2016-07-02 12:12:56 +01:00
Andrius Štikonas 75adb928fe Use lambda functions for overloaded connections. 2016-07-01 15:51:28 +01:00
Andrius Štikonas 2b7f23ec27 Use new connect style with KStandardAction. 2016-07-01 15:42:12 +01:00
Andrius Štikonas fa385538b4 Disable EditMountPoints dialog if partition cannot be mounted. 2016-05-24 16:44:07 +01:00
Andrius Štikonas b94564e360 Convert remaining QObject::connect to new syntax. 2016-05-22 20:03:49 +01:00
Andrius Štikonas 5a408305f2 Convert some signals and slots to the new syntax. 2016-05-18 22:23:59 +01:00
Andrius Štikonas 6ae11620f3 Relax restriction on decrypt/deactivate. 2016-05-18 14:56:57 +01:00
Andrius Štikonas f8ecc67811 Disable Luks decrypt/deactivate if operation stack is non-empty. 2016-05-18 13:14:10 +01:00
Andrius Štikonas 21d02b31dc Fix a typo. 2016-05-10 15:16:05 +01:00
Andrius Štikonas 18aecafe46 Port from QRegExp to QRegularExpression. 2016-05-10 15:08:06 +01:00
Andrius Štikonas b940840a86 Fix importing partition table. 2016-05-10 14:49:57 +01:00
Andrius Štikonas 57fea2269d Use KActionCollection::setDefaultShortcut to silence warnings on startup. 2016-05-08 02:29:49 +01:00
Andrius Štikonas 97bd4e94e1 Do not use QStringLiteral for empty strings. 2016-04-26 13:55:58 +01:00
Teo Mrnjavac 1b958db71f Avoid using exceptions. 2016-04-20 14:46:22 +02:00
Teo Mrnjavac 29d3a92805 Use the role instead of the filesystem type to detect a LUKS volume. 2016-04-19 16:54:33 +02:00
Andrius Štikonas f878865aa0
Merge branch 'master' into luks-decorator 2016-04-16 00:34:50 +01:00
Andrius Štikonas cf891183cb
Always use because it is type safe. 2016-04-14 19:18:36 +01:00
Teo Mrnjavac 0c780279ae Resurrect LUKS code which was previously merged+reverted.
Revert "Revert "Merge branch 'luks-decorator'""

This reverts commit 6806de6fb7.
2016-03-31 18:20:57 +02:00
Andrius Štikonas 9c91e25e96 Update copyright. 2016-03-02 18:33:40 +00:00
Andrius Štikonas c140e6665f Fix checkSupportInNode for extended partitions (disables bogus warning). 2016-02-29 01:05:39 +00:00
Andrius Štikonas d2a013222e Use KLocalizeStrings to avoid nested xi18n calls.
Nested xi18n calls cause QStrings to be escaped and makes HTML
visible in KMessageBox.

BUG: 354925
2016-02-18 14:59:59 +00:00
Andrius Štikonas 15b7fa3470 kpmcore/ prefix in #includes is no longer required. 2016-01-12 00:12:49 +00:00
Andrius Štikonas 6806de6fb7 Revert "Merge branch 'luks-decorator'"
This reverts commit 54ce33b472, reversing
changes made to 98d08a81c5.
2015-09-16 14:14:53 +01:00
Teo Mrnjavac 65ffb182c5 Hook up new LUKS functionality from KPMcore.
Add decrypt action to actionCollection and context menu.
Wrap very long lines.
Replace NULL with nullptr, TODO: do this everywhere.
2015-08-14 17:57:27 +02:00
Teo Mrnjavac 6e1ff468d3 Set partition color code on PartWidget, and react to settings change. 2015-07-17 13:37:30 +02:00
Teo Mrnjavac 9d9a2b345a Make sure sectorAlignment is set. 2015-07-15 19:03:39 +02:00
Andrius Štikonas 81004a2445 Format partitionmanager code using KDE style. 2015-07-13 17:17:41 +03:00
Andrius Štikonas b651d8de89 Move kpmcore to another repository (sysadmin/kpmcore) 2015-06-04 01:51:56 +01:00
Andrius Štikonas 9d135978ad Add HiDPI support. 2015-04-09 23:26:52 +03:00
Andrius Štikonas 8e5c1b1ebd Move naturalLessThan function out of util/helpers. 2015-03-28 16:56:39 +00:00
Andrius Štikonas bbb2fa3067 Use GPLv3 copyright notices. 2015-02-07 00:32:25 +00:00
Andrius Štikonas d52ea34cf7 Complete KF5 port:
* Expose backend versions in a similar manner to backend Id.
 * Fix configure dialog signals.
2015-02-05 00:09:39 +00:00
Teo Mrnjavac aa132e1cdb Try to port backend loading away from KAboutData. 2015-02-03 19:53:46 +01:00
Andrius Štikonas 109d35d9f4 Fix build. 2014-11-19 12:05:22 +00:00
Andrius Štikonas cc8e02cb43 Port away from deprecated KF5 methods. 2014-11-03 19:57:25 +00:00
Andrius Štikonas debfbade66 Display KDE Frameworks (KXmlGui) version. 2014-05-29 12:52:33 +01:00
Andrius Štikonas f78c34778e Make shredSource radio button work again. 2014-05-29 02:45:36 +01:00
Andrius Štikonas 7fbae9ee29 Port to new Qt5 macro QStringLiteral and use stricter compile flags
Now compile with:
  -DQT_USE_QSTRINGBUILDER
  -DQT_NO_CAST_TO_ASCII
  -DQT_NO_CAST_FROM_ASCII
  -DQT_STRICT_ITERATORS
  -DQT_NO_URL_CAST_FROM_STRING
  -DQT_NO_CAST_FROM_BYTEARRAY
  -DQT_NO_SIGNALS_SLOTS_KEYWORDS
  -DQT_USE_FAST_OPERATOR_PLUS
2014-05-20 22:33:02 +01:00
Andrius Štikonas f3dd3157a6 Initial port to KDE Frameworks 5.
The port is mostly complete:
    * A few unported items are marked with FIXME: port KF5.
    * KCFG configuration for QGroupBox is not working yet.
2014-05-18 21:41:48 +01:00
Andrius Štikonas d1ae9dc4a7 Port away from KMenu. 2014-05-17 03:20:43 +01:00
Andrius Štikonas 81ce940171 Port away from KAction. 2014-05-17 03:12:10 +01:00
Andrius Štikonas dcdffadc3e Port away from KDialog. 2014-05-17 03:06:58 +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 b2d299e18d Port away from KDebug.
Replace a few more kWarning() that were missed in the last commit.
2014-05-13 23:52:54 +01:00
Andrius Štikonas 59e5a656c5 Fix detection of partitions' paths.
Previously, partition number was added to device path.
However, there are devices with more complicated numbering scheme,
e.g. memory cards may have /dev/mmcblk0p1.
It seems that the easiest way to handle this is to use partition
path instead of device path + partition number .
BUG:256964

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1337488
2013-02-05 00:09:43 +00:00
Volker Lanz 6ab19a9c49 Remove unused slot for menu-bar-removal warning.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1329474
2012-12-22 12:29:36 +00:00
Volker Lanz 7ee70cf9bd Don't offer action to hide menu bar, it's a trap.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1324070
2012-11-05 09:25:27 +00:00
Volker Lanz d80b35382f log backend plugin and version when scanning devices. generally not a bad idea,
but currently required to make sure we run with the correct libparted version
during development.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1274437
2012-01-18 11:17:25 +00:00
Volker Lanz 8c25f446c8 naturally sort the list of devices we have no fs-support for
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1236306
2011-06-12 09:33:11 +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 fe6f80379a make sure not to return false when isSectorBase() is called more than once.
make the heuristic to determine if a partition table is sector aligned a little
less dumb.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140829
2010-06-21 15:49:53 +00:00
Volker Lanz 6508ad1d71 create and handle info pane just like the other dock widget content widgets
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1134148
2010-06-03 14:27:11 +00:00
Volker Lanz 0a77bb6d8a remove KPart remains
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1134137
2010-06-03 14:02:35 +00:00
Volker Lanz e66fa24e52 don't allow editing mount points for mounted partitions
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1130885
2010-05-26 17:33:39 +00:00
Volker Lanz 51ae5ddcb4 clear the clipboard if undo deleted the partition that's in it
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129877
2010-05-24 01:52:36 +00:00
Volker Lanz f9c0fcd0b3 don't crash checkinf file system support if no partition table is present
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1129264
2010-05-21 19:52:22 +00:00
Volker Lanz e9871e0e82 add a check when scanning devices if support for all file systems we found is
present. if not, show a messagebox with detailed information what is missing.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128887
2010-05-20 15:25:55 +00:00
Volker Lanz 696b368463 add a select device submenu to the device menu
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128594
2010-05-19 18:39:40 +00:00
Volker Lanz 2069e191de make sure to update unallocated space after changing the alignment type. also,
update partition widget after changing the alignment type since now the
unallocated space might have changed.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127793
2010-05-17 16:36:18 +00:00
Volker Lanz 2202629829 ws fix
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127770
2010-05-17 15:50:10 +00:00
Volker Lanz 438a325f29 neither KMountPoint nor our own edit mount point dialog can handle more than
one mount point per partition, so don't pretend we could in the Partition class

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127763
2010-05-17 15:17:15 +00:00
Volker Lanz a26bda1ca8 re-init the file systems when loading a new backend
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119646
2010-04-27 14:49:28 +00:00
Volker Lanz 0bc6695513 remove the NO_THREADED_DEVICE_SCANNER ifdefs, they are not requires anymore
(and never really were)

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1119568
2010-04-27 12:14:53 +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 6d8192b18e use the icons the kstandardguiitem would use in all kguiitems we create
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113772
2010-04-11 18:19:24 +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 10bc881dfd use KIO for file IO where appropriate
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113737
2010-04-11 16:12:16 +00:00
Volker Lanz 180fa4643d extend smart stuff, add its own dialog, add action to trigger it etc.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1108004
2010-03-27 13:47:32 +00:00
Volker Lanz 6b4aa38bcd replace numPendingOperations() with operationStack().size()
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1107160
2010-03-24 23:32:20 +00:00
Volker Lanz 74db24753b warn if user changes backend and operations are pending
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1107157
2010-03-24 23:30:20 +00:00
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 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 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 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 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 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 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 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