1
//------------------------------------------------------------------------------
3
// This file is part of Toolkit for Conceptual Modeling (TCM).
4
// (c) copyright 2000, Vrije Universiteit Amsterdam and University of Twente.
5
// Author: Frank Dehne (frank@cs.vu.nl).
6
// Author: Henk van de Zandschulp (henkz@cs.utwente.nl).
8
// TCM is free software; you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation; either version 2 of the License, or
11
// (at your option) any later version.
13
// TCM is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
// GNU General Public License for more details.
18
// You should have received a copy of the GNU General Public License
19
// along with TCM; if not, write to the Free Software
20
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22
//-----------------------------------------------------------------------------
23
#ifndef _C2R2MLISTLINE_H
24
#define _C2R2MLISTLINE_H
26
#include "t4tlistline.h"
29
/// line having card. constraints and role names at both sides PLUS
30
/// a list of textshapes
31
class C2R2MListLine: public T4TListLine {
32
/*@Doc: {\large {\bf scope:} TCBD} */
35
C2R2MListLine(ShapeView *v, Grafport *g, GShape *n1, GShape *n2,
36
List<Point *> *line, bool Curved);
38
C2R2MListLine(ShapeView *v, Grafport *g, GShape *n1, GShape *n2,
41
Shape *Clone() {return new C2R2MListLine(*this);}
43
int GetClassType() const {return Code::C2R2_MLIST_LINE;}
45
bool SetAssocSubject(AssocList *);
49
bool InTextArea(int x, int y);
51
TextShape *ChooseTextShape(int x, int y);
53
TextShape *HitTextShape(int x, int y);
55
void UpdateTListTextShape(const string *s, unsigned n);
57
void UndrawTListTextShape(const string *s, unsigned n);
59
void ReDrawTListTextShape(const string *s, unsigned n);
61
void CalcMsgDirection(unsigned n);
63
void WriteMembers(OutputFile *f);
65
bool ReadMembers(InputFile *f, double format);
71
List <Point *> *plist;
75
void InitTextShapes();