add dashboards
This commit is contained in:
+18
-1
@@ -34,11 +34,14 @@
|
||||
#include "re/dbccomparatorwindow.h"
|
||||
#include "re/udsfirmwareuploaderwindow.h"
|
||||
#include "canbridgewindow.h"
|
||||
#include <QMap>
|
||||
|
||||
class CANConnection;
|
||||
class ConnectionWindow;
|
||||
class ISOTP_InterpreterWindow;
|
||||
class ScriptingWindow;
|
||||
class DashboardWindow;
|
||||
class QMenu;
|
||||
|
||||
enum SIMP_COL
|
||||
{
|
||||
@@ -128,6 +131,8 @@ private slots:
|
||||
void headerClicked (int logicalIndex);
|
||||
void DBCSettingsUpdated();
|
||||
void onSenderCellChanged(int, int);
|
||||
void createDashboard();
|
||||
void deleteDashboard();
|
||||
|
||||
public slots:
|
||||
void gotFrames(int);
|
||||
@@ -203,6 +208,9 @@ private:
|
||||
DBCComparatorWindow *dbcComparatorWindow;
|
||||
CANBridgeWindow *canBridgeWindow;
|
||||
|
||||
QMenu *dashboardsMenu;
|
||||
QMap<QString, DashboardWindow *> dashboardWindows;
|
||||
|
||||
//various private storage
|
||||
QLabel lbStatusConnected;
|
||||
QLabel lbStatusFilename;
|
||||
@@ -211,10 +219,12 @@ private:
|
||||
int normalRowHeight;
|
||||
bool isConnected;
|
||||
QPoint contextMenuPosition;
|
||||
QString contextMenuSignalName;
|
||||
uint32_t contextMenuMessageId = 0;
|
||||
bool rowExpansionActive = false;
|
||||
|
||||
//private methods
|
||||
QString getSignalNameFromPosition(QPoint pos);
|
||||
QString getSignalNameFromPosition(QPoint pos, uint32_t messageId);
|
||||
uint32_t getMessageIDFromPosition(QPoint pos);
|
||||
void copySelection();
|
||||
void handleSaveDecodedMethod(bool csv);
|
||||
@@ -232,6 +242,13 @@ private:
|
||||
void disableAutoRowExpansion();
|
||||
void createSenderRow();
|
||||
void processSenderCellChange(int line, int col);
|
||||
void addSelectionToGraph(GraphingWindow *target);
|
||||
void setupDashboards();
|
||||
void refreshDashboardsMenu();
|
||||
void addDashboardTargetMenu(QMenu *parentMenu, QAction *windowAction, const QString &toolId);
|
||||
DashboardWindow *openDashboard(const QString &dashboardId);
|
||||
QWidget *createDashboardTool(const QString &toolId);
|
||||
QStringList dashboardIds() const;
|
||||
};
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user