Files
Upsilon/apps/sequence/graph/graph_view.h
Émilie Feral 3245704ded [apps/sequence/graph] Change name: highlightColor ->
shouldColorHighlighted

Change-Id: Ia9e37e040fb4cb46cdcbb138c07201491d1a4dc2
2017-03-07 15:03:11 +01:00

33 lines
995 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 evaluateModelWithParameter(Model * expression, float abscissa) const override;
KDSize cursorSize() override;
SequenceStore * m_sequenceStore;
bool m_verticalCursor;
int m_highlightedDotStart;
int m_highlightedDotEnd;
bool m_shouldColorHighlighted;
Sequence * m_selectedSequence;
};
}
#endif