Commit Graph

20 Commits

Author SHA1 Message Date
hjk
c75923756a Core: Provide empty implementation for IOptionPageWidget::finish()
Having it pure virtual only lead to a lot of unnecessary
re-implementation.

Change-Id: I37f71d1a160e21b93c7c73a6304b0eb6d5f0441d
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-01-15 12:28:29 +00:00
hjk
11c9062cb2 McuSupport: Use new settings page convenience
Change-Id: Id0c525a32b1c8b9e0d8d04da7bcd37c4f1958508
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-01-08 09:49:27 +00:00
Alessandro Portale
8ee93c3a46 McuSupport: Use Utils::InfoLabel in McuSupportOptionsPage
Task-number: QTCREATORBUG-23346
Change-Id: I75cd156db4715b3d55b11e665f46a2f31bbb6b1a
Reviewed-by: hjk <hjk@qt.io>
2019-12-19 16:16:21 +00:00
Alessandro Portale
a44562f676 McuSupport: Check for presence of CMake
If no CMake tool is present, direct the user to the CMake settings,
insted of creating non-functional kits.

Change-Id: I0326b1fd37a0475a3a2983ad6108729b0c54d87c
Reviewed-by: hjk <hjk@qt.io>
2019-12-06 13:38:07 +00:00
Alessandro Portale
2a7a908233 McuSupport: Only (re-)generate kits when on Mcu options page
... less surprises, like for example user is on the Kits page, edits an
existing kit, and that gets overwritten when pressing "Apply"

Change-Id: I2d936b757cb5c891a087854805fa2f056834185f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-22 11:05:53 +00:00
Alessandro Portale
a2355841f5 McuSupport: Rename internal types
"PackageOptions" -> "McuPackage"
"BoardOptions" -> "McuTarget"
"qul" -> "qtForMCUs"

Change-Id: I209cc82c7516fbf6a960b26c440159dbab02a4db
Reviewed-by: hjk <hjk@qt.io>
2019-11-15 08:07:37 +00:00
Alessandro Portale
7f8576d49f McuSupport: Improve kit creation UX
Create a kit only for the currently selected target.
Kits are listed as auto-detected. Extisting, auto-detected kits with
same name get replaced with new ones.

Less text in the UI.

Change-Id: I89f952cc6ff694dc5c2750ebf9a7698d7839ec3a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-13 22:09:21 +00:00
Alessandro Portale
1d1dde0f9b McuSupport: Avoid mix of dir separator styles for CMake parameter
Qt Creator's CMake plugin would otherwise (since recently) open that
"sync" dialog if a configuration path contains back slashes.

Change-Id: I2e333604e22158bdb61c2ca8eb65911295383b52
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-12 18:27:54 +00:00
Alessandro Portale
9641de2007 McuSupport: Distinguish "Evaluation" and "Engineering" roles
"Evaluation" and "Engineering" kits need to be set up differently.

Change-Id: I649fed9cbdff248c5cbc69e65a095ced1f25326e
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-12 18:14:46 +00:00
Alessandro Portale
ce83b2a93c McuSupport: Unify, simplify and improve kit name creation
Change-Id: I27ffa3d89226eedc8396c37249e124f846a630d3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-11-12 17:51:05 +00:00
Alessandro Portale
7d14132c8c McuSupport: Create a Qul-Desktop kit
First, hacky step towards supporting the "Qt" target. Such a target now
gets created with correct environment variables and CMake options.

Device type is for now Desktop, but portale thinks we will have a Qul/
Desktop target at some point.

Compiler and Qt version are randomly preselected and certainly need to
be adjusted by the user (for now).

Change-Id: Ie3f6a6e3ce1a46c35687e20a7550ff51b6b1b7c7
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-11-04 13:53:38 +00:00
Alessandro Portale
985cd447ab McuSupport: Change "MCU board:" => "Target:" in options page
There is also a (Qt-based) target, which is not a board.

Change-Id: Ib35b1e823a7a1c5e1f578face9fa4953b7a6d89e
Reviewed-by: Aurindam Jana <aurindam.jana@qt.io>
2019-10-30 18:33:03 +00:00
hjk
8d03546d6b Mcu: Compile fix
Change-Id: I45134ffc02adfe770127bd6648ed378fdd616264
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-22 14:52:51 +00:00
Alessandro Portale
6bdc6c1584 McuSupport: Split up McuSupportOptionsPage
Move the non-OptionsPage code into a new file for comprehensibility.

Change-Id: I306ae669ec9fdd941f777426420859ee2eb89e95
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-22 14:35:34 +00:00
Christian Kandeler
79aedfbb7a McuSupport: Fix warning about unused variable
Change-Id: If0905e2937b02806cf000d9f9d270d87f0a0a370
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-21 12:20:43 +00:00
Alessandro Portale
b5942847e2 McuSupport: Set ARM debugger in MCU kits
... create one if necessary.

Change-Id: I0b89d54429834db7b76be0a76d260152efd1ad03
Reviewed-by: hjk <hjk@qt.io>
2019-10-18 10:56:25 +00:00
Alessandro Portale
5b2ca680a7 McuSupport: add /bin path of "stm32CubeProgrammer" to Path
... and make the detection a bit more explicit.

Change-Id: I8dc4f6dbdcc44e4e3cd56e332dd6d5ca6fa12021
Reviewed-by: hjk <hjk@qt.io>
2019-10-17 16:53:30 +00:00
Alessandro Portale
17354cebad McuSupport: Allow PackageOptions to return different path than selected one
... by adding a relativePathModifier property

Change-Id: I5e4a13ffb43566f7ed221dfc926731abc0460853
Reviewed-by: hjk <hjk@qt.io>
2019-10-17 16:53:15 +00:00
Alessandro Portale
c5bcac1cdd McuSupport: Split up package creation in options page
Shorter functions.

Change-Id: Ia984c13d2d6810f194975fa905d0a019415053ea
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-10-14 15:38:15 +00:00
hjk
b0ea4311e8 Short live McuSupport
Medium term to be merged with BareMetal/RemoteLinux/...

Change-Id: I444c65bcfa8e3cf8642ff64e964459720814860a
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2019-09-30 15:04:32 +00:00