* Add options to disable radio and model menu tabs. - Update radio and model data structs - UI for color LCD radios - Convert existing 'noGlobalFunctions' property. - Language strings. * Make 'theme' control specific to color LCD radios. * Add B&W radio UI. * Simplify code, reduce compiled code size. Fix page count display on model select tab. Fix GVARS for 212x64 radios. * Collapse timer sections if timer is off. * Remove 'Use global functions' checkbox from B&W model setup. * Make preflight checks, throttle and view options sections expand & collapse (default collapsed). * Fix build. * Add view options to companion data classes, save and load values in YAML files. Fix scrolling for radio setup view options. * Add Companion UI for view option settings. * Remove 'Mixes' from list of tabs that can be hidden. * Updated Companion UI from elecpower. * Use view options flags to enable/disable functionality: - skip heli mixer logic if heli not enabled - Remove heli, gvars and telemetry options from source selection if not enabled * Remove 'flight mode', 'curve' and 'global variable' settings from input & mix editors if option disabled. * Rename 'View Options' to 'Enabled Features'. Put GVAR option under Flight Mode and indent text. Make relationship between FM and GV more obvious. * Remove global variable option dependency on flight modes. Hide FM1-FM8 in global variables if flight modes hidden. * Hide 'Custom Mixer Scripts' in source selection menu popup if disabled. * Add translation strings for Hebrew language file. * Fix typo. Add comment for double call to setCurrentTab.
68 lines
1.4 KiB
CMake
68 lines
1.4 KiB
CMake
include_directories(
|
|
${CMAKE_SOURCE_DIR}
|
|
${COMPANION_SRC_DIRECTORY}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
)
|
|
|
|
set(modeledit_NAMES
|
|
modeledit
|
|
setup
|
|
heli
|
|
telemetry
|
|
expodialog
|
|
mixerdialog
|
|
checklistdialog
|
|
)
|
|
|
|
set(modeledit_SRCS
|
|
flightmodes.cpp
|
|
inputs.cpp
|
|
mixes.cpp
|
|
channels.cpp
|
|
logicalswitches.cpp
|
|
customfunctions.cpp
|
|
mixerslistwidget.cpp
|
|
# node.cpp ## node and edge are built in common lib because also used by simulator
|
|
# edge.cpp ## commenting them here avoids a "duplicate target" warning eg. from ninja
|
|
colorcustomscreens.cpp
|
|
telemetry_customscreens.cpp
|
|
curves.cpp
|
|
modeloptions.cpp
|
|
)
|
|
|
|
set(modeledit_HDRS
|
|
flightmodes.h
|
|
inputs.h
|
|
mixes.h
|
|
channels.h
|
|
logicalswitches.h
|
|
customfunctions.h
|
|
mixerslistwidget.h
|
|
# node.h
|
|
colorcustomscreens.h
|
|
telemetry_customscreens.h
|
|
curves.h
|
|
modeloptions.h
|
|
)
|
|
|
|
set(modeledit_UIS
|
|
setup_timer.ui
|
|
setup_module.ui
|
|
setup_function_switches.ui
|
|
flightmode.ui
|
|
telemetry_customscreen.ui
|
|
telemetry_sensor.ui
|
|
)
|
|
|
|
foreach(name ${modeledit_NAMES})
|
|
set(modeledit_SRCS ${modeledit_SRCS} ${name}.cpp)
|
|
set(modeledit_HDRS ${modeledit_HDRS} ${name}.h)
|
|
set(modeledit_UIS ${modeledit_UIS} ${name}.ui)
|
|
endforeach()
|
|
|
|
qt5_wrap_ui(modeledit_SRCS ${modeledit_UIS})
|
|
qt5_wrap_cpp(modeledit_SRCS ${modeledit_HDRS})
|
|
|
|
add_library(modeledit ${modeledit_SRCS})
|
|
target_link_libraries(modeledit PRIVATE datamodels ${CPN_COMMON_LIB} Qt5::Multimedia)
|