Commit Graph
50 Commits
Author SHA1 Message Date
elecpower 1b40c69593 Input and mix source list use filter to remove none entry 2020-09-20 07:43:54 +10:00
elecpower 775d8db1e9 Mixes create filtered lists once 2020-09-20 05:36:55 +10:00
elecpower e534749940 Release memory 2020-09-19 21:25:58 +10:00
elecpower 1e0e22955d Refactor to Model level ui datamodels for sources, switches and curves 2020-09-17 14:30:20 +10:00
Max Paperno ca63b92e5b [Companion] Refactor RawSource & RawSwitch data models to abstract the base classes and reduce redundancy; Move data models to own folder. 2018-07-12 13:20:07 -04:00
Max Paperno 81c33b6432 [Companion] Refactor RawSwitchItemModel and RawSwitchFilterItemModel for better efficiency, does not invalidate whole model on updates (structure is almost identical to the RawSource variants). 2018-07-12 13:20:07 -04:00
Max Paperno ed255ce1c3 [Companion] Updates to use new RawSource data models in UI. 2018-07-12 13:20:06 -04:00
Bertrand Songis b55070f939 [Companion] Sensor switches support added
+ some refactoring to hide irrelevant switches in the combobox

More refactoring to come:
 - have only one SwitchModel per model instead of one per tab
 - only do the update work if something has changed
2017-07-30 12:12:27 +02:00
Max PapernoandBertrand Songis f7b6d95910 [Companion] Input names formatting (#4888)
* [Companion] Re-format Inputs list to format input name consistently with rest of UI; Add leading zeros to RawSource numbers in names; Show custom channel name in MixerDialog.

* [Companion] Remove colon separator between input number and custom name.

* Fix segfault when no model pointer is passed to RawSource::toString() (problem was only on this branch).
2017-05-11 07:37:13 +02:00
Max PapernoandBertrand Songis f5ab145d2f [Companion] Show custom control names throughout the UI (& internal refactoring) (#4693)
* [Companion] Introduce new Boards class to further consolidate hardware metadata and remove some globals.

* [Companion] * RawSource::toString() and RawSwitch::toString() can now return custom hardware names (if given a GeneralSettings object) for the following types (respectively):
    SOURCE_TYPE_STICK, SOURCE_TYPE_SWITCH, SWITCH_TYPE_SWITCH, & SWITCH_TYPE_MULTIPOS_POT;
* RawSource::isPot() and isSlider() can now return their own index position in potConfig[]/sliderConfig[];
* Switch indicator strings can be localized if necessary.

* [Companion] Refactor model printers to use new RawSource/RawSwitch capabilities; Simplify model-to-printer mapping scheme in multimodelprinter; Use const ModelData pointer.

* [Companion] Refactor how RawSource and RawSwitch selection combo boxes are populated, using cache-able data models instead of direct manipulation; Refactor some other Helpers function into their own namespace.

* Cosmetics & forgotten qualifier.
2017-03-27 19:02:19 +02:00
Jim TaylorandMax Paperno b75fa3b06f Change text "not" to ! to fix VS15 Build Issue_4522 (#4523)
* Change text "not" to ! to fix VS15 Build (closes #4522)
* Change !cb_fp[i]->checkState() to !cb_fp[i]->isChecked() per comments in PR
2017-02-27 18:14:32 -05:00
Neil HorneandBertrand Songis 3b149a22d1 Inputs and Mixes dialogs - add flight modes context menu to set, clear and invert all modes (#4494) 2017-02-26 12:51:06 +01:00
Bertrand Songis 440ca771df [Companion] Horus analog input names fixed 2016-12-02 20:27:28 +01:00
Bertrand Songis b0f5b646af [Companion] Copyright added to all files 2016-11-23 16:40:47 +01:00
Bertrand Songis 5f9737fc70 [Companion] Old EEPROM support removed 2016-11-23 16:40:47 +01:00
Bertrand Songis c5a44250fc Fixes #3353 2016-04-09 11:12:50 +02:00
Bertrand Songis aec2170e7e Move to Qt5 and Qt5Multimedia 2016-03-10 07:12:44 +01:00
Damjan Adamic 65bdd25173 Various fixes: modelPrinter free, mixer crash, trims display, channel names, monospace font 2015-08-23 16:00:37 +02:00
Damjan Adamic 0c7e545b42 Cosmetics 2015-08-23 15:33:09 +02:00
Bertrand Songis ed05174fc8 PrintDialog / CompareDialog refactoring 2015-08-23 09:54:15 +02:00
bsongis 0c01f66272 Fixes #2299 2015-05-26 07:14:25 +02:00
Andre Bernet 930fd7443e Companion UI support 2015-03-28 11:42:45 +04:00
bsongis 38a639cef6 Refactoring 2014-12-16 21:17:39 +01:00
Damjan Adamicandbsongis 1c053a7d0b Re #1783: Companion shows too many curve types in input/mixer for 9x 2014-11-08 11:24:51 +01:00
bsongis ef7bbea285 Global Functions now integrated inside Companion - Fixes #502 2014-09-18 15:32:55 +02:00
bsongis 36481471a3 Fixes #1595 2014-08-13 11:37:03 +02:00
Damjan Adamic d0edbacf37 re #1334 - added Lua script outputs to: mixer soruces list, logical switches V1 and V2 list 2014-06-21 22:05:43 +02:00
bsongis ed90015503 Fixes #1272 2014-06-19 11:59:18 +02:00
Damjan Adamic 6d384759ae Removed MixesWithoutExpo capability. Added missing files for previous commit. 2014-06-01 16:13:06 +02:00
Damjan Adamic d641147ef0 The "No DR/Expo" was (after conversion from 215) showing in mixes for Taranis. Taranis does not have this setting. 2014-06-01 16:01:35 +02:00
bsongis f178748090 Fixes #986
Fixes #1058
2014-05-05 16:07:07 +02:00
bsongis 50a73a3af5 Each ModelEdit window now has its own FirmwareInterface (it means that
we could open 2 ModelEdit windows on different firmwares)
2014-04-18 16:55:53 +02:00
bsongis c5ac19a054 Refactoring FirmwareInterface / EepromInterface 2014-04-18 16:27:27 +02:00
bsongis f6d1b0c46f Cosmetics 2014-04-16 07:39:34 +02:00
bsongis d2a99aadd5 Small code refactoring 2014-04-04 08:04:53 +02:00
Andre Bernet 144952f46d Include DR/Expo was still showing for Taranis 2014-04-03 21:10:36 +02:00
Bertrand Songis 0789bb83b1 Include DR/Expo should be hidden in MixerDialog on Taranis 2014-04-03 12:26:34 +02:00
bsongis 1bf95c9438 36 switches hidden in Companion when no Multipos switches ... 2014-04-02 10:25:07 +02:00
bsongis e10305a4e6 Issue #869 - Trim in Mixes back also in Companion 2014-03-27 10:05:26 +01:00
Bertrand Songis f41f1a3f7b Input scale now added in Companion. I have broken all getStep / getMin /
getMax / getOffset used for custom switches and telemetry bars.
Everything needs to be tested again ...
2014-01-28 15:43:52 +01:00
Bertrand Songis 0009c8b287 'next' EEPROM support continued. Trim mode in Inputs tab added 2014-01-21 16:30:44 +01:00
Bertrand Songis 6bba2b14ca Virtual Inputs added inside Companion 2014-01-20 21:54:38 +01:00
Bertrand Songis 1a00145b1d A couple of other fixes 2014-01-20 13:47:42 +01:00
Bertrand Songis 11e83de0d3 Support of inputs / mixes from 'next' continued. More duplicated code
removed.
2014-01-17 15:46:19 +01:00
Bertrand Songis 691b52572f Fixes in ExpoDialog. Some more code refactoring 2014-01-15 14:05:33 +01:00
Bertrand Songis 888895b60b Corrections on Curves in MixerDialog and ExpoDialog (introduction of
CurveGroup to share code)
2014-01-15 11:50:00 +01:00
Bertrand Songis cedddfe8d2 EEPROM 'next' support. A lot of corrections. 2014-01-13 19:09:05 +01:00
Bertrand Songis 691d568b1a FixOffset (from er9x) removed 2014-01-09 18:03:22 +01:00
Bertrand Songis 3b59d07724 Support of current EEPROM inside Companion. Some more code around
EEPROMS export removed (needed to be fixed, so I preferred to remove in
the same commit).
2014-01-07 17:57:42 +01:00
Bertrand Songis b802bc5db2 ModelEdit window splitted (one file per tab). Templates/Wizard still have to be re-introduced, but in a menu instead of a Model tab 2013-12-19 19:19:44 +01:00