~ubuntu-branches/ubuntu/utopic/tcm/utopic

« back to all changes in this revision

Viewing changes to src/sd/dv/c2r2mlistline.h

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2003-07-03 20:08:21 UTC
  • Revision ID: james.westby@ubuntu.com-20030703200821-se4xtqx25e5miczi
Tags: upstream-2.20
ImportĀ upstreamĀ versionĀ 2.20

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//------------------------------------------------------------------------------
 
2
//
 
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).
 
7
//
 
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.
 
12
//
 
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.
 
17
//
 
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
 
21
// 02111-1307, USA.
 
22
//-----------------------------------------------------------------------------
 
23
#ifndef _C2R2MLISTLINE_H
 
24
#define _C2R2MLISTLINE_H
 
25
 
 
26
#include "t4tlistline.h"
 
27
#include "lineend.h"
 
28
 
 
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} */
 
33
public:
 
34
        ///
 
35
        C2R2MListLine(ShapeView *v, Grafport *g, GShape *n1, GShape *n2, 
 
36
                List<Point *> *line, bool Curved);
 
37
        ///
 
38
        C2R2MListLine(ShapeView *v, Grafport *g, GShape *n1, GShape *n2, 
 
39
                bool Curved);
 
40
        ///
 
41
        Shape *Clone() {return new C2R2MListLine(*this);}
 
42
        ///
 
43
        int GetClassType() const {return Code::C2R2_MLIST_LINE;}
 
44
        ///
 
45
        bool SetAssocSubject(AssocList *);
 
46
        ///
 
47
        void SetTextShape();
 
48
        ///
 
49
        bool InTextArea(int x, int y);
 
50
        ///
 
51
        TextShape *ChooseTextShape(int x, int y);
 
52
        ///
 
53
        TextShape *HitTextShape(int x, int y);
 
54
        ///
 
55
        void UpdateTListTextShape(const string *s, unsigned n);
 
56
        ///
 
57
        void UndrawTListTextShape(const string *s, unsigned n);
 
58
        ///
 
59
        void ReDrawTListTextShape(const string *s, unsigned n);
 
60
        ///
 
61
        void CalcMsgDirection(unsigned n);
 
62
        ///
 
63
        void WriteMembers(OutputFile *f);
 
64
        ///
 
65
        bool ReadMembers(InputFile *f, double format);
 
66
protected:
 
67
        ///
 
68
        void DrawShape();
 
69
private:
 
70
        ///
 
71
        List <Point *> *plist;
 
72
        ///
 
73
        LineEnd dummy;
 
74
        ///
 
75
        void InitTextShapes();
 
76
};
 
77
#endif