Added ability to create multiple graphing windows that act separately.

Added ability to right check on signals in main view and graph them
directly.
This commit is contained in:
Collin Kidder
2021-05-02 12:48:47 -04:00
parent e7561878d7
commit 35c1ef5387
7 changed files with 185 additions and 40 deletions
+11 -1
View File
@@ -92,6 +92,9 @@ private slots:
void connectionStatusUpdated(int conns);
void gridClicked(QModelIndex);
void gridDoubleClicked(QModelIndex);
void gridContextMenuRequest(QPoint pos);
void setupAddToNewGraph();
void setupSendToLatestGraphWindow();
void interpretToggled(bool);
void overwriteToggled(bool);
void logReceivedFrame(CANConnection*, QVector<CANFrame>);
@@ -147,7 +150,11 @@ private:
int continuousLogFlushCounter;
//References to other windows we can display
GraphingWindow *graphingWindow;
//Graph window is allowed to instantiate more than once. All the rest are not (yet).
GraphingWindow *lastGraphingWindow;
QList<GraphingWindow *> graphWindows;
FrameInfoWindow *frameInfoWindow;
FramePlaybackWindow *playbackWindow;
FlowViewWindow *flowViewWindow;
@@ -178,8 +185,11 @@ private:
QLabel lbHelp;
int normalRowHeight;
bool isConnected;
QPoint contextMenuPosition;
//private methods
QString getSignalNameFromPosition(QPoint pos);
uint32_t getMessageIDFromPosition(QPoint pos);
void saveDecodedTextFile(QString);
void addFrameToDisplay(CANFrame &, bool);
void updateFileStatus();