Commit Graph
507 Commits
Author SHA1 Message Date
sani7 600e7c27b3 server can if
add critical message
2026-02-14 14:32:38 +01:00
sani7 6f4bf60b02 client docs 2026-02-14 14:32:37 +01:00
sani7 683f262fa1 doxygen
fix some documentation warnings
2026-02-14 14:32:37 +01:00
sani7 01dfb0e21d server doxygen
Add documentation to the server
2026-02-14 14:32:37 +01:00
sani7 8ef11ece30 Add doxyfile 2026-02-14 14:32:36 +01:00
sani7 7a74847f45 Client doxygen
Add documentation to the client
2026-02-14 14:32:36 +01:00
sani7 758958fd3a client websocket wrapper
remove deconstructor
2026-02-14 14:32:36 +01:00
sani7 7c6db0e02c client ui_base
remove unused signal
2026-02-14 14:32:35 +01:00
sani7 9836d40a49 Add doxygen documentation to client ui 2026-02-14 14:32:35 +01:00
sani7 3c0d01df15 client ui
rework better radiobutton
2026-02-14 14:32:35 +01:00
sani7 6915c28894 client
rename Simulator_base to UI_base
this is so that doxygen can see the difference
2026-02-14 14:32:34 +01:00
sani7 9ab54ab599 readme 2026-02-14 14:32:34 +01:00
sani7 a3a1657fb8 Lint 2026-02-14 14:32:34 +01:00
sani7 fbf8f53090 server
Ensures that the message parser returns a default "{}" response after handling an event, preventing unintended empty responses.
Also, this change avoids sending empty messages to the client unnecessarily.
2026-02-14 14:32:33 +01:00
sani7 c8ea8185b4 server websocket
Removes unnecessary debug and trace logging statements from the websocket server implementation to reduce verbosity. Also removes unused binary message processing.
2026-02-14 14:32:33 +01:00
sani7 4efe904fe7 Improves logging and adds TODO for COM device
Capitalize  first letter.
Adds a TODO comment to address future improvements regarding COM device handling.
2026-02-14 14:32:33 +01:00
sani7 e9128e4f36 sim loading
remove idea of running this thing on windows, not possible due to windows not having "export-dynamic" support
2026-02-14 14:32:32 +01:00
sani7 326a636122 server
Renames the `run` method to `start` in the simulator classes.
2026-02-14 14:32:32 +01:00
sani7 1a88e5fc40 b server sim switching
Rearranges the order of operations during simulator switching to ensure that the previous simulator is properly stopped and disconnected before the new simulator is started.
2026-02-14 14:32:32 +01:00
sani7 a2befb3ff9 b server simulators broadcast
- Fix for separate message for each ui change/sim change event by putting Qt::QueuedConnection
- Avoids broadcasting empty JSON objects produced by the change above mentioned
2026-02-14 14:32:31 +01:00
sani7 fbe19f17d3 b client
remove unused setup qwt plot function
2026-02-14 14:32:31 +01:00
sani7 935c1d4ac6 b client sim base
fix close event always executing
2026-02-14 14:32:31 +01:00
sani7 66ac531cd5 Removes validity tracking from UI table
This simplifies the code and removes redundant checks.
2026-02-14 14:32:30 +01:00
sani7 e5fefa57ac Tests for UI tabe
Adds functionality to retrieve an item from the UI table.
Also adds tests for the UI table functionality, including
serialization, label setting, item insertion, and item clearing.
2026-02-14 14:32:30 +01:00
sani7 c6e56aea4a Lint 2026-02-14 14:32:22 +01:00
sani7 031a512da5 Adds tests for UI plot functionality
Adds tests for serialization, label setting, value addition, and value cleaning of UI plot.
These tests ensure the UI plot component behaves as expected.
2026-02-14 14:32:22 +01:00
sani7 149d27d980 Updates test includes for UI components
Updates test files to include necessary headers and removes the now unused `Test.hpp` file.
2026-02-14 14:32:21 +01:00
sani7 a6f004725d Adds accessors for plot data vectors
Adds const get methods to retrieve the x and y values stored in the plot data vectors, enabling external components to read the data displayed on the plot.
2026-02-14 14:32:21 +01:00
sani7 f9c9636f95 Adds UI widget tests
Adds unit tests for UI components.
UI_can, UI_stacked_widget, UI_status_bar and UI_tab_widget
2026-02-14 14:32:21 +01:00
sani7 76b00b6108 UI tab widget
Adds bounds checks to `visible()` and `tab_name()` methods
2026-02-14 14:32:20 +01:00
sani7 7c49e4ee02 UI plot
remove unused functions
2026-02-14 14:32:20 +01:00
sani7 31a0d2e6c4 UI statusbar
add timeout read
fix for not initializing timeout
2026-02-14 14:32:20 +01:00
sani7 239c4f8f94 Fix clazy warning
reference instead of copy
2026-02-14 14:32:19 +01:00
sani7 d0c392ca0e Guards against out-of-bounds access in tab widget
Adds bounds checking to `set_selected`, `set_visible`, and
`set_tab_name` methods to prevent out-of-bounds access on the tab
data structures.
Removes unnecessary resizing logic as tab size is defined in constructor.
2026-02-14 14:32:19 +01:00
sani7 baaf33361e Renames signal for consistency
Renames the 'selected' signal to 'changed' for better
consistency with other signals and to accurately reflect the signal's purpose.
2026-02-14 14:32:19 +01:00
sani7 7cb93ec14d change Event can_clear to clear
make this a bit more general, that it can be used for more then only can
2026-02-14 14:32:18 +01:00
sani7 0f1d6aa592 client
rename ui_radiobutton, but is still unimplemented on the server
2026-02-14 14:32:18 +01:00
sani7 f55539f5f0 UI status bar
Uses base class text for status bar message
2026-02-14 14:32:18 +01:00
sani7 d7655f3e08 Adds UI spinbox tests
Adds tests for UI spinbox widgets, including JSON serialization/deserialization
and signal emission verification.
2026-02-14 14:32:17 +01:00
sani7 89ca146e97 Adds signal testing to UI elements
Extends UI element tests to include signal emission verification.

This ensures that UI elements correctly emit signals upon user interaction,
improving the reliability and responsiveness of the UI.

Adds QSignalSpy to track signal emissions for various UI components like
buttons, checkboxes, comboboxes, items, sliders, textboxes and thermos.
2026-02-14 14:32:17 +01:00
sani7 2a7959936a test clean + bug fixes 2026-02-14 14:32:17 +01:00
sani7 2a76e13305 Removes JSON constructor from UI elements
This fixes the error: clang:optin.cplusplus.VirtualCall
When virtual methods are called during construction and destruction the polymorphism is restricted to the class that’s being constructed or destructed because the more derived contexts are either not yet initialized or already destructed.
2026-02-14 14:32:16 +01:00
sani7 f58028a8a9 Adds unit property to dial.
Adds the ability to store and retrieve a unit string associated with the dial, allowing for more context-aware representation of values.
2026-02-14 14:32:16 +01:00
sani7 1bd7635085 Renames signals for consistency
Updates signal names across UI components (checkbox, textbox, and CAN) to use more consistent and descriptive names, improving code readability and maintainability. The 'on_change' and 'on_send' signals are renamed to 'changed' and 'send' respectively.
2026-02-14 14:32:16 +01:00
sani7 f7f793a0bb client
mark show and hide events as override
2026-02-14 14:32:15 +01:00
sani7 d02fc4b611 client
clean up mainwindow files
2026-02-14 14:32:15 +01:00
sani7 d07b282587 client
fix title not updating
2026-02-14 14:32:15 +01:00
sani7 1fcbe53253 client
move to QMessageBox from networkerror
2026-02-14 14:32:14 +01:00
sani7 97dee48e71 cmake tests
Add status message if GTest is found or not
2026-02-14 14:32:14 +01:00
sani7 cbc5352f4f readme
add line endings guideline
2026-02-14 14:32:13 +01:00