Commit Graph

621 Commits

Author SHA1 Message Date
Andrius Štikonas e30c95ea25 Add some extra context for translators. 2016-09-18 11:59:25 +01:00
Andrius Štikonas b5f5a78054 Make two strings translatable. 2016-09-18 11:56:37 +01:00
Andrius Štikonas 5bebcfbbc8 More conversion from QStringList to QList<const Partition*>.
listPhysicalVolumes::checkedItems is now QList based.
2016-09-18 01:55:14 +01:00
Andrius Štikonas e2afd2c683 Avoid calling lvm command to list Volume Groups in CreateNewVolumeGroup dialog. 2016-09-11 02:54:16 +01:00
Andrius Štikonas 007c2faf11 Continue converting LVM away from QStrings to Partition objects. 2016-09-11 00:19:58 +01:00
Andrius Štikonas 280ba106e8 Store the list of LVM Physical Volumes in operationStack. 2016-09-10 22:10:11 +01:00
Andrius Štikonas 95ca21f4e2 More optimizations for LVM. 2016-09-08 01:42:13 +01:00
Andrius Štikonas da663169f7 Adapt to kpmcore changes regarding LVM PV detection. 2016-09-07 14:36:59 +01:00
Andrius Štikonas e7d2a21599 Hide encrypt/decrypt action for non luks partitions. 2016-09-06 00:34:16 +01:00
Andrius Štikonas 29cb8f6201 Replace 2 cases of getLVs with LVPathList. 2016-09-05 17:29:09 +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 98150d48bb Readd forgotten files. 2016-09-04 15:58:53 +01:00
Andrius Štikonas 614503a910 Rename Volume->VolumeGroup. 2016-09-04 12:25:43 +01:00
Andrius Štikonas 46b2c16131 Use lvm2_pvFS pointer to call member functions. 2016-09-04 11:58:46 +01:00
Andrius Štikonas e7ac5e5fa2 Q_FOREACH porting. 2016-09-01 00:44:33 +01:00
Andrius Štikonas 78c4b09467 Let Qt handle object deletion. 2016-08-27 00:17:01 +01:00
Andrius Štikonas e8fee5dd23 Do not allow creating LVM LV with no name. 2016-08-27 00:16:39 +01:00
Andrius Štikonas cafbf8d30c Do not call a function to check ok button status twice. 2016-08-26 23:16:56 +01:00
Andrius Štikonas b04093bbfc Add support for setting labels online. 2016-08-26 18:59:54 +01:00
Andrius Štikonas 302b44730d Volume -> Volume Group. 2016-08-25 15:55:49 +01:00
Andrius Štikonas c3664c42b1 Improve descriptions of LVM actions. 2016-08-25 15:51:15 +01:00
Andrius Štikonas 94ef37623e Add About KPMcore Library action. 2016-08-25 00:15:07 +01:00
Andrius Štikonas 43c15ed2d0 Move Panels Shown action a bit lower in the menu. 2016-08-24 23:18:39 +01:00
Andrius Štikonas 7f0ab53f8a Cleanup includes a bit. 2016-08-23 16:40:16 +01:00
Andrius Štikonas a234179358 Show more accurate device type in case of LVM VG. 2016-08-23 16:06:37 +01:00
Andrius Štikonas 55032b66a3 Create a new Tools menu as Teo suggested.
It contains actions to create a new volume, view supported filesystems, etc.
View menu was cleaned up and enable/disable panel actions were moved
to settings menu.
2016-08-22 22:49:42 +01:00
Pino Toscano 89eb1e127f fixuifiles 2016-08-16 22:14:42 +02:00
Chantara Tith 9c6aae990a Use deactivate VG operation to check if a volume is deactivatable. 2016-08-15 17:38:00 +01:00
Andrius Štikonas bd2db0ceef Hide smart status and create partition table operations for non Disk Devices. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 25e33357d2 Disable resizing or deactivating deactivated LVM volume groups. 2016-08-15 17:38:00 +01:00
Andrius Štikonas b8c1acc7b6 Do not allow deactivating LVM VG devices that have mounted partitions. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 22173b75a6 Show disabled remove volume group operation for non-empty Volume Groups. 2016-08-15 17:38:00 +01:00
Chantara Tith 81daeba1d5 Change deactivate VG action icon to 'media-eject' 2016-08-15 17:38:00 +01:00
Chantara Tith c0d11a9025 Manually call deactivate VG operation's preview. 2016-08-15 17:38:00 +01:00
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
Chantara Tith b581c3d715 API changes, change to renamed methods. 2016-08-15 17:38:00 +01:00
Andrius Štikonas 5267f9825a Convert some more for loops to ranged based loop. 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 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 fe01d6c2e2 Remove partTableWidget from VolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 9803797647 Fix volumeDialog updateSizeInfos not updating when there isn't any PVs. 2016-08-15 17:38:00 +01:00
Chantara Tith 9d3ddf4e5c Remove dirty PVs from CreateVolumeDialog physical volumes list. 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 1472b310fd Disable OK button when creating new VG with name of an existing one. 2016-08-15 17:38:00 +01:00
Chantara Tith 5775560759 When creating new LV, disable OK button if the LV name already exists. 2016-08-15 17:38:00 +01:00
Chantara Tith 9e58e13d21 Get current PV list from deviceNodeList instead of calling external one. 2016-08-15 17:38:00 +01:00
Chantara Tith 7f61e77eb5 Add selected device to ResizeVolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith f863a15a72 update partTable only when partition list update. 2016-08-15 17:38:00 +01:00
Chantara Tith 92cbb1f6dc Fix crash when smartStatus is nullptr. 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
Andrius Štikonas 33d38c9852 Move PE size spinbox constraints to .ui file. 2016-08-15 17:38:00 +01:00
Chantara Tith 2b25813040 Set PE Size spinBox minimum value to 1. 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 2ec6857064 Decouple Sector and Size informations update. 2016-08-15 17:38:00 +01:00
Chantara Tith c8844c91e9 Remove lvm2_pv from FileSystem comboBox when creating LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 8e44082a73 Total used sectors and total LV in volumeDialog only need to be updated once. 2016-08-15 17:38:00 +01:00
Chantara Tith 6a2663d4d5 Disable partTableWidget preview for create/resize volumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 12e373dd45 Remove redundant informations of LVM PV from infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith 89d310e0c8 Use different seperator to avoid error with string handling. 2016-08-15 17:38:00 +01:00
Chantara Tith 34d6934a1b Fix typo. 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 da6cb2e4df Add more LVM infos to the infopane. 2016-08-15 17:38:00 +01:00
Chantara Tith 1a3cee45ff Add MiB suffix to PE size spinBox. 2016-08-15 17:38:00 +01:00
Chantara Tith 99e36d4e32 update total sector when PE size is changed. 2016-08-15 17:38:00 +01:00
Chantara Tith cbd61d90c0 Read and Display size of PV inside physical volumes list. 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 9f3e3bc5f0 Add functionality to specify PE size when creating VG. 2016-08-15 17:38:00 +01:00
Chantara Tith 475a677601 Disable moving for LV. 2016-08-15 17:38:00 +01:00
Chantara Tith 7f50dbaf4d Change from isLegalSize to isValidSize. 2016-08-15 17:38:00 +01:00
Chantara Tith e437c46d45 Disable OK button when LV name is empty. 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 5f364befd8 Temporary disable changing volume type and PE size, until the features are implemented on KPMCore side. 2016-08-15 17:38:00 +01:00
Chantara Tith 2917317619 Update volumeDialog ok button status as the used and total size changes. 2016-08-15 17:38:00 +01:00
Chantara Tith e6834393ae Fix the hacky solution for the usedSize overflow. 2016-08-15 17:38:00 +01:00
Chantara Tith a9655d7fad FIX used size overflow when multiplied. 2016-08-15 17:38:00 +01:00
Chantara Tith 27882cdb6a Display device info on volume dialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 01cb06a4a4 It makes more sense to display used size instead of the allocated sectors. 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 bc4321d105 Add totalAllocatedSectors to volume widget. 2016-08-15 17:38:00 +01:00
Chantara Tith f7d475d05c Initialize VG name if there is any. 2016-08-15 17:38:00 +01:00
Chantara Tith f84821ff9c Unclutter createVolumeDialog. 2016-08-15 17:38:00 +01:00
Chantara Tith 71a6cc761d Simplify if clause. 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 a89dbbdd7d Add checkbox for selecting multiple partition when creating new volume. 2016-08-15 17:38:00 +01:00
Chantara Tith a1fe5dff56 Temporary Use selected Partition as PV for creating new VG. 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 80f32cd53a Add volume type ComboBox to VolumeWidget 2016-08-15 17:38:00 +01:00
Chantara Tith 46e509ba28 Use custom list widget for displaying PV. 2016-08-15 17:38:00 +01:00
Chantara Tith 7a5f8fb1a8 Update CreateVolumeDialog OK button status. 2016-08-15 17:38:00 +01:00
Chantara Tith 8e4d9fc849 Change volumeWidget's label default value. 2016-08-15 17:38:00 +01:00
Chantara Tith 3721b198bf Abstract createvolumewidget generic stuffs to volumedialog base class. 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
Chantara Tith 0dd81709a1 Display DevicePropDialog totalsectors and type correctly 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
Chantara Tith 1673a9ddeb Hide sizeDetailsWidget for LVM device. This also fix crashes when trying to align LV 2016-08-15 17:38:00 +01:00
Chantara Tith e9cfc151f7 Hide freeSpace Before and After Label for LVM resize. 2016-08-15 17:38:00 +01:00
Chantara Tith e798a26cb6 Make LVM partition immovable when resize. 2016-08-15 17:38:00 +01:00
Chantara Tith f49b36fe14 Hide LV name for disk device resize 2016-08-15 17:38:00 +01:00
Chantara Tith 07bf741c6a Add new LV operation 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 6676dd8c03 Fix string context. 2016-07-31 01:26:10 +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 eaa9f6eaf1 Do not use obsolete type. 2016-07-06 20:44:40 +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 63a75bb4e6 Add placeholderText in MountOptionsDialog. 2016-06-15 15:49:26 +02:00
Andrius Štikonas af140882a7 Add Ok/Cancel buttons to EditMountPointOptionsDialog.
BUG: 364284
2016-06-15 15:35:35 +02:00
Andrius Štikonas fa385538b4 Disable EditMountPoints dialog if partition cannot be mounted. 2016-05-24 16:44:07 +01:00
Andrius Štikonas 88fa3c3697 Fix mountpointdialog for encrypted filesystems. 2016-05-24 16:35:39 +01:00
Andrius Štikonas b94564e360 Convert remaining QObject::connect to new syntax. 2016-05-22 20:03:49 +01:00
Andrius Štikonas ae5089abfc Luks helper functions are non-static now. 2016-05-20 19:38:56 +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 59862f48dd Do not allow moving first sector if moving partition is disabled. 2016-05-18 15:28: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 262bda5b3b Do not allow moving first sector if moving partition is disabled. 2016-05-18 12:08:20 +01:00
Andrius Štikonas 8b7982df08 Update function description to match current parameters. 2016-05-18 11:59:06 +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 65d80dd405 Respect minCapacity when creating new filesystem in small unallocated partition
BUG:363050
2016-05-17 19:33:08 +01:00
Andrius Štikonas 1dc73f975d Do not allow recreating luks filesystem. 2016-05-17 18:53:14 +01:00
Andrius Štikonas 374f88fa5f Remove reduntant virtual keywords. 2016-05-17 18:03:28 +01:00
Andrius Štikonas c01d63cb02 Revert "Remove Luks from FileSystemFactory."
This reverts commit dd1f6aaae0.
2016-05-17 15:30:57 +01:00
Andrius Štikonas dd1f6aaae0 Remove Luks from FileSystemFactory. 2016-05-17 15:05:05 +01:00
Andrius Štikonas 8763fbf2ae Add an indication when filesystem is encrypted. 2016-05-17 01:25:52 +01:00
Andrius Štikonas ac278bb06d Check whether LUKS verification passphrase matches.
Set passphrase length to be from 1 to 512.
2016-05-17 01:06:45 +01:00
Andrius Štikonas ca6398fe99 Remove non-user friendly captions. 2016-05-12 21:45:07 +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 98835662ca Start migration from QLineEdit to KNewPasswordWidget for LUKS passphrases. 2016-04-29 21:27:43 +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 51bf1b94f8 Move constructor to .cpp file. 2016-04-28 14:09:51 +01:00
Andrius Štikonas b21d1ffa84 Resize the header of ApplyProgressDialogWidget. 2016-04-28 14:01:09 +01:00
Andrius Štikonas 1832059353 Add override keyword to virtual functions. 2016-04-28 00:17:47 +01:00
Andrius Štikonas 92d4ea5d95 Fix incorrect HTML markup. 2016-04-27 18:53:26 +01:00
Andrius Štikonas 80b01010a6 Never show encrypt options for Extended partitions. 2016-04-26 14:39:15 +01:00
Andrius Štikonas 97bd4e94e1 Do not use QStringLiteral for empty strings. 2016-04-26 13:55:58 +01:00
Andrius Štikonas e5eed419f3 Do not show luks in FileSystemSupportDialog. 2016-04-26 13:03:10 +01:00
Andrius Štikonas 8f05b9e422 Limit passphrase input field to 512 characters. 2016-04-26 12:52:46 +01:00