Commit Graph

5211 Commits

Author SHA1 Message Date
Adam Honse
567cdfcb6b Implement size verification on RGBController set description functions 2026-04-13 23:46:42 -05:00
Adam Honse
e045ea9bf1 Clean up zone initialization dialog 2026-04-13 11:43:23 -05:00
Adam Honse
5bb2245307 Require local client permission for DeleteProfile, SaveProfile, UploadProfile, SetSettings, and SaveSettings operations, some general cleanup 2026-04-13 11:43:23 -05:00
Adam Honse
7bd6f67d75 Sanitize profile filenames 2026-04-13 11:43:23 -05:00
Adam Honse
03806ebe6b Add RescanDevices to plugin API 2026-04-13 11:43:23 -05:00
Adam Honse
d4fcd40e3d Implement segment groups in zone editor 2026-04-13 11:43:23 -05:00
Adam Honse
91ecdaa9b7 Rework server initialization
* Only create server instance if server is actually needed
    * Pass initial server host and port through ResourceManager
    * Allow setting default server host and port in Server settings
2026-04-13 11:43:22 -05:00
stephen iacovelli
f11b3057d3 Sort profiles list alphabetically 2026-04-13 11:43:22 -05:00
Adam Honse
5b335962f2 Organize OpenRGBSettingsPage with Group Boxes 2026-04-13 11:43:22 -05:00
Kasslim
a1f75de3d9 Correct spelling Busses -> Buses
Commits merged by Adam Honse <calcprogrammer1@gmail.com>
2026-04-13 11:43:22 -05:00
诺诺
5c7b084aa9 Add Nollie controller OS2.1 2026-04-13 11:43:22 -05:00
Adam Honse
e6cebf4a61 Initial implementation of OpenRGB SDK protocol Wireshark dissector 2026-04-13 11:43:22 -05:00
Adam Honse
ed07e5224f Add ACK to network packets processed by NetworkServer 2026-04-13 11:43:22 -05:00
Adam Honse
592c7ff4ed Only update device view when RGBController::UpdateLEDs signal is sent to OpenRGBDevicePage, fix device view not refreshing if multiple LEDs are selected 2026-04-13 11:43:22 -05:00
Adam Honse
22cc5da057 Don't emit selection update on mouse click event to avoid sending unnecessary events, also only send one type of event per mouse release event. Fix LED box not being updated 2026-04-13 11:43:22 -05:00
Adam Honse
6b0bf07838 Have dummy controller shut down its background thread immediately during constructor to save resources 2026-04-13 11:43:22 -05:00
Adam Honse
b3383358c1 DeviceView code cleanup, formatting, commenting 2026-04-13 11:43:22 -05:00
Adam Honse
656579aff0 Fix selecting LEDs in device view 2026-04-13 11:43:22 -05:00
Adam Honse
3cbd28f6fe TabLabel sets its own tooltip so all tabs have a tooltip rather than just devices 2026-04-13 11:43:22 -05:00
Adam Honse
e4d8dd9a48 Resize tabs when width is small 2026-04-13 11:43:22 -05:00
Adam Honse
3b11bd146c Rework adding segments with ConfigureZone 2026-04-13 11:43:22 -05:00
Adam Honse
1cbb5a48ac Zone and Segment type updates
* Add zone flags to indicate if fields are manually configurable and if they have been manually configured
  * Add flags field to segment type
  * Add segment flags for group start and group member
  * Add color mode support flags to zone (RGB, RBG, GRB, GBR, BRG, BGR)
  * Add color mode enum to zone
  * Update zone and segment description functions to support new fields
  * Rename the effects-only configurable size flag
  * Remove zone type and matrix map configuration from E1.31 manual configuration, use zone editor instead
  * Rework DeviceResizeZone to DeviceConfigureZone
  * Rework most ARGB controllers to allow zone customizations
  * Rework DRGBController to define devices in DRGBDevices list (similar to RazerDevices)
  * Rework NollieController to define devices in NollieDevices list (similar to RazerDevices)
2026-04-13 11:43:22 -05:00
Adam Honse
5a6eb93db4 Add matrix map automatic generation to matrix map editor 2026-04-13 11:43:22 -05:00
Adam Honse
a02c9aa527 RGBController API changes and segment configuration updates
* Make the Get/Set RGBControler descriptor functions static
  * Add functions for getting the matrix_map_type for zone and segment matrix maps
  * Rename zone resize dialog to zone editor dialog
  * Add additional segment types
  * Add option to import segments configuration from JSON file in zone editor dialog
  * Update device view to be able to display matrix segment types
  * Add matrix map editor dialog for creating/editing segment matrix maps
  * Add option to export segments configuration to JSON file in zone editor dialog
2026-04-13 11:43:22 -05:00
Adam Honse
ed27303085 When updating existing profile without profile editor dialog, keep saved states for unavailable controllers, base color, and only update plugins already part of the existing profile 2026-04-13 11:43:22 -05:00
Adam Honse
ee7e3e70e0 When saving sizes/manual configuration, keep any existing controllers that are not currently available 2026-04-13 11:43:22 -05:00
Adam Honse
2915d8151c Rework how manual configuration (previously sizes) are loaded to newly detected controllers, load active profile to newly detected controllers 2026-04-13 11:43:21 -05:00
Adam Honse
2b6355b4d0 Profile editor dialog 2026-04-13 11:43:21 -05:00
Adam Honse
2282351925 Rework API interface passed into plugins from ResourceManagerInterface to OpenRGBPluginAPIInterface 2026-04-13 11:43:21 -05:00
Adam Honse
b7c8afca65 [next] Active profile tracking 2026-04-13 11:43:21 -05:00
Adam Honse
e6d04d3c1e Apply profiles server-side rather than client-side, signal active profile update, forward loaded profile to local client for plugins 2026-04-13 11:43:21 -05:00
Adam Honse
97b7261bd1 Split HID and wrapped HID detector lists into specific detectors (with exact VID/PID matching) and generic detectors (with only IPU matching) and prioritize specific detectors when detecting HID devices 2026-04-13 11:43:21 -05:00
Adam Honse
3b0c85592e Move RGBController base destructor functionality into RGBController::Shutdown() so that update thread can be stopped before deleting the controller. Shutdown() must be called in every RGBController implementation before deleting the controller. Also some fixes to the NetworkServer to avoid deadlocking and disconnect issues 2026-04-13 11:43:21 -05:00
Adam Honse
5176f7ff7d Add detectors for filtering on IPU only (no VID/PID) 2026-04-13 11:43:21 -05:00
Adam Honse
11fca22a5b Drop support for old hidapi versions that don't support usage information 2026-04-13 11:43:21 -05:00
Adam Honse
0389531658 Add some validity checks to mode setters and getters in RGBController 2026-04-13 11:43:21 -05:00
Adam Honse
7aa5b61845 [next] SDK v6: Implement client and server flags to indicate capabilities and... 2026-04-13 11:43:21 -05:00
Adam Honse
61fe4fb19d SDK documentation updates 2026-04-13 11:43:21 -05:00
Adam Honse
f75139f792 Expose LogManager in ResourceManager so that plugins can use it 2026-04-13 11:43:21 -05:00
Adam Honse
23cacbe117 Update NetworkClient to use log manager and use common name constant in server logs 2026-04-13 11:43:21 -05:00
Adam Honse
c26e15fd7b Use std::string.assign when setting strings in the SDK protocol and description handlers so that string size limit is enforced, then strip out null terminators 2026-04-13 11:43:21 -05:00
Adam Honse
e8495115b5 Add optional HID device hotplug support (requires https://gitlab.com/OpenRGBDevelopers/hidapi-hotplug) 2026-04-13 11:43:21 -05:00
Adam Honse
e1b84ba874 SDK v6: Use unique IDs for identifying RGBControllers in SDK protocol 2026-04-13 11:43:21 -05:00
Adam Honse
31d02f64b2 Rework list handling in ResourceManager by having NetworkClient own its own list rather than sharing ResourceManager's list 2026-04-13 11:43:20 -05:00
Adam Honse
e546dc63e8 Move HID detector calls to RunHIDDetector/RunHIDWrappedDetector functions and return controller list from detector functions 2026-04-13 11:43:20 -05:00
Adam Honse
8374a650f6 Detection progress SDK integration, NetworkClient callback rework 2026-04-13 11:43:20 -05:00
Adam Honse
84d3656f4d Split out detection system from ResourceManager into DetectionManager
* Split detection system out into its own class, DetectionManager
    * Clean up ResourceManger's many callbacks into just two, one for detection and one general purpose
2026-04-13 11:43:20 -05:00
Adam Honse
1d963193ae SDK Version 6 Updates
* SDK Protocol
    * Server sends its name to client
    * ProfileManager
      * Rename existing profile commands
      * Add Upload Profile, Download Profile, and Get Active Profile commands
    * SettingsManager
      * Add Get, Set, and Save Settings commands
    * Add zone::active_mode, zone::mode fields for zone-specific modes
    * Add NET_PACKET_ID_RGBCONTROLLER_UPDATEZONEMODE packet for updating zone modes
    * Add segment::matrix_map to segment packet
    * Add NET_PACKET_ID_RGBCONTROLLER_SIGNALUPDATE packet for passing SignalUpdate signal from server to clients
  * NetworkServer
    * Formatting cleanup
    * Use per-controller threads for handling NetworkServer controller-specific packets to avoid delays from controller mutexes
  * NetworkClient
    * Formatting cleanup
  * RGBController
    * Clean up and modularize descriptor functions
2026-04-13 11:43:20 -05:00
Adam Honse
66921e1cd9 Rework Profiles to use JSON format
* Update OpenRGB Plugin Interface to include functions for loading/saving profile JSON data into OpenRGB profiles
    * Update ProfileManager to handle auto-load profiles (Exit, Open, Resume, Suspend) and move their settings to ProfileManager section
    * Update ProfileManager to store profiles in "profiles" folder in .json format
    * Update ProfileManager to store size profile in sizes.json
    * Update ProfileManager to perform device UpdateMode/UpdateColors when loading profile
    * Code cleanup of ProfileManager and profile-related code
2026-04-13 11:43:20 -05:00
Adam Honse
add92d7f73 RGBController API Overhaul
* Reorganize and clean up RGBController API functions
    * Add functions to get protected RGBController member values
    * Make NetworkClient, ProfileManager, and ResourceManager friend classes so they can access protected members
    * Protected previously-public RGBController members
        * Information strings (name, vendor, description, version, serial location)
        * Device type
        * Active mode
        * Flags
        * LEDs vector
        * LED alternate names vector
        * Modes vector
        * Colors vector
        * Zones vector
    * Add CONTROLLER_FLAG_HIDDEN to allow plugins to hide controllers from control GUI
    * Add update reason codes to RGBController update callback and signal updates on more RGBController events
    * Add loop zone types and segmented zone type
    * Add matrix map field to segments
    * Rework matrix_map_type from using pointers to vector to prevent memory leaks
    * Rework KeyboardLayoutManager to return new matrix_map_type
    * Add access mutex to RGBController API
    * Add per-zone modes ot RGBController API
    * Add JSON description functions to RGBController API
2026-04-13 11:43:20 -05:00