| 1 |
////////////////////////////////////////////////////////////////////////////// |
| 2 |
////////////////////////////////////////////////////////////////////////////// |
| 3 |
// |
| 4 |
// copyright : (C) 2014 Eran Ifrah |
| 5 |
// file name : ErdForeignKey.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 ERDFOREIGNKEY_H |
| 27 |
#define ERDFOREIGNKEY_H |
| 28 |
#include <wx/wx.h> |
| 29 |
#include <wx/wxxmlserializer/XmlSerializer.h> |
| 30 |
#include <wx/wxsf/TextShape.h> |
| 31 |
#include <wx/wxsf/CircleArrow.h> |
| 32 |
#include <wx/wxsf/SolidArrow.h> |
| 33 |
|
| 34 |
#include "wx/wxsf/RoundOrthoShape.h" // Base class: wxSFOrthoLineShape |
| 35 |
|
| 36 |
#include "NArrow.h" |
| 37 |
#include "OneArrow.h" |
| 38 |
#include "constraint.h" |
| 39 |
/*! \brief Class representing line in ERD diagram constructed on Foreign Key base. For more info see wxSF manual */ |
| 40 |
class ErdForeignKey : public wxSFRoundOrthoLineShape { |
| 41 |
public: |
| 42 |
XS_DECLARE_CLONABLE_CLASS(ErdForeignKey); |
| 43 |
ErdForeignKey(); |
| 44 |
ErdForeignKey(const ErdForeignKey& obj); |
| 45 |
ErdForeignKey(Constraint* pConstraint); |
| 46 |
|
| 47 |
virtual ~ErdForeignKey(); |
| 48 |
|
| 49 |
virtual void CreateHandles(); |
| 50 |
|
| 51 |
protected: |
| 52 |
Constraint* m_pConstraint; |
| 53 |
}; |
| 54 |
|
| 55 |
#endif // ERDFOREIGNKEY_H |