mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
perliminaries for filtered card list
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@152 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -90,6 +90,8 @@ class Graph {
|
||||
virtual bool findItem(const RealPoint& pos, const RealRect& rect, vector<int>& out) const { return false; }
|
||||
/// Change the data
|
||||
virtual void setData(const GraphDataP& d) { data = d; }
|
||||
/// Get the data
|
||||
inline const GraphData& getData() const { return *data; }
|
||||
|
||||
protected:
|
||||
/// Data of the graph
|
||||
@@ -162,6 +164,11 @@ class GraphControl : public wxControl {
|
||||
/// Update the data in the graph
|
||||
void setData(const GraphDataP& data);
|
||||
|
||||
/// Is there a selection on the given axis?
|
||||
bool hasSelection(size_t axis) const;
|
||||
/// Get the current item, returns the selected value on each axis in out
|
||||
void getSelection(vector<String>& out) const;
|
||||
|
||||
private:
|
||||
/// Graph object
|
||||
GraphP graph;
|
||||
|
||||
Reference in New Issue
Block a user