Files
Upsilon/apps/sequence/graph/graph_view.h
Émilie Feral a6050fda55 [apps] Shared: Factorize code: all FunctionGraphView have a member
indicating the selected function
2018-01-30 18:19:27 +01:00

31 lines
871 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 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;
};
}
#endif