summaryrefslogtreecommitdiffstats
path: root/Project/Element.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-09-01 18:23:35 -0300
committerThales1330 <thaleslima.ufu@gmail.com>2016-09-01 18:23:35 -0300
commitb817a3f0e398c7e938ed1a37ebdbfc5a03eb7471 (patch)
tree2d3b71b7ec3bafe8978eeb958baeb635354df029 /Project/Element.h
parent8f475833e585692544cb0f481b0dce0c3439a1a9 (diff)
downloadPSP.git-b817a3f0e398c7e938ed1a37ebdbfc5a03eb7471.tar.gz
PSP.git-b817a3f0e398c7e938ed1a37ebdbfc5a03eb7471.tar.xz
PSP.git-b817a3f0e398c7e938ed1a37ebdbfc5a03eb7471.zip
generator under implementation
Diffstat (limited to 'Project/Element.h')
-rw-r--r--Project/Element.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Project/Element.h b/Project/Element.h
index 5b7c09d..4dc278f 100644
--- a/Project/Element.h
+++ b/Project/Element.h
@@ -22,6 +22,7 @@ enum ContextMenuID
ID_EDIT_BUS = 0,
ID_EDIT_LINE,
ID_EDIT_TRANSFORMER,
+ ID_EDIT_GENERATOR,
ID_LINE_ADD_NODE,
ID_LINE_REMOVE_NODE,
@@ -57,11 +58,11 @@ class Element
// Pure-virtuals methods
virtual bool AddParent(Element* parent, wxPoint2DDouble position) = 0;
virtual void Draw(wxPoint2DDouble translation, double scale) const = 0;
- virtual void Rotate() = 0;
virtual bool Contains(wxPoint2DDouble position) const = 0;
virtual bool Intersects(wxRect2DDouble rect) const = 0;
// General methods
+ virtual void Rotate() {}
virtual bool GetContextMenu(wxMenu& menu) { return false; }
virtual void AddPoint(wxPoint2DDouble point) {}
virtual void StartMove(wxPoint2DDouble position);