mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-12 03:03:41 +08:00
504453c3e4
* support live streaming * update live stream's time * cleanup stream classes * disable video control in live streaming mode * emit streamStarted() in LiveStream::streamThread * disable some features in live streaming mode * refactor charts to support live streaming mode * disable dynamic mode checkbox in live streaming mode * updateDispalyRange * thread safe events * TODO: add support for ZMQ * atomic time stamp * only keep settings.cached_segment_limit*60 seconds data in liveStream * make charts work better in live mode * cleanup ChartView * fix toolbar * cleanup cleanup * disable openpilotPrefix and useOpenGL on macos * add comment * exit gracefully * support ZMQ * use ::operator new/delete * cleanup streams * cleanup * align stream buffers * check looping back * check if series is empty * cleanup * add TODO: write stream to log file to replay it * upper_bound * remove class member event_range * change default settings value * cleanup updateDisplayrange * fix merge error old-commit-hash: f9490739ab37ae680aef272d51eb3cf2b36b4103
63 lines
1.4 KiB
C++
63 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <QUndoCommand>
|
|
|
|
#include "tools/cabana/dbcmanager.h"
|
|
|
|
class EditMsgCommand : public QUndoCommand {
|
|
public:
|
|
EditMsgCommand(const QString &id, const QString &title, int size, QUndoCommand *parent = nullptr);
|
|
void undo() override;
|
|
void redo() override;
|
|
|
|
private:
|
|
const QString id;
|
|
QString old_title, new_title;
|
|
int old_size = 0, new_size = 0;
|
|
};
|
|
|
|
class RemoveMsgCommand : public QUndoCommand {
|
|
public:
|
|
RemoveMsgCommand(const QString &id, QUndoCommand *parent = nullptr);
|
|
void undo() override;
|
|
void redo() override;
|
|
|
|
private:
|
|
const QString id;
|
|
DBCMsg message;
|
|
};
|
|
|
|
class AddSigCommand : public QUndoCommand {
|
|
public:
|
|
AddSigCommand(const QString &id, const Signal &sig, QUndoCommand *parent = nullptr);
|
|
void undo() override;
|
|
void redo() override;
|
|
|
|
private:
|
|
const QString id;
|
|
Signal signal = {};
|
|
};
|
|
|
|
class RemoveSigCommand : public QUndoCommand {
|
|
public:
|
|
RemoveSigCommand(const QString &id, const Signal *sig, QUndoCommand *parent = nullptr);
|
|
void undo() override;
|
|
void redo() override;
|
|
|
|
private:
|
|
const QString id;
|
|
Signal signal = {};
|
|
};
|
|
|
|
class EditSignalCommand : public QUndoCommand {
|
|
public:
|
|
EditSignalCommand(const QString &id, const Signal *sig, const Signal &new_sig, QUndoCommand *parent = nullptr);
|
|
void undo() override;
|
|
void redo() override;
|
|
|
|
private:
|
|
const QString id;
|
|
Signal old_signal = {};
|
|
Signal new_signal = {};
|
|
};
|