Commit Graph

52 Commits

Author SHA1 Message Date
Andrius Štikonas 03edda5de6 Port away from obsolete QPalette::Foreground. 2020-11-14 01:30:13 +00:00
Andrius Štikonas ad48c72af8 Switch to SPDX license headers. 2020-09-16 00:35:12 +01:00
Caio Carvalho 15f19e818c RAID level should not be showed when the device is inactive. (i.e. it's not loaded by mdadm). 2018-07-16 15:51:16 -03:00
Andrius Štikonas 65eb5178f1 Static cast should be sufficient
We manually check device type jsut before cast
2018-07-12 09:58:50 +00:00
Caio Carvalho a606306e79 Showing SoftwareRAID device properties and allowing to create RAID device partition table. 2018-07-11 12:23:10 -03:00
Andrius Štikonas 96693a8455 Switch Device::Type enum to enum class. 2018-04-09 02:58:03 +01:00
Andrius Štikonas 2137fa58b8 Explicitely specify the scope of FileSystem::Type enum. 2018-04-07 19:54:55 +01:00
Andrius Štikonas ecec8dadda Do not display cylinder/head/sector information.
CHS has never been important for Linux.
2017-11-07 00:51:59 +00:00
Andrius Štikonas aa762266ae Fix some minor clang warnings. 2017-09-11 18:46:48 +01:00
Andrius Štikonas 9a337e72f4 Add a template to easily access inner filesystem inside LUKS. 2016-09-22 13:15:29 +01:00
Andrius Štikonas 95ca21f4e2 More optimizations for LVM. 2016-09-08 01:42:13 +01:00
Andrius Štikonas e7d2a21599 Hide encrypt/decrypt action for non luks partitions. 2016-09-06 00:34:16 +01:00
Andrius Štikonas 10a2aca527 Initial work on storing LVM variables during initial scan. 2016-09-05 14:48:59 +01:00
Andrius Štikonas 19cd61dad0 Update to latest KPMcore API (cache luks specific values during the scan). 2016-09-04 23:34:16 +01:00
Andrius Štikonas 46b2c16131 Use lvm2_pvFS pointer to call member functions. 2016-09-04 11:58:46 +01:00
Andrius Štikonas 7f0ab53f8a Cleanup includes a bit. 2016-08-23 16:40:16 +01:00
Chantara Tith 12e373dd45 Remove redundant informations of LVM PV from infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith da6cb2e4df Add more LVM infos to the infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith e25b6aa784 Payload offset return in byte size instead of sector number. 2016-08-15 17:38:00 +01:00
Chantara Tith 951cb925ea Move to using static lvm2_pv methods. 2016-08-15 17:38:00 +01:00
Chantara Tith 6c946d7a2c Initial work on LVM Device 2016-08-15 17:38:00 +01:00
Chantara Tith a2df4b648b Add lvm-specific infopane information 2016-08-15 17:38:00 +01:00
Andrius Štikonas f81cb3cc30 Improve semantic markup. 2016-07-18 02:21:14 +01:00
Andrius Štikonas ae5089abfc Luks helper functions are non-static now. 2016-05-20 19:38:56 +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 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
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 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 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
Andrius Štikonas c93da7c1ae Use fileSystem().type() to avoid string comparison.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1325825
2012-11-21 18:38:41 +00:00
Andrius Štikonas 39dc9c5c46 Print more info about LUKS partitions in the infopane.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1325759
2012-11-21 00:54:04 +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 fd3105a50a Fix double margins and set margins to zero for the panel layouts where it makes
sense. Spotted and original patch provided by Aurélien Gâteau
<agateau@kde.org>. Thanks!

CCMAIL:agateau@kde.org

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1226196
2011-03-27 16:26:45 +00:00
Volker Lanz c0f1b0123a show physical sector size in GUI
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135558
2010-06-07 15:37:20 +00:00
Volker Lanz 2b50c60469 rename Device::sectorSize() to Device::logicalSectorSize()
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135506
2010-06-07 13:10:55 +00:00
Volker Lanz 7c750514d0 make sure to say we're talking about logical sector size when we say sector size.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135497
2010-06-07 12:56:27 +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 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 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 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 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 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