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:
twanvl
2006-12-22 23:03:02 +00:00
parent c85e821f00
commit 106afceaf9
3 changed files with 40 additions and 0 deletions
+7
View File
@@ -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;