Commit Graph

128 Commits

Author SHA1 Message Date
Aurélien Gâteau
d374d8bad8 Introduce PartitionJob 2014-07-18 15:49:27 +02:00
Teo Mrnjavac
4516213b0b Add some dummy configuration to dummypython, and then show it. 2014-07-18 14:36:30 +02:00
Aurélien Gâteau
568f2abd0b Reproduce and fix bug #28 2014-07-18 12:26:12 +02:00
Aurélien Gâteau
99fe98a9cf Unbreak test. Unfortunately it did not reproduce bug #28 2014-07-18 12:11:42 +02:00
Aurélien Gâteau
7e8c5a980c Make Runner::run() returns a bool indicating success or failure 2014-07-18 11:27:03 +02:00
Aurélien Gâteau
eebc71257f Nicer error messages 2014-07-18 11:20:13 +02:00
Aurélien Gâteau
26d0b52342 Unbreak build 2014-07-18 11:20:13 +02:00
Aurélien Gâteau
6f65a4b16c Add a (failing for now) test for extended partitions
This reproduces bug #28
2014-07-18 10:51:54 +02:00
Aurélien Gâteau
43f29b8058 Start working on tests for partition jobs 2014-07-18 10:51:54 +02:00
Teo Mrnjavac
a61a36d99d We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
2014-07-17 19:42:16 +02:00
Aurélien Gâteau
9c89e68672 Get rid of partview, it's no longer useful 2014-07-17 16:09:06 +02:00
Aurélien Gâteau
0d915b4995 Always delete logical partitions first when deleting an extended partition 2014-07-17 15:01:45 +02:00
Aurélien Gâteau
d7a853ee06 Scaffolding for exiting partition reformating 2014-07-17 14:59:59 +02:00
Aurélien Gâteau
4e49f59333 Turn PartitionCoreModule::refreshPartitionModel() into refresh() and make it public 2014-07-17 14:57:16 +02:00
Aurélien Gâteau
5c594f8dd7 Fix doc 2014-07-17 14:57:16 +02:00
Aurélien Gâteau
8a64dcb270 Coding style fixes 2014-07-17 14:57:16 +02:00
Aurélien Gâteau
ec6703b9cd Start creating EditExistingPartitionDialog 2014-07-17 14:57:16 +02:00
Aurélien Gâteau
5daa1b82e8 Refactor: PartitionInfo is no longer a class 2014-07-17 14:57:16 +02:00
Aurélien Gâteau
ff5667cb73 Turn all extra PartitionInfo fields into QObject properties of Partition 2014-07-17 14:57:16 +02:00
Aurélien Gâteau
9b57b98a93 No point doing this: editing extended partitions is not supported for now 2014-07-17 09:50:07 +02:00
Teo Mrnjavac
846812f49b Update README.md 2014-07-16 17:11:25 +02:00
Teo Mrnjavac
32beec0243 Update README.md 2014-07-16 17:08:05 +02:00
Teo Mrnjavac
2f628cd1d4 Add dummy python jobmodule. 2014-07-16 16:10:49 +02:00
Teo Mrnjavac
4712af05a0 Fix build in PartitionCoreModule. 2014-07-16 15:55:49 +02:00
Teo Mrnjavac
f2ed18ad4c Alignment fix. 2014-07-16 15:53:43 +02:00
Aurélien Gâteau
8a7e6c9348 More readable job queue 2014-07-16 11:15:22 +02:00
Aurélien Gâteau
3fa3694f90 Fix crash when trying to delete an extended partition 2014-07-16 11:14:55 +02:00
Aurélien Gâteau
568dc4db0a Init all fields when editing a partition. Disable editing of extended partitions for now. 2014-07-16 10:59:24 +02:00
Aurélien Gâteau
d500c7b480 Coding style fixes 2014-07-16 10:36:17 +02:00
Aurélien Gâteau
27b28a5bd1 Avoid potential rounding errors 2014-07-16 10:35:09 +02:00
Aurélien Gâteau
45dda6fa17 Factorize size computations 2014-07-16 10:34:56 +02:00
Aurélien Gâteau
a70ab4ad60 Refactor: move sector math from PartitionPage to CreatePartitionDialog 2014-07-16 10:15:57 +02:00
Aurélien Gâteau
7c1ecabd68 Drop now unused IsNewPartitionRole 2014-07-16 10:02:53 +02:00
Aurélien Gâteau
9216982859 Allow editing of partition mount points 2014-07-16 10:02:41 +02:00
Aurélien Gâteau
48c078acc5 Start implementing editing of newly-created partitions
This is the beginning of #19
2014-07-15 17:37:04 +02:00
Aurélien Gâteau
174114f09c Add IsNewPartition role 2014-07-15 17:33:16 +02:00
Aurélien Gâteau
fa30fe147f Add PMUtils::isPartitionNew() 2014-07-15 17:32:55 +02:00
Aurélien Gâteau
091c3c2757 Make CreatePartitionDialog.ui easier to read in Designer 2014-07-15 15:31:45 +02:00
Aurélien Gâteau
c30ed3c9c1 Let the user recreate the partition table (mbr or gpt)
Closes #20
2014-07-15 14:40:08 +02:00
Aurélien Gâteau
7096213206 Move partitionmanager code to src/modules/partition 2014-07-15 11:54:09 +02:00
Aurélien Gâteau
cbcd821943 Coding style fixes 2014-07-15 11:38:46 +02:00
Teo Mrnjavac
e3741c4d26 Make the locale viewmodule load the initial timezone from config. 2014-07-15 11:35:05 +02:00
Teo Mrnjavac
0a8aa66d58 Set initial timezone for the locale viewmodule in module.conf. 2014-07-15 11:34:36 +02:00
Teo Mrnjavac
c57d99a21c Add CalamaresAddModuleSubdirectory, a CMake function for modules that
do not require building through a CMakeLists.txt.
2014-07-14 16:26:10 +02:00
Teo Mrnjavac
25f44492e9 Add dummy process job module. 2014-07-14 16:25:13 +02:00
Aurélien Gâteau
7ac6588090 Forget pending changes when the partition table is recreated 2014-07-11 17:09:11 +02:00
Aurélien Gâteau
f0dffb7400 Refactor: Introduce PartitionInfoProvider interface, and make DeviceInfo implement it 2014-07-11 17:09:11 +02:00
Aurélien Gâteau
61b17490eb Refactor: group jobs and partitionModel for a device in a DeviceInfo struct
Makes it easier to clear all jobs for a specific device, which is necessary
when replacing a device partition table
2014-07-11 17:09:11 +02:00
Aurélien Gâteau
83a56a6bd3 Add the ability to (re)create partition tables 2014-07-10 19:55:16 +02:00
Aurélien Gâteau
5d6a80deae Factorize management of m_hasRootMountPoint 2014-07-10 19:01:55 +02:00