Menu

[357496]: / xlink.h  Maximize  Restore  History

Download this file

75 lines (61 with data), 1.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef LINK_H
#define LINK_H
#include <QColor>
#include <QPen>
#include "xmlobj.h"
class QPointF;
class QGraphicsScene;
class QString;
class BranchItem;
class MapObj;
class LinkableMapObj;
class VymModel;
class XLinkItem;
class XLinkObj;
class Link:public XMLObj
{
public:
enum XLinkState {undefinedXLink,initXLink,activeXLink,deleteXLink};
enum LinkType {Linear, Bezier};
Link (VymModel *m);
virtual ~Link();
virtual void init ();
VymModel* getModel();
void setBeginBranch (BranchItem*);
BranchItem* getBeginBranch();
void setEndBranch (BranchItem*);
void setEndPoint(QPointF);
BranchItem* getEndBranch();
void setBeginLinkItem (XLinkItem*);
XLinkItem* getBeginLinkItem();
void setEndLinkItem (XLinkItem*);
XLinkItem* getEndLinkItem ();
XLinkItem* getOtherEnd (XLinkItem*);
void setPen (const QPen &p);
QPen getPen();
void setLinkType (const QString &s);
void setStyleBegin( const QString &s);
QString getStyleBeginString();
void setStyleEnd( const QString &s);
QString getStyleEndString();
bool activate ();
void deactivate ();
XLinkState getState();
void removeXLinkItem (XLinkItem *xli);
void updateLink();
QString saveToDir ();
XLinkObj* getXLinkObj();
XLinkObj* createMapObj();
MapObj* getMO();
private:
XLinkState xLinkState; // init during drawing or active
LinkType type;
QPen pen;
XLinkObj *xlo;
VymModel *model;
BranchItem *beginBranch;
BranchItem *endBranch;
XLinkItem *beginLinkItem;
XLinkItem *endLinkItem;
};
#endif
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.