Commit Graph

99 Commits

Author SHA1 Message Date
Andrius Štikonas 7f0ab53f8a Cleanup includes a bit. 2016-08-23 16:40:16 +01:00
Andrius Štikonas 5267f9825a Convert some more for loops to ranged based loop. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 0b92926465 Fix a previous commit (inner loop for was making deep copy. 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 9f3e3bc5f0 Add functionality to specify PE size when creating VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 975e005ed2 Append all the remaining space for LVM resize dialog. 2016-08-15 17:38:00 +01:00
Andrius Štikonas f81cb3cc30 Improve semantic markup. 2016-07-18 02:21:14 +01:00
Andrius Štikonas 5a408305f2 Convert some signals and slots to the new syntax. 2016-05-18 22:23:59 +01:00
Andrius Štikonas 8763fbf2ae Add an indication when filesystem is encrypted. 2016-05-17 01:25:52 +01:00
Andrius Štikonas ca6398fe99 Remove non-user friendly captions. 2016-05-12 21:45:07 +01:00
Andrius Štikonas b0cf50e443 Pass a pointer to the parent widget to decrypt dialog. 2016-04-29 12:36:32 +01:00
Andrius Štikonas 0d76d71fc4 Merge branch 'master' into luks-decorator 2016-04-28 14:48:06 +01:00
Andrius Štikonas 92d4ea5d95 Fix incorrect HTML markup. 2016-04-27 18:53:26 +01:00
Teo Mrnjavac 64668df117 Avoid using exceptions, again. 2016-04-20 15:15:01 +02:00
Teo Mrnjavac cf4d687d54 Rely on the partition role instead of the filesystem type. 2016-04-19 17:08:01 +02: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 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
Andrius Štikonas 81004a2445 Format partitionmanager code using KDE style. 2015-07-13 17:17:41 +03:00
Teo Mrnjavac 94bae2494f Fix indentation. 2015-07-13 15:50:45 +02:00
Teo Mrnjavac 23084a258d Specify default filesystem type when creating new partition. 2015-07-13 15:33:45 +02:00
Teo Mrnjavac c0381cd913 Read Shred action from KConfig. 2015-07-10 15:57:02 +02:00
Teo Mrnjavac cf51fa1ad0 Move PartResizerWidget and related to KPMcore. 2015-07-08 18:16:03 +02:00
Andrius Štikonas 11b097141a Move createFileSystemColor back to GUI. 2015-06-12 13:11:29 +01: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 bbb2fa3067 Use GPLv3 copyright notices. 2015-02-07 00:32:25 +00:00
Andrius Štikonas cc8e02cb43 Port away from deprecated KF5 methods. 2014-11-03 19:57:25 +00: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 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
Volker Lanz 0336c4635d fix wrong/outdated doxygen comment for ctor
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1328194
2012-12-12 00:12:30 +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 68d1eb14ce use a PartWidget instead of a PartResizerWidget in the partition properties
dialog -- no one is going to do any resizing, after all.

to make this possible, allow creating a PartWidget() without a valid Partition
pointer and add an init() method for later setting the Partition pointer. also
take care of the Partition pointer being NULL everywhere in the class

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1134172
2010-06-03 15:01:53 +00:00
Volker Lanz d6417cbbab revert r1128581 and implement this as an additional check in
CopyOperation::canPaste() instead.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128813
2010-05-20 11:02:00 +00:00
Volker Lanz 6b260d97ec use pretty print method from Device
output device name in bold

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128592
2010-05-19 18:38:00 +00:00
Volker Lanz 8b912ffb88 prevent the user from pasting a partition on another that is too big for the
source partition's file system

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128581
2010-05-19 17:38:12 +00:00
Volker Lanz 2b1f937917 warn if user tries to overwrite an existing partition with another or an image
file

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1128576
2010-05-19 17:11:15 +00:00
Volker Lanz 3eb9dc8b4a add assert and check if there is a selected partition
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127769
2010-05-17 15:49:46 +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 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 8632b7cf0d Move the workaround-code that replaced making a temp copy of a partition for
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
2010-04-15 15:30:08 +00:00
Volker Lanz 9436c18f69 Do not create a temporary Partition instance for resizing. This does not work
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
2010-04-15 10:38:48 +00:00
Volker Lanz 0d2f3ccc84 clean up partwidget class: don't use qpointers, don't use a pointer for access
to the partition property. still needs more work.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113951
2010-04-12 10:55:13 +00:00
Volker Lanz f2e216cb43 check if there actually is a partition in the partwidget before accessing it
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1113935
2010-04-12 10:15:30 +00:00