Skip to content

Commit

Permalink
feat: added app_data and extended subplots
Browse files Browse the repository at this point in the history
  • Loading branch information
guglielmo-boi committed May 21, 2024
1 parent d5fc388 commit 1c67072
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 57 deletions.
60 changes: 3 additions & 57 deletions proto/app/app_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,6 @@ message Connection
string mode = 3;
}

message DoubleTrigger
{
string id = 1;
string message = 2;
string signal = 3;
int32 comparator = 4;
double value = 5;
uint32 color = 6;
}

message EnumTrigger
{
string id = 1;
string message = 2;
string signal = 3;
int32 comparator = 4;
uint64 value = 5;
uint32 color = 6;
}

message BitTrigger
{
string id = 1;
string message = 2;
string signal = 3;
int32 comparator = 4;
uint64 value = 5;
uint32 color = 6;
}

message AxisItem
{
string message = 1;
string signal = 2;
bool isEnum = 3;
uint32 color = 4;
}

message Axis
{
string name = 1;
repeated AxisItem items = 3;
}

message CustomPlot
{
string name = 1;
map<int32, Axis> axes = 2;
}

message AppConfig
{
uint64 loginTimestamp = 1;
Expand All @@ -67,11 +17,7 @@ message AppConfig
Connection connection = 4;
map<string, Connection> savedConnections = 5;
repeated string activeTabs = 6;
repeated DoubleTrigger doubleTriggers = 7;
repeated EnumTrigger enumTriggers = 8;
repeated BitTrigger bitTriggers = 9;
repeated CustomPlot customPlots = 10;
map<string, string> filesPaths = 11;
map<string, string> stringCache = 12;
map<string, bool> boolCache = 13;
map<string, string> filesPaths = 7;
map<string, string> stringCache = 8;
map<string, bool> boolCache = 9;
}
74 changes: 74 additions & 0 deletions proto/app/app_data.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
syntax = "proto3";

package App;

message DoubleTrigger
{
string id = 1;
string message = 2;
string signal = 3;
int32 comparator = 4;
double value = 5;
uint32 color = 6;
}

message EnumTrigger
{
string id = 1;
string message = 2;
string signal = 3;
int32 comparator = 4;
uint64 value = 5;
uint32 color = 6;
}

message BitTrigger
{
string id = 1;
string message = 2;
string signal = 3;
int32 comparator = 4;
uint64 value = 5;
uint32 color = 6;
}

message CustomPlotItem
{
string messageAxisX = 1;
string messageAxisY = 2;
string signalAxisX = 3;
string signalAxisY = 4;
bool isEnum = 5;
uint32 color = 6;
}

message CustomPlotAxis
{
string label = 1;
repeated CustomPlotItem items = 2;
}

message CustomPlot
{
string title = 1;
map<int32, Axis> axes = 2;
}

message CustomSubPlots
{
uint32 rows = 1;
repeated CustomPlot plots = 2;
}

message CustomPlotsTab
{
repeated CustomSubPlots subPlots = 1;
}

message AppData
{
repeated DoubleTrigger doubleTriggers = 1;
repeated EnumTrigger enumTriggers = 2;
repeated BitTrigger bitTriggers = 3;
map<string, CustomPlotsTab> customPlotsTabs = 4;
}

0 comments on commit 1c67072

Please sign in to comment.