| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : OneArrow.h |
| 6 |
// |
| 7 |
// ------------------------------------------------------------------------- |
| 8 |
// A |
| 9 |
// _____ _ _ _ _ |
| 10 |
// / __ \ | | | | (_) | |
| 11 |
// | / \/ ___ __| | ___| | _| |_ ___ |
| 12 |
// | | / _ \ / _ |/ _ \ | | | __/ _ ) |
| 13 |
// | \__/\ (_) | (_| | __/ |___| | || __/ |
| 14 |
// \____/\___/ \__,_|\___\_____/_|\__\___| |
| 15 |
// |
| 16 |
// F i l e |
| 17 |
// |
| 18 |
// This program is free software; you can redistribute it and/or modify |
| 19 |
// it under the terms of the GNU General Public License as published by |
| 20 |
// the Free Software Foundation; either version 2 of the License, or |
| 21 |
// (at your option) any later version. |
| 22 |
// |
| 23 |
////////////////////////////////////////////////////////////////////////////// |
| 24 |
////////////////////////////////////////////////////////////////////////////// |
| 25 |
|
| 26 |
#ifndef ONEARROW_H |
| 27 |
#define ONEARROW_H |
| 28 |
|
| 29 |
#include <wx/wx.h> |
| 30 |
#include <wx/wxsf/SolidArrow.h> // Base class: wxSFArrowBase |
| 31 |
|
| 32 |
/*! \brief Class representing arrow end used in ERD. Connection type - one */ |
| 33 |
class OneArrow : public wxSFSolidArrow { |
| 34 |
|
| 35 |
public: |
| 36 |
XS_DECLARE_CLONABLE_CLASS(OneArrow); |
| 37 |
OneArrow(void); |
| 38 |
OneArrow(wxSFShapeBase* parent); |
| 39 |
OneArrow(const OneArrow& obj); |
| 40 |
virtual ~OneArrow(); |
| 41 |
|
| 42 |
public: |
| 43 |
virtual void Draw(const wxRealPoint& from, const wxRealPoint& to, wxDC& dc); |
| 44 |
}; |
| 45 |
|
| 46 |
#endif // ONEARROW_H |