Teo Mrnjavac
03d3925775
PartitionRole::LUKS is now PartitionRole::Luks.
2016-04-19 16:53:56 +02:00
Andrius Štikonas
ad64f7537b
Rename qglobal.h to QtGlobal
2016-04-18 17:17:19 +01:00
Andrius Štikonas
f878865aa0
Merge branch 'master' into luks-decorator
2016-04-16 00:34:50 +01:00
Andrius Štikonas
b3303ee6bf
Fix LUKS encryption support for filesystems without support for writing label.
...
This enables LUKS encryption for Reiser4 and LVM PV.
2016-04-16 00:28:14 +01:00
Teo Mrnjavac
13031913f4
Update copyrights.
2016-04-15 15:45:22 +02:00
Teo Mrnjavac
46baf7c440
Create FS as inner FS in LUKS if the encrypt setting is checked.
...
Filter out LUKS from FS combo.
2016-04-15 15:38:11 +02:00
Teo Mrnjavac
c67911c0d2
Hide LUKS checkBox by default.
2016-04-15 15:36:41 +02:00
Teo Mrnjavac
b0b2eccc23
Add "Encrypt" checkBox to partition widget.
...
Also replace occurrences of NULL with nullptr.
2016-04-15 15:35:45 +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
Teo Mrnjavac
97175c71ad
Fix bug with EditMountPointDialog not having Ok&Cancel buttons.
2016-02-29 01:11:10 +00:00
Andrius Štikonas
c140e6665f
Fix checkSupportInNode for extended partitions (disables bogus warning).
2016-02-29 01:05:39 +00:00
Teo Mrnjavac
5e7c9f7131
Fix crash when applying settings.
2016-02-26 15:32:14 +01: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
333e03ac10
Get rid of kpmgui internal library.
...
kpmgui was basically the whole partitionmanager except for main.cpp file.
All useful functions were moved to kpmcore library, kpmgui is not necessary now.
2016-01-06 15:56:32 +02: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
a88ceb2140
Fix bug with EditMountPointDialog not having Ok&Cancel buttons.
2015-08-14 18:07:26 +02: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
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
618468742c
Move FileSystem::defaultFileSystem to GUI.
2015-06-30 22:22:13 +03:00
Andrius Štikonas
a58a041e6a
Move Capacity::preferredUnit to GUI.
2015-06-14 02:06:18 +01: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
8e5c1b1ebd
Move naturalLessThan function out of util/helpers.
2015-03-28 16:56:39 +00:00
Andrius Štikonas
93f6bcdc83
Generate export header for libkpmgui.
2015-03-28 00:43:38 +00:00
Chris Campbell
0ff2c923c3
Split partitionmanagerprivate into kpmcore and kpmgui.
...
Please enter the commit message for your changes. Lines starting
2015-03-27 16:28:21 +00:00
Andrius Štikonas
bbb2fa3067
Use GPLv3 copyright notices.
2015-02-07 00:32:25 +00:00
Andrius Štikonas
97baf57d67
Fix size constrains of extendable part of sizedialog.
2015-02-05 10:37:50 +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
Yuri Chornoivan
b44042a200
Fix tags
2014-11-30 11:52:13 +02: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
Aurélien Gâteau
b313365276
Remove stray kcolorscheme.h include
2014-08-08 20:28:49 +03:00
Aurélien Gâteau
a9cd6ae885
Draw the border around the handles
...
Otherwise they are difficult to see when the partition takes all the space
2014-08-08 20:28:49 +03:00
Aurélien Gâteau
40f579a811
PartResizerWidget: Render the background using a QLineEdit
...
This is more readable when style is not Oxygen
2014-08-08 20:28:49 +03: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
5eb2a06da4
Use QLocale().toString instead of KGlobal::locale()
2014-05-18 16:55:29 +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
066cd120e7
Partially port away from KIcon.
2014-05-17 02:27:42 +01:00
Andrius Štikonas
a490106e75
Port away from KTextEdit.
2014-05-17 02:14:18 +01:00
Andrius Štikonas
14e9ecb779
Port away from KLineEdit, KPushButton and KComboBox.
2014-05-14 01:01:34 +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
2b537490ad
Port away from KDebug.
2014-05-13 14:47:35 +01:00
Andrius Štikonas
2b75f43bb0
Support for decrypting LUKS volumes.
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1362680
2013-08-09 19:25:48 +00: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
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
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
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
ebf4c75855
Don't draw resize handles for unresizable partitions.
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1328017
2012-12-10 18:38:55 +00:00
Andrius Štikonas
298fcf1772
Set unresizable partitions as read only.
...
BUG:310632
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1327840
2012-12-09 15:54:22 +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
Volker Lanz
9b33918f08
Remove wrong todo: The resize dialog does indeed have a
...
dirty bit.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1324098
2012-11-05 10:19:27 +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
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
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
1002424cf7
another year...
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1274434
2012-01-18 11:03:06 +00:00
Volker Lanz
eb8422e1a7
fix weird formatting
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1274433
2012-01-18 11:02:35 +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
Albert Astals Cid
c934fa5daa
Convert these extracomment to comment
...
Because:
* We have a bug in our scripts that makes extracomment not work (will try to fix this asap)
* Makes sense to be a comment since we want it to be a disambiguation text
* KUIT markers (e.g. @label) need to be in comment
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1231324
2011-05-10 22:22:58 +00:00
Volker Lanz
92859b3aa5
use plastique as a fallback style if user is running GTK style so the part
...
widget display is ok.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1226198
2011-03-27 16:44:29 +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
Pino Toscano
9636acce06
fixuifiles
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1196188
2010-11-12 19:04:52 +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
84699a502f
set all partwidgets to 60px in height
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140817
2010-06-21 15:23:24 +00:00
Volker Lanz
9270dec7b2
remove debug output
...
align start and end when initializing the dialog if align is on
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1140811
2010-06-21 15:15:19 +00:00
Volker Lanz
75e79e354c
set mouseover state for active partition
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136709
2010-06-10 14:09:04 +00:00
Volker Lanz
900e58dd59
try and make the selected partition more distinct; also use white to write the
...
partition info for the selected partition.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136461
2010-06-09 22:50:42 +00:00
Volker Lanz
083adc23fa
fix ws and some small logic simplification
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136453
2010-06-09 22:00:28 +00:00
Hugo Pereira Da Costa
9d8796e83d
added one _horizontal_ missing pixel to the frame, to cope with changes in partWidget painting
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136104
2010-06-08 23:10:18 +00:00
Hugo Pereira Da Costa
346117868d
added one missing pixel to the frame, to cope with changes in partWidget painting
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136102
2010-06-08 23:07:58 +00:00
Hugo Pereira Da Costa
d42914443d
Re-added painting of unallocated space.
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136099
2010-06-08 22:57:56 +00:00
Hugo Pereira Da Costa
38d035b235
removed the unused '-1' from rect sizes calculation
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136097
2010-06-08 22:54:13 +00:00
Hugo Pereira Da Costa
b97126b5e4
Set borderwidth and borderheight to zero for parttablewidget.h
...
Set the margin of partitionmanagerwidgetbase to zero. And reduced the fixed height from 80 to 74, to account for the change above.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136095
2010-06-08 22:45:31 +00:00
Hugo Pereira Da Costa
8f0e9c270d
Moved borderWidth, borderHeight, and positionChildren from static to virtual.
...
This way they can be reimplemented in subclasses.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136094
2010-06-08 22:43:59 +00:00
Hugo Pereira Da Costa
57cd2870d7
Remove painting of free and used- space on top of partition rect.
...
Use two different rects for the partition rect instead, with colors calculated from the base color derived from the partition type.
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1136093
2010-06-08 22:38:27 +00:00
Volker Lanz
771ee3cb5c
use same horizontal stretch as dialogbase
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135948
2010-06-08 13:23:29 +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
7bde47b854
rename sector size labels in DevicePropsWidget (and its UI file) to logical
...
sector size
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135518
2010-06-07 13:42:19 +00:00
Volker Lanz
c281271807
use Device::logicalSectorSize() instead of Partition::sectorSize() where ever
...
possible
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135513
2010-06-07 13:36:04 +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
d18e8cfb2a
fix horizontal stretch
...
svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1135478
2010-06-07 12:14:55 +00:00