partial reconstruction from qwt to manual plotting

This commit is contained in:
Jan Käberich 2020-11-22 00:41:42 +01:00
parent ef97d54913
commit 25196fbc30
17 changed files with 822 additions and 371 deletions

View file

@ -29,16 +29,21 @@ protected:
// need to be called in derived class constructor
void initializeTraceInfo();
void contextMenuEvent(QContextMenuEvent *event) override;
void paintEvent(QPaintEvent *event) override;
virtual void updateContextMenu(){};
virtual bool supported(Trace *t) = 0;
virtual void replot(){};
virtual void replot(){update();};
virtual void draw(QPainter& p) = 0;
std::map<Trace*, bool> traces;
QMenu *contextmenu;
QTime lastUpdate;
bool markedForDeletion;
static std::set<TracePlot*> plots;
// handle trace drops
void dragEnterEvent(QDragEnterEvent *event) override;
void dropEvent(QDropEvent *event) override;
protected slots:
void newTraceAvailable(Trace *t);
void traceDeleted(Trace *t);
@ -46,6 +51,10 @@ protected slots:
virtual void markerAdded(TraceMarker *m);
virtual void markerRemoved(TraceMarker *m);
protected:
static constexpr unsigned int marginTop = 20;
static constexpr unsigned int marginBottom = 0;
static constexpr unsigned int marginLeft = 0;
static constexpr unsigned int marginRight = 0;
double sweep_fmin, sweep_fmax;
TraceModel &model;