-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrange.h
More file actions
executable file
·82 lines (67 loc) · 2.41 KB
/
Copy pathrange.h
File metadata and controls
executable file
·82 lines (67 loc) · 2.41 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
74
75
76
77
78
79
80
81
82
/****************************************************************************
**
** Copyright (C) 2007-2009 Kevin Clague. All rights reserved.
**
** This file may be used under the terms of the GNU General Public
** License version 2.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of
** this file. Please review the following information to ensure GNU
** General Public Licensing requirements will be met:
** http://www.trolltech.com/products/qt/opensource.html
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
****************************************************************************/
/****************************************************************************
*
* This class implements a set of consecutive steps within either a row
* or column of a callout or multi-step.
*
* Please see lpub.h for an overall description of how the files in LPub
* make up the LPub program.
*
***************************************************************************/
#ifndef rangeH
#define rangeH
#include <QtGui>
#include "meta.h"
#include "ranges_element.h"
class Step;
class QGraphicsItem;
class AbstractRangeElement;
class Range : public AbstractStepsElement {
public:
int allocType;
FreeFormMeta freeform;
SepMeta sepMeta;
int leftAdjust; // for freeform multi_step only
Range(Steps *_parent,
AllocEnc _allocType);
Range(Steps *_parent,
AllocEnc _allocType,
FreeFormMeta _freeform);
virtual ~Range();
void append(AbstractRangeElement *gi);
virtual void sizeMargins(int cols[], int colMargins[][2], int margins[]);
virtual void sizeitVert();
virtual void sizeitHoriz();
virtual void placeit(int max, int x, int y);
virtual void sizeitFreeform(
int xx,
int yy,
int base,
int justification);
virtual void placeitFreeform(
int xx,
int yy,
int max,
int justification);
virtual void addGraphicsItems(
int xx,
int yy,
Meta *meta,
PlacementType,
QGraphicsItem *parent);
};
#endif