~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/ArcBox.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: ArcBox.h,v 1.13 2000/12/11 12:21:47 zeller Exp $
 
1
// $Id$
2
2
// Arc boxes
3
3
 
4
4
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
29
29
#ifndef _DDD_ArcBox_h
30
30
#define _DDD_ArcBox_h
31
31
 
32
 
#ifdef __GNUG__
33
 
#pragma interface
34
 
#endif
35
 
 
36
32
#include "LineBox.h"
37
33
#include "Widget.h"
38
34
 
58
54
                GC gc, 
59
55
                bool context_selected) const;
60
56
 
61
 
    void _printPS(ostream& os, 
 
57
    void _printPS(std::ostream& os, 
62
58
                  const BoxRegion& region, 
63
59
                  const PrintGC& gc) const;
64
 
    void _printFig(ostream& os, 
 
60
    void _printFig(std::ostream& os, 
65
61
                   const BoxRegion& region, 
66
62
                   const PrintGC& gc) const;
67
63
        
70
66
        LineBox(box), _start(box._start), _length(box._length)
71
67
    {}
72
68
 
73
 
    void dump(ostream& s) const;
 
69
    void dump(std::ostream& s) const;
74
70
 
75
71
    bool matches (const Box &b, const Box * = 0) const
76
72
    {
77
73
        return LineBox::matches(b) &&
78
 
            _start == ((ArcBox *)&b)->_start &&
79
 
            _length == ((ArcBox *)&b)->_length; // dirty trick
 
74
            _start == ((const ArcBox *)&b)->_start &&
 
75
            _length == ((const ArcBox *)&b)->_length; // dirty trick
80
76
    }
81
77
 
82
78
public:
87
83
 
88
84
    Box *dup() const { return new ArcBox(*this); }
89
85
 
90
 
    virtual void _print(ostream& os, 
 
86
    virtual void _print(std::ostream& os, 
91
87
                        const BoxRegion& region, 
92
88
                        const PrintGC& gc) const;
93
89