Commit Graph

53 Commits

Author SHA1 Message Date
Andrius Štikonas e9ac1cf977 Adjust to kpmcore enum changes. 2018-04-09 15:14:48 +01:00
Andrius Štikonas 2137fa58b8 Explicitely specify the scope of FileSystem::Type enum. 2018-04-07 19:54:55 +01:00
Abhijeet Sharma 141f37ed27 Add Partition UUID and Partition Label in partition properties dialog
After this patch partition UUID and partition label will be visible
in the properties dialog of the partitions.

Also these label will only be visible if the partition table is GPT

Differential Revision: https://phabricator.kde.org/D10323
2018-02-13 21:27:05 +00:00
Andrius Štikonas e512ed337a Use qOverload in Qt signal/slots. 2017-10-09 13:54:31 +01:00
Andrius Štikonas da621fbfbe Use QValidator to validate label input. 2017-09-05 12:52:47 +01:00
Andrius Štikonas 0f64ac2dc3 Port to validateLabel function. 2017-09-04 17:39:39 +01:00
Andrius Štikonas ff45763427 Record sector size in FileSystem class. 2017-09-03 16:01:48 +01:00
Andrius Štikonas 97dc11bb89 Port qSort. 2017-05-03 19:24:41 +01:00
Andrius Štikonas 7f5e592ba9 Use qAsConst and required Qt 5.7.1. 2017-01-05 19:11:32 +00:00
Andrius Štikonas b04093bbfc Add support for setting labels online. 2016-08-26 18:59:54 +01:00
Andrius Štikonas 5267f9825a Convert some more for loops to ranged based loop. 2016-08-15 17:38:00 +01:00
Andrius Štikonas f81cb3cc30 Improve semantic markup. 2016-07-18 02:21:14 +01:00
Andrius Štikonas 75adb928fe Use lambda functions for overloaded connections. 2016-07-01 15:51:28 +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 fb18336e95 Do not show luks filesystem in combobox in PartPropsDialog when not necessary. 2016-05-18 19:14:20 +01:00
Andrius Štikonas a2c3cfa074 Do not show luks as an option to reformat in partition properties dialog. 2016-05-18 11:54:24 +01:00
Andrius Štikonas 1dc73f975d Do not allow recreating luks filesystem. 2016-05-17 18:53:14 +01:00
Andrius Štikonas cf891183cb
Always use because it is type safe. 2016-04-14 19:18:36 +01: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 81004a2445 Format partitionmanager code using KDE style. 2015-07-13 17:17:41 +03: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 bbb2fa3067 Use GPLv3 copyright notices. 2015-02-07 00:32:25 +00:00
Yuri Chornoivan b44042a200 Fix tags 2014-11-30 11:52:13 +02: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 5eb2a06da4 Use QLocale().toString instead of KGlobal::locale() 2014-05-18 16:55:29 +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 2b537490ad Port away from KDebug. 2014-05-13 14:47:35 +01:00
Andrius Štikonas 084c604c3c Make filesystem label length depend on file system.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1330603
2013-01-03 12:43:03 +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 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 bff6424cf6 check if the mount point the partition has is non-empty before using it in the
dialog.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127371
2010-05-16 12:19:04 +00:00
Volker Lanz 96964cc52d make sure avail and used capacity aren't printed if not known
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1127356
2010-05-16 11:45:31 +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 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 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 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 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 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 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
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 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 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 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 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