Commit Graph

14173 Commits

Author SHA1 Message Date
Jason Wen 02b3ea4917 SP Controls: Fix duplicate classes 2024-07-14 18:56:55 -04:00
Jason Wen f2c500249c Sidebar: missing import 2024-07-14 16:48:26 -04:00
DevTekVE e02c4a60f9 Rename instances of 'openpilot' to 'sunnypilot' in settings
Updated references in the settings UI to replace 'openpilot' with 'sunnypilot' for consistency with branding. This includes various descriptions and warnings related to longitudinal control and driver monitoring.
2024-07-14 22:40:06 +02:00
DevTekVE dc6c20ba97 Add separate Sidebar implementation for SunnyPilot
The file structure of SidebarSP has been revamped. A separate SidebarSP class has been created instead of overriding pieces of Sidebar. The implementation of SidebarSP has been encapsulated in the new SidebarSP class files (sp_priv_sidebar.cc and sp_priv_sidebar.h). The code integrity of Sidebar and its usages in offroad_home.h and sp_priv_home.h have been maintained. This should increase the overall modularity of the code.
2024-07-14 22:37:25 +02:00
DevTekVE 66be7afbdb Apply 3 suggestion(s) to 2 file(s) 2024-07-14 19:24:40 +00:00
DevTekVE ba1c47b320 Cleaning up 2024-07-14 21:18:53 +02:00
DevTekVE 4643d88af6 Refactor settings to improve layout and functionality
This commit introduces several layout and functionality changes in the settings. It extracts various functionalities into separate methods, including those related to on-road settings, and removes redundant panel definitions. The changes aim to make the settings more modular, manageable, and user-friendly. Furthermore, a new file for device panel settings is added to provide a more structured way of managing device-related settings. Please note that some functionalities, such as the fleet manager pin, file system watcher, and off-road button, have been moved and included in the device panel settings. These changes do not affect the functioning of the application but provide a more maintainable code structure.
2024-07-14 21:13:28 +02:00
DevTekVE d792be8999 Refactor ListWidgetSP functions from macros to inline methods
Consolidate multiple macro-defined functions into inline methods within ListWidgetSP to improve readability and maintainability. This change ensures that the widget functionalities are more straightforward and easier to debug. Adjust related headers and implementation files accordingly.
2024-07-14 19:48:17 +02:00
DevTekVE f56a30d6ce Refactor ListWidgetSP functions from macros to inline methods
Consolidate multiple macro-defined functions into inline methods within ListWidgetSP to improve readability and maintainability. This change ensures that the widget functionalities are more straightforward and easier to debug. Adjust related headers and implementation files accordingly.
2024-07-14 16:40:18 +02:00
DevTekVE 7030dc02ce Add handling for SUNNYPILOT in Qt settings
Introduced the RETURN_IF_SUNNYPILOT macro to handle conditional returns in the settings code. This ensures that certain blocks of code are bypassed when SUNNYPILOT is defined, improving modularity and reducing preprocessor directives.
2024-07-14 16:04:48 +02:00
DevTekVE 80ecce9d81 Remove "Driving Model" label and adjust item management
Eliminated the "Driving Model" label from SoftwarePanel and refactored item management to improve code clarity and functionality. Updated macro naming and added new list widget functions for better handling of UI elements.
2024-07-14 15:43:21 +02:00
DevTekVE ddee284733 Removing maps from stock's toggles
I believe this maps thing is a leftover we want to keep only on sp priv
2024-07-14 15:25:32 +02:00
DevTekVE efcd86529b Refactor: Move replaceWidget to sunnypilot_main.h
Moved the replaceWidget function to sunnypilot_main.h to allow for better code organization and reusability. Commented out the previous static declaration in sp_priv_offroad_home.h and updated replaceWidget calls to ReplaceWidget in sp_priv_offroad_home.cc.
2024-07-14 15:24:39 +02:00
DevTekVE beef2f0be9 Refactor SunnyPilot preprocessor directives in UI code
This commit simplifies the conditional preprocessor directives related to SunnyPilot in various parts of the UI code. The previous use of #ifdef SUNNYPILOT has been consolidated to make the code cleaner and easier to read. Also, some unused code blocks have been removed. This refactoring simplifies the management of different configuration setups.
2024-07-14 11:43:10 +02:00
Jason Wen e3939247a7 Nav stock icons 2024-07-14 04:19:38 -04:00
Jason Wen b8d26259c4 Toggle - ToggleSP, TESLA TOGGLE DESIGN!!! 2024-07-14 04:08:28 -04:00
Jason Wen 6fb4925b57 ScrollView - ScrollViewSP 2024-07-14 00:24:46 -04:00
Jason Wen ed862f012b ListWidget - ListWidgetSP 2024-07-14 00:08:34 -04:00
Jason Wen 7a1ff6cd01 SubPanelButton, PanelBackButton 2024-07-13 23:48:49 -04:00
Jason Wen 0ed13466f9 AbstractControl: Thicker texts 2024-07-13 23:45:11 -04:00
Jason Wen 2e7942ef16 AbstractControlSP, ButtonParamControlSP, OptionalControlSP 2024-07-13 23:35:38 -04:00
Jason Wen d0ec155a9d ElidedLabel, AbstractControl, ButtonControl 2024-07-13 23:14:49 -04:00
Jason Wen a3635f567a horizontal_line 2024-07-13 22:13:19 -04:00
Jason Wen ff6ff674c6 ParamControl - ParamControlSP 2024-07-13 21:08:43 -04:00
Jason Wen 71a5e80204 TogglesPanel - TogglesPanelSP 2024-07-13 20:33:20 -04:00
Jason Wen 058f7aa29d SettingsWindow - SettingsWindowSP 2024-07-13 19:46:35 -04:00
Jason Wen 35faa3ba95 fix define 2024-07-13 17:03:50 -04:00
DevTekVE 3c5070ce4a Moving some of elements out first and then I will restructure them to not duplicate code 2024-07-13 20:48:03 +00:00
DevTekVE 2b3b8d1df3 Merge branch 'master-priv' into ui-sp-split 2024-07-13 09:41:17 +02:00
DevTekVE c170976547 Revert "nuke dev's temporarily"
This reverts commit 19c1c99a28.
2024-07-13 09:36:05 +02:00
DevTekVE 35d8d7b3f7 Processor definition check for __APPLE__ has a typo on replay (#32930)
(cherry picked from commit 3c74ad145e)
2024-07-13 09:26:32 +02:00
Jason Wen 19c1c99a28 nuke dev's temporarily 2024-07-13 02:56:00 -04:00
DevTekVE f99799701f Remove the sunnypilot on clion scripts because code will default properly 2024-07-13 08:54:49 +02:00
DevTekVE c7932f8b73 Refactor GPG key check and update SCons build tools.
Converted GPG key check logic into a more modular function `is_sunnypilot_developer` for better readability and maintainability. Updated `External Tools.xml` to include `--sunnypilot` flag in SCons build commands.
2024-07-13 08:33:20 +02:00
Jason Wen ec6f86efbf new way to detect added gpg keys 2024-07-13 02:21:30 -04:00
DevTekVE 54ffb8b1fe Enable conditional compilation for SUNNYPILOT
Add conditional definition for SUNNYPILOT in SConscript. This allows code to be compiled differently based on the presence of the SUNNYPILOT environment variable.
2024-07-13 07:34:40 +02:00
Jason Wen 2ac8bb6c1d test 2024-07-13 00:13:13 -04:00
Jason Wen 43a38ed039 set constant with added gpg key id 2024-07-12 23:35:05 -04:00
Jason Wen e7ea608c45 Split all SP files out 2024-07-12 22:19:42 -04:00
Jason Wen bc1aad6f6a git-crypt: add collaborators 2024-07-12 21:36:28 +00:00
Jason Wen 1a8170e839 Speed Limit Control: Gate behind longitudinal 2024-07-11 23:51:17 -04:00
Jason Wen c1cd33dbc1 MADS: Fix extra gear check 2024-07-11 15:46:24 +00:00
DevTekVE 606fb2d7c9 sunnylink: disable log upload handler 2024-07-10 17:01:57 +00:00
Jason Wen d9da6064c0 ui: Build mapsd in UBUNTU_FOCAL-based AGNOS 2024-07-10 11:04:46 -04:00
Jason Wen ba12998986 ui: onroad: drawLead cleanup 2024-07-09 22:59:44 -04:00
Jason Wen 64a34f97aa Revert "remove nav apt dependencies (#32792)"
This reverts commit 9a084a73c5.
2024-07-08 09:13:37 -04:00
Jason Wen a1dbcfd62b Revert "MADS: Honda Nidec: Fix enforce cruise cancel with stock PCM" 2024-07-08 03:38:29 +00:00
Jason Wen b0b0e65ebc Bump submodules 2024-07-07 17:57:18 -04:00
Jason Wen b455ea197b CarParam: set spFlags from platforms at init 2024-07-07 17:54:30 -04:00
Jason Wen 79ad7f1838 Update CHANGELOGS.md 2024-07-07 17:54:30 -04:00