7 * A simple struct to hold a horizontal or vertical selection
9 struct SelectionState {
23 * Fairly generic data provider for graphs
25 class GraphDataProvider {
27 virtual ~GraphDataProvider(){}
29 /* Number of elements in graph */
30 virtual qint64 size() const = 0;
32 /* Returns value for index */
33 virtual qint64 value(qint64 index) const = 0;
35 /* Is the item at index selected */
36 virtual bool selected(qint64 index) const = 0;
38 /* Get mouse hover tooltip for item */
39 virtual QString itemTooltip(qint64 index) const = 0;
41 /* Called on item double click */
42 virtual void itemDoubleClicked(qint64 index) const = 0;
44 /* Set pointer to selection state */
45 virtual void setSelectionState(SelectionState* state) = 0;