-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblock.h
49 lines (39 loc) · 817 Bytes
/
block.h
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
#ifndef BLOCK_H
#define BLOCK_H
#include <QObject>
class Spot;
#include "galfile.h"
class Block : public QObject
{
Q_OBJECT
public:
Block(int number,const QString & data, GalFile * file);
Block(int number, GalFile * file);
void addSpot(Spot * spot);
Spot * spot(int column,int row);
SpotList * spots();
const QStringList & columnNames();
int blockNumber();
int xOrigin();
int yOrigin();
int diameter();
int xCount();
int yCount();
int xSpacing();
int ySpacing();
signals:
public slots:
private:
void setData(const QString & data);
SpotList _spots;
GalFile * _file;
int _blockNumber;
int _xOrigin;
int _yOrigin;
int _diameter;
int _xCount;
int _yCount;
int _xSpacing;
int _ySpacing;
};
#endif // BLOCK_H