mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
33 lines
948 B
C++
33 lines
948 B
C++
#ifndef SEQUENCE_GRAPH_VIEW_H
|
|
#define SEQUENCE_GRAPH_VIEW_H
|
|
|
|
#include "../../shared/function_graph_view.h"
|
|
#include "../sequence_store.h"
|
|
|
|
namespace Sequence {
|
|
|
|
class GraphView : public Shared::FunctionGraphView {
|
|
public:
|
|
GraphView(SequenceStore * sequenceStore, Shared::InteractiveCurveViewRange * graphRange,
|
|
Shared::CurveViewCursor * cursor, Shared::BannerView * bannerView, View * cursorView);
|
|
void drawRect(KDContext * ctx, KDRect rect) const override;
|
|
void setVerticalCursor(bool verticalCursor);
|
|
void reload() override;
|
|
void selectSequence(Sequence * sequence);
|
|
void setHighlight(int start, int end);
|
|
void setHighlightColor(bool highlightColor);
|
|
private:
|
|
float samplingRatio() const override;
|
|
KDSize cursorSize() override;
|
|
SequenceStore * m_sequenceStore;
|
|
bool m_verticalCursor;
|
|
int m_highlightedDotStart;
|
|
int m_highlightedDotEnd;
|
|
bool m_shouldColorHighlighted;
|
|
Sequence * m_selectedSequence;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|