mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Add setting for graph behavior when trace no longer supported
This commit is contained in:
parent
b45645f04e
commit
dda149f3d5
11 changed files with 363 additions and 227 deletions
|
|
@ -39,6 +39,9 @@ protected:
|
|||
static constexpr int MinUpdateInterval = 100;
|
||||
// need to be called in derived class constructor
|
||||
void initializeTraceInfo();
|
||||
std::vector<Trace*> activeTraces();
|
||||
// changes the graph settings to make it possible to display a specific trace. The trace is not aded yet
|
||||
virtual bool configureForTrace(Trace *t) { Q_UNUSED(t) return false; }; // default implementation fails for all traces
|
||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
virtual void updateContextMenu(){};
|
||||
|
|
@ -92,6 +95,9 @@ protected:
|
|||
TraceModel &model;
|
||||
Marker *selectedMarker;
|
||||
|
||||
// graph settings have been changed, check and possibly remove incompatible traces before next paint event
|
||||
bool traceRemovalPending;
|
||||
|
||||
bool dropPending;
|
||||
QPoint dropPosition;
|
||||
Trace *dropTrace;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue